-
Notifications
You must be signed in to change notification settings - Fork 79
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
stdout capture is missing #9
Comments
What docker parameters you used for running? |
I ran it w/ the basic parameters you had in your readme.
|
Same issue here. Looking at the logs this is the error: ==> tower.log <==
2018-02-07 07:38:08,064 ERROR awx.main.tasks project_update 45 execution encountered exception.
Traceback (most recent call last):
File "/var/lib/awx/venv/awx/local/lib/python2.7/site-packages/celery/app/trace.py", line 240, in trace_task
R = retval = fun(*args, **kwargs)
File "/var/lib/awx/venv/awx/local/lib/python2.7/site-packages/celery/app/trace.py", line 438, in __protected_call__
return self.run(*args, **kwargs)
File "/tmp/buildd/ansible-tower-3.2.1/debian/ansible-tower/usr/lib/python2.7/dist-packages/awx/main/tasks.py", line 466, in _wrapped
File "/tmp/buildd/ansible-tower-3.2.1/debian/ansible-tower/usr/lib/python2.7/dist-packages/awx/main/tasks.py", line 915, in run
Exception: project_update 45 (error) encountered an error (rc=None), please see task stdout for details. |
To workaround the issue, I've expected the volume /var/lib/awx and create a directory with my playbook to test under the projects subdir, however whenever trying to execute it throws the error:
|
@tchellomello it's strange issues, as Ansible Tower in docker installed via official playbook and it should install all needed dependencies. |
@ybalt yes, I'm trying to troubleshoot why this is not working. I'm currently running the image 0fa5972fcdfa docker.io/ybalt/ansible-tower latest 0fa5972fcdfa 5 weeks ago 1.37 GB |
@ you can try to build docker image by yourself, during the process it will show how dep install work |
@ybalt I think I found the problem. I had a similar issue with the pihole image too as I'm running on Fedora. It seems the systemd is not being able to spawn and the workaround is to provide a mount dir for the /run. I did that and worked on my environment. I also found another issue that I'm sending you a patch shortly. I'll keep you posted. |
@tchellomello thanks! |
PR merged, need some time for Docker Hub to build new image |
@ybalt ok, after troubleshooting I not able to experience the issue only when the image is running with privileged. When the container is running without the privileged option, the git repository does not sync and only show the error "stdout capture is missing". Plus when trying to execute a playbook, I get the error:
however this does not occur when running with priviliged. @datpham23 could you try to run the container with --privileged to see if the error goes away? |
It could be related to a permission under /dev directory for stdout or stderr. I'll try to run a rpdb on that code to see if we can find as running as privileged is not the best solution. |
Hello, I create the container with the following commands:
And then, I noticed that on the container, there are two projects directories:
The "projects," have the right ownership (awx:awx), but the correct directory "projects" has the same ownership as the host docker user (root). When I changed the permissions from the container, it resolved correctly and the project started syncing. |
@BlackCorsair I am having the same issues. Project is not sync-ing and |
Vagrant is the better option |
Can't execute any jobs, getting the following error in the standard out panel:
stdout capture is missing
Tried the image on my mac and linux box.
The text was updated successfully, but these errors were encountered: