Open wxfVeryGood opened 3 years ago
Please take the time to format your code with markdown.
Is this the full output? I don't see an error here.
This is error "tools_awx_1 | standard_init_linux.go:219: exec user process caused: no such file or directory" ,please check.
I don't think I've seen that error before. Is there anything unique about your deployment? Are you on a recent-ish version of Docker? Did you customize the images at all?
@wxfVeryGood the issue is with the user to run that container, it takes the user which runs the "make" which does not exist in the container. Removing the _user: "{{ ansible_useruid }}" from tools/docker-compose/ansible/roles/sources/templates/docker-compose.yml.j2 helped. Not sure if that is the right thing to do here
If you're running the docker-compose install on CentOS 7, you may need to debug that on your own. We test on newer distros (latest Fedora, RHEL 8, etc.)
ISSUE TYPE
SUMMARY
ENVIRONMENT
STEPS TO REPRODUCE
please run command 'make docke-compose'
EXPECTED RESULTS
Docker service is going to start with all of its images.
ACTUAL RESULTS
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 [Create _sources directory] ***** ok: [localhost]
TASK [sources : Detect secrets] ** ok: [localhost] => (item=pg_password) ok: [localhost] => (item=secret_key) ok: [localhost] => (item=broadcast_websocket_secret)
TASK [sources : Generate secrets if needed] ** skipping: [localhost] => (item={u'failed': False, u'stat': {u'charset': u'us-ascii', u'uid': 0, u'exists': True, u'attr_flags': u'', u'woth': False, u'device_type': 0, u'mtime': 1619506911.9745579, u'block_size': 4096, u'inode': 8805653, u'isgid': False, u'size': 36, u'executable': False, u'roth': False, u'isuid': False, u'readable': True, u'isreg': True, u'version': u'453791865', u'pw_name': u'root', u'gid': 0, u'ischr': False, u'wusr': True, u'writeable': True, u'isdir': False, u'blocks': 8, u'xoth': False, u'rusr': True, u'nlink': 1, u'issock': False, u'rgrp': False, u'gr_name': u'root', u'path': u'../_sources/secrets/pg_password.yml', u'xusr': False, u'atime': 1619506913.0135374, u'mimetype': u'text/plain', u'ctime': 1619506912.2435527, u'wgrp': False, u'xgrp': False, u'dev': 64768, u'isblk': False, u'isfifo': False, u'mode': u'0600', u'checksum': u'7013be875366d4ea9ce20b39d9481f570f1ffbdb', u'islnk': False, u'attributes': []}, u'ansible_loop_var': u'item', u'item': u'pg_password', u'invocation': {u'module_args': {u'follow': False, u'get_checksum': True, u'path': u'../_sources/secrets/pg_password.yml', u'checksum_algorithm': u'sha1', u'get_md5': False, u'get_mime': True, u'get_attributes': True}}, u'changed': False}) skipping: [localhost] => (item={u'failed': False, u'stat': {u'charset': u'us-ascii', u'uid': 0, u'exists': True, u'attr_flags': u'', u'woth': False, u'device_type': 0, u'mtime': 1619506912.4385488, u'block_size': 4096, u'inode': 8805655, u'isgid': False, u'size': 35, u'executable': False, u'roth': False, u'isuid': False, u'readable': True, u'isreg': True, u'version': u'2108980606', u'pw_name': u'root', u'gid': 0, u'ischr': False, u'wusr': True, u'writeable': True, u'isdir': False, u'blocks': 8, u'xoth': False, u'rusr': True, u'nlink': 1, u'issock': False, u'rgrp': False, u'gr_name': u'root', u'path': u'../_sources/secrets/secret_key.yml', u'xusr': False, u'atime': 1619506913.031537, u'mimetype': u'text/plain', u'ctime': 1619506912.578546, u'wgrp': False, u'xgrp': False, u'dev': 64768, u'isblk': False, u'isfifo': False, u'mode': u'0600', u'checksum': u'086a90d5041ca81ad58e267b56fd3298af32e880', u'islnk': False, u'attributes': []}, u'ansible_loop_var': u'item', u'item': u'secret_key', u'invocation': {u'module_args': {u'follow': False, u'get_checksum': True, u'path': u'../_sources/secrets/secret_key.yml', u'checksum_algorithm': u'sha1', u'get_md5': False, u'get_mime': True, u'get_attributes': True}}, u'changed': False}) skipping: [localhost] => (item={u'failed': False, u'stat': {u'charset': u'us-ascii', u'uid': 0, u'exists': True, u'attr_flags': u'', u'woth': False, u'device_type': 0, u'mtime': 1619506912.7755423, u'block_size': 4096, u'inode': 8805656, u'isgid': False, u'size': 51, u'executable': False, u'roth': False, u'isuid': False, u'readable': True, u'isreg': True, u'version': u'672981623', u'pw_name': u'root', u'gid': 0, u'ischr': False, u'wusr': True, u'writeable': True, u'isdir': False, u'blocks': 8, u'xoth': False, u'rusr': True, u'nlink': 1, u'issock': False, u'rgrp': False, u'gr_name': u'root', u'path': u'../_sources/secrets/broadcast_websocket_secret.yml', u'xusr': False, u'atime': 1619506913.045537, u'mimetype': u'text/plain', u'ctime': 1619506912.9105396, u'wgrp': False, u'xgrp': False, u'dev': 64768, u'isblk': False, u'isfifo': False, u'mode': u'0600', u'checksum': u'b4d186fbd5c3ec3799df6825ec49e3cc087981ea', u'islnk': False, u'attributes': []}, u'ansible_loop_var': u'item', u'item': u'broadcast_websocket_secret', u'invocation': {u'module_args': {u'follow': False, u'get_checksum': True, u'path': u'../_sources/secrets/broadcast_websocket_secret.yml', u'checksum_algorithm': u'sha1', u'get_md5': False, u'get_mime': True, u'get_attributes': True}}, u'changed': False})
TASK [sources : Include generated secrets unless they are explicitly passed in] ** ok: [localhost] => (item=None) ok: [localhost] => (item=None) ok: [localhost] => (item=None) ok: [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] *** ok: [localhost]
PLAY RECAP *** localhost : ok=12 changed=0 unreachable=0 failed=0 skipped=2 rescued=0 ignored=0
docker-compose -f tools/docker-compose/_sources/docker-compose.yml up Starting tools_redis_1 ... done Starting tools_postgres_1 ... done Starting tools_awx_1 ... done Attaching to tools_redis_1, tools_postgres_1, tools_awx_1 tools_awx_1 | standard_init_linux.go:219: exec user process caused: no such file or directory tools_postgres_1 | tools_postgres_1 | PostgreSQL Database directory appears to contain a database; Skipping initialization tools_postgres_1 | tools_postgres_1 | 2021-04-27 11:20:33.435 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-27 11:20:33.435 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 tools_postgres_1 | 2021-04-27 11:20:33.435 UTC [1] LOG: listening on IPv6 address "::", port 5432 tools_postgres_1 | 2021-04-27 11:20:33.436 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" tools_postgres_1 | 2021-04-27 11:20:33.446 UTC [26] LOG: database system was shut down at 2021-04-27 11:15:44 UTC tools_postgres_1 | 2021-04-27 11:20:33.448 UTC [1] LOG: database system is ready to accept connections tools_redis_1 | 1:C 27 Apr 2021 11:20:33.359 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo tools_redis_1 | 1:C 27 Apr 2021 11:20:33.359 # Redis version=6.2.2, bits=64, commit=00000000, modified=0, pid=1, just started tools_redis_1 | 1:C 27 Apr 2021 11:20:33.359 # Configuration loaded tools_redis_1 | 1:M 27 Apr 2021 11:20:33.360 monotonic clock: POSIX clock_gettime tools_redis_1 | 1:M 27 Apr 2021 11:20:33.360 Running mode=standalone, port=0. tools_redis_1 | 1:M 27 Apr 2021 11:20:33.360 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128. tools_redis_1 | 1:M 27 Apr 2021 11:20:33.360 # Server initialized tools_redis_1 | 1:M 27 Apr 2021 11:20:33.361 Loading RDB produced by version 6.2.2 tools_redis_1 | 1:M 27 Apr 2021 11:20:33.361 RDB age 289 seconds tools_redis_1 | 1:M 27 Apr 2021 11:20:33.361 RDB memory usage when created 0.77 Mb tools_redis_1 | 1:M 27 Apr 2021 11:20:33.361 DB loaded from disk: 0.000 seconds tools_redis_1 | 1:M 27 Apr 2021 11:20:33.361 * The server is now ready to accept connections at /var/run/redis/redis.sock tools_awx_1 exited with code 1
ADDITIONAL INFORMATION