Slow performance #1260

Closed
opened 2026-04-06 01:42:56 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @4erf on 1/31/2024

Subject of the issue

Vaultwarden server is quite slow. Saving when using Chrome extension can take up to 10 seconds. Website takes long to load and when it loads it only displays the following:

image

Deployment environment

  • vaultwarden version: vaultwarden 1.30.1
  • Install method: Docker image

  • Clients used: web vault, Chrome extension, Android.

  • Reverse proxy and version: nginx/1.21.6

  • MySQL/MariaDB or PostgreSQL version: SQLite

  • Other relevant details: Served with Cloudflare on custom subdomain. System is quite capable, Ryzen 9, plenty of RAM.

Steps to reproduce

Nothing different from default, just docker image with exposed port 80 and mounted volume on /data.

Expected behaviour

It should be more responsive.

Actual behaviour

It started to be slow and unresponsive suddenly, I didn't update the docker image or change anything, it just suddenly started to become slow. Then I did an update of the docker image, still same issue. Finally, I backed up the db as json, deleted all data, started a fresh vault and imported my data back in, the issue persists.

I believe the issue lays in my data, I must've added some entry in the database that is causing this slowdown, as it started to happen without any change other than new entries to the db. Also, when I started a fresh vault it was fast, until I did the import.

My data is not big, the json was only ~150kb, I have around 170 entries, no attachments or anything fancy, I just use basic fields, custom fields and notes.

Sadly I don't remember exactly when it started to slow down, so I have no clue of which entry I added that caused this, I can do some troubleshooting (deleting recent entries until it works) if it's needed.

Troubleshooting data

I believe only troubleshooting data I can provide is a redacted version of my json that still fails. But it would require some time to build, let me know if it's a must to provide it. Or if you guys have a script that can automatically redact everything, would be great.

*Originally created by @4erf on 1/31/2024* <!-- # ### NOTE: Please update to the latest version of vaultwarden before reporting an issue! This saves you and us a lot of time and troubleshooting. See: * https://github.com/dani-garcia/vaultwarden/issues/1180 * https://github.com/dani-garcia/vaultwarden/wiki/Updating-the-vaultwarden-image # ### --> <!-- Please fill out the following template to make solving your problem easier and faster for us. This is only a guideline. If you think that parts are unnecessary for your issue, feel free to remove them. Remember to hide/redact personal or confidential information, such as passwords, IP addresses, and DNS names as appropriate. --> ### Subject of the issue <!-- Describe your issue here. --> Vaultwarden server is quite slow. Saving when using Chrome extension can take up to 10 seconds. Website takes long to load and when it loads it only displays the following: ![image](https://github.com/dani-garcia/vaultwarden/assets/43388082/a84de997-976f-4b77-b27d-0e2157703192) ### Deployment environment <!-- ========================================================================================= Preferably, use the `Generate Support String` button on the admin page's Diagnostics tab. That will auto-generate most of the info requested in this section. ========================================================================================= --> <!-- The version number, obtained from the logs (at startup) or the admin diagnostics page --> <!-- This is NOT the version number shown on the web vault, which is versioned separately from vaultwarden --> <!-- Remember to check if your issue exists on the latest version first! --> * vaultwarden version: vaultwarden 1.30.1 <!-- How the server was installed: Docker image, OS package, built from source, etc. --> * Install method: Docker image * Clients used: web vault, Chrome extension, Android.<!-- web vault, desktop, Android, iOS, etc. (if applicable) --> * Reverse proxy and version: nginx/1.21.6 <!-- if applicable --> * MySQL/MariaDB or PostgreSQL version: SQLite<!-- if applicable --> * Other relevant details: Served with Cloudflare on custom subdomain. System is quite capable, Ryzen 9, plenty of RAM. ### Steps to reproduce <!-- Tell us how to reproduce this issue. What parameters did you set (differently from the defaults) and how did you start vaultwarden? --> Nothing different from default, just docker image with exposed port 80 and mounted volume on `/data`. ### Expected behaviour <!-- Tell us what you expected to happen --> It should be more responsive. ### Actual behaviour <!-- Tell us what actually happened --> It started to be slow and unresponsive suddenly, I didn't update the docker image or change anything, it just suddenly started to become slow. Then I did an update of the docker image, still same issue. Finally, I backed up the db as json, deleted all data, started a fresh vault and imported my data back in, the issue persists. I believe the issue lays in my data, I must've added some entry in the database that is causing this slowdown, as it started to happen without any change other than new entries to the db. Also, when I started a fresh vault it was fast, until I did the import. My data is not big, the json was only ~150kb, I have around 170 entries, no attachments or anything fancy, I just use basic fields, custom fields and notes. Sadly I don't remember exactly when it started to slow down, so I have no clue of which entry I added that caused this, I can do some troubleshooting (deleting recent entries until it works) if it's needed. ### Troubleshooting data <!-- Share any log files, screenshots, or other relevant troubleshooting data --> I believe only troubleshooting data I can provide is a redacted version of my json that still fails. But it would require some time to build, let me know if it's a must to provide it. Or if you guys have a script that can automatically redact everything, would be great.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/vaultwarden#1260