-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Error: Timeout exceeded on Silences page #873
Comments
@damomurf Have you tried deleting your browser cache? Does the browsers JS console or network tab say anything? Do you run Alertmanager behind a reversed proxy? |
@mxinden No reverse proxy in play - direct to port 9093 for Alertmanager running as an Ubuntu service. The JS console shows nothing and the network info says that the request to silences?silenced=false returns a 200 but shows no content. If I request the full silences?silcenced=false url using curl from a terminal, it seems to return the silence data with no issue, but we do have a reasonable about of silence data so it takes a few seconds to return. I also tried in a clean browser, after deleting cache and cookie history, but same issue. There seems to be a problem in that the silences request actually returns a 200, but both Chrome and Safari are erroring on the returned data (and refuse to display it). A successful silences request seems to return 126.88 KB of data. A failing one only returns 35.68 KB. |
@damomurf Can you tell us which order of magnitude the amount of your silences is, so that we can try to reproduce it? |
There are 234 silences in total, with 2 currently active. As I edited above, a successful silences API request seems to return 126.88 KB of data. A failing one only returns 35.68 KB. |
@damomurf I have created 10000 silences in an Alertmanager instance and the UI is still working just fine. But I remember seeing I am guessing you are running on a Mac. Both @stuartnelson3 and @w0rm do so too. Has one of you ever seen this issue? |
The fix should be rather easy, I don't think we need to restrict the timeout in the UI: https://github.com/prometheus/alertmanager/blob/master/ui/app/src/Utils/Api.elm#L84 we should really set it to |
fyi: this issue does indeed pop up on slow (or just global >200ms) connections. It was reproducible on our network with 100% probability during a sudden latency hike on an intercontinental link. |
@mxinden if you need a way to reproduce this, just throttle the network in the Chrome DevTools. |
Aha. Of course - I'm in Australia hitting AlertManager running in the US with standard latency ~250+ms or so, so this makes a whole lot of sense. I'll try a custom build with the change above and see how I go. |
I've just made the recommended change on a build from master but the problem still exists:
I've tried cleaning up anything I possibly could incase the .elm stuff is being cached somewhere, but no go. I even tried altering defaultTimeout to 100 seconds instead of 1, but it almost seems like it doesn't have any effect. |
@damomurf have you done all steps: 1. Compiled the Elm code 2. Generated a bindata.go ( |
@w0rm - I simply invoked "make build" as documented in the repo README.md. Is there another step to ensure the compilation (and importantly force re-compilation) of the Elm code? |
This bug hit me too. I've tried compiling it with the fix in place and I can confirm it works. I'm not making a PR as the fix implies modifying a pseudo-binary file (bindata.go). I think it's better if a trusted collaborator of the project does that instead of a random Internet guy. :-) This bug makes alertmanager ui unusable if the user is far from the server, so it would be really nice if we can have 0.7.2 with this fix. Thanks! |
Fixed in #890 |
As part of dealing with #844 I've switching to v0.7.1 and almost every time I click on the "Silences" page, I receive a message in the selected Pending, Active or Expired tabs below of "Error: Timeout Exceeded".
I've enabled debug but can't see anything relevant in the Alertmanager logs.
The text was updated successfully, but these errors were encountered: