ndidplatform / api

NDID API
GNU Affero General Public License v3.0
27 stars 18 forks source link

[RHEL 7.7] Cannot start NDID API, because the MQ container not start. #46

Open pokpitch opened 4 years ago

pokpitch commented 4 years ago

Environment

[docker_mq-rp_1 exited with code 139 [docker_mq-as_1 exited with code 139 [mdocker_mq-idp-1_1 exited with code 139 [api-ndid_1] Segmentation fault (core dumped) [docker_mq-idp-2_1] exited with code 139

docker compose up logs: api-compose-up-with-mq-error.log

peerawichh commented 4 years ago

รบกวนขอ log ของ mq ด้วยครับ

pokpitch commented 4 years ago

รบกวนขอ log ของ mq ด้วยครับ

log ผม attached ไว้กับ issue แล้วครับ อาการนี้สังเกตและสรุปได้ว่า เกิดขึ้นเวลาผม ใช้ instance ECS (IaaS) ของ Huawei Cloud ครับ พอนำไปทดสอบกับ Cloud Provider อื่นไม่เจอปัญหานี้ครับ

peerawichh commented 4 years ago

อันนี้ลองลงตัว example หรือเปล่าครับ

pokpitch commented 4 years ago

scenarios คือ

  1. docker-compose up ../smart-contract/docker/docker-compose.yml อันนี้ไม่มีปัญหาอะไร
  2. docker-compose up ../api/docker/docker-compose.yml ตรงนี้จะเกิดปัญหาที่แจ้งไปด้านบนขึ้นครับ
re7eal commented 4 years ago

This is a known issue of api and mq v3.0.1 Docker images. Try building a new image from source code and see if the issue still persists.

pokpitch commented 4 years ago

This is a known issue of api and mq v3.0.1 Docker images. Try building a new image from source code and see if the issue still persists.

Thanks for your reply, Now, I build a new image based on v4.0.1 source code and smart-contract is v5.0.0

Please find attached for API docker-compose up log,

MobaXterm_192.168.211.34admin_20200617_121829.txt

re7eal commented 4 years ago

If you're fine with using the latest version then, please try 4.0.1 or 4.1.0 image available on Docker Hub. If it still doesn't work or you want to build an image yourself, you might want to delete all Docker base images on the machine that you're building an image and try building it again.

pokpitch commented 4 years ago

I just found the root cause that mq-server can not start properly on my environment.

host is set ipv6 to disable, the grpc server on mq-server can not bind anymore.