[GH-ISSUE #732] Missing libmariadb error on startup with latest commit #493

Closed
opened 2026-03-03 01:29:53 +03:00 by kerem · 3 comments
Owner

Originally created by @mpetrole on GitHub (Nov 17, 2019).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/732

I was running an older version of Bitwarden_rs from around 6 months ago but I wanted to fix Safari integration so I decided to update to the latest version. I destroyed my existing containers and then pruned all images. I pulled the latest commit and built it following the wiki with the mysql build option (docker build -t bitwarden_rs --build-arg DB=mysql .). After finishing the build, I started it with docker-compose, using the same docker-compose file that I was running before. After startup, Bitwarden fails to load and I see /bitwarden_rs: error while loading shared libraries: libmariadb.so.3: cannot open shared object file: No such file or directory in the logs.

I did copy over my docker-compose file, Caddyfile, and bw-data folder contents from my old installation, but I checked and it didn't seem like there was any reason for any of those to cause this kind of error.

My environment is in AWS, I have an EC2 instance running the docker containers and I'm using bitwarden and caddy, then I have a MySQL RDS instance for the DB.

Thanks in advance for any help!

Originally created by @mpetrole on GitHub (Nov 17, 2019). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/732 I was running an older version of Bitwarden_rs from around 6 months ago but I wanted to fix Safari integration so I decided to update to the latest version. I destroyed my existing containers and then pruned all images. I pulled the latest commit and built it following the wiki with the mysql build option (docker build -t bitwarden_rs --build-arg DB=mysql .). After finishing the build, I started it with docker-compose, using the same docker-compose file that I was running before. After startup, Bitwarden fails to load and I see `/bitwarden_rs: error while loading shared libraries: libmariadb.so.3: cannot open shared object file: No such file or directory` in the logs. I did copy over my docker-compose file, Caddyfile, and bw-data folder contents from my old installation, but I checked and it didn't seem like there was any reason for any of those to cause this kind of error. My environment is in AWS, I have an EC2 instance running the docker containers and I'm using bitwarden and caddy, then I have a MySQL RDS instance for the DB. Thanks in advance for any help!
kerem closed this issue 2026-03-03 01:29:53 +03:00
Author
Owner

@dani-garcia commented on GitHub (Nov 20, 2019):

If you want to use a different database, you need to use the separate images, the main dockerfile is only for SQLite, because it's missing the correct dependencies. Try using something like:

docker build -t bitwarden_rs -f docker/amd64/mysql/Dockerfile .
<!-- gh-comment-id:556222121 --> @dani-garcia commented on GitHub (Nov 20, 2019): If you want to use a different database, you need to use the separate images, the main dockerfile is only for SQLite, because it's missing the correct dependencies. Try using something like: ``` docker build -t bitwarden_rs -f docker/amd64/mysql/Dockerfile . ```
Author
Owner

@mpetrole commented on GitHub (Nov 28, 2019):

Sorry for the late response, but that worked, thanks!

<!-- gh-comment-id:559591444 --> @mpetrole commented on GitHub (Nov 28, 2019): Sorry for the late response, but that worked, thanks!
Author
Owner

@ToeiRei commented on GitHub (Mar 14, 2020):

Wouldn't that be something for the documentation?

<!-- gh-comment-id:599144910 --> @ToeiRei commented on GitHub (Mar 14, 2020): Wouldn't that be something for the documentation?
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/vaultwarden#493
No description provided.