平台常见问题解答

安装常见问题
1.
如果使用 docker-compose 启动遇到如下报错,是因为 docker-compose 版本太低,请升级 docker-compose 版本到2.x.x
代码块
ERROR: The Compose file './docker-compose.yaml' is invalid because:
services.node0.depends_on contains an invalid type, it should be an array
services.node1.depends_on contains an invalid type, it should be an array
services.node2.depends_on contains an invalid type, it should be an array
2.
如果使用 primihub-cli 发送测试命令时,提示如下错误,原因是机器配置太低,至少需要4核8G
代码块
ERROR: Server Threadpool Exhausted
3.
编译时遇到如下报错,需要安装m4库apt-get install m4
代码块
configure: error: No usable m4 in $PATH or /usr/5bin (see config.log for reasons).
4.
如果在下载二进制文件或本地编译后启动时遇到如下报错
代码块
W20230619 18:50:22.585558 21601 grpc_impl.cc:52] PutMeta to Node [:127.0.0.1:7977:0:] rpc failed. 14: failed to connect to all addresses
W20230619 18:50:22.585599 21601 grpc_impl.cc:59] PutMeta to Node [:127.0.0.1:7977:0:] rpc failed. reaches max retry times: 3 abort this operation
I20230619 18:50:22.586076 21601 main.cc:55] server runing in no tls mode
I20230619 18:50:22.586817 21601 main.cc:86] 💻 Node listening on port: 50050
先确认Meta service是否正常启动,如启动正常则替换 config/node*.yaml 文件中的 127.0.0.1 为你的主机IP
代码块
host_ip=`hostname -I | awk '{print $1}'`
sed -ri 's/127.0.0.1/'$host_ip'/g' config/node*.yaml