Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error during the starting images (by docker-compose). nginx error #9920

Closed
maxxitutti opened this issue Apr 15, 2021 · 6 comments
Closed

error during the starting images (by docker-compose). nginx error #9920

maxxitutti opened this issue Apr 15, 2021 · 6 comments
Labels

Comments

@maxxitutti
Copy link

ISSUE TYPE
  • Bug Report
SUMMARY
ENVIRONMENT
  • AWX version: X.Y.Z
  • AWX install method: operator, developer environment
  • AWX deployment target: openshift, kubernetes, minikube
  • Operating System:
  • Web Browser:
STEPS TO REPRODUCE

git clone https://github.com/ansible/awx.git
tools/docker-compose/inventory
make docker-compose-build
make docker-compose

EXPECTED RESULTS
ACTUAL RESULTS
ADDITIONAL INFORMATION

root@awx:/home/maxxx/repo/awx# make docker-compose
ansible-playbook -i tools/docker-compose/inventory tools/docker-compose/ansible/sources.yml
-e awx_image=quay.io/awx/awx_devel
-e awx_image_tag=devel
-e cluster_node_count=1

PLAY [Render AWX Dockerfile and sources] *****************************************************************************************************************************************************************************************************

TASK [Gathering Facts] ***********************************************************************************************************************************************************************************************************************
ok: [localhost]

TASK [sources : Create _sources directory] ***************************************************************************************************************************************************************************************************
ok: [localhost]

TASK [sources : Detect secrets] **************************************************************************************************************************************************************************************************************
skipping: [localhost] => (item=pg_password)
skipping: [localhost] => (item=secret_key)
skipping: [localhost] => (item=broadcast_websocket_secret)

TASK [sources : Generate secrets if needed] **************************************************************************************************************************************************************************************************
skipping: [localhost] => (item={'changed': False, 'skipped': True, 'skip_reason': 'Conditional result was False', 'item': 'pg_password', 'ansible_loop_var': 'item'})
skipping: [localhost] => (item={'changed': False, 'skipped': True, 'skip_reason': 'Conditional result was False', 'item': 'secret_key', 'ansible_loop_var': 'item'})
skipping: [localhost] => (item={'changed': False, 'skipped': True, 'skip_reason': 'Conditional result was False', 'item': 'broadcast_websocket_secret', 'ansible_loop_var': 'item'})

TASK [sources : Include generated secrets unless they are explicitly passed in] **************************************************************************************************************************************************************
skipping: [localhost] => (item=None)
skipping: [localhost] => (item=None)
skipping: [localhost] => (item=None)
skipping: [localhost]

TASK [sources : Write out SECRET_KEY] ********************************************************************************************************************************************************************************************************
ok: [localhost]

TASK [sources : Render configuration templates] **********************************************************************************************************************************************************************************************
ok: [localhost] => (item=database.py)
ok: [localhost] => (item=websocket_secret.py)
ok: [localhost] => (item=haproxy.cfg)

TASK [sources : Delete old local_settings.py] ************************************************************************************************************************************************************************************************
ok: [localhost]

TASK [sources : Copy local_settings.py] ******************************************************************************************************************************************************************************************************
ok: [localhost]

TASK [sources : Get OS info for sdb] *********************************************************************************************************************************************************************************************************
ok: [localhost]

TASK [sources : Get user UID] ****************************************************************************************************************************************************************************************************************
ok: [localhost]

TASK [sources : Set fact with user UID] ******************************************************************************************************************************************************************************************************
ok: [localhost]

TASK [sources : Set global version if not provided] ******************************************************************************************************************************************************************************************
skipping: [localhost]

TASK [sources : Render Docker-Compose] *******************************************************************************************************************************************************************************************************
changed: [localhost]

PLAY RECAP ***********************************************************************************************************************************************************************************************************************************
localhost : ok=10 changed=1 unreachable=0 failed=0 skipped=4 rescued=0 ignored=0

docker-compose -f tools/docker-compose/_sources/docker-compose.yml up
Pulling redis_1 (redis:latest)...
latest: Pulling from library/redis
f7ec5a41d630: Already exists
a36224ca8bbd: Already exists
7630ad34dcb2: Already exists
dd0ea236b03b: Already exists
ed6ed4f2f5a6: Already exists
8788804112c6: Already exists
Digest: sha256:08e282682a708eb7f51b473516be222fff0251cdee5ef8f99f4441a795c335b6
Status: Downloaded newer image for redis:latest
Pulling postgres (postgres:12)...
12: Pulling from library/postgres
f7ec5a41d630: Already exists
d073cd070242: Already exists
03790957a916: Already exists
b3776ac15dab: Already exists
7144fd00aec4: Already exists
54f6491bd120: Already exists
247ab23c6036: Already exists
57800498c536: Already exists
47932702ce7d: Already exists
70be129efb70: Already exists
8193fe8d8b90: Already exists
e126805d9743: Already exists
7e4d1d793d9a: Already exists
141caceea48f: Already exists
Digest: sha256:06277995d7028f4455e56f21864146ee2425c83308dc96283c7a96e6881cc826
Status: Downloaded newer image for postgres:12
Starting tools_postgres_1 ... done
Starting tools_redis_1 ... done
Recreating tools_awx_1 ... done
Attaching to tools_postgres_1, tools_redis_1, tools_awx_1
tools_postgres_1 |
tools_postgres_1 | PostgreSQL Database directory appears to contain a database; Skipping initialization
tools_postgres_1 |
tools_postgres_1 | 2021-04-15 16:48:43.736 UTC [1] LOG: starting PostgreSQL 12.6 (Debian 12.6-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
tools_postgres_1 | 2021-04-15 16:48:43.736 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
tools_postgres_1 | 2021-04-15 16:48:43.736 UTC [1] LOG: listening on IPv6 address "::", port 5432
tools_postgres_1 | 2021-04-15 16:48:43.749 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
tools_postgres_1 | 2021-04-15 16:48:43.795 UTC [25] LOG: database system was shut down at 2021-04-15 16:47:38 UTC
tools_postgres_1 | 2021-04-15 16:48:43.833 UTC [1] LOG: database system is ready to accept connections
tools_redis_1 | 1:C 15 Apr 2021 16:48:43.686 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
tools_redis_1 | 1:C 15 Apr 2021 16:48:43.688 # Redis version=6.2.1, bits=64, commit=00000000, modified=0, pid=1, just started
tools_redis_1 | 1:C 15 Apr 2021 16:48:43.688 # Configuration loaded
tools_redis_1 | 1:M 15 Apr 2021 16:48:43.689 * monotonic clock: POSIX clock_gettime
tools_redis_1 | 1:M 15 Apr 2021 16:48:43.691 * Running mode=standalone, port=0.
tools_redis_1 | 1:M 15 Apr 2021 16:48:43.691 # Server initialized
tools_redis_1 | 1:M 15 Apr 2021 16:48:43.692 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
tools_redis_1 | 1:M 15 Apr 2021 16:48:43.693 * Loading RDB produced by version 6.2.1
tools_redis_1 | 1:M 15 Apr 2021 16:48:43.693 * RDB age 65 seconds
tools_redis_1 | 1:M 15 Apr 2021 16:48:43.693 * RDB memory usage when created 0.82 Mb
tools_redis_1 | 1:M 15 Apr 2021 16:48:43.693 * DB loaded from disk: 0.000 seconds
tools_redis_1 | 1:M 15 Apr 2021 16:48:43.693 * The server is now ready to accept connections at /var/run/redis/redis.sock
tools_awx_1 | WARN[0000] Found deprecated file /etc/containers/libpod.conf, please remove. Use /etc/containers/containers.conf to override defaults.
tools_awx_1 | WARN[0000] Found deprecated file /etc/containers/libpod.conf, please remove. Use /etc/containers/containers.conf to override defaults.
tools_awx_1 | Error: 'overlay' is not supported over overlayfs, a mount_program is required: backing file system is unsupported for this graph driver
tools_awx_1 | [ -d "/awx_devel/awx.egg-info" ] || python3.8 /awx_devel/setup.py egg_info_dev
tools_awx_1 | cp -f /tmp/awx.egg-link /var/lib/awx/venv/awx/lib/python3.8/site-packages/awx.egg-link
tools_awx_1 | mkdir -p /var/lib/awx/;
tools_awx_1 | if [ "/var/lib/awx/venv/" ]; then
tools_awx_1 | . /var/lib/awx/venv//awx/bin/activate;
tools_awx_1 | fi;
tools_awx_1 | python3.8 -c "import awx; print(awx.version)" > /var/lib/awx/.awx_version;
tools_awx_1 |
tools_awx_1 | if [ "/var/lib/awx/venv/" ]; then
tools_awx_1 | . /var/lib/awx/venv//awx/bin/activate;
tools_awx_1 | fi;
tools_awx_1 | awx-manage migrate --noinput
tools_awx_1 | Operations to perform:
tools_awx_1 | Apply all migrations: auth, conf, contenttypes, main, oauth2_provider, sessions, sites, social_django, sso, taggit
tools_awx_1 | Running migrations:
tools_awx_1 | No migrations to apply.
tools_awx_1 | if [ "/var/lib/awx/venv/" ]; then
tools_awx_1 | . /var/lib/awx/venv//awx/bin/activate;
tools_awx_1 | fi;
tools_awx_1 | awx-manage provision_instance --hostname=awx_1;
tools_awx_1 | awx-manage register_queue --queuename=tower --instance_percent=100;
tools_awx_1 | if [ "tower" == "tower,thepentagon" ]; then
tools_awx_1 | awx-manage provision_instance --hostname=isolated;
tools_awx_1 | awx-manage register_queue --queuename='thepentagon' --hostnames=isolated --controller=tower;
tools_awx_1 | awx-manage generate_isolated_key > /awx_devel/awx/main/isolated/authorized_keys;
tools_awx_1 | fi;
tools_awx_1 | Instance already registered awx_1
tools_awx_1 | Instance Group already registered tower
tools_awx_1 | (changed: False)
tools_awx_1 | /usr/local/lib/python3.6/site-packages/supervisor/options.py:475: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
tools_awx_1 | 'Supervisord is running as root and it is searching '
tools_awx_1 | 2021-04-15 16:48:56,149 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.
tools_awx_1 | 2021-04-15 16:48:56,155 INFO RPC interface 'supervisor' initialized
tools_awx_1 | 2021-04-15 16:48:56,157 CRIT Server 'unix_http_server' running without any HTTP authentication checking
tools_awx_1 | 2021-04-15 16:48:56,158 INFO supervisord started with pid 88
tools_awx_1 | 2021-04-15 16:48:57,163 INFO spawned: 'stdout' with pid 91
tools_awx_1 | 2021-04-15 16:48:57,174 INFO spawned: 'awx-dispatcher' with pid 92
tools_awx_1 | 2021-04-15 16:48:57,194 INFO spawned: 'awx-receiver' with pid 93
tools_awx_1 | 2021-04-15 16:48:57,230 INFO spawned: 'awx-uwsgi' with pid 95
tools_awx_1 | 2021-04-15 16:48:57,246 INFO spawned: 'awx-daphne' with pid 97
tools_awx_1 | 2021-04-15 16:48:57,248 INFO spawned: 'awx-nginx' with pid 98
tools_awx_1 | 2021-04-15 16:48:57,266 INFO spawned: 'awx-wsbroadcast' with pid 100
tools_awx_1 | 2021-04-15 16:48:57,282 INFO spawned: 'awx-rsyslogd' with pid 106
tools_awx_1 | 2021-04-15 16:48:57,303 INFO spawned: 'awx-receptor' with pid 109
tools_awx_1 | 2021-04-15 16:48:57,472 INFO exited: awx-nginx (exit status 2; not expected)
tools_awx_1 | 2021-04-15 16:48:58,387 INFO success: stdout entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
tools_awx_1 | 2021-04-15 16:48:58,388 INFO success: awx-dispatcher entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
tools_awx_1 | 2021-04-15 16:48:58,389 INFO success: awx-receiver entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
tools_awx_1 | 2021-04-15 16:48:58,389 INFO success: awx-uwsgi entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
tools_awx_1 | 2021-04-15 16:48:58,390 INFO success: awx-daphne entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
tools_awx_1 | 2021-04-15 16:48:58,391 INFO success: awx-wsbroadcast entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
tools_awx_1 | 2021-04-15 16:48:58,391 INFO success: awx-rsyslogd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
tools_awx_1 | 2021-04-15 16:48:58,392 INFO success: awx-receptor entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
tools_awx_1 | awx-dispatcher stdout | make[1]: Entering directory '/awx_devel'
tools_awx_1 | awx-dispatcher stdout |
tools_awx_1 | awx-receiver stdout | make[1]: Entering directory '/awx_devel'
tools_awx_1 | awx-receiver stdout |
tools_awx_1 | awx-uwsgi stdout | make[1]: Entering directory '/awx_devel'
tools_awx_1 | awx-uwsgi stdout |
tools_awx_1 | awx-daphne stdout | make[1]: Entering directory '/awx_devel'
tools_awx_1 | awx-daphne stdout |
tools_awx_1 | awx-wsbroadcast stdout | make[1]: Entering directory '/awx_devel'
tools_awx_1 | awx-wsbroadcast stdout |
tools_awx_1 | awx-nginx stdout | make[1]: Entering directory '/awx_devel'
tools_awx_1 | awx-nginx stdout |
tools_awx_1 | awx-nginx stdout | nginx -g "daemon off;"
tools_awx_1 | awx-nginx stdout |
tools_awx_1 | awx-nginx stdout | nginx: [emerg] getpwnam("nginx") failed
tools_awx_1 | awx-nginx stdout |
tools_awx_1 | awx-nginx stdout | make[1]: *** [Makefile:263: nginx] Error 1
tools_awx_1 | awx-nginx stdout | make[1]: Leaving directory '/awx_devel'
tools_awx_1 | awx-nginx stdout |
tools_awx_1 | awx-receptor stdout | INFO 2021/04/15 16:48:58 Running control service control
tools_awx_1 | awx-receptor stdout |
tools_awx_1 | 2021-04-15 16:48:58,543 INFO spawned: 'awx-nginx' with pid 142
tools_awx_1 | awx-receptor stdout | INFO 2021/04/15 16:48:58 Initialization complete
tools_awx_1 | awx-receptor stdout |
tools_awx_1 | awx-nginx stdout | make[1]: Entering directory '/awx_devel'
tools_awx_1 | awx-nginx stdout |
tools_awx_1 | awx-nginx stdout | nginx -g "daemon off;"
tools_awx_1 | awx-nginx stdout |
tools_awx_1 | awx-nginx stdout | nginx: [emerg] getpwnam("nginx") failed
tools_awx_1 | awx-nginx stdout |
tools_awx_1 | 2021-04-15 16:48:58,707 INFO exited: awx-nginx (exit status 2; not expected)
tools_awx_1 | awx-nginx stdout | make[1]: *** [Makefile:263: nginx] Error 1
tools_awx_1 | awx-nginx stdout | make[1]: Leaving directory '/awx_devel'
tools_awx_1 | awx-nginx stdout |
tools_awx_1 | 2021-04-15 16:49:00,726 INFO spawned: 'awx-nginx' with pid 152
tools_awx_1 | awx-nginx stdout | make[1]: Entering directory '/awx_devel'
tools_awx_1 | awx-nginx stdout |
tools_awx_1 | awx-nginx stdout | nginx -g "daemon off;"
tools_awx_1 | awx-nginx stdout |
tools_awx_1 | awx-nginx stdout | nginx: [emerg] getpwnam("nginx") failed
tools_awx_1 | awx-nginx stdout |
tools_awx_1 | 2021-04-15 16:49:00,902 INFO exited: awx-nginx (exit status 2; not expected)
tools_awx_1 | awx-nginx stdout | make[1]: *** [Makefile:263: nginx] Error 1
tools_awx_1 | awx-nginx stdout | make[1]: Leaving directory '/awx_devel'
tools_awx_1 | awx-nginx stdout |
tools_awx_1 | 2021-04-15 16:49:03,925 INFO spawned: 'awx-nginx' with pid 168
tools_awx_1 | awx-nginx stdout | make[1]: Entering directory '/awx_devel'
tools_awx_1 | awx-nginx stdout |
tools_awx_1 | awx-nginx stdout | nginx -g "daemon off;"
tools_awx_1 | awx-nginx stdout |
tools_awx_1 | awx-nginx stdout | nginx: [emerg] getpwnam("nginx") failed
tools_awx_1 | awx-nginx stdout |
tools_awx_1 | 2021-04-15 16:49:04,126 INFO exited: awx-nginx (exit status 2; not expected)
tools_awx_1 | awx-nginx stdout | make[1]: *** [Makefile:263: nginx] Error 1
tools_awx_1 | awx-nginx stdout | make[1]: Leaving directory '/awx_devel'
tools_awx_1 | awx-nginx stdout |
tools_awx_1 | 2021-04-15 16:49:04,128 INFO gave up: awx-nginx entered FATAL state, too many start retries too quickly
tools_awx_1 | awx-daphne stdout | 2021-04-15 16:49:04,129 INFO [-] daphne.cli Starting server at tcp:port=8051:interface=127.0.0.1
tools_awx_1 | awx-daphne stdout |
tools_awx_1 | awx-daphne stdout | 2021-04-15 16:49:04,129 INFO Starting server at tcp:port=8051:interface=127.0.0.1
tools_awx_1 | awx-daphne stdout |
tools_awx_1 | awx-daphne stdout | 2021-04-15 16:49:04,134 INFO [-] daphne.server HTTP/2 support not enabled (install the http2 and tls Twisted extras)
tools_awx_1 | awx-daphne stdout |
tools_awx_1 | awx-daphne stdout | 2021-04-15 16:49:04,134 INFO HTTP/2 support not enabled (install the http2 and tls Twisted extras)
tools_awx_1 | awx-daphne stdout |
tools_awx_1 | awx-daphne stdout | 2021-04-15 16:49:04,137 INFO [-] daphne.server Configuring endpoint tcp:port=8051:interface=127.0.0.1
tools_awx_1 | awx-daphne stdout |
tools_awx_1 | awx-daphne stdout | 2021-04-15 16:49:04,137 INFO Configuring endpoint tcp:port=8051:interface=127.0.0.1
tools_awx_1 | awx-daphne stdout |
tools_awx_1 | awx-daphne stdout | 2021-04-15 16:49:04,142 INFO [-] daphne.server Listening on TCP address 127.0.0.1:8051
tools_awx_1 | awx-daphne stdout |
tools_awx_1 | awx-daphne stdout | 2021-04-15 16:49:04,142 INFO Listening on TCP address 127.0.0.1:8051
tools_awx_1 | awx-daphne stdout |
tools_awx_1 | awx-uwsgi stdout | *** Starting uWSGI 2.0.18 (64bit) on [Thu Apr 15 16:49:04 2021] ***
tools_awx_1 | awx-uwsgi stdout |
tools_awx_1 | awx-uwsgi stdout | compiled with version: 8.3.1 20191121 (Red Hat 8.3.1-5) on 15 April 2021 16:38:26
tools_awx_1 | awx-uwsgi stdout |
tools_awx_1 | awx-uwsgi stdout | os: Linux-5.4.0-71-generic #79-Ubuntu SMP Wed Mar 24 10:56:57 UTC 2021
tools_awx_1 | awx-uwsgi stdout |
tools_awx_1 | awx-uwsgi stdout | nodename: awx_1
tools_awx_1 | awx-uwsgi stdout |
tools_awx_1 | awx-uwsgi stdout | machine: x86_64
tools_awx_1 | awx-uwsgi stdout |
tools_awx_1 | awx-uwsgi stdout | clock source: unix
tools_awx_1 | awx-uwsgi stdout | detected number of CPU cores: 1
tools_awx_1 | awx-uwsgi stdout | current working directory: /awx_devel
tools_awx_1 | awx-uwsgi stdout | detected binary path: /var/lib/awx/venv/awx/bin/uwsgi
tools_awx_1 | awx-uwsgi stdout | !!! no internal routing support, rebuild with pcre support !!!
tools_awx_1 | awx-uwsgi stdout | uWSGI running as root, you can use --uid/--gid/--chroot options
tools_awx_1 | awx-uwsgi stdout | *** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
tools_awx_1 | awx-uwsgi stdout | chdir() to /awx_devel/
tools_awx_1 | awx-uwsgi stdout | your memory page size is 4096 bytes
tools_awx_1 | awx-uwsgi stdout | *** WARNING: you have enabled harakiri without post buffering. Slow upload could be rejected on post-unbuffered webservers ***
tools_awx_1 | awx-uwsgi stdout | detected max file descriptor number: 1048576
tools_awx_1 | awx-uwsgi stdout | lock engine: pthread robust mutexes
tools_awx_1 | awx-uwsgi stdout | thunder lock: disabled (you can enable it with --thunder-lock)
tools_awx_1 | awx-uwsgi stdout | uwsgi socket 0 bound to TCP address 127.0.0.1:8050 fd 3
tools_awx_1 | awx-uwsgi stdout | uWSGI running as root, you can use --uid/--gid/--chroot options
tools_awx_1 | awx-uwsgi stdout | *** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
tools_awx_1 | awx-uwsgi stdout | Python version: 3.8.3 (default, Aug 31 2020, 16:03:14) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)]
tools_awx_1 | awx-uwsgi stdout | PEP 405 virtualenv detected: /var/lib/awx/venv/awx
tools_awx_1 | awx-uwsgi stdout | Set PythonHome to /var/lib/awx/venv/awx
tools_awx_1 | awx-uwsgi stdout |
tools_awx_1 | awx-uwsgi stdout | Python main interpreter initialized at 0x2519e30
tools_awx_1 | awx-uwsgi stdout |
tools_awx_1 | awx-uwsgi stdout | uWSGI running as root, you can use --uid/--gid/--chroot options
tools_awx_1 | awx-uwsgi stdout |
tools_awx_1 | awx-uwsgi stdout | *** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
tools_awx_1 | awx-uwsgi stdout |
tools_awx_1 | awx-uwsgi stdout | python threads support enabled
tools_awx_1 | awx-uwsgi stdout |
tools_awx_1 | awx-uwsgi stdout | your server socket listen backlog is limited to 100 connections
tools_awx_1 | awx-uwsgi stdout |
tools_awx_1 | awx-uwsgi stdout | your mercy for graceful operations on workers is 60 seconds
tools_awx_1 | awx-uwsgi stdout |
tools_awx_1 | awx-uwsgi stdout | mapped 609552 bytes (595 KB) for 5 cores
tools_awx_1 | awx-uwsgi stdout |
tools_awx_1 | awx-uwsgi stdout | *** Operational MODE: preforking ***
tools_awx_1 | awx-uwsgi stdout | uWSGI running as root, you can use --uid/--gid/--chroot options
tools_awx_1 | awx-uwsgi stdout | *** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
tools_awx_1 | awx-uwsgi stdout | *** uWSGI is running in multiple interpreter mode ***
tools_awx_1 | awx-uwsgi stdout | spawned uWSGI master process (pid: 175)
tools_awx_1 | awx-uwsgi stdout | spawned uWSGI worker 1 (pid: 176, cores: 1)
tools_awx_1 | awx-uwsgi stdout | spawned uWSGI worker 2 (pid: 177, cores: 1)
tools_awx_1 | awx-uwsgi stdout | spawned uWSGI worker 3 (pid: 178, cores: 1)
tools_awx_1 | awx-uwsgi stdout | spawned uWSGI worker 4 (pid: 179, cores: 1)
tools_awx_1 | awx-uwsgi stdout | spawned uWSGI worker 5 (pid: 180, cores: 1)
tools_awx_1 | awx-uwsgi stdout | *** Stats server enabled on /tmp/stats.socket fd: 17 ***
tools_awx_1 | awx-uwsgi stdout |
tools_awx_1 | awx-uwsgi stdout | Python auto-reloader enabled
tools_awx_1 | awx-uwsgi stdout |
tools_awx_1 | awx-receiver stdout | 2021-04-15 16:49:06,875 WARNING [-] awx.main.commands.run_callback_receiver scaling up worker pid:191
tools_awx_1 | awx-receiver stdout |
tools_awx_1 | awx-receiver stdout | 2021-04-15 16:49:06,913 WARNING [-] awx.main.commands.run_callback_receiver scaling up worker pid:192
tools_awx_1 | awx-receiver stdout |
tools_awx_1 | awx-receiver stdout | 2021-04-15 16:49:06,949 WARNING [-] awx.main.commands.run_callback_receiver scaling up worker pid:193
tools_awx_1 | awx-receiver stdout |
tools_awx_1 | awx-receiver stdout | 2021-04-15 16:49:07,014 WARNING [-] awx.main.commands.run_callback_receiver scaling up worker pid:194
tools_awx_1 | awx-receiver stdout |
tools_awx_1 | 2021-04-15 16:49:08,392 INFO waiting for awx-rsyslogd to stop
tools_awx_1 | 2021-04-15 16:49:08,393 INFO stopped: awx-rsyslogd (exit status 0)
tools_awx_1 | 2021-04-15 16:49:08,413 INFO spawned: 'awx-rsyslogd' with pid 201
tools_awx_1 | 2021-04-15 16:49:09,420 INFO success: awx-rsyslogd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
tools_awx_1 | awx-uwsgi stdout | WSGI app 0 (mountpoint='') ready in 7 seconds on interpreter 0x2519e30 pid: 178 (default app)
tools_awx_1 | awx-uwsgi stdout |
tools_awx_1 | awx-uwsgi stdout | WSGI app 0 (mountpoint='') ready in 7 seconds on interpreter 0x2519e30 pid: 180 (default app)
tools_awx_1 | awx-uwsgi stdout |
tools_awx_1 | awx-uwsgi stdout | WSGI app 0 (mountpoint='') ready in 7 seconds on interpreter 0x2519e30 pid: 176 (default app)
tools_awx_1 | awx-uwsgi stdout |
tools_awx_1 | awx-uwsgi stdout | WSGI app 0 (mountpoint='') ready in 7 seconds on interpreter 0x2519e30 pid: 177 (default app)
tools_awx_1 | awx-uwsgi stdout |
tools_awx_1 | awx-uwsgi stdout | WSGI app 0 (mountpoint='') ready in 7 seconds on interpreter 0x2519e30 pid: 179 (default app)
tools_awx_1 | awx-uwsgi stdout |
tools_awx_1 | awx-uwsgi stdout | running "exec: supervisorctl restart tower-processes:awx-dispatcher tower-processes:awx-receiver" (accepting1)...
tools_awx_1 | awx-uwsgi stdout |
tools_awx_1 | 2021-04-15 16:49:12,616 INFO waiting for awx-dispatcher to stop
tools_awx_1 | 2021-04-15 16:49:12,631 INFO stopped: awx-dispatcher (terminated by SIGKILL)
tools_awx_1 | 2021-04-15 16:49:12,645 INFO stopped: awx-receiver (terminated by SIGKILL)
tools_awx_1 | 2021-04-15 16:49:12,649 INFO spawned: 'awx-dispatcher' with pid 214
tools_awx_1 | awx-dispatcher stdout | make[1]: Entering directory '/awx_devel'
tools_awx_1 | awx-dispatcher stdout |
tools_awx_1 | 2021-04-15 16:49:13,697 INFO success: awx-dispatcher entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
tools_awx_1 | 2021-04-15 16:49:13,700 INFO spawned: 'awx-receiver' with pid 222
tools_awx_1 | awx-receiver stdout | make[1]: Entering directory '/awx_devel'
tools_awx_1 | awx-receiver stdout |
tools_awx_1 | 2021-04-15 16:49:14,726 INFO success: awx-receiver entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
tools_awx_1 | awx-uwsgi stdout | tower-processes:awx-dispatcher: stopped
tools_awx_1 | awx-uwsgi stdout | tower-processes:awx-receiver: stopped
tools_awx_1 | awx-uwsgi stdout | tower-processes:awx-dispatcher: started
tools_awx_1 | awx-uwsgi stdout | tower-processes:awx-receiver: started
tools_awx_1 | awx-uwsgi stdout |
tools_awx_1 | 2021-04-15 16:49:15,796 INFO waiting for awx-rsyslogd to stop
tools_awx_1 | 2021-04-15 16:49:15,798 INFO stopped: awx-rsyslogd (exit status 0)
tools_awx_1 | 2021-04-15 16:49:15,802 INFO spawned: 'awx-rsyslogd' with pid 238
tools_awx_1 | awx-receiver stdout | 2021-04-15 16:49:16,565 WARNING [-] awx.main.commands.run_callback_receiver scaling up worker pid:242
tools_awx_1 | awx-receiver stdout |
tools_awx_1 | awx-receiver stdout | 2021-04-15 16:49:16,573 WARNING [-] awx.main.commands.run_callback_receiver scaling up worker pid:243
tools_awx_1 | awx-receiver stdout |
tools_awx_1 | awx-receiver stdout | 2021-04-15 16:49:16,583 WARNING [-] awx.main.commands.run_callback_receiver scaling up worker pid:244
tools_awx_1 | awx-receiver stdout |
tools_awx_1 | awx-receiver stdout | 2021-04-15 16:49:16,592 WARNING [-] awx.main.commands.run_callback_receiver scaling up worker pid:245
tools_awx_1 | awx-receiver stdout |
tools_awx_1 | 2021-04-15 16:49:17,596 INFO success: awx-rsyslogd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

@wenottingham
Copy link
Contributor

Hi -

This issue tracker is for tracking feature enhancements and bugs to AWX itself.
There's not enough information here to determine what is going on in your case.

If you need help troubleshooting an AWX install, try our mailing list or IRC channel:

http://webchat.freenode.net/?channels=ansible-awx
https://groups.google.com/forum/#!forum/awx-project

@maxxitutti
Copy link
Author

why you said that you have any info? below is put the logs that i provide previously. i canto connect to awx (via bweb browser) because nginx not starting (netstat on host showing listen port 8043 but nothing listen on container inside). i think that problems startind during the command make docker-compose because there is an error logs

"
tools_awx_1 | 2021-04-15 16:48:58,392 INFO success: awx-receptor entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
tools_awx_1 | awx-dispatcher stdout | make[1]: Entering directory '/awx_devel'
tools_awx_1 | awx-dispatcher stdout |
tools_awx_1 | awx-receiver stdout | make[1]: Entering directory '/awx_devel'
tools_awx_1 | awx-receiver stdout |
tools_awx_1 | awx-uwsgi stdout | make[1]: Entering directory '/awx_devel'
tools_awx_1 | awx-uwsgi stdout |
tools_awx_1 | awx-daphne stdout | make[1]: Entering directory '/awx_devel'
tools_awx_1 | awx-daphne stdout |
tools_awx_1 | awx-wsbroadcast stdout | make[1]: Entering directory '/awx_devel'
tools_awx_1 | awx-wsbroadcast stdout |
tools_awx_1 | awx-nginx stdout | make[1]: Entering directory '/awx_devel'
tools_awx_1 | awx-nginx stdout |
tools_awx_1 | awx-nginx stdout | nginx -g "daemon off;"
tools_awx_1 | awx-nginx stdout |
tools_awx_1 | awx-nginx stdout | nginx: [emerg] getpwnam("nginx") failed
tools_awx_1 | awx-nginx stdout |
tools_awx_1 | awx-nginx stdout | make[1]: *** [Makefile:263: nginx] Error 1
tools_awx_1 | awx-nginx stdout | make[1]: Leaving directory '/awx_devel'
tools_awx_1 | awx-nginx stdout |
tools_awx_1 | awx-receptor stdout | INFO 2021/04/15 16:48:58 Running control service control
tools_awx_1 | awx-receptor stdout |
tools_awx_1 | 2021-04-15 16:48:58,543 INFO spawned: 'awx-nginx' with pid 142
tools_awx_1 | awx-receptor stdout | INFO 2021/04/15 16:48:58 Initialization complete
tools_awx_1 | awx-receptor stdout |
tools_awx_1 | awx-nginx stdout | make[1]: Entering directory '/awx_devel'
tools_awx_1 | awx-nginx stdout |
tools_awx_1 | awx-nginx stdout | nginx -g "daemon off;"
tools_awx_1 | awx-nginx stdout |
tools_awx_1 | awx-nginx stdout | nginx: [emerg] getpwnam("nginx") failed
tools_awx_1 | awx-nginx stdout |
tools_awx_1 | 2021-04-15 16:48:58,707 INFO exited: awx-nginx (exit status 2; not expected)
tools_awx_1 | awx-nginx stdout | make[1]: *** [Makefile:263: nginx] Error 1
tools_awx_1 | awx-nginx stdout | make[1]: Leaving directory '/awx_devel'
tools_awx_1 | awx-nginx stdout |
tools_awx_1 | 2021-04-15 16:49:00,726 INFO spawned: 'awx-nginx' with pid 152
tools_awx_1 | awx-nginx stdout | make[1]: Entering directory '/awx_devel'
tools_awx_1 | awx-nginx stdout |
tools_awx_1 | awx-nginx stdout | nginx -g "daemon off;"
tools_awx_1 | awx-nginx stdout |
tools_awx_1 | awx-nginx stdout | nginx: [emerg] getpwnam("nginx") failed
tools_awx_1 | awx-nginx stdout |
tools_awx_1 | 2021-04-15 16:49:00,902 INFO exited: awx-nginx (exit status 2; not expected)
tools_awx_1 | awx-nginx stdout | make[1]: *** [Makefile:263: nginx] Error 1
tools_awx_1 | awx-nginx stdout | make[1]: Leaving directory '/awx_devel'"

@wenottingham
Copy link
Contributor

This is not something we see. Something is wrong with your image.

On the default shipped images:

[notting@nostromo: ~/prog/awx]$ docker pull quay.io/ansible/awx:19.0.0
19.0.0: Pulling from ansible/awx
Digest: sha256:db165b894507fb520d3f53ac68eb2b49f2a5fd2cc63c7ac7aaa7bd904970b1b2
Status: Downloaded newer image for quay.io/ansible/awx:19.0.0
quay.io/ansible/awx:19.0.0
[notting@nostromo: ~/prog/awx]$ docker run -it quay.io/ansible/awx:19.0.0 bash
bash-4.4$ cat /etc/passwd | grep nginx
nginx:x:998:994:Nginx web server:/var/lib/nginx:/sbin/nologin

As noted, this repo is for reporting bugs and RFEs, and for troubleshooting install/build problems, the mailing list is a better choice.

@maxxitutti
Copy link
Author

maxxitutti commented Apr 16, 2021

Try do that the same on quay.io/awx/awx_devel

root@awx:/opt/repo/awx# docker images REPOSITORY TAG IMAGE ID CREATED SIZE quay.io/awx/awx_devel devel cbb4518b161e 9 hours ago 2.14GB redis latest de974760ddb2 5 days ago 105MB postgres 12 e782ad565d74 6 days ago 314MB root@awx:/opt/repo/awx# docker run -it quay.io/awx/awx_devel bash bash-4.4# cat /etc/passwd | grep nginx bash-4.4#

@nathan-march
Copy link

nathan-march commented Jun 10, 2021

@wenottingham I think this ticket needs to be re-opened, following the docker-compose steps (https://github.com/ansible/awx/blob/devel/tools/docker-compose/README.md) results in the same error no matter if I use the latest 19.0.2 or the 19.0.0 release you mentioned above.

After doing a make docker-compose-build and make docker-compose, the resulting local container does not have the nginx user in it.

root@nathan1:/var/lib/docker/overlay2# docker exec -it tools_awx_1 bash
bash-4.4# grep nginx /etc/passwd
bash-4.4#

Throwing a quick and dirty useradd into the Makefile at line 258 (before nginx -g "daemon off:") resolves it:
useradd -u 998 -g 994 nginx

@HOSTED-POWER
Copy link

I has something to do with the user launching the install of the containers, if launching as a non privileged user, all our errors got away

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants