ybalt / ansible-tower Goto Github PK
View Code? Open in Web Editor NEWAnsible Tower dockerized
License: Apache License 2.0
Ansible Tower dockerized
License: Apache License 2.0
I get an internal server error when running the container.
I tried running the container using docker run -d -p 443:443 --name tower ybalt/ansible-tower
. After a docker pull.
I also tried building the image locally and running the container. Same issue. (No errors on build)
On the local build, if I hop into the container shell and re-run setup.sh
manually, things go well.
On the image I download via docker pull
attempting to manually run setup.sh
results in a failed task:
task path: /opt/ansible-tower-setup-3.2.1/roles/packages_ubuntu/tasks/install_tower.yml:38
Using module file /usr/lib/python2.7/dist-packages/ansible/modules/packaging/os/apt.py
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: root
<localhost> EXEC /bin/sh -c 'echo ~ && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531849037.94-158289672415758 `" && echo ansible-tmp-1531849037.94-158289672415758="` echo /root/.ansible/tmp/ansible-tmp-1531849037.94-158289672415758 `" ) && sleep 0'
<localhost> PUT /tmp/tmpIisCKR TO /root/.ansible/tmp/ansible-tmp-1531849037.94-158289672415758/apt.py
<localhost> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1531849037.94-158289672415758/ /root/.ansible/tmp/ansible-tmp-1531849037.94-158289672415758/apt.py && sleep 0'
<localhost> EXEC /bin/sh -c '/usr/bin/python /root/.ansible/tmp/ansible-tmp-1531849037.94-158289672415758/apt.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1531849037.94-158289672415758/" > /dev/null 2>&1 && sleep 0'
The full traceback is:
File "/tmp/ansible_KhUWWP/ansible_module_apt.py", line 960, in main
cache.update()
File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 440, in update
raise FetchFailedException(e)
fatal: [localhost]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"allow_unauthenticated": false,
"autoclean": false,
"autoremove": false,
"cache_valid_time": 0,
"deb": null,
"default_release": null,
"dpkg_options": "force-confdef,force-confold",
"force": false,
"force_apt_get": false,
"install_recommends": null,
"name": "ansible-tower=3.2.1-*",
"only_upgrade": false,
"package": [
"ansible-tower=3.2.1-*"
],
"purge": false,
"state": "present",
"update_cache": true,
"upgrade": null
}
},
"msg": "Failed to update apt cache."
}
When I throw a template, it gives this error:
proot error: ptrace(TRACEME): Operation not permitted
proot error: execve("/usr/bin/ansible-playbook"): Operation not permitted
proot info: It seems your kernel contains this bug: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1202161
To workaround it, set the env. variable PROOT_NO_SECCOMP to 1.
fatal error: seeproot --help
.
proot error: can't chmod '/tmp/proot-695-bDhmxe': No such file or directory`
run docker with:
docker run -t -d --volumes-from astdata -v ~/certs:/certs -e SERVER_NAME=TOWER -e PROOT_NO_SECCOMP=1 -p 443:443 --name=ast ybalt/ansible-tower
Hi
Do you have any idea why i get this error in Tower?
proot info: pid 597: terminated with signal 11
dockerfile should be change this line : "ADD licence /etc/tower/license" to "ADD license /etc/tower/license"
This issue have confused me for a while until I saw the manual noted that Tower should not be installed within any subsystem.
If you run this docker without --privileged
flag, the possible outcome will be jobs fail immediately without any stdout provided.
Hope this note will help some people.
OS: Debian 9.3
Docker: 17.12.1-ce, build 7390fc6
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.
This is the detail :
RESULTS TRACEBACK
Traceback (most recent call last): File "/tmp/buildd/ansible-tower-3.2.1/debian/ansible-tower/usr/lib/python2.7/dist-packages/awx/main/tasks.py", line 839, in run RuntimeError: bubblewrap is not installed
why is it happend ? Is ansible running need by bubblewrap
Hi, I am trying to pull a container but forced with an issue.
Google did not help me :(
Docker version 1.12.6, build 0fdc778/1.12.6
Red Hat Enterprise Linux Server release 7.4 (Maipo)
# docker pull ybalt/ansible-tower
Using default tag: latest
Trying to pull repository registry.access.redhat.com/ybalt/ansible-tower ...
Trying to pull repository registry.access.redhat.com/ybalt/ansible-tower ...
Trying to pull repository docker.io/ybalt/ansible-tower ...
sha256:a558fe26f8fe2420179bacc68e37f8e9e5cd0975507f194e55cdc8e880e3e3a7: Pulling from docker.io/ybalt/ansible-tower
cb56c90f0b30: Pulling fs layer
0acc551e5716: Pulling fs layer
8956dcd35143: Pulling fs layer
908242721214: Waiting
b44ff14dd3bb: Waiting
39c5609e9c63: Waiting
b6108ff4be91: Waiting
572cdcfffef9: Waiting
52757e050d59: Waiting
fabf16e8e4f8: Waiting
cdd2c0aa93f6: Waiting
2f4347d07034: Waiting
374614a06a1b: Waiting
58e3a6a0326c: Waiting
751d8b6dae4c: Waiting
error pulling image configuration: Get https://dseasb33srnrn.cloudfront.net/registry-v2/docker/registry/v2/blobs/sha256/1d/1dac20c66caa8adc07a4cdbae91702fca8d96d648bda3dc5a96ae6a18155bf5a/data?Expires=1508323432&Signature=RYTj1qOf6mVB-yjtgmkQTA17a9BcFnSw48ww3wGXFEd0VvSn4U9JETOWsYglGMeEuFP9lv3CAfkuG9F1QCoZ3hFdZqby6NZoZhji855Q8XN5uBOIuvfEGpxj5jj7gW0mCYv2fk~1NWdvTrk9wAgxrnbOaZZnkQNn~g0DTbSxncQ_&Key-Pair-Id=APKAJECH5M7VWIS5YZ6Q: x509: certificate signed by unknown authority
Regards
iOsX
PostgreSQL data dir is incorrect on the latest image. Instead of 9.4* it should be 9.6.
Hi Team ,
Getting below error.
Starting Tower
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:
Traceback (most recent call last):
File "/tmp/buildd/ansible-tower-3.2.1/debian/ansible-tower/usr/lib/python2.7/dist-packages/awx/main/tasks.py", line 839, in run
RuntimeError: bubblewrap is not installed
Originally posted by @tchellomello in #9 (comment)
Command: docker run -d -P --name tower ybalt/ansible-tower
Version: Docker version 1.12.6, build 6b644ec
Error:
root@Tower:~# docker logs 8a574aa1c8b9
Starting Tower
* Starting PostgreSQL 9.4 database server
...done.
* Starting message broker rabbitmq-server
* FAILED - check /var/log/rabbitmq/startup_\{log, _err\}
...fail!
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
Unlinking stale socket /var/run/supervisor.sock
Starting supervisor: supervisord.
Tower 3.1.4 is released: http://docs.ansible.com/ansible-tower/latest/html/installandreference/release_notes.html
Additionally I suggest adding version tags to the docker hub images.
Am getting an error when I try to update a project.
root@75ae45e0832e:/# tail -f /var/log/tower/tower.log
AttributeError: 'RunProjectUpdate' object has no attribute 'revision_path'
2020-11-17 08:58:18,899 ERROR awx.main.tasks project_update 6 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 6 (error) encountered an error (rc=None), please see task stdout for details.
tail: unrecognized file system type 0x794c7630 for '/var/log/tower/tower.log'. please report this to [email protected]. reverting to polling
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.