Invalid Token upon login. Loops back to Login page.

Hi,

We are having issues with our login constantly saying “Invalid token” and kicking us back to the login page. We see the dashboard for a seconds and then get routed back to login. We installed AWX in an Openshift cluster and everything seemed to go well. Any advice? Is the timezone significant?

We are able to navigate the api successfully with tokens and such.

Thanks,
Kevin

Hi Kevin,

Within the web console of your browser, do you see any indication that the POST to api/v2/authtoken failed? If not, then I would suggest clearing your cookies and doing a hard refresh of the UI. Additionally, you could try loading the UI in a private browser session. The timezone shouldn’t effect login either.

Regards,
Jared

I do not see any failures except to like the dashboard. Werid thing is sometimes it lets me in and I can click around for about a minute…then anything I click on does nothing and I am logged out shortly there after.

This may not apply to you, but I had this issue and it was because we access our AWX instance via proxy and needed to add ‘HTTP_X_FORWARDED_FOR’ to REMOTE_HOST_HEADERS

Reference - http://docs.ansible.com/ansible-tower/latest/html/administration/proxy-support.html

Best of luck,
Stephen

Kevin,
I am encountering the exact same issue in our OpenShift cluster. Were you able to find a resolution for this?

Thanks,
Brian