Coder Social home page Coder Social logo

Comments (9)

geerlingguy avatar geerlingguy commented on June 30, 2024 2

Fixed via above commit.

from awx-container.

jaredledvina avatar jaredledvina commented on June 30, 2024

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.

jaredledvina avatar jaredledvina commented on June 30, 2024

Yep! That fixes it!

from awx-container.

geerlingguy avatar geerlingguy commented on June 30, 2024

@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.

geerlingguy avatar geerlingguy commented on June 30, 2024

And yes, I added the user: root in #7

from awx-container.

MartinTerp avatar MartinTerp commented on June 30, 2024

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.

jaredledvina avatar jaredledvina commented on June 30, 2024

@geerlingguy - That makes sense to me, happy to give the image a shot on my personal setup as well.

from awx-container.

geerlingguy avatar geerlingguy commented on June 30, 2024

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.

geerlingguy avatar geerlingguy commented on June 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.