Hello, I have been running self-hosted Bitwarden for about a year and have had some issues recently. Learned quite a bit about troubleshooting thanks to this sub, Github and Bitwarden community site. I do have a complete export from the database and have decided to start fresh. However I cannot create the first user. Get an error:
An error has occurred.An unhandled server error has occurred.
Looking at the web container log:
2024-02-11 14:58:02,260 INFO success: admin entered RUNNING state, process has stayed up for > than 15 seconds (startsecs)
2024-02-11 14:58:10,570 INFO exited: admin (terminated by SIGABRT (core dumped); not expected)
Looking at the database container log:
2024-02-11 9:58:58 110 [Warning] Aborted connection 110 to db: 'unconnected' user: 'unauthenticated' host: '172.20.0.3' (This connection closed normally without authentication)
And finally the admin.log:
Unhandled exception. MySqlConnector.MySqlException (0x80004005): Host '172.20.0.3' is not allowed to connect to this MariaDB server
So on a clean install (all persistent files deleted) the app server cannot authenticate to the database. To conform I tried manually connection which also fails:
root@bitwarden-db:/# mariadb -u bitwardenuser bitwarden_vault
ERROR 1045 (28000): Access denied for user 'bitwardenuser'@'127.0.0.1' (using password: YES)
I have tried current back to 2023.10.3 with the same error. Although on current I get a .net version error which is apparently a known issue. As this is a new install I suspect there is something wrong with my build script so pasting it below for review. Only lines I recall changing recently are the healthchecks and the bitwarden image. Thanks for your help!
type or paste code here