-
Notifications
You must be signed in to change notification settings - Fork 27
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
Fails if TELEGRAM_STAT is not set #30
Comments
Can you send us the logs please? |
Hi @MarcoBuster, which logs? When the container starts, the status is The container logs only have a single line with the command for starting the API server, nothing more. |
@noplanman set TELEGRAM_VERBOSITY=4 then the logs will appear. Without them we can't understand the problem. |
@MarcoBuster Isn't the health check like a curl request to the stats port? It simply says "curl -f http://localhost:8082/ || exit 1" Of cause that'll fail if there's no :8082 port serving the stats. |
@luckydonald *logs |
@luckydonald the ping command requires a valid token |
@luckydonald Wait, we can't use a ping command as that is bound to a bot so we would need to add a bot token? |
@luckydonald So to fix it properly, we should either so if the ping port without a token (unauthorized) as well. |
@luckydonald Theoretically ping doesn't require a token, we could move the ping command out of there, but it is more confusing with the URL layout then. |
...or we could just disable the health check if you don't have TELEGRAM_STAT set |
@MarcoBuster is that even possible? |
@giuseppeM99 I don't know, we should investigate |
@MarcoBuster i'll fix it asap |
Okey, just to give my two cents, maybe we should actually look into creating a real |
For me, using docker, the container fails if the TELEGRAM_STAT variable isn't set.
Maybe because the healthcheck uses it but it's not available?
The text was updated successfully, but these errors were encountered: