Closed tkantheti closed 3 years ago
[ec2-user@ip-172-31-51-251 DIVOC]$ docker-compose logs | grep nginx Attaching to divoc_nginx_1, divoc_certificate_processor_1, divoc_certificate_signer_1, divoc_portal_api_1, divoc_vaccination_api_1, divoc_notification-service_1, divoc_registry_1, divoc_keycloak_1, divoc_flagr_1, divoc_kafka_1, divoc_analytics_feed_1, divoc_db_1, divoc_es_1, divoc_digilocker_support_api_1, divoc_zookeeper_1, divoc_clickhouse-server_1 nginx_1 | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration nginx_1 | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/ nginx_1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh nginx_1 | 10-listen-on-ipv6-by-default.sh: Getting the checksum of /etc/nginx/conf.d/default.conf nginx_1 | 10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf differs from the packaged version nginx_1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh nginx_1 | /docker-entrypoint.sh: Configuration complete; ready for start up nginx_1 | 2021/02/23 04:35:43 [emerg] 1#1: host not found in upstream "registration_api" in /etc/nginx/conf.d/default.conf:37 nginx_1 | nginx: [emerg] host not found in upstream "registration_api" in /etc/nginx/conf.d/default.conf:37 nginx_1 | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration nginx_1 | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/ nginx_1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh nginx_1 | 10-listen-on-ipv6-by-default.sh: Getting the checksum of /etc/nginx/conf.d/default.conf nginx_1 | 10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf differs from the packaged version nginx_1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh nginx_1 | /docker-entrypoint.sh: Configuration complete; ready for start up nginx_1 | 2021/02/23 05:00:15 [emerg] 1#1: host not found in upstream "registration_api" in /etc/nginx/conf.d/default.conf:37 nginx_1 | nginx: [emerg] host not found in upstream "registration_api" in /etc/nginx/conf.d/default.conf:37 [ec2-user@ip-172-31-51-251 DIVOC]$
divoc_nginx_1 /docker-entrypoint.sh ngin ... Exit 1 divoc_notification-service_1 /app/notification-service ... Exit 2
its working after discussion with team
I am installing the application on ec2 instance on amazon linux 2 . NGINX and Notification dockers are not starting . [ec2-user@ip-172-31-51-251 DIVOC]$ docker-compose up -d Building with native build. Learn about native build in Compose here: https://docs.docker.com/go/compose-native-build/ Starting divoc_es_1 ... done Starting divoc_zookeeper_1 ... done Starting divoc_clickhouse-server_1 ... done Starting divoc_digilocker_support_api_1 ... done Starting divoc_db_1 ... done Starting divoc_analytics_feed_1 ... done Starting divoc_flagr_1 ... done Starting divoc_keycloak_1 ... done Starting divoc_registry_1 ... done Starting divoc_kafka_1 ... done Starting divoc_certificate_processor_1 ... done Starting divoc_certificate_signer_1 ... done Starting divoc_notification-service_1 ... done Starting divoc_vaccination_api_1 ... done Starting divoc_portal_api_1 ... done Starting divoc_nginx_1 ... done [ec2-user@ip-172-31-51-251 DIVOC]$ docker-compose ps Name Command State Ports
divoc_analytics_feed_1 /app/analytics_feed Exit 2 divoc_certificate_processor_1 /app/certificate_processor Up divoc_certificate_signer_1 docker-entrypoint.sh npm start Up divoc_clickhouse-server_1 /entrypoint.sh Up 0.0.0.0:8123->8123/tcp, 0.0.0.0:9000->9000/tcp, 9009/tcp divoc_db_1 docker-entrypoint.sh postgres Up 5432/tcp divoc_digilocker_support_api_1 /app/digilocker_support_api Up divoc_es_1 /tini -- /usr/local/bin/do ... Up 0.0.0.0:9200->9200/tcp, 0.0.0.0:9300->9300/tcp divoc_flagr_1 /bin/sh -c ./flagr Up 0.0.0.0:18000->18000/tcp divoc_kafka_1 /etc/confluent/docker/run Up (healthy) 0.0.0.0:9092->9092/tcp divoc_keycloak_1 /opt/jboss/tools/docker-en ... Up (healthy) 0.0.0.0:8080->8080/tcp, 8443/tcp, 0.0.0.0:9990->9990/tcp divoc_nginx_1 /docker-entrypoint.sh ngin ... Exit 1 divoc_notification-service_1 /app/notification-service ... Exit 2 divoc_portal_api_1 /app/divoc-portal-api-serv ... Up 0.0.0.0:8001->8001/tcp divoc_registry_1 java -Xms1024m -Xmx2048m - ... Up 0.0.0.0:8081->8081/tcp divoc_vaccination_api_1 /app/divoc-server --scheme ... Up 0.0.0.0:8000->8000/tcp divoc_zookeeper_1 /etc/confluent/docker/run Up 0.0.0.0:2181->2181/tcp, 2888/tcp, 3888/tcp [ec2-user@ip-172-31-51-251 DIVOC]$