TarsCloud / TarsCpp

C++ language framework rpc source code implementation
BSD 3-Clause "New" or "Revised" License
520 stars 254 forks source link

TarsCpp的HelloServer上传后状态一直是off #213

Open BliliWang opened 2 years ago

BliliWang commented 2 years ago

无法激活

请问这是由于什么问题呢,如果使用TarsGo是可以成功激活的。

BliliWang commented 2 years ago

make HelloServer-upload [ 16%] Built target tars-HelloServer [ 66%] Built target HelloServer [ 83%] call /home/admin/HelloServer/build/run-tar-HelloServer.cmake mkdir -p /home/admin/HelloServer/build/tmp/HelloServer rm -rf /home/admin/HelloServer/build/tmp/HelloServer copy bin/HelloServer /home/admin/HelloServer/build/tmp/HelloServer/ HelloServer/ HelloServer/HelloServer [ 83%] Built target HelloServer-tar Scanning dependencies of target HelloServer-upload [100%] upload TestApp.HelloServer.tgz and publish... http://xxx.xxx.xxx.xxx:3000/api/upload_and_publish -Fsuse=@HelloServer.tgz -Fapplication=TestApp -Fmodule_name=HelloServer -Fcomment=developer-auto-upload % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 884k 100 285 100 884k 70 218k 0:00:04 0:00:04 --:--:-- 218k Method Not Allowed patch serverId: 80, node_name: 172.25.0.3

task no: [23b6b050d0b741068099be29d6586039]

172.25.0.3 EM_I_SUCCESS startServer [TestApp.HelloServer] from 172.25.0.3 :server is activating, please check:

[100%] Built target HelloServer-upload

ruanshudong commented 2 years ago

看服务的日志

BliliWang commented 2 years ago

好的明白了,谢谢

Eumenidies commented 2 years ago

image

ruanshudong commented 2 years ago

编译环境和运行环境的gcc版本不一致

Eumenidies commented 2 years ago

编译环境和运行环境的gcc版本不一致

是单机部署的,可能是tarsnode运行的镜像的glibc版本太低了?

Eumenidies commented 2 years ago

编译环境和运行环境的gcc版本不一致

是单机部署的,可能是tarsnode运行的镜像的glibc版本太低了?

这个有什么标准做法么?

ruanshudong commented 2 years ago

我记得tarsnode运行的镜像是ubuntu:20.04, 用这个OS来编译.

ruanshudong commented 2 years ago

或者选择自己操作系统的OS来自定义tarsnode的镜像

Eumenidies commented 2 years ago

或者选择自己操作系统的OS来自定义tarsnode的镜像

谢谢,找到Dockerfile了