PHP 警告:GearmanClient::doBackground(): gearman_connection_flush:write:111

发布于 2025-01-03 03:04:44 字数 1269 浏览 3 评论 0原文

我正在尝试在 Mac 上使用 Vagrant 复制我们的生产设置,看看是否可以复制我们运行多个 Gearman 服务器时遇到的问题。

但是,我无法让“Web”虚拟机将作业发送到 Gearman 队列,而是出现主题中描述的错误。我可以在两个虚拟机之间执行 ping 操作,并且可以通过 SSH 从一个虚拟机连接到另一个虚拟机,但似乎无法在端口 4730 上建立 telnet 连接。

我已从 CLI(使用 -vvv)启动 Gearman 服务器以查看是否我可以看到更多的情况正在发生,并且我可以看到后端实际上正在接受来自 Web VM 的连接,如下所示:

INFO Starting up
INFO Listening on 0.0.0.0:4730 (6)
INFO Creating wakeup pipe
INFO Creating IO thread wakeup pipe
INFO Adding event for listening socket (6)
INFO Adding event for wakeup pipe
INFO Entering main event loop
INFO Accepted connection from 127.0.0.1:48217
INFO [   0]       127.0.0.1:48217 Connected
INFO Accepted connection from 33.33.33.11:48208
INFO [   0]     33.33.33.11:48208 Connected
INFO [   0]     33.33.33.11:48208 Disconnected
INFO Accepted connection from 33.33.33.12:34402
INFO [   0]     33.33.33.12:34402 Connected
INFO [   0]     33.33.33.12:34402 Disconnected
INFO Accepted connection from 33.33.33.12:34404
INFO [   0]     33.33.33.12:34404 Connected
INFO [   0]     33.33.33.12:34404 Disconnected
INFO Accepted connection from 33.33.33.12:34406
INFO [   0]     33.33.33.12:34406 Connected
INFO [   0]     33.33.33.12:34406 Disconnected

但是,它似乎没有对收到的连接执行任何操作。有没有其他人有过这个问题的经验,或者可以解释一下错误 111 是什么?

谢谢。

I am trying to replicate our production setup using Vagrant on my Mac to see if I can replicate a problem we are having running multiple Gearman servers.

However, I am unable to get the "web" virtual machine to send jobs to the Gearman queues, getting instead the error described in the subject. I can ping between the two VMs and I can SSH from one VM to the other, but it seems I am unable to establish a telnet connection on port 4730.

I have started the Gearman server from the CLI (with -vvv) to see if I could see more of that is going on, and I can see that the backend is actually accepting a connection from the web VM, as follows:

INFO Starting up
INFO Listening on 0.0.0.0:4730 (6)
INFO Creating wakeup pipe
INFO Creating IO thread wakeup pipe
INFO Adding event for listening socket (6)
INFO Adding event for wakeup pipe
INFO Entering main event loop
INFO Accepted connection from 127.0.0.1:48217
INFO [   0]       127.0.0.1:48217 Connected
INFO Accepted connection from 33.33.33.11:48208
INFO [   0]     33.33.33.11:48208 Connected
INFO [   0]     33.33.33.11:48208 Disconnected
INFO Accepted connection from 33.33.33.12:34402
INFO [   0]     33.33.33.12:34402 Connected
INFO [   0]     33.33.33.12:34402 Disconnected
INFO Accepted connection from 33.33.33.12:34404
INFO [   0]     33.33.33.12:34404 Connected
INFO [   0]     33.33.33.12:34404 Disconnected
INFO Accepted connection from 33.33.33.12:34406
INFO [   0]     33.33.33.12:34406 Connected
INFO [   0]     33.33.33.12:34406 Disconnected

However, it does not seem to be doing anything with the connection that it receives. Does anyone else have any experience of this issue, or can maybe shed some light into what error 111 is?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

乱了心跳 2025-01-10 03:04:44

您是否已将 gearman 绑定为仅接受来自本地主机的连接?正如我所看到的,其他连接 33.33.33.11-12 已断开连接,但本地主机仍在运行。

我只有在无法连接到 gearman 作业服务器时才会收到该错误。

你的 gearman 启动命令是什么?

Have you bound the gearman to only accept connections from localhost? As I can see the other connections 33.33.33.11-12 disconnecting but local host is staying up.

I only get that error when it can't connect to a gearman job server.

What is your gearman start up command?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文