Unable to write to log file. /data/log - v1.28.0-alpine #873

Closed
opened 2025-10-09 16:55:10 +03:00 by OVERLORD · 4 comments
Owner

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

vaultwarden-app | Error loading config:
vaultwarden-app | Unable to write to log file. /data/log

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".

  • PostgreSQL version: 15.2

Steps to reproduce

docker compose down
docker compose pull
docker compose up -d

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.

Originally created by @Pamalosebi on GitHub. <!-- # ### NOTE: Please update to the latest version of vaultwarden before reporting an issue! This saves you and us a lot of time and troubleshooting. See: * https://github.com/dani-garcia/vaultwarden/issues/1180 * https://github.com/dani-garcia/vaultwarden/wiki/Updating-the-vaultwarden-image # ### --> <!-- Please fill out the following template to make solving your problem easier and faster for us. This is only a guideline. If you think that parts are unnecessary for your issue, feel free to remove them. Remember to hide/redact personal or confidential information, such as passwords, IP addresses, and DNS names as appropriate. --> ### Subject of the issue <!-- Describe your issue here. --> When upgrading to v1.28.0-alpine from v1.27.0-alpine the container doesn't start up. It fails with a simple > vaultwarden-app | Error loading config: > vaultwarden-app | Unable to write to log file. /data/log 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". * PostgreSQL version: 15.2 ### Steps to reproduce <!-- Tell us how to reproduce this issue. What parameters did you set (differently from the defaults) and how did you start vaultwarden? --> > docker compose down > docker compose pull > docker compose up -d 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 <!-- Tell us what you expected to happen --> 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 <!-- Tell us what actually happened --> It fails to start up. Apparantly caused by a non accessible /data/log.
Author
Owner

@Pamalosebi commented on GitHub:

Well... I guess that's not valid anymore:

## Logging to file
LOG_FILE=/data/log

Guess it has to be specified from now on:

## Logging to file
LOG_FILE=/data/log/my.log
@Pamalosebi commented on GitHub: Well... I guess that's not valid anymore: ``` ## Logging to file LOG_FILE=/data/log ``` Guess it has to be specified from now on: ``` ## Logging to file LOG_FILE=/data/log/my.log ```
Author
Owner

@BlackDex commented on GitHub:

It isn't needed. You can just unset that variable if you don't want a log file

@BlackDex commented on GitHub: It isn't needed. You can just unset that variable if you don't want a log file
Author
Owner

@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.

@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.
Author
Owner

@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

@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`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#873