AWX "Failed to get token: The read operation times out"

354 views
Skip to first unread message

GoMatrix Hosting

unread,
Feb 4, 2021, 12:40:04 AM2/4/21
to AWX Project

Struggling to get a playbook to finish due to this error, see this reddit thread for details:

GoMatrix Hosting

unread,
Feb 4, 2021, 2:53:53 AM2/4/21
to AWX Project
Uhh this is a chicken and egg problem if i've ever seen one, this code:
```
- name: Create a new AWX token using username/password
delegate_to: 127.0.0.1
awx.awx.tower_token:
   description: 'Creating token to test tower jobs'
   scope: "write"
   state: present
   tower_host: "https://{{ tower_host }}"
   tower_username: "{{ tower_username }}"
   tower_password: "{{ tower_password }}"

- debug:
   msg: "The token: {{ tower_token }}"
```

Produces the same error:
```
TASK [modify-awx-account : Create a new AWX token using username/password] *****
fatal: [dummyvalue.com]: FAILED! => {"changed": false, "msg": "Failed to get token: The read operation timed out"}
```

:S today is not a good day for me lol

wme...@why-me.com

unread,
Feb 4, 2021, 8:30:12 AM2/4/21
to GoMatrix Hosting, AWX Project
make sure you set the tower hostname (base url of the tower host) in the gui config.  If you don't have it set properly you will get this message.  The default setting is https://localhost, but it needs to match the exact url of your server


--
You received this message because you are subscribed to the Google Groups "AWX Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
awx-project...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/awx-project/dae13fd9-291e-4dfa-85e5-226aca5b1ec0n%40googlegroups.com.

Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
0 new messages