Open tigattack opened 3 years ago
The development environment commits some sins in order to run Podman inside of docker. This works on most machines, but I have seen this error pop up a few times and haven't been able to reproduce or identify a fix. If possible, I strongly recommend you to use the AWX Operator.
I applied this solution to my docker host, which fixed the issue for me.
On your docker host, run
sudo sysctl -w kernel.unprivileged_userns_clone=1
To persist across reboots:
echo "kernel.unprivileged_userns_clone=1" | sudo tee -a /etc/sysctl.conf
I ran into the same issue on Centos 7. After trying a bunch of things I upgraded my kernel to 5.4.196
and things started to work.
The original one installed was really old (3.10.0
). After doing some digging it appears that the older kernel may not have supported the user clone syscall.
ISSUE TYPE
SUMMARY
I am unable to clone ("sync") GitHub repos configured in SCM projects in AWX. When attempting to sync, I see the following error:
I've been testing with https://github.com/ansible/tower-example.
ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
I would expect the project to sync correctly.
ACTUAL RESULTS
See error above.
ADDITIONAL INFORMATION
I don't think it's related, but AWX also reports that the Ansible version is "unknown":