mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 09:46:00 +03:00
[GH-ISSUE #795] Unhealthy container #552
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#552
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 @STaRDoGG on GitHub (Jan 2, 2020).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/795
#713 # Subject of the issue
My container is showing as "Unhealthy"; restarting the container seems to have no effect, as it will always still show as unhealthy.
Your environment
Steps to reproduce
Just with the above compose code, and once created, just the standard start/stop commands.
Expected behaviour
A healthy container. ;P
Actual behaviour
An unhealthy container ;P
Relevant logs
Looking at the main log it shows nothing of interest related to errors, etc. If there's another log to view that may provide better info, lemme know and I'll post it.
@mprasil commented on GitHub (Jan 2, 2020):
That sounds like health check failing for whatever reason or maybe container being reported as unhealthy before first health check returning success.
Can you docker exec health check manually and see if that works?
@STaRDoGG commented on GitHub (Jan 3, 2020):
Sorry, I'm still learning my way around Docker and not familiar with manually running a health check; can you save me a bit of time digging up the command to do it?
@mprasil commented on GitHub (Jan 3, 2020):
Ah apologies. So you can
docker exec <container name> <command>commands inside container:You can also try running
curldirectly for some extra verbosity:@STaRDoGG commented on GitHub (Jan 4, 2020):
Thanks @mprasil, I appreciate it.
Trying to run:
Just gives me:
and:
I should mention that I'm running Docker Desktop on Win 10, in case it helps.
@mprasil commented on GitHub (Jan 14, 2020):
Hmm, looks like for some reason the
curlfails to run in windows docker. I currently have no way of testing how that behaves, but as a quick workaround, you can disable health check.For your docker compose:
@STaRDoGG commented on GitHub (Jan 14, 2020):
@mprasil Thanks, I'm curious as to actually figuring out the issue rather than hiding it. =)
I managed to mess around a bit and get curl to work from another machine on the LAN, calling BW on the port I assigned to the container, and here's the results if it gives any insight?
If I try to run
healthcheck.shfrom within the container, I just get (not sure I'm doing that right?):If I go directly to
http://192.168.0.194:9028/aliveI get:Another strange thing; when it's not permanently shown as "unhealthy", it also often shows itself locked as "starting".
Any ideas?
@mprasil commented on GitHub (Jan 16, 2020):
I think the healthcheck needs to be executed with the full path:
If you want to test with
curlyou can just exec inside the container:And then you can try out curl:
You can play around inside and exit with
exit.@mprasil commented on GitHub (Jan 16, 2020):
It could be restarted due to failing healthcheck? There's a delay before the check is executed and it could be showing as starting? Just guessing.
@dani-garcia commented on GitHub (May 13, 2020):
Closed due to inactivity.
@Sparkenstein commented on GitHub (May 15, 2020):
I am having the same issue,
docker psreturnsrunning
curl -v http://localhost:80/aliveinside container givesrunning
./healthcheck.shinside container just stuck, not printing anything for a long timeso I ran
sh -x healthcheck.shand it's stopping atIs restarting the container a solution? my site has stopped responding at all let me know what should be done here I am not much experienced with docker
@Sparkenstein commented on GitHub (May 15, 2020):
I believe the site is up as of now, I ran
docker restart bitwardenand it looks healthy. Let me know if you need any inputs from me if or when it goes down next time. I will make sure to capture it@jjlin commented on GitHub (May 15, 2020):
@Sparkenstein See https://github.com/dani-garcia/bitwarden_rs/issues/950#issuecomment-612346331