Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When upgrading to ui_next, the browser cookies need to be cleared to access the /settings/ page #8861

Closed
Lobout opened this issue Dec 11, 2020 · 9 comments

Comments

@Lobout
Copy link

Lobout commented Dec 11, 2020

ISSUE TYPE
  • Bug Report
SUMMARY

after install the settings section works, but then stops working with an error with no data in it

ENVIRONMENT
  • AWX version: 16.0
  • AWX install method: docker on linux
  • Ansible version: 2.9.15
  • Operating System: RHEL 7
  • Web Browser: Opera/Firefox/Chromium Edge
STEPS TO REPRODUCE

upgrade/install server, go to settings section, navigate away wait some time and try to navigate back

EXPECTED RESULTS

expect to see the settings for the application

ACTUAL RESULTS

Something went wrong...
There was an error loading this content. Please reload the page. Back to Dashboard.

ADDITIONAL INFORMATION
@unlikelyzero
Copy link

@Lobout , how long were you away from the settings page? It's possible that you experienced a timeout / session expiration.

@Lobout
Copy link
Author

Lobout commented Dec 11, 2020

It varied in my quick tests. anywhere from a couple minutes to an hour. I even closed my browser, logged back in and the settings page gave the same error. I restarted the containers and logged in again and it comes back. but it then stops working again.

@Lobout
Copy link
Author

Lobout commented Dec 11, 2020

if there are any logs i can collect to provide you please let me know

@Lobout
Copy link
Author

Lobout commented Dec 11, 2020

so If i clear the cache in my browser this fixes the issue. It seems that when the cache becomes stale the issue appears

@unlikelyzero unlikelyzero changed the title awx 16 settings page When upgrading to ui_next, the browser cookies need to be cleared to access the /settings/ page Dec 11, 2020
@unlikelyzero
Copy link

@Lobout the only important logs would have been the console warnings/errors which must have been cleared already. I'm glad that everything is working now

@Lobout
Copy link
Author

Lobout commented Dec 11, 2020

I have to keep clearing my browser cache when going to the settings page. This is a bit of a pain, but workable until there is a fix.

@jakemcdermott
Copy link
Contributor

jakemcdermott commented Dec 11, 2020

Yep, this looks like an unhandled session timeout. Thanks for letting us know @Lobout!

We'll be merging code into devel to properly handle this soon, but it hasn't landed yet. You'll very likely see this addressed in the next awx release.

see: #4205

Closing this issue for now as we're tracking the work in the issue above.

@Avi0
Copy link

Avi0 commented Dec 13, 2020

Settings page does not work for me regardless of cookies, cache, anything else. Does not work even in a private browser session. Same error, "There was an error loading this content. Please reload the page. Back to Dashboard.".

Update: settings page works only intermittently. Console shows error:

2.a3befcbb.chunk.js:sourcemap:2 OPTIONS https://[redacted]/api/v2/settings/all/ net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)

@unlikelyzero unlikelyzero reopened this Dec 13, 2020
@unlikelyzero
Copy link

@Avi0 that is a net new issue. Please check our issue tracker to see if it may be an old bug like #1855 . If it's not, please file a new issue and we'll take a look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants