mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-10 17:23:04 +03:00
Freezing when unable to resolve DNS #1638
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sfkpmr on GitHub.
I'm having an odd issue on my Docker host that makes containers unable to resolve DNS, but as my containers don't need internet access, they generally work fine, with the exception of Bitwarden_rs.
Subject of the issue
Sometimes when using the web UI to add/remove/change entries the page loads for several minutes, and reloading the page doesn't work either. After a few minutes it continues to work normally.
Your environment
Steps to reproduce
Docker start bitwarden
Expected behaviour
Entries are updated immediately. Display DNS error in log and stop updating for some amount of time.
Actual behaviour
Load icon spins around for several minutes.
Relevant logs
It seems like updating entries triggers an update of favicons like this:
@mqus commented on GitHub:
You can disable the icon loading in the configuration/via an environment variable
eba22c2d94/.env.template (L85-L89)This should be the only external request that needs DNS (apart from maybe sending email, depending on your configuration).
@BlackDex commented on GitHub:
That will partially be fixed when we can go to async http server. But still it would slow down since the icons are fetched by the web-vault unless you disable it.
There is also an option to disable this in your account within the web-vault, this should prevent calls to the server it self at all. Same goes for the mobile clients.
@sfkpmr commented on GitHub:
Thanks, that might have done it! Should probably wait a bit to make sure though.
Ideally though you shouldn't need to disable the icon download though. The UI shouldn't freeze up if the DNS is temporarily down for example.