Comments (9)
Fixed via above commit.
from awx-container.
Confirming that for any Playbook I'm seeing the same behaviour:
ERROR! Attempted to execute "/usr/lib/python2.7/site-packages/awx/plugins/inventory/awxrest.py" as inventory script: Inventory script (/usr/lib/python2.7/site-packages/awx/plugins/inventory/awxrest.py) had an execution error: HTTPConnectionPool(host='awxweb', port=8052): Max retries exceeded with url: /api/v1/inventories/2/script/?hostvars=1 (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x1c69e10>: Failed to establish a new connection: [Errno -2] Name or service not known',))
3
None
Looks like user: root
was already added: https://github.com/geerlingguy/awx-container/blob/master/docker-compose.yml#L51 but, I'll give the - awx_web:awxweb
a shot
from awx-container.
Yep! That fixes it!
from awx-container.
@jaredledvina / @MartinTerp - Do you think I should change the hostname internally for the awx container to awx_web
too then? If so, I can generate a new image and you can test. I vaguely remember running into this same issue with one of my own playbooks in a test AWX environment on a plane earlier today.
from awx-container.
And yes, I added the user: root
in #7
from awx-container.
I think so yes, just to align all the names.
i didt add "user: root" to awx_task in the first place, since i didt see any issues at that time.
from awx-container.
@geerlingguy - That makes sense to me, happy to give the image a shot on my personal setup as well.
from awx-container.
Yep, I'll get this fixed in a few minutes I hope (but it will take a bit to rebuild the image and push it...). I can confirm the current images are giving:
ERROR! Attempted to execute "/usr/lib/python2.7/site-packages/awx/plugins/inventory/awxrest.py" as inventory script: Inventory script (/usr/lib/python2.7/site-packages/awx/plugins/inventory/awxrest.py) had an execution error: HTTPConnectionPool(host='awxweb', port=8052): Max retries exceeded with url: /api/v1/inventories/2/script/?hostvars=1 (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x2a4fd90>: Failed to establish a new connection: [Errno -2] Name or service not known',))
from awx-container.
Actually, it looks like the settings.py
file that ships with AWX has INTERNAL_API_URL = 'http://awxweb:8052'
, so it would be annoying to try to switch everything to awx_web
. Therefore, it may be as easy as just setting the links correctly inside the docker-compose.yml file. Testing that now.
from awx-container.
Related Issues (20)
- no IPv6-support in awx_task HOT 1
- Switch to official AWX container versions from Ansible in example Docker Compose
- Travis CI builds failing on 'Stage sdist' task with AWX 1.0.3.52 HOT 4
- Getting "Exception: Missing or incorrect metadata for Tower version." HOT 6
- Discussion: Migration Paths for AWX HOT 3
- No proper login page after first docker-compose up HOT 4
- Q: is it possible to build lxd into the container? HOT 2
- What's the trick to upgrade Ansible? HOT 1
- Vagrant build fails at task EPEL repo installation HOT 2
- Build failing due to moved Dockerfile templates HOT 1
- Ansible Container 0.9.2 is here, update docs and tests
- Run awx_web and awx_task not as root? HOT 2
- Getting error in Travis CI build 'ordereddict is not JSON serializable' HOT 1
- No Job view HOT 1
- Helm chart for awx HOT 3
- Dockerfile for awx_task? HOT 1
- docker-compose up fails HOT 21
- awx start to consume swap memory after running jobs HOT 1
- geerlingguy.repo-epel error HOT 1
- This project is deprecated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from awx-container.