mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
Docker Container doesn't start after update to 1.25.2 #1338
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 @esackbauer on GitHub (Jul 28, 2022).
Subject of the issue
Deployment environment
Install method:
Docker / Portainer 2.14
Clients used:
Reverse proxy and version:
MySQL/MariaDB or PostgreSQL version:
Other relevant details:
Steps to reproduce
Starting the container after update to VaultWarden 1.25.2 it says there is no persistent volume. But the volume is actually mounted:
[INFO] No .env file found.
[DEPRECATED]:
SMTP_SSLorSMTP_EXPLICIT_TLSis set. Please useSMTP_SECURITYinstead.[2022-07-28 08:17:09.244][vaultwarden][ERROR] No persistent volume!
########################################################################################
It looks like you did not configure a persistent volume!
This will result in permanent data loss when the container is removed or updated!
If you really want to use volatile storage set
I_REALLY_WANT_VOLATILE_STORAGE=true#######################################################################################
Expected behaviour
Actual behaviour
Troubleshooting data
Contents of dockers volume:
}root@app03:/var/lib/docker/volumes/1d24e6fe4517c3abe615941fdc2ec436a14900fed768d6ebdb3397a1cc0a1926/_data# ls -la
total 2808
drwxr-xr-x 6 root root 4096 Jul 17 13:22 .
drwxr-xr-x 3 root root 4096 Jan 30 2020 ..
drwxr-xr-x 5 root root 4096 Feb 10 2020 attachments
-rw-r--r-- 1 root root 109 Jan 31 2020 config.json
-rw-r--r-- 1 root root 1392640 Jul 17 13:22 db.sqlite3
-rw-r--r-- 1 root root 32768 Jul 28 09:43 db.sqlite3-shm
-rw-r--r-- 1 root root 1376112 Jul 28 09:43 db.sqlite3-wal
drwxr-xr-x 2 root root 20480 Jul 28 09:37 icon_cache
-rw------- 1 root root 1192 Jan 30 2020 rsa_key.der
-rw------- 1 root root 1679 Jan 30 2020 rsa_key.pem
-rw-r--r-- 1 root root 270 Jan 30 2020 rsa_key.pub.der
-rw-r--r-- 1 root root 451 Jun 28 2021 rsa_key.pub.pem
drwxr-xr-x 2 root root 4096 May 24 18:50 sends
drwxr-xr-x 2 root root 4096 May 24 18:50 tmp
@esackbauer commented on GitHub (Jul 28, 2022):
Switching back to previous image version 1.25.1 and the container starts and works.
@BlackDex commented on GitHub (Jul 28, 2022):
Yes, but it looks like that isn't a persistent volume.
A persistent volume has a different path.
What that means, is that if you now remove this container, docker will also remove that volume, since it is not persistent.
If you would create a volume, and link that then docker will not remove that volume, because it is defined separately.
So, either create a volume or bind-mount a host directory and copy all those files, or life on the edge and configure that variable.
@esackbauer commented on GitHub (Jul 28, 2022):
It is a persistent volume. It is not removed when I remove the container. I am using Portainer, so it might look like its not a persistent volume, but it is.
When I downgraded to version 1.25.1, all data was instantly available, with that same volume.
@BlackDex commented on GitHub (Jul 28, 2022):
I'm afraid it isn't an actual persistent volume.
A persistent volume is configured like this:

If i remove a non-persistent vaultwared, i do receive this message:

While portainer seems to give you an option, and also seems to have it disabled by default, it technically is a non-persistent volume. Because, if i enable that option it removes that volume of the non-persistent container. If i enable that same option on the persistent container, the volume is still there.
So, this is not a persistent volume, but an ephemeral/non-persistent one.