zyqCSL / sinan-local

25 stars 11 forks source link

socialNetwork-ml-swarm:以docker-compose-swarm.yml 执行docker stack deploy时报错 #1

Open JLtwoP opened 2 years ago

JLtwoP commented 2 years ago

socialNetwork-ml-swarm:以docker-compose-swarm.yml 执行docker stack deploy时报错: [error] 1#1: Failed to construct tracer: Error resolving address: Name or service not known

请问是什么原因?

KFCDeveloper commented 8 months ago

排查了好久,发现是服务 nginx-thrift 中挂载映射了这个的原因;

volumes:
  - ./nginx-web-server/lua-scripts:/usr/local/openresty/nginx/lua-scripts
  - ./nginx-web-server/pages:/usr/local/openresty/nginx/pages
  - ./nginx-web-server/conf/nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf
  - ./nginx-web-server/jaeger-config.json:/usr/local/openresty/nginx/jaeger-config.json
  - ./gen-lua:/gen-lua

初步断定是这个映射的文件有问题,映射挂载了后,nginx这个服务的容器就一直挂掉然后再restart。把这个volumes注释掉就不会挂掉。应该可以去DeathStar里面去替换一下这些个文件