[GH-ISSUE #2183] Environment variable could not be parsed #1180

Closed
opened 2026-03-03 02:06:58 +03:00 by kerem · 0 comments
Owner

Originally created by @WorlockM on GitHub (Dec 28, 2021).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/2183

After installing Vaultwarden I could not create an account because there was no secure connection. So I am trying to get this working with Rocket. I know a reverse proxy is recommended, but I am not planning on exposing anything to the internet so I want to use Rocket. Unfortunately I get an error:

[INFO] No .env file found.
Logger failed to initialize: attempted to set a logger after the logging system was already initialized
[2021-12-26 20:03:34.859][rocket::config::error][ERROR] environment variable ROCKET_TLS={certs="/ssl/vaultwarden.mydomain.local.pem,key="/ssl/vaultwarden.mydomain.local.key"} could not be parsed

This is the command I use:

docker run -d --name bitwarden \
  -e ROCKET_TLS='{certs="/ssl/vaultwarden.mydomain.local.pem,key="/ssl/vaultwarden.mydomain.local.key"} \
  -v /ssl/keys/:/ssl/ \
  -v /vw-data/:/data/ \
  -p 443:80 \
  vaultwarden/server:latest

When I remove the ROCKET_TLS line, the container deploys and I can open vaultwarden, but I do have the first error (No .env file found.)

So it must be somewhere in that ROCKET_TLS line, but I have no idea what I am doing wrong. The certificate and key both are in PEM format. I read something about symlinks, but I have no idea how to check for that.

Oh yeah, I've created the cert and key with easyrsa.

Originally created by @WorlockM on GitHub (Dec 28, 2021). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/2183 After installing Vaultwarden I could not create an account because there was no secure connection. So I am trying to get this working with Rocket. I know a reverse proxy is recommended, but I am not planning on exposing anything to the internet so I want to use Rocket. Unfortunately I get an error: ``` [INFO] No .env file found. Logger failed to initialize: attempted to set a logger after the logging system was already initialized [2021-12-26 20:03:34.859][rocket::config::error][ERROR] environment variable ROCKET_TLS={certs="/ssl/vaultwarden.mydomain.local.pem,key="/ssl/vaultwarden.mydomain.local.key"} could not be parsed ``` This is the command I use: ``` docker run -d --name bitwarden \ -e ROCKET_TLS='{certs="/ssl/vaultwarden.mydomain.local.pem,key="/ssl/vaultwarden.mydomain.local.key"} \ -v /ssl/keys/:/ssl/ \ -v /vw-data/:/data/ \ -p 443:80 \ vaultwarden/server:latest ``` When I remove the ROCKET_TLS line, the container deploys and I can open vaultwarden, but I do have the first error (No .env file found.) So it must be somewhere in that ROCKET_TLS line, but I have no idea what I am doing wrong. The certificate and key both are in PEM format. I read something about symlinks, but I have no idea how to check for that. Oh yeah, I've created the cert and key with easyrsa.
kerem closed this issue 2026-03-03 02:06:58 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#1180
No description provided.