Question: Logging #2046

Closed
opened 2025-10-09 17:43:05 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @VirtualInterpreter on GitHub.

Hi there, I'm having a bit of trouble getting logging to work, I've read the related wiki section on Logging

I'm using the command:

docker run -d --name bitwarden \
-v /bw-data/:/data/ \
-p 192.168.0.254:8001:80 \
-e LOG_LEVEL=debug \
-e LOG_FILE=/bw-data/bitwarden.log \
-e ROCKET_CLI_COLORS=off \
-e ROCKET_LOG=debug bitwarden_rs_rasp:arm

Where bitwarden_rs_rasp:arm has been built from master yesterday via the command:
docker build -t bitwarden_rs_rasp --build-arg DB=sqlite .

Currently, I'm running docker as root and the folder /bw-data/ is owned by root.
I can't see a log file being generated but I do see logs in docker logs bitwarden when I interact with the web gui

Would anyone be able to advise me on what I'm doing wrong?

Originally created by @VirtualInterpreter on GitHub. Hi there, I'm having a bit of trouble getting logging to work, I've read the related wiki section on Logging I'm using the command: ``` docker run -d --name bitwarden \ -v /bw-data/:/data/ \ -p 192.168.0.254:8001:80 \ -e LOG_LEVEL=debug \ -e LOG_FILE=/bw-data/bitwarden.log \ -e ROCKET_CLI_COLORS=off \ -e ROCKET_LOG=debug bitwarden_rs_rasp:arm ``` Where `bitwarden_rs_rasp:arm` has been built from master yesterday via the command: `docker build -t bitwarden_rs_rasp --build-arg DB=sqlite .` Currently, I'm running docker as root and the folder /bw-data/ is owned by root. I can't see a log file being generated but I do see logs in `docker logs bitwarden` when I interact with the web gui Would anyone be able to advise me on what I'm doing wrong?
Author
Owner

@VirtualInterpreter commented on GitHub:

The LOG_FILE location I was using was wrong it should have been under /data/, thought I had already tried that 🤦‍♂

@VirtualInterpreter commented on GitHub: The `LOG_FILE` location I was using was wrong it should have been under `/data/`, thought I had already tried that 🤦‍♂
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#2046