-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker container v1.25.1 persistent check with volumes fails to start #2622
Comments
Yeah I am experiencing the same issue. |
Which version of docker/docker-compose are you using? |
Docker: 20.10.17 docker volume inspect vaultwarden_data And then I see the same error in my logs. |
Looks like this happens when using a |
I'm looking into a way to still being able to detect this in a different way. |
NOTE: This is a quick workaround to solve this, and it'll be recognized as persistent storage by the container. It maps 'persistent data' onto your disk. Which is, in fact, the same thing that the main Bitwarden docker instances want you to do for the same reasons. Create a local directory for your vaultwarden data in the same directory as your docker-compose file. Then map it in volumes with What you've done is created an ephemeral volume in Docker's storage that can be deleted by Docker with the right deletion arguments to So your volumes should look like this under the container: services:
vaultwarden:
...
volumes:
- './vaultwarden_data:/data
... ... where (This plagued me on a few containers before, so i've learned how Docker talks and bind-mounts to fix this issue) |
While that would indeed solve it, it would cause there current data to be lost/stuck in the volume and not on the bind mounted directory. I'm in the progress of detecting an un-named volume to allow docker/podman volumes unless someone forgot to bind-mount or create a volume. |
The previous persistent folder check worked by checking if a file exists. If you used a bind-mount, then this file is not there. But when using a docker/podman volume those files are copied, and caused the container to not start. This change checks the `/proc/self/mountinfo` for a specific patern to see if the data folder is persistent or not. Fixes dani-garcia#2622
If you can test the current |
@BlackDex Tested with Version 1.25.1-331f6c08 and all seems fine now (without |
I am still having this same issue using the testing container. The issue started for me after an update in mid to late July. Any other thoughts on things I should try to fix? |
Maybe the same as this #2656 |
I was able to get it working, but think I had to do more than #2656. I had to do three things:
I am not sure if numbers 1 and 3 were in fact addressing issue #2656. |
There are no checks done on the naming, you could have even named it It is strange, but good that you were able to solve it. |
Updated vaultwarden settings to skip 80 port and use testing branch instead of latest branch to workaround this issue : dani-garcia/vaultwarden#2622
Subject of the issue
On starting of the latest (1.25.1) version, it will error stating there is no .env and no persistent storage although configured and working in 1.25.0
Deployment environment
Install method: Docker
Clients used: Application doesn't start at all so presume all clients
Reverse proxy and version: N/A
MySQL/MariaDB or PostgreSQL version: N/A
Other relevant details:
Steps to reproduce
Run the below docker compose; (I have every variable populated but removed for this issue raise)
Expected behaviour
To launch the application and be accessible via it's port or the remapped port if provided i.e. 50003:80 in this case
Actual behaviour
Application does not start and reviewing the logs, the below is returned;
Troubleshooting data
The text was updated successfully, but these errors were encountered: