mirror of
https://github.com/glenndehaan/unifi-voucher-site.git
synced 2026-05-09 08:25:29 +02:00
[GH-ISSUE #32] Unhealthy Status #11
Labels
No labels
bug
enhancement
pull-request
question
question
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/unifi-voucher-site#11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tomcatcw1980 on GitHub (Apr 15, 2024).
Original GitHub issue: https://github.com/glenndehaan/unifi-voucher-site/issues/32
Originally assigned to: @glenndehaan on GitHub.
Hi Glenn,
the app works right after start. But then becomes unhealthy status after some minutes and must be restartet.
Can you check whats going on.
Thank you very much.
Greetings
Christian
@glenndehaan commented on GitHub (Apr 15, 2024):
Hi Christian,
Can you describe what you mean with unhealthy.
I have the latest version running I don't see any issues.
Maybe you can send the log output and/or some screenshots?
Kind regards,
Glenn
@tomcatcw1980 commented on GitHub (Apr 15, 2024):
Hi Glenn,
please find attached some screenshots and the logs from Portainer.
Greetings




_voucher-app-1_logs.txt
@glenndehaan commented on GitHub (Apr 15, 2024):
This is pretty weird. It almost seems like you have an internal network issue going on.
And the reason that I think that is the fact that the healthcheck is basically a static page that always resolves no matter if the app has an issue. So the unhealty state would lead me to believe something is blocking network connectivity inside the container.
Could you try to export a complete log from start to finish. Because i'm curious if the UniFi request fails due to an authentication error. Or it is unable to even connect to the host.
@glenndehaan commented on GitHub (Apr 15, 2024):
Maybe we could do a screenshare session in the evening if you have time? I would be available from 18:00 CEST
@glenndehaan commented on GitHub (Apr 15, 2024):
So I have an update from my side. I think I have figured out why the healthcheck is failing on your side. It seems like it tries to connect over IPv6 instaid of IPv4. I have a fix for that ready and hope to be able to release this within the next hour or so. I'm currently also working on a revamp for the UniFi login. However I would still need your complete log to verify that this lines up with what I think is going wrong.
@tomcatcw1980 commented on GitHub (Apr 15, 2024):
Hi Glenn, sounds good. Can you tell me how to extract the logs others than the logs I already uploaded.
Greetings
@glenndehaan commented on GitHub (Apr 15, 2024):
If you are using portainer then it's just a matter of increasing the 'Lines' variable until the export starts with the logo:


@glenndehaan commented on GitHub (Apr 15, 2024):
Hi Christian,
A new version is available for you to try
@tomcatcw1980 commented on GitHub (Apr 15, 2024):
Hi Glenn,
just installed the new version. It seems to work now and you were obviously right with your assumption.
Please find attached the entire log data.
Thank you and Greetings.
Christian
_voucher-app-1_logs.txt
@glenndehaan commented on GitHub (Apr 15, 2024):
Hi Christian,
Great to hear. Looking at the new log you provided it also seems the errors are fixed with the new re-authentication method.
It seems the token your UniFi controller supplies is even shorter then the 1 hour my controller supplies.
So I think this issue is solved for now. If you still see a problem please let me know.
Kind regards,
Glenn de Haan