View Ansible automation portal logs for execution environment builder
View Ansible automation portal logs to diagnose authentication failures, sync errors, catalog registration issues, and SCM connectivity problems.
About this task
Ansible automation portal logs contain diagnostic information for troubleshooting execution environment builder issues. The procedure for accessing logs depends on your deployment type.
Procedure
- Access the logs for your deployment type.
-
For OpenShift deployments, run the following command to view backend logs:
$ oc logs -n namespace deployment/portal-deployment-name -c backstage-backendTo filter results for relevant entries, pipe the output through
grep:$ oc logs -n namespace deployment/portal-deployment-name -c backstage-backend | grep -i "catalog\|ansible\|sync\|error" -
For RHEL appliance deployments, use
journalctlto view recent portal logs:$ sudo journalctl -u portal --since "1 hour ago"Alternatively, view container logs directly:
$ sudo podman logs portal-container-name
-
- Compare the log output against the common log patterns table to identify the issue.
Results
The following table lists common log messages and their meanings to help you diagnose execution environment builder issues.
| Log message | Meaning |
|---|---|
Failed to send POST request: TypeError: fetch failed |
Portal backend cannot reach AAP due to TLS certificate rejection. Set checkSSL to false in both ansible.rhaap and auth.providers.rhaap. |
Failed to send fetch data: fetch failed |
Same TLS issue affecting catalog sync API calls. Set checkSSL to false. |
Auth response is missing cookie nonce |
OAuth nonce cookie lost during redirect. Accept the AAP certificate in your browser first. |
Error retrieving organization details or job_templates |
Catalog sync failed. Check checkSSL and verify the AAP token has read permissions. |
No GitHub integration configured for host |
Missing integrations.github entry in configuration. |
No credentials for GitHub host |
Personal access token missing or GitHub App not installed for the organization. |
catalog processing error |
Invalid template YAML or unreachable catalog.locations URL. |
ansible content sync |
Sync progress and errors for ansibleGitContents or pahCollections providers. |
Access-Control-Allow-Origin or CORS policy (browser console) |
Request blocked because the origin is not in backend.cors.origin. Add the missing URL. |
invalid redirect_uri |
OAuth callback URL does not match the configured portal base URL or Git provider OAuth app settings. |
ENOTFOUND plugin-registry |
Tarball mode configured but plugin registry service not deployed. |