Skip to content
This repository was archived by the owner on Oct 4, 2024. It is now read-only.
This repository was archived by the owner on Oct 4, 2024. It is now read-only.

nginx: [emerg] host not found in upstream "app" in /etc/nginx/nginx.conf:24 #4

@cmthomps

Description

@cmthomps

When I attempt to deploy this, the nginx container fails and stops with an error "nginx: [emerg] host not found in upstream "app" in /etc/nginx/nginx.conf:24". It seems like the internal name resolution doesn't work. I was having a similar problem with another project and then just tried to deploy this project as is. Has something changed in ECS since this was developed?

Full log:


timestamp message
1609878836789 /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
1609878836789 /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
1609878836792 /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
1609878836795 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
1609878836804 10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
1609878836805 /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
1609878836809 /docker-entrypoint.sh: Configuration complete; ready for start up
1609878836823 2021/01/05 20:33:56 [emerg] 1#1: host not found in upstream "app" in /etc/nginx/nginx.conf:24
1609878836823 nginx: [emerg] host not found in upstream "app" in /etc/nginx/nginx.conf:24

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions