glance icon indicating copy to clipboard operation
glance copied to clipboard

Getting Timed Out response on Monitor

Open MFDoombino opened this issue 11 months ago • 6 comments

Using the Monitor package I am all of the sudden getting Timed out across all my URL's. I read from another issue that there is a hidden feature that will slowly increase the amount of time from failed requests before it actually tries again. After waiting over 8 hours they all worked again and returned a ping but after a few refreshes of the page with cache set to something small like 2s they are all timed out again and not coming back.

Image

MFDoombino avatar Jan 19 '25 18:01 MFDoombino

Since the cache is so low if I keep refreshing the page and it re-requests every 2 seconds. Every refresh the links start to report back with their time in ms. After about 5 refreshes everything is properly reporting but then in about 10-20 minutes when I load the page again it will all revert to Timed out.

MFDoombino avatar Jan 20 '25 19:01 MFDoombino

I have this issue as well. I've noticed this happens with sites that can take a while to respond.

The timeout for each check is hard-coded to 3 seconds:

https://github.com/glanceapp/glance/blob/0ce45e32aa48f4d277bd7c00af56f5324c7377f2/internal/glance/widget-monitor.go#L144

Maybe this default needs to be increased? Or maybe it could be included as a widget or site property?

yeenbean avatar Feb 17 '25 00:02 yeenbean

I second this. Once I had more than 20 services to monitor I started getting issues.

TechHutTV avatar Feb 23 '25 04:02 TechHutTV

Having this as well. I tried using:

alt-status-codes:
  - 401
  - 403

But this did not fix the issue.

omiinaya avatar Mar 10 '25 15:03 omiinaya

Could you have a look at this potential solution and see if it fixes the issue for any of you?

https://github.com/glanceapp/glance/issues/290#issuecomment-2667828295

svilenmarkov avatar Mar 10 '25 17:03 svilenmarkov

Could you have a look at this potential solution and see if it fixes the issue for any of you?

#290 (comment)

wait this actually fixed my dashboard AND another issue i had been trying to nail for weeks.

thank you so much!

omiinaya avatar Mar 10 '25 17:03 omiinaya