Failed to upload Ansible Automation Platform Automation Analytics
Environment
- Red Hat Ansible Automation Platform
Issue
- Ansible Automation Platform using of service account credentials is successful
- Failed to upload Ansible Automation Platform Automation Analytics
Resolution
- Ensure that the following domains are enabled/allowed on the network proxy/firewall and can be resolved by DNS :
cloud.redhat.com
console.redhat.com
sso.redhat.com
Root Cause
- sso.redhat.com domain can not be resolved :
2025-12-06T05:21:03.011610093Z urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='sso.redhat.com', port=443): Max retries exceeded with url: /auth/realms/redhat-external/protocol/openid-connect/token (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7feceb58cd30>: Failed to establish a new connection: [Errno -2] Name or service not known'))
Diagnostic Steps
- Automation Analytics API request failed :
2025-12-06T05:21:02.033324028Z 2025-12-06 05:21:02,032 ERROR [10cd6f749ab4439aa2cbc5507267b3dd] awx.main.analytics Upload failed with status 401, {"errors":[{"detail":"Insights services authentication failed","status":401,"meta":{"response_by":"gateway"}}]}
2025-12-06T05:21:02.033324028Z
2025-12-06T05:21:02.060015465Z 2025-12-06 05:21:02,059 ERROR [10cd6f749ab4439aa2cbc5507267b3dd] awx.main.analytics Automation Analytics API request failed, trying base auth method
2025-12-06T05:21:02.974295074Z 2025-12-06 05:21:02,973 ERROR [10cd6f749ab4439aa2cbc5507267b3dd] awx.main.analytics Upload failed with status 401, {"errors":[{"meta":{"response_by":"gateway"},"detail":"Insights services authentication failed","status":401}]}
2025-12-06T05:21:02.974295074Z
2025-12-06T05:21:02.999620594Z 2025-12-06 05:21:02,999 ERROR [10cd6f749ab4439aa2cbc5507267b3dd] awx.main.analytics Automation Analytics API request failed, trying base auth method
2025-12-06T05:21:03.011610093Z 2025-12-06 05:21:03,007 ERROR [10cd6f749ab4439aa2cbc5507267b3dd] awx.main.analytics Could not generate metric unified_jobs_table.csv
2025-12-06T05:21:03.011610093Z Traceback (most recent call last):
2025-12-06T05:21:03.011610093Z File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/urllib3/connection.py", line 174, in _new_conn
2025-12-06T05:21:03.011610093Z conn = connection.create_connection(
2025-12-06T05:21:03.011610093Z File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/urllib3/util/connection.py", line 72, in create_connection
2025-12-06T05:21:03.011610093Z for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
2025-12-06T05:21:03.011610093Z File "/usr/lib64/python3.9/socket.py", line 966, in getaddrinfo
2025-12-06T05:21:03.011610093Z for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
2025-12-06T05:21:03.011610093Z socket.gaierror: [Errno -2] Name or service not known
2025-12-06T05:21:03.011610093Z urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7feceb58cd30>: Failed to establish a new connection: [Errno -2] Name or service not known
2025-12-06T05:21:03.011610093Z During handling of the above exception, another exception occurred:
2025-12-06T05:21:03.011610093Z
2025-12-06T05:21:03.011610093Z Traceback (most recent call last):
2025-12-06T05:21:03.011610093Z File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/requests/adapters.py", line 667, in send
2025-12-06T05:21:03.011610093Z resp = conn.urlopen(
2025-12-06T05:21:03.011610093Z File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/urllib3/connectionpool.py", line 802, in urlopen
2025-12-06T05:21:03.011610093Z retries = retries.increment(
2025-12-06T05:21:03.011610093Z File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/urllib3/util/retry.py", line 594, in increment
2025-12-06T05:21:03.011610093Z raise MaxRetryError(_pool, url, error or ResponseError(cause))
2025-12-06T05:21:03.011610093Z urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='sso.redhat.com', port=443): Max retries exceeded with url: /auth/realms/redhat-external/protocol/openid-connect/token (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7feceb58cd30>: Failed to establish a new connection: [Errno -2] Name or service not known'))
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments