mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-10 17:23:04 +03:00
Unable to write to log file. /data/log - v1.28.0-alpine #873
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 @Pamalosebi on GitHub.
Subject of the issue
When upgrading to v1.28.0-alpine from v1.27.0-alpine the container doesn't start up.
It fails with a simple
I am using Docker compose and didn't change anything before upgrading.
I tested "chmod 777 -R /data/log", but that didn't help.
The Error disappears forcing version 1.27.0 -> "image: vaultwarden/server:1.27.0-alpine".
Steps to reproduce
Usually I just use "image: vaultwarden/server:alpine". Since that failed now I changed it to "1.27.0-alpine".
Which works again.
Expected behaviour
Since I use Docker compose and I am just switching images without modifying anything in the env. I would say it should just run.
Actual behaviour
It fails to start up. Apparantly caused by a non accessible /data/log.
@Pamalosebi commented on GitHub:
Well... I guess that's not valid anymore:
Guess it has to be specified from now on:
@BlackDex commented on GitHub:
It isn't needed. You can just unset that variable if you don't want a log file
@Pamalosebi commented on GitHub:
I always just used the docker console logs. They were enough for me.
I just didn't know I needed to specify a proper file from now on. But it's fine to have one.
@BlackDex commented on GitHub:
I would be surprised if the previous would have worked at all if that was a directory before. We never appended a filename in the past. If, it would have logged to a file called
log