Vaultwarden no longer shows entries in the Webvault; Sync with Android app works #5060
Replies: 42 comments 71 replies
-
Can you check your web console what the browser says when this doesn't load? E.g. if there are blocked resources or exceptions thrown? If it's a blocked resource you might want to check your reverse proxy settings if you are overriding the content security policy. I mean this could potentially also be caused by browser extensions. |
Beta Was this translation helpful? Give feedback.
-
With the developer tool I got 6 errors in Chrome: WebSocketTransport.ts:81 WebSocket connection to ... failed Error: Failed to start the connection: Error: WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled. Unhandled Promise rejection: WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled. ; Zone: ; Task: null ; Value: Error: WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled. zone.umd.js:1097 Unhandled Promise rejection: WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled. ; Zone: ; Task: null ; Value: Error: WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled. Error: WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled. Uncaught (in promise) TypeError: Failed to execute 'digest' on 'SubtleCrypto': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'. Is it necessary to create WebSocket (as shown in Step 7 here: https://mariushosting.com/synology-install-vaultwarden-with-portainer/) ? |
Beta Was this translation helpful? Give feedback.
-
That the websocket fails is a different issue. I am not familiar enough with Synology to know if the steps in the linked tutorial are correct but they should not be necessary for the entries to be displayed. (But it wouldn't hurt if you manage to make the upgrade of the Websocket work.)
So to me this seems the most likely indication of what could be wrong but I am not sure what exactly that would be. |
Beta Was this translation helpful? Give feedback.
-
yes, I have this and no issues. |
Beta Was this translation helpful? Give feedback.
-
Also, try a different browser and private or incognito mode to see what that does. |
Beta Was this translation helpful? Give feedback.
-
Tried it again with Firefox v130 (without plugins) on Win11 and got the same problem: TypeError: SubtleCrypto.digest: Argument 2 could not be converted to any of: ArrayBufferView, ArrayBuffer. What I also saw now is that after around 3min of loading circle I got 9 of 107 items on the list. |
Beta Was this translation helpful? Give feedback.
-
Has this ever worked? And what has changed since last working? |
Beta Was this translation helpful? Give feedback.
-
It might be your reverse proxy or something else in between which is maybe caching or block or some Javascript. Just be sure there is nothing cached or altered in between. |
Beta Was this translation helpful? Give feedback.
-
Yes it worked previously. I have to check what's the root cause: So delete everything except the password-db and start with a clean container does not make sense right? The db is not defect when the sync with Android App works? |
Beta Was this translation helpful? Give feedback.
-
Try it without Adguard before testing it with new Container and copied DB... Whats the timestamp of the DB-file after sync from app? Is the server reachable from external? Then you could simple test it from another browser outside... |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I wouldn’t delete everything just yet, it would be beneficial to find what the root cause is. What you could do is copy your data folder into a new one and call it bwtest or whatever. Create a new container and same call it test. See if the problem is resolved. Also could try using the testing image. Another test would be to setup a clean test BW instance/container. Export data from existing (if you can using a client) and import into the clean test, what’s the result with that? |
Beta Was this translation helpful? Give feedback.
-
So the problem still exists from external access with different browsers? |
Beta Was this translation helpful? Give feedback.
-
I exported the items as json, created a clean new instance of the container and imported the json. But now it's fixed with export, clean new docker container and reimport. |
Beta Was this translation helpful? Give feedback.
-
But what made the issue break? What if this has a bigger consequence next time where it’s not recoverable at all. Also did you have any attachments in any entries? These are not part of the export if so. |
Beta Was this translation helpful? Give feedback.
-
Ow, i have it now :) @dani-garcia forwarded it to me. |
Beta Was this translation helpful? Give feedback.
-
@interunivers, I'm not really seeing why it would behave like this actually. Since there are a lot of ciphers i also tried to detect something using some grep commands, but was not able to see anything which shouldn't be there in this form. Might i suggest to try the following steps to see if you can pinpoint the specific issue.
With the above, if all keeps working, without any issue, then it most likely is located in your personal vault, but then we have to figure out where and which item. One way would be to export your personal vault, and import that into the new empty account (maybe first remove the test entries you created there). If then the test account still has no issues, we would need to compare both accounts sync output and see what the difference is there. It's very strange this is causing an issue. |
Beta Was this translation helpful? Give feedback.
-
@BlackDex Thank you for your efforts. |
Beta Was this translation helpful? Give feedback.
-
I'm not sure where, but you probably have the text And, you could still try the collection steps i mentioned. |
Beta Was this translation helpful? Give feedback.
-
I am running 1.32.0. I am a little nervous to update to the latest version, and it appears as though this is still happening for a few others on 1.32.1, so likely it is not version dependent and more likely an issue with an entry in the database somewhere. No recent upgrades - this has been happening for a while. New browser window, new incognito window,, even different browser (tried Chrome and Edge) makes no difference. The issue persists regardless. |
Beta Was this translation helpful? Give feedback.
-
@BlackDex There is a new interesseting behaviour, that my organisation doesnt send out invite emails. I could easily create a new user that work absolutley fine but the invitation email never arrives. I also tried the downgrading, that didnt change anything. Could it be that my sqllite is corrupt in some way? |
Beta Was this translation helpful? Give feedback.
-
If the sqlite is corrupt then more stuff would be strange i think. I would also check the logs and maybe even enable debug logs. Because if you can invite someone into the org, the mail should just be sent. That is nothing to do with the web-vault not loading. |
Beta Was this translation helpful? Give feedback.
-
@aheath70 and @interunivers My guess is that it has something to do with the entries which have a That is my only explanation which i find which could match. Since i have no way to reproduce this my self, i can not test it. |
Beta Was this translation helpful? Give feedback.
-
@BlackDex Could this be an interesseting error forom the dbug log?
|
Beta Was this translation helpful? Give feedback.
-
So here a little follow-up. I was able to backup my organisation via the Bitwarden comandline CLI and then imported that into a new Organisation. I could then see from the administration panel that there were more entries in the original organisation then in the newly created one, even though I could verify from the app that they both had the exact same visible entries. So I conclude there must be some ghost entries or other errors with the database or something that broke the webvault, maybe that is also caused by some sync issues but I think there are more qualified people than me who can guess what could have happened. The only solution I had then was to just invite all the member of the old organisation into the new one and delete the old one. Since then everything works smoothly again. |
Beta Was this translation helpful? Give feedback.
-
I can confirm this issue. I have two main accounts on my instance. The larger one is affected, while the smaller one works. The problematic one, does not export into json. I get a very small file. Should I check debug logs? I think its obvious that the issue is related to the cipher data. Let me know any SQL commands to check my DB if that would help. |
Beta Was this translation helpful? Give feedback.
-
@Phlogi, I'm checking the output you provided me. But if that was the only item you had to delete for everything to start working again, I'm very surprised, since nothing i see should be causing an issue like this. The only thing i can think of then is that the encrypted values in there are causing a strange issue for some reason, which causes the web-vault/JS to break. The only way to really really know if that is the issue, is by replacing those encrypted values one by one with the exact same encrypted value from an other item, like from the working item you also send to me. I would suggest to take the If it does, then something is going wrong with the decryption of those values for some reason. |
Beta Was this translation helpful? Give feedback.
-
Looking at #5077, can everybody who has issues here with the web-vault, delete there trash/bin/deleted items and see if that resolves all your issues? |
Beta Was this translation helpful? Give feedback.
-
Everything deleted from my bin/trash/deleted items folder. Issue still persists. |
Beta Was this translation helpful? Give feedback.
-
Same issue here since two month. |
Beta Was this translation helpful? Give feedback.
-
Vaultwarden Support String
Your environment (Generated via diagnostics page)
Config (Generated via diagnostics page)
Show Running Config
Environment settings which are overridden: DOMAIN, SIGNUPS_ALLOWED, ADMIN_TOKEN, SMTP_HOST, SMTP_FROM, SMTP_FROM_NAME, SMTP_USERNAME, SMTP_PASSWORD
Vaultwarden Build Version
v1.32.0
Deployment method
Official Container Image
Custom deployment method
No response
Reverse Proxy
buildin in DSM
Host/Server Operating System
NAS/SAN
Operating System Version
Synology DSM 7.2
Clients
Web Vault
Client Version
v2024.6.2
Steps To Reproduce
Expected Result
After a few seconds the items are shown
Actual Result
The items are not shown after several minutes
Logs
Screenshots or Videos
No response
Additional Context
I also use AdGuard Home and Unbound on Synology NAS.
Reverse Proxy is used to direct to a domain like: https://vaultwarden.beispiel.dynv6.net
The Sync to Android App or Chrome Extension works successfully.
Docker compose (Passwords are modified)
version: "3.9"
services:
vaultwarden:
image: vaultwarden/server:latest
container_name: Vaultwarden
hostname: vaultwarden
mem_limit: 512m
mem_reservation: 256m
cpu_shares: 1024
security_opt:
- no-new-privileges=true
ports:
- 1058:80
volumes:
- /volume1/docker/vaultwarden:/data:rw
environment:
- ADMIN_TOKEN=PASSWORT
- DOMAIN=https://vaultwarden.beispiel.dynv6.net
- SIGNUPS_ALLOWED=false
- SMTP_HOST=geheim
- SMTP_FROM=geheim
- SMTP_FROM_NAME=Vaultwarden
- SMTP_USERNAME=geheim
- SMTP_PASSWORD=PASSWORT
restart: always
Beta Was this translation helpful? Give feedback.
All reactions