You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
By clicking “Sign up for GitHub”, you agree to our
terms of service
and
privacy statement
. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
队列进程重启,worker也重启了...
Fatal error: Uncaught GuzzleHttp\Exception\ConnectException: Connection reset by peer in /var/www/html/vendor/hyperf/guzzle/src/CoroutineHandler.php:70
Stack trace:
#0 /var/www/html/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php(35): Hyperf\Guzzle\CoroutineHandler->__invoke()
#1
/var/www/html/vendor/guzzlehttp/guzzle/src/Middleware.php(31): GuzzleHttp\PrepareBodyMiddleware->__invoke()
#2
/var/www/html/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php(71): GuzzleHttp\Middleware::GuzzleHttp{closure}()
#3
/var/www/html/vendor/guzzlehttp/guzzle/src/Middleware.php(63): GuzzleHttp\RedirectMiddleware->__invoke()
#4
/var/www/html/vendor/guzzlehttp/guzzle/src/HandlerStack.php(75): GuzzleHttp\Middleware::GuzzleHttp{closure}()
#5
/var/www/html/runtime/container/proxy/GuzzleHttp_Client.proxy.php(288): GuzzleHttp\HandlerStack->__invoke()
#6
/var/www/html/runtime/container/proxy/GuzzleHttp_Client.proxy.php(154): GuzzleHttp\Client->transfer()
#7
/var/www/html/vendor/hyperf/di/src/Aop/ProceedingJoinPoint.php(84): GuzzleHttp\C in /var/www/html/vendor/hyperf/consul/src/Client.php on line 70
[2021-04-28 16:34:36 @135.0] WARNING ~Channel (ERRNO 10003): channel is destroyed, 10 consumers will be discarded
[2021-04-28 16:34:36 @58.0] WARNING ~Channel (ERRNO 10003): channel is destroyed, 235 consumers will be discarded
[2021-04-28 16:34:36 @22.0] WARNING ~Channel (ERRNO 10003): channel is destroyed, 236 consumers will be discarded
[2021-04-28 16:34:36 @23.0] WARNING ~Channel (ERRNO 10003): channel is destroyed, 227 consumers will be discarded
[2021-04-28 16:34:36 @32.0] WARNING ~Channel (ERRNO 10003): channel is destroyed, 233 consumers will be discarded
[2021-04-28 16:34:36 @59.0] WARNING ~Channel (ERRNO 10003): channel is destroyed, 242 consumers will be discarded
[2021-04-28 16:34:36 @41.0] WARNING ~Channel (ERRNO 10003): channel is destroyed, 240 consumers will be discarded
[2021-04-28 16:34:36 $12.0] WARNING check_worker_exit_status: worker#9[pid=58] abnormal exit, status=255, signal=0
[2021-04-28 16:34:36 $12.0] WARNING check_worker_exit_status: worker#5[pid=22] abnormal exit, status=255, signal=0
[INFO] Process[queue.default.4] start.
[2021-04-28 16:34:36 $12.0] WARNING check_worker_exit_status: worker#6[pid=23] abnormal exit, status=255, signal=0
[INFO] Process[queue.default.0] start.
[2021-04-28 16:34:36 $12.0] WARNING check_worker_exit_status: worker#7[pid=32] abnormal exit, status=255, signal=0
[INFO] Process[queue.default.1] start.
[2021-04-28 16:34:36 $12.0] WARNING check_worker_exit_status: worker#8[pid=41] abnormal exit, status=255, signal=0
[INFO] Process[queue.default.2] start.
[2021-04-28 16:34:36 $12.0] WARNING check_worker_exit_status: worker#10[pid=59] abnormal exit, status=255, signal=0
[INFO] Process[queue.default.3] start.
[2021-04-28 16:34:36 $12.0] WARNING check_worker_exit_status: worker#0[pid=135] abnormal exit, status=255, signal=0
[INFO] Process[queue.default.5] start.
我猜是没有捕获GuzzleHttp的异常类, 所以直接退出了, 你自己try catch捕获下GuzzleHttp特定的异常, 试试
这个异常是hyperf的consul组建try到之后又抛出的,队列中我们尝试try之后还是不行,现在在找类似rpc和http服务中的handle方法
这个问题解决了么?我们遇到的情况是调用 Consul 中具体服务的健康检查接口的时候会抛出 Hyperf\Consul\Exception\ServerException 异常,然后这里导致了进程异常退出