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

run docker-compose error #15494

Open
5 of 11 tasks
yzcyayaya opened this issue Sep 6, 2024 · 0 comments
Open
5 of 11 tasks

run docker-compose error #15494

yzcyayaya opened this issue Sep 6, 2024 · 0 comments

Comments

@yzcyayaya
Copy link

yzcyayaya commented Sep 6, 2024

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that AWX is open source software provided for free and that I might not receive a timely response.
  • I am NOT reporting a (potential) security vulnerability. (These should be emailed to [email protected] instead.)

Bug Summary

|base|m2 awx ±|devel|→ make docker-compose
docker compose -f tools/docker-compose/_sources/docker-compose.yml  up  --remove-orphans
WARN[0000] /usr/local/GoCode/bingo/awx/tools/docker-compose/_sources/docker-compose.yml: `version` is obsolete
[+] Running 2/0
 ✔ Container tools_redis_1     Running                                                         0.0s
 ✔ Container tools_postgres_1  Running                                                         0.0s
Attaching to tools_awx_1, tools_postgres_1, tools_redis_1
Gracefully stopping... (press Ctrl+C again to force)
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/usr/local/GoCode/bingo/awx/tools/docker-compose/_sources/nginx.conf" to rootfs at "/etc/nginx/nginx.conf": mount /usr/local/GoCode/bingo/awx/tools/docker-compose/_sources/nginx.conf:/etc/nginx/nginx.conf (via /proc/self/fd/7), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
make[1]: *** [docker-compose-up] Error 1
make: *** [docker-compose] Error 2

AWX version

origin/devel

Select the relevant components

  • UI
  • UI (tech preview)
  • API
  • Docs
  • Collection
  • CLI
  • Other

Installation method

docker development environment

Modifications

no

Ansible version

2.16.0

Operating system

macos 14.6.1 (23G93)

Web browser

No response

Steps to reproduce

make docker-compose

Expected results

install success

Actual results

|base|m2 awx ±|devel|→ make docker-compose
docker compose -f tools/docker-compose/_sources/docker-compose.yml  up  --remove-orphans
WARN[0000] /usr/local/GoCode/bingo/awx/tools/docker-compose/_sources/docker-compose.yml: `version` is obsolete
[+] Running 2/0
 ✔ Container tools_redis_1     Running                                                         0.0s
 ✔ Container tools_postgres_1  Running                                                         0.0s
Attaching to tools_awx_1, tools_postgres_1, tools_redis_1
Gracefully stopping... (press Ctrl+C again to force)
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/usr/local/GoCode/bingo/awx/tools/docker-compose/_sources/nginx.conf" to rootfs at "/etc/nginx/nginx.conf": mount /usr/local/GoCode/bingo/awx/tools/docker-compose/_sources/nginx.conf:/etc/nginx/nginx.conf (via /proc/self/fd/7), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
make[1]: *** [docker-compose-up] Error 1
make: *** [docker-compose] Error 2

Additional information

|base|m2 awx ±|devel|→ make docker-compose
ansible-playbook -e ansible_python_interpreter=python3.11 -i tools/docker-compose/inventory tools/docker-compose/ansible/sources.yml \
       -e awx_image=ghcr.io/ansible/awx_devel \
       -e awx_image_tag=devel \
       -e receptor_image=quay.io/ansible/receptor:release_1.1 \
       -e control_plane_node_count=1 \
       -e execution_node_count=0 \
       -e minikube_container_group=false \
       -e enable_pgbouncer=false \
       -e enable_keycloak=false \
       -e enable_ldap=false \
       -e enable_splunk=false \
       -e enable_prometheus=false \
       -e enable_grafana=false \
       -e enable_vault=false \
       -e vault_tls=false \
       -e enable_tacacs=false \
       -e enable_otel=false \
       -e enable_loki=false \
       -e install_editable_dependencies=false \
       -e pg_tls=false \


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

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

TASK [sources : Create _sources directories] *******************************************************
ok: [localhost] => (item=secrets)
ok: [localhost] => (item=receptor)

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

TASK [sources : Generate secrets if needed] ********************************************************
skipping: [localhost] => (item=pg_password)
skipping: [localhost] => (item=secret_key)
skipping: [localhost] => (item=broadcast_websocket_secret)
skipping: [localhost] => (item=admin_password)
skipping: [localhost]

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] => (item=None)
ok: [localhost]

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

TASK [sources : Find custom error pages] ***********************************************************
ok: [localhost] => (item=/usr/local/GoCode/bingo/awx/awx/static/custom_504.html)
ok: [localhost] => (item=/usr/local/GoCode/bingo/awx/awx/static/custom_502.html)
ok: [localhost] => (item=/usr/local/GoCode/bingo/awx/awx/static/custom_404.html)

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

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 : Generate Private RSA key for signing work] *****************************************
skipping: [localhost]

TASK [sources : Generate public RSA key for signing work] ******************************************
skipping: [localhost]

TASK [sources : Include LDAP tasks if enabled] *****************************************************
skipping: [localhost]

TASK [sources : Include vault TLS tasks if enabled] ************************************************
skipping: [localhost]

TASK [sources : Iterate through ../editable_dependencies and get symlinked directories and register the paths] ***
skipping: [localhost]

TASK [sources : Warn about empty editable_dependnecies] ********************************************
skipping: [localhost]

TASK [sources : Set fact with editable_dependencies] ***********************************************
skipping: [localhost]

TASK [sources : Set install_editable_dependnecies to false if no editable_dependencies are found] ***
skipping: [localhost]

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

TASK [sources : Render Receptor Config(s) for Control Plane] ***************************************
ok: [localhost] => (item=1)

TASK [sources : Create Receptor Config Lock File] **************************************************
changed: [localhost] => (item=1)

TASK [sources : Render Receptor Config(s) for Control Plane] ***************************************
ok: [localhost] => (item=1)

TASK [sources : Render Receptor Hop Config] ********************************************************
skipping: [localhost]

TASK [sources : Render Receptor Worker Config(s)] **************************************************
skipping: [localhost] => (item=1)
skipping: [localhost]

TASK [sources : Render prometheus config] **********************************************************
skipping: [localhost]

PLAY RECAP *****************************************************************************************
localhost                  : ok=14   changed=1    unreachable=0    failed=0    skipped=13   rescued=0    ignored=0

ansible-galaxy install --ignore-certs -r tools/docker-compose/ansible/requirements.yml;
Starting galaxy collection install process
Nothing to do. All requested collections are already installed. If you want to reinstall them, consider using `--force`.
ansible-playbook -e ansible_python_interpreter=python3.11 -i tools/docker-compose/inventory tools/docker-compose/ansible/initialize_containers.yml \
       -e enable_vault=false \
       -e vault_tls=false \
       -e enable_ldap=false; \
   /Applications/Xcode.app/Contents/Developer/usr/bin/make docker-compose-up

PLAY [Run any pre-hooks for other container] *******************************************************

TASK [Initialize vault] ****************************************************************************
skipping: [localhost]

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

docker compose -f tools/docker-compose/_sources/docker-compose.yml  up  --remove-orphans
WARN[0000] /usr/local/GoCode/bingo/awx/tools/docker-compose/_sources/docker-compose.yml: `version` is obsolete
[+] Running 2/0
✔ Container tools_postgres_1  Running                                                         0.0s
✔ Container tools_redis_1     Running                                                         0.0s
Attaching to tools_awx_1, tools_postgres_1, tools_redis_1
Gracefully stopping... (press Ctrl+C again to force)
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/usr/local/GoCode/bingo/awx/tools/docker-compose/_sources/nginx.conf" to rootfs at "/etc/nginx/nginx.conf": mount /usr/local/GoCode/bingo/awx/tools/docker-compose/_sources/nginx.conf:/etc/nginx/nginx.conf (via /proc/self/fd/7), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
make[1]: *** [docker-compose-up] Error 1
make: *** [docker-compose] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant