mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-01 11:19:52 +03:00
How to update the bitwardenrs/server-mysql? #405
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 @BobWs on GitHub (Sep 6, 2019).
Hi,
How to update the bitwardenrs/server-myqsl? For the regulair server I used this for updating the server, but for the mysql version it isn't working?
Can you please clarify the procedure for me. There isn't much information about the myslq version. Is it stable to use?
# Pull the latest versiondocker pull bitwardenrs/server:latest# Stop and remove the old containerdocker stop bitwardendocker rm bitwarden# Start new container with the data mounteddocker run -d --name bitwarden -v /bw-data/:/data/ -p 80:80 bitwardenrs/server:latest@mprasil commented on GitHub (Sep 6, 2019):
Essentially the procedure in both cases is to pull latest version, stop and remove old container and start new container with the same parameters as you used for the old one.
There isn't anything specific for the mysql version.
@BobWs commented on GitHub (Sep 7, 2019):
Well thats what I'm doing and after updating the containers starts-up and when try to login I get an error that user and password don't match. So then I remove the container manually again and configure it manually with the same parameters and then I can login normally without any problems. So I don't now why it won't work with the script.
docker pull bitwardenrs/server-mysql:latestdocker stop bitwarden-mysqldocker rm bitwarden-mysqldocker run -d --name bitwarden-mysql \-v /volume1/docker/bitwarden/data/:/data/ \-v /volume1/docker/bitwarden/ssl/:/ssl/ \-e ROCKET_TLS='{certs="/ssl/cert.pem",key="/ssl/privkey.pem"}' \-e DATABASE_URL='mysql://bitwarden:<password>@mysql/bitwarden' \-e ENABLE_DB_WAL='false' \-e RUST_BACKTRACE='1' \--link mariadb:mysql \-p 8443:80 bitwardenrs/server-mysql:latestFor information I used the same method to update the non mysql version and it was working just fine.
@fbartels commented on GitHub (Sep 7, 2019):
Hi @BobWs,
"the script" being what you posted in your last reply?
@BobWs commented on GitHub (Sep 7, 2019):
Hi @fbartels,
Yes, What I posted in the reply is what I'm using in a script, which runs as a task on my Synology Nas to update Bitwarden Server.
@BobWs commented on GitHub (Sep 8, 2019):
Sorry my mistake I made a typo in writing the script 😏 Everything works fine now!
I going to close this issue.