-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
awx_web and awx_task not running #3705
Comments
Same issue with similar error messages (further below). When I go to /tmp/awxcompose 'environment.sh', 'SECRET_KEY' and are folders (below)?!? EDIT: On reboot it's turning the files in /tmp/awxcompose into folders. Tested turning these folders into files and the containers would start (not working of course but they start without obvious error). If you have nothing in /tmp/awxcompose it will create the files as folders on container start.
docker start awx_web errors:
docker start awx_task errors:
|
Same here, did you find a workaround to start the containers ? |
I am back on version 3.0.1. I'm waiting for the developers to answer |
So what's happening is that you're not changing the postgres_data_dir and docker_compose_dir variables in your awx/installer/inventory file before installation, the critical files get dropped into /tmp, after a while (or on reboot in case of ubuntu) those files get deleted, you try to start up the containers, docker doesn't find /tmp/awxcompose/environment.sh so creates it as a directory, tries to mount it into a file, fails Change the postgres_data_dir and docker_compose_dir variables in the inventory file and rerun the installation |
default value for |
confirm that after setting those values, no more issue after a reboot and no more files in /tmp |
@lijok's explanation makes sense to me, it sounds like adjusting your inventory to reflect 3.0.1 -> 4.0.0 should be sufficient? Please feel free to reopen if you're still having issues with your 4.0.0 install. |
It worked for me by changing the |
Hey there! I'm facing this issue too. What should I be setting the progres_data_dir and docker_compose_dir variables too? |
OK think I got it.. changed docker_compose_dir to /var/lib/awxcompose AWX starting after reboot now :) |
@ryanpetrello It seems like yet more people are running into this same problem... In the spirit of "sensible defaults", could we have this issue reopened and fixed please? |
Just ran into this one, I think the default should not be /tmp |
Definitely not /tmp |
Fix issue #3705 Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
Error response from daemon: No such container: awx_task |
ISSUE TYPE
SUMMARY
Error response from daemon: Cannot start container awx_web and awx_task
ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
starting docker containers awx_web and awx_task
ADDITIONAL INFORMATION
I managed to find out that sistemd tmpfiles deletes files older than 10 days.
In the directory /tmp has been removed "awxcompose".
At the time of launch of the containers awx_web and awx_task in /tmp directory was created ./awx compose/environment.sh, although the file must be created "environment.sh"
/tmp/awxcompose/
total 8
-rw-------. 1 root root 553 Apr 2 17:10 credentials.py
drwxr-xr-x. 2 root root 6 Apr 15 17:30 environment.sh
-rw-------. 1 root root 9 Apr 2 17:10 SECRET_KEY
Why create files in the /tmp directory? Why is the "environment.sh" directory created when starting docker containers?
The text was updated successfully, but these errors were encountered: