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

event_stream fails with 401 causes delays #476

Open
Ataye opened this issue Oct 8, 2022 · 0 comments
Open

event_stream fails with 401 causes delays #476

Ataye opened this issue Oct 8, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@Ataye
Copy link

Ataye commented Oct 8, 2022

Describe the bug
After restarting the web app and after a little time lists fail to load for a period of time, and runners wont run. Basically, anything that calls back to the webserver stops until event_stream has failed after several retries. Screenshot below.

The ss shows a run, and shortly after if event_stream makes a call it will hang the call (failed), then i have to wait for event_stream to make several failed calls, usually about 45 seconds each until they stop. At this point i can run jobs and load lists just fine.

It's as if the event_stream does not take a valid token and pass this when making the call.

To Reproduce
Steps to reproduce the behavior:

  1. Load Alcali,
  2. Open dev tools Network tabm
  3. Switch between jobs list page and minions list page,
  4. Eventually a list will fail to load,
  5. Networks tab will show event_stream making longs calls after failing the list data call.

Expected behavior
It should not happen.

Screenshots

image

Desktop (please complete the following information):

  • OS: uBuntu server (fairly new), eveything else windows server 2019/2012 r2/windows 11
  • Browser: Brave v1.44.108
  • Version salt-master=3004, alcali=develop branch circa september '22

Additional context
If i trigger a replay from the Network tab it may fail with a 401. If i load the url into Postman and provide the token from a valid run or minions call it succeeds.

@Ataye Ataye added the bug Something isn't working label Oct 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant