首页
下载
文档
问答社区
视频
捐赠
源代码
AI 助理
赞助商
CRMEB
Apipost
腾讯云
微擎
禅道
51Talk
商业产品
Swoole AI 智能文档翻译器
Swoole-Compiler PHP 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
ERROR zm_deactivate_swoole (ERROR 503): Fatal error: Uncaught Swoft\Rpc\Client\Exception
### 问题描述 RPC客户端请求服务端出错 ### Swoole版本,PHP版本,以及操作系统版本信息 Swoole Version => 4.2.6 uname -a Linux 0c2d80d9bae0 3.10.0-862.6.3.el7.x86_64 #1 SMP Tue Jun 26 16:32:21 UTC 2018 x86_64 GNU/Linux php -v PHP 7.2.13 (cli) (built: Dec 10 2018 14:21:37) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologie gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 6.3.0-18+deb9u1' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) ### 相关代码 ```php [2020-10-13 09:34:12 *31.3] ERROR zm_deactivate_swoole (ERROR 503): Fatal error: Uncaught Swoft\Rpc\Client\Exception\RpcClientException: ServiceConnection::recv error, errCode=5001 in /var/www/swoft/vendor/swoft/rpc-client/src/Service/ServiceConnection.php:83 Stack trace: #0 /var/www/swoft/vendor/swoft/rpc-client/src/Service/ServiceConnection.php(42): Swoft\Rpc\Client\Service\ServiceConnection->recv() #1 /var/www/swoft/vendor/swoft/framework/src/Event/Listeners/ResourceReleaseListener.php(41): Swoft\Rpc\Client\Service\ServiceConnection->receive() #2 /var/www/swoft/vendor/swoft/framework/src/Aop/Aop.php(57): Swoft\Event\Listeners\ResourceReleaseListener->handle(Object(Swoft\Event\Event)) #3 /var/www/swoft/vendor/swoft/framework/src/Proxy/Handler/AopHandler.php(43): Swoft\Aop\Aop->execute(Object(Swoft\Event\Listeners\ResourceReleaseListener), 'handle', Array) #4 /var/www/swoft/vendor/swoft/framework/src/Proxy/Proxy.php(44) : eval()'d code(8): Swoft\Proxy\Handler\AopHandler->invoke('handle', Array) #5 /var/www/ | `'| U[2020-10-13 09:34:12 $7.0] WARNING swManager_check_exit_status: worker#3 abnormal exit, status=255, signal=0 ``` ### 你期待的结果是什么?实际看到的错误信息又是什么?
发布于4年前 · 16 次浏览 · 来自
提问
sandea81
### 问题描述 RPC客户端请求服务端出错 ### Swoole版本,PHP版本,以及操作系统版本信息 Swoole Version => 4.2.6 uname -a Linux 0c2d80d9bae0 3.10.0-862.6.3.el7.x86_64 #1 SMP Tue Jun 26 16:32:21 UTC 2018 x86_64 GNU/Linux php -v PHP 7.2.13 (cli) (built: Dec 10 2018 14:21:37) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologie gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 6.3.0-18+deb9u1' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) ### 相关代码 ```php [2020-10-13 09:34:12 *31.3] ERROR zm_deactivate_swoole (ERROR 503): Fatal error: Uncaught Swoft\Rpc\Client\Exception\RpcClientException: ServiceConnection::recv error, errCode=5001 in /var/www/swoft/vendor/swoft/rpc-client/src/Service/ServiceConnection.php:83 Stack trace: #0 /var/www/swoft/vendor/swoft/rpc-client/src/Service/ServiceConnection.php(42): Swoft\Rpc\Client\Service\ServiceConnection->recv() #1 /var/www/swoft/vendor/swoft/framework/src/Event/Listeners/ResourceReleaseListener.php(41): Swoft\Rpc\Client\Service\ServiceConnection->receive() #2 /var/www/swoft/vendor/swoft/framework/src/Aop/Aop.php(57): Swoft\Event\Listeners\ResourceReleaseListener->handle(Object(Swoft\Event\Event)) #3 /var/www/swoft/vendor/swoft/framework/src/Proxy/Handler/AopHandler.php(43): Swoft\Aop\Aop->execute(Object(Swoft\Event\Listeners\ResourceReleaseListener), 'handle', Array) #4 /var/www/swoft/vendor/swoft/framework/src/Proxy/Proxy.php(44) : eval()'d code(8): Swoft\Proxy\Handler\AopHandler->invoke('handle', Array) #5 /var/www/ | `'| U[2020-10-13 09:34:12 $7.0] WARNING swManager_check_exit_status: worker#3 abnormal exit, status=255, signal=0 ``` ### 你期待的结果是什么?实际看到的错误信息又是什么?
赞
0
分享
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
评论
2020-10-13
鲁飞
连接断了吧,recv需要判断下返回值。 没用过swoft,可以给他们提交issue看下问题是什么
赞
0
回复
微信公众号
热门内容
暂无回复的问答
- CodeGalaxy K3s 轻量集群节点之间如何实现负载均衡
- 关于openssl CURL WARNING swSSL_connect: SSL_connect(fd=69) failed. Error: error:141A318A:SSL routines:tls_process_ske_dhe:dh key too small[1|394]
- 多个模型如何进行事务异常回退?
- websocket开启wss报错
- 协程tcp服务器如何使用多进程?recv()方法接收信息,打印出来的pid一直是同一个。没用使用到多进程啊。