Browsing to the localhost URL yields the "This site can’t be reached" error.
I see Starting server at tcp:port=8051:interface=127.0.0.1, channel layer awx.asgi:channel_layer. in dockercompose_web_1 logs, yet the container redirects 0.0.0.0:80->8052/tcp. This may explain the issue. Or maybe I'm missing something.
18.02.0~ce-0~ubuntu (from official docker PPA)# echo ---------------------------
# echo Starting all AWX containers
# echo ---------------------------
# cd <docker-compose.yml folder>
# docker-compose start
Starting memcached ... done
Starting postgres ... done
Starting rabbitmq ... done
Starting web ... done
Starting task ... done
# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d54f70bc9382 ansible/awx_task:latest "/tini -- /bin/sh -c…" 15 minutes ago Up 15 minutes 8052/tcp dockercompose_task_1
4474f311762e ansible/awx_web:latest "/tini -- /bin/sh -c…" 15 minutes ago Up 15 minutes 0.0.0.0:80->8052/tcp dockercompose_web_1
58ec082ced51 rabbitmq:3 "docker-entrypoint.s…" 15 minutes ago Up 15 minutes 4369/tcp, 5671-5672/tcp, 25672/tcp dockercompose_rabbitmq_1
a67dadbea52a postgres:9.6 "docker-entrypoint.s…" 15 minutes ago Up 15 minutes 5432/tcp dockercompose_postgres_1
5ce8b8f76985 memcached:alpine "docker-entrypoint.s…" 15 minutes ago Up 15 minutes 11211/tcp dockercompose_memcached_1
dockercompose_task_1.logs
dockercompose_web_1.logs
Access http://localhost with chrome
Login screen
This site can’t be reached
upgrading to stable 18.03.0~ce-0~ubuntu leads to some similar logs for the web container:
# docker logs -f dockercompose_web_1
Traceback (most recent call last):
File "/usr/bin/awx-manage", line 9, in <module>
...
django.db.utils.OperationalError: could not connect to server: Connection refused
Is the server running on host "postgres" (172.23.0.4) and accepting
TCP/IP connections on port 5432?
Checking that the postgres container lives at the expected IP address and port:
# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3aec2f95c206 ansible/awx_task:latest "/tini -- /bin/sh -c…" 25 minutes ago Up 25 minutes 8052/tcp dockercompose_task_1
169df4ff8898 ansible/awx_web:latest "/tini -- /bin/sh -c…" 25 minutes ago Up 25 minutes 0.0.0.0:80->8052/tcp dockercompose_web_1
237f8d0e4551 postgres:9.6 "docker-entrypoint.s…" 25 minutes ago Up 25 minutes 5432/tcp dockercompose_postgres_1
a8395ce35ad7 rabbitmq:3 "docker-entrypoint.s…" 25 minutes ago Up 25 minutes 4369/tcp, 5671-5672/tcp, 25672/tcp dockercompose_rabbitmq_1
a4e6e3b46011 memcached:alpine "docker-entrypoint.s…" 25 minutes ago Up 25 minutes 11211/tcp dockercompose_memcached_1
# docker inspect dockercompose_postgres_1 | grep "\"IPAddress\": "
"IPAddress": "172.23.0.4"
docker inspect dockercompose_postgres_1 | grep -C 1 "\"Ports\": "
"Ports": {
"5432/tcp": null
and the logs for postgres container show:
# docker logs -f dockercompose_postgres_1
...
LOG: received fast shutdown request
LOG: aborting any active transactions
waiting for server to shut down....LOG: autovacuum launcher shutting down
LOG: shutting down
LOG: database system is shut down
done
server stopped
PostgreSQL init process complete; ready for start up.
LOG: database system was shut down at 2018-03-22 15:43:15 UTC
LOG: MultiXact member wraparound protections are now enabled
LOG: database system is ready to accept connections
LOG: autovacuum launcher started
LOG: incomplete startup packet
ERROR: relation "conf_setting" does not exist at character 158
...
ERROR: relation "django_migrations" does not exist at character 124
...
...
It seems that awx web container cannot connect to postgres container because of the errors relation "conf_setting" does not exist at character 158 & relation "django_migrations" does not exist at character 124.
Other logs:
Seeing the same issue on v1.5.0.
@mvanrompuy
Yes, same issue with latest awx with a fresh install using the following parts:
18.03.0~ce-0~ubuntu (from official docker PPA)Apologies, but there have been many changes since then, and this reads as a generic installation error due to bad settings.
Please try 2.0+, and file a new issue if this persists.
facing same issue with latest versions any fix
Getting the same ERROR with new ansible version as well..
ERROR: relation "django_migrations" does not exist at character 124
STATEMENT: SELECT "django_migrations"."id", "django_migrations"."app", "django_migrations"."name", "django_migrations"."applied" FROM "django_migrations" WHERE ("django_migrations"."app" = 'main' AND NOT ("django_migrations"."name"::text LIKE '%squashed%')) ORDER BY "django_migrations"."id" DESC LIMIT 1
anyone there to help ?
Most helpful comment
Getting the same ERROR with new ansible version as well..
ERROR: relation "django_migrations" does not exist at character 124
STATEMENT: SELECT "django_migrations"."id", "django_migrations"."app", "django_migrations"."name", "django_migrations"."applied" FROM "django_migrations" WHERE ("django_migrations"."app" = 'main' AND NOT ("django_migrations"."name"::text LIKE '%squashed%')) ORDER BY "django_migrations"."id" DESC LIMIT 1
anyone there to help ?