mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
vaultwarden won't connect to MySQL database server #1236
Reference in New Issue
Block a user
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 @skybro6789 on GitHub (Mar 19, 2022).
Vaultwarden won't connect and so won't start sadly. Idk what's wrong keeps repeating I don't know why, tried recreating the container and downloading the new image and no go. Can connect to the MySQL using 3rd party stuff, on both my personal computer and the server vaultwarden is on (using docker) all computers are in a local database (MySQL server is on a different system but connectable from any system within the network) unsure what to do, Please help!
[2022-03-19 00:35:59.183][vaultwarden::util][WARN] Can't connect to database, retrying: Failed to create pool.
[CAUSE] Error(
,
)
[2022-03-19 00:36:40.453][vaultwarden::util][WARN] Can't connect to database, retrying: Failed to create pool.
[CAUSE] Error(
,
)
@BlackDex commented on GitHub (Mar 19, 2022):
Please provide the docker or docker-compose config you use to start the container. Maybe this can help us to see what is wrong.
@skybro6789 commented on GitHub (Mar 19, 2022):
I removed the real user and password even though the IP is internal just incase 😅 I also forgot to mention that it worked when I first setup just fine for a while but randomly started having this issue
@BlackDex commented on GitHub (Mar 19, 2022):
I would suggest to check the logs of MySQL also, it could be that there are some errors there which can help.
It could be that vaultwarden is not allowed to connect because of the IP it is connecting from maybe.
Also try to set
LOG_LEVEL=DEBUGorTRACEmaybe that gives a bit more info (But i doubt it).