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

[BUG] Uptime not accurate #121

Closed
RickoT opened this issue Apr 6, 2024 · 1 comment
Closed

[BUG] Uptime not accurate #121

RickoT opened this issue Apr 6, 2024 · 1 comment
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@RickoT
Copy link

RickoT commented Apr 6, 2024

Describe the bug
The uptime indicator is inaccurate if there is a redirect to a namespace (for example airsonic server shows "Target online but not accessible" because it returns a 403 before it redirects to the login screen)

To Reproduce
Steps to reproduce the behavior:

  1. Create an airsonic docker container
  2. configure for reverse proxy
  3. Create a reverse proxy to the docker container
  4. Watch monitor

Expected behavior
Check should follow redirects to make sure the site is up before indicating it is down

Host Environment (please complete the following information):

  • Arch: AMD64
  • Device: Docker
  • OS: Debian 12.5

Additional context
It would be nice to be able to adjust the health check to a specific URL if necessary

@RickoT RickoT added the bug Something isn't working label Apr 6, 2024
@tobychui
Copy link
Owner

403 Forbidden means not accessible, and if a redirect is needed, the back end should response with 3xx. If there is a redirection done with 403, it means it is done using HTML tags or JavaScript located in the body section of the requested page.

Zoraxy only request for header in uptime to reduce resources usage, so the uptime said "Target online but not accessible" is a very accurate description. The issue here is the back end server where you are reverse proxying (airsonic server I guess?) do not follow standards HTTP guideline on how to correctly handle redirects.

There is nothing I can do except telling you that these error message and color blocks were from this html file. If you don't like seeing orange blocks, you can change them to other colors.

onlineStatusCss = `color: #f38020;`;

@tobychui tobychui added the wontfix This will not be worked on label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants