dani-garcia / vaultwarden

Unofficial Bitwarden compatible server written in Rust, formerly known as bitwarden_rs
GNU Affero General Public License v3.0
37.35k stars 1.82k forks source link

[Postgresql/DB] Database URL changes not respected #4511

Closed PrivatePuffin closed 5 months ago

PrivatePuffin commented 5 months ago

Subject of the issue

When changing the DATABASE_URL ENV var, the change isn't respected and the application still tries to access the old url. This is primarily important when database passwords change.

Having this as an env-var gives the impression it does more than just set it at first boot.

Deployment environment

Docker/Helm/Kubernetes, irrelevant (container feature)

Steps to reproduce

Expected behaviour

Actual behaviour

Troubleshooting data

Might be related to using the admin interface afterwards or not, this I would need to verify

BlackDex commented 5 months ago

You probably have changed/saved the config via the Admin Interface, in that case there is a config.json located in the data directory. Values in the config.json override environment variables.

PrivatePuffin commented 5 months ago

You probably have changed/saved the config via the Admin Interface, in that case there is a config.json located in the data directory. Values in the config.json override environment variables.

Well it's not me, it's one of our users... I might've been to receptive for the feedback there, i'll reopen if I can reproduce more thoroughly!

PrivatePuffin commented 5 months ago

Can confirm user error, issue can stay closed.