[GH-ISSUE #32] Unhealthy Status #11

Closed
opened 2026-05-07 00:17:18 +02:00 by BreizhHardware · 10 comments

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

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
BreizhHardware 2026-05-07 00:17:18 +02:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@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

<!-- gh-comment-id:2055853148 --> @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
Author
Owner

@tomcatcw1980 commented on GitHub (Apr 15, 2024):

Hi Glenn,

please find attached some screenshots and the logs from Portainer.

Greetings
Screenshot 2024-04-15 093640
Screenshot 2024-04-15 093745
Screenshot 2024-04-15 095541
Screenshot 2024-04-15 095446
_voucher-app-1_logs.txt

<!-- gh-comment-id:2055906584 --> @tomcatcw1980 commented on GitHub (Apr 15, 2024): Hi Glenn, please find attached some screenshots and the logs from Portainer. Greetings ![Screenshot 2024-04-15 093640](https://github.com/glenndehaan/unifi-voucher-site/assets/58996205/01206fc0-c28c-499e-ab55-d2004b0458c6) ![Screenshot 2024-04-15 093745](https://github.com/glenndehaan/unifi-voucher-site/assets/58996205/762a1df7-d3de-4088-88a9-19165174af0f) ![Screenshot 2024-04-15 095541](https://github.com/glenndehaan/unifi-voucher-site/assets/58996205/22de9d87-653a-45b1-874e-9170f9fe7fc1) ![Screenshot 2024-04-15 095446](https://github.com/glenndehaan/unifi-voucher-site/assets/58996205/3e20fe42-4e50-4856-bce0-af289e5b8fa2) [_voucher-app-1_logs.txt](https://github.com/glenndehaan/unifi-voucher-site/files/14975825/_voucher-app-1_logs.txt)
Author
Owner

@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.

<!-- gh-comment-id:2056151018 --> @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.
Author
Owner

@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

<!-- gh-comment-id:2056232745 --> @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
Author
Owner

@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.

<!-- gh-comment-id:2057176706 --> @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.
Author
Owner

@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

<!-- gh-comment-id:2057196632 --> @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
Author
Owner

@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:
afbeelding
afbeelding

<!-- gh-comment-id:2057201926 --> @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: <img width="922" alt="afbeelding" src="https://github.com/glenndehaan/unifi-voucher-site/assets/7496187/61f61e0e-67e9-4816-97a9-9abaa021164b"> <img width="890" alt="afbeelding" src="https://github.com/glenndehaan/unifi-voucher-site/assets/7496187/609c666a-353c-42bd-8cc9-21859f38e12f">
Author
Owner

@glenndehaan commented on GitHub (Apr 15, 2024):

Hi Christian,

A new version is available for you to try

<!-- gh-comment-id:2057428830 --> @glenndehaan commented on GitHub (Apr 15, 2024): Hi Christian, A new version is available for you to try
Author
Owner

@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

Screenshot 2024-04-15 204830

_voucher-app-1_logs.txt

<!-- gh-comment-id:2057583479 --> @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 ![Screenshot 2024-04-15 204830](https://github.com/glenndehaan/unifi-voucher-site/assets/58996205/837cb10e-f488-457a-a62a-52b8b9a8ee10) [_voucher-app-1_logs.txt](https://github.com/glenndehaan/unifi-voucher-site/files/14983160/_voucher-app-1_logs.txt)
Author
Owner

@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

<!-- gh-comment-id:2057618413 --> @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
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/unifi-voucher-site#11
No description provided.