Replies: 1 comment
-
A friend gave me another instruction to add in the service file. ReadWritePaths=/var/log/vaultwarden.log. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have an issue with the latest version of vaultwarden. I installed it on LXD container without problems but when i keep the LOG FILE parameter in the .env file, it's impossible to start the service. I need to comment this line to be able to start vaultwarden.
Here is the error in the service log
`
root@VAULTWARDEN:/var/log# systemctl status vaultwarden
Loaded: loaded (/etc/systemd/system/vaultwarden.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2023-05-22 15:32:00 UTC; 4s ago
Docs: https://github.com/dani-garcia/vaultwarden
Process: 785 ExecStart=/opt/vaultwarden/vaultwarden (code=exited, status=12)
Main PID: 785 (code=exited, status=12)
CPU: 8ms
May 22 15:32:00 VAULTWARDEN vaultwarden[785]: | https://github.com/dani-garcia/vaultwarden/discussions or |
May 22 15:32:00 VAULTWARDEN vaultwarden[785]: | https://vaultwarden.discourse.group/ |
May 22 15:32:00 VAULTWARDEN vaultwarden[785]: | Report suspected bugs/issues in the software itself at: |
May 22 15:32:00 VAULTWARDEN vaultwarden[785]: | https://github.com/dani-garcia/vaultwarden/issues/new |
May 22 15:32:00 VAULTWARDEN vaultwarden[785]: --------------------------------------------------------------------/
May 22 15:32:00 VAULTWARDEN vaultwarden[785]: [INFO] Using environment file
.env
for configuration.May 22 15:32:00 VAULTWARDEN vaultwarden[785]: Error loading config:
May 22 15:32:00 VAULTWARDEN vaultwarden[785]: Unable to write to log file. /var/log/vaultwarden.log
May 22 15:32:00 VAULTWARDEN systemd[1]: vaultwarden.service: Main process exited, code=exited, status=12/n/a
May 22 15:32:00 VAULTWARDEN systemd[1]: vaultwarden.service: Failed with result 'exit-code'.
root@VAULTWARDEN:/var/log#
`
i tried to create manually vaultwarden.log in /var/log and set the good permissions but it doesn't fix it. Actually i comment this line in .env LOG_FILE=/var/log/vaultwarden.log to launch the service. If anyone had already this problem please tell me how to bypass. Thanks :)
Beta Was this translation helpful? Give feedback.
All reactions