Connection refused when setting a logfile path #189

Closed
opened 2025-10-09 16:17:08 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @helenapi on GitHub.

Vaultwarden Support String

When I try to enable a logging file path on my .env file, after I reboot vaultwarden I get an access refused error when I try to open the website. Here is my .env:

ADMIN_TOKEN=''
ROCKET_ADDRESS=0.0.0.0
DATA_FOLDER=/opt/vaultwarden/data
DATABASE_MAX_CONNS=10
WEB_VAULT_FOLDER=/opt/vaultwarden/web-vault
WEB_VAULT_ENABLED=true
LOG_FILE=/opt/vaultwarden/vaultwarden.log

Vaultwarden Build Version

1.33.2

Deployment method

Build from source

Custom deployment method

Proxmox community script: https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/vaultwarden.sh

Reverse Proxy

caddy

https://{$VAULTWARDEN_SUBDOMAIN}.{$MY_DOMAIN} {
	import headers
	crowdsec
	log
	route {
		reverse_proxy /myvaultwardensecretpath/* 10.0.0.5:8000 {
			header_up X-Real-IP {remote_host}
		}
		handle /* {
			abort
		}
	}
}

Host/Server Operating System

Linux

Operating System Version

Debian (Proxmox LXC)

Clients

Web Vault

Steps To Reproduce

On the .env file, add a new line:
LOG_FILE=/opt/vaultwarden/vaultwarden.log

Expected Result

Log file is created and logs login events

Actual Result

Connection refused when opening webvault

Originally created by @helenapi on GitHub. ### Vaultwarden Support String When I try to enable a logging file path on my .env file, after I reboot vaultwarden I get an access refused error when I try to open the website. Here is my .env: ``` ADMIN_TOKEN='' ROCKET_ADDRESS=0.0.0.0 DATA_FOLDER=/opt/vaultwarden/data DATABASE_MAX_CONNS=10 WEB_VAULT_FOLDER=/opt/vaultwarden/web-vault WEB_VAULT_ENABLED=true LOG_FILE=/opt/vaultwarden/vaultwarden.log ``` ### Vaultwarden Build Version 1.33.2 ### Deployment method Build from source ### Custom deployment method Proxmox community script: https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/vaultwarden.sh ### Reverse Proxy caddy ``` https://{$VAULTWARDEN_SUBDOMAIN}.{$MY_DOMAIN} { import headers crowdsec log route { reverse_proxy /myvaultwardensecretpath/* 10.0.0.5:8000 { header_up X-Real-IP {remote_host} } handle /* { abort } } } ``` ### Host/Server Operating System Linux ### Operating System Version Debian (Proxmox LXC) ### Clients Web Vault ### Steps To Reproduce On the .env file, add a new line: LOG_FILE=/opt/vaultwarden/vaultwarden.log ### Expected Result Log file is created and logs login events ### Actual Result Connection refused when opening webvault
OVERLORD added the bug label 2025-10-09 16:17:08 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#189