Replies: 15 comments 3 replies
-
|
It almost looks like you also have Vaultwarden configured to serve HTTPS to Caddy. The SSL implementation for the Rocket version used is a bit unstable sometimes. That is why we suggest to use a reverse proxy and let it offload the SSL also. I'm not sure if you have it configured like that, but if that is the case i would suggest two things to try
|
Beta Was this translation helpful? Give feedback.
-
|
I don't have TLS enabled on Vaultwarden. It's served via HTTP to Caddy. I am using |
Beta Was this translation helpful? Give feedback.
-
|
Ah indeed. Sorry late here already hehe. |
Beta Was this translation helpful? Give feedback.
-
|
Actually, good point. Isn't PostgreSQL secured with TLS by default? |
Beta Was this translation helpful? Give feedback.
-
|
Yep. |
Beta Was this translation helpful? Give feedback.
-
|
Its either that, or there is a weird issue with the client which is still using a PostgreSQL v11 library. The library does indeed first tries ssl, if that fails it tries without. |
Beta Was this translation helpful? Give feedback.
-
|
I'm gonna try adding Will report back with results. |
Beta Was this translation helpful? Give feedback.
-
|
When a newer version of the testing will be released it will be using a newer version of OpenSSL. Maybe that helps, but i doubt it actually. But who knows. But please keep us posted. Edit: |
Beta Was this translation helpful? Give feedback.
-
Let's see if it crashes again, and if so, I'll ask for it. You can build it anyway if it's no issue. Looking good so far, though. |
Beta Was this translation helpful? Give feedback.
-
|
I tried this my self using a postgre docker container with a self-signed ssl-cert. I created a personal vault with 9000+ items in it and a org vault with 2200+ items. Looking the the version string of your PostgreSQL Instance, you are probably using the exact same container. docker run --rm --name vw-postgres \
-e POSTGRES_PASSWORD=MySecretPassword \
-e POSTGRES_USER=vaultwarden_user \
-e POSTGRES_DB=vaultwarden_db \
-v "$(pwd)/server.crt:/server.crt:ro" \
-v "$(pwd)/server.key:/server.key:ro" \
-p5432:5432 \
postgres:14.2-bullseye \
-c ssl=on -c ssl_cert_file=/server.crt -c ssl_key_file=/server.keyAnd i started the Vaultwarden container like this: docker run --rm --name vaultwarden \
-e RUST_BACKTRACE=full \
-e LOG_LEVEL=debug \
-e DISABLE_ADMIN_TOKEN=true \
-e DATABASE_URL="postgresql://vaultwarden_user:MySecretPassword@x.x.x.x:5432/vaultwarden_db?sslmode=require" \
-p8181:80 \
vaultwarden/server:testing-alpineI then used the Bitwarden Desktop, CLI and Browser extension to login to the instance and add/sync items. Not sure what could be the issue on your side then though. |
Beta Was this translation helpful? Give feedback.
-
|
I restarted it before creating this issue. So far, it has still been working fine. No crashes or any odd errors. I'll try switching back to TLS. |
Beta Was this translation helpful? Give feedback.
-
|
...And nothing. Software. |
Beta Was this translation helpful? Give feedback.
-
|
Still strange. I dived a bit into the specific errors, the only thing i can see is that it could be some weird OpenSSL version difference somewhere. The Alpine image has a statically linked OpenSSL which could differ a bit from the OpenSSL installed by Alpine, but i'm not seeing how those two would even interact, since the vaultwarden application shouldn't be using the OS libraries at all. Maybe a newer build of the Alpine image would solve this, since they then probably both use OpenSSL v1.1.1n on all levels. |
Beta Was this translation helpful? Give feedback.
-
|
I have no idea what's happening in here either, but yeah, it's functional.. Probably a newer build would be fine. The crashes are indeed strange. |
Beta Was this translation helpful? Give feedback.
-
|
I've just randomly experienced this on
Not sure how it could be reproduced or about more details (logging level was set to |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Subject of the issue
Looking at my vaultwarden logs, I noticed something peculiar in them. Apparently, vaultwarden has had occasional crashes due to OpenSSL errors, which seem pretty random.
I have not noticed any disruption while using it, but it raises an eye.
Deployment environment
vaultwarden/server:testing-alpine,amd64)Steps to reproduce
Unsure. I have pretty much a "regular" setup, with
WEBSOCKET_ENABLEDand that's it.It seems to have happened
duringa while after regular sync intervals, no entries added or anything.Beta Was this translation helpful? Give feedback.
All reactions