Upgrade from 1.30.0 to 1.30.1, log shows a large number Upgraded websocket I/O handler failed: WebSocket protocol error: Sending after closing is not allowed #4090
-
|
After upgrading to version 1.30.1, this type of log appeared and I have no idea what happened. Please help me
3.This is my vaultwarden configuration |
Beta Was this translation helpful? Give feedback.
Replies: 13 comments 22 replies
-
|
Hello, There is nothing changed between those versions which could cause this i think. I would start by removing all the security headers except for the STS, Vaultwarden already sends these headers with all the correct values when needed. And i think the buffering might cause some issues here. And maybe caching also has some influence, but about that I'm not sure. |
Beta Was this translation helpful? Give feedback.
-
|
this I use the Swag reverse proxy so it is NGINX base. |
Beta Was this translation helpful? Give feedback.
-
|
I'm looking at the logs again. I'm not sure if that is all, but i see a sigterm shutdown action but not really a fully shutdown message. Please check and verify if the container fully stopped before starting it again. |
Beta Was this translation helpful? Give feedback.
-
|
Also, if the reverse proxy sends a It could also be something else in between, like firewall or CloudFront etc.. |
Beta Was this translation helpful? Give feedback.
-
|
This started to happen with the last update and i think after the last "update crates 4883650" commit. Easiest to reproduce is when you have the chrome extension and you lock it. I think this is where the ext closes the websocket and this message pops in the logs. Maybe server tries to do something with the websocket after the nginx already torn it down. |
Beta Was this translation helpful? Give feedback.
-
|
Same here, those error messages never appeared before 1.30.1. I haven't changed anything at all in my proxy configuration since 1.29.0. |
Beta Was this translation helpful? Give feedback.
-
|
I checked my logs and i do also see them. Not that often though, but probably because i do not lock it that often. |
Beta Was this translation helpful? Give feedback.
-
|
Same on my end. I can easily reproduce the error by locking my vault in the browser extension. If I deactivate "Websocket Support" in Nginx Proxy Manager though, the error doesn´t show up anymore, but granting other devices approval for log in also does not work anymore. |
Beta Was this translation helpful? Give feedback.
-
|
any news reguarding this error? |
Beta Was this translation helpful? Give feedback.
-
|
I found the issue, and i also have fixed it. |
Beta Was this translation helpful? Give feedback.
-
|
Can you please release a version with this fix? I'm sending all syslog error messages to my mobile via Telegram and this channel is now quite polluted ;-) |
Beta Was this translation helpful? Give feedback.
-
|
OK, was worth a try ;-) Thanks for all your efforts, really cool tool! |
Beta Was this translation helpful? Give feedback.
-
|
And when you say reloading the page, do you mean my vaultwarden admin page?
…On Tue, 2 Jan 2024, 2:52 pm Brandon, ***@***.***> wrote:
@rama31244 <https://github.com/rama31244> the easiest way would be just
opening the console in your browser, going to the network tab, reloading
the page and looking through headers of the requests.
—
Reply to this email directly, view it on GitHub
<#4090 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUKELZRWMH5IBP4WTEWVIOLYMOABNAVCNFSM6AAAAAA7T4XZUCVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TSOJQGMZDA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
Hello,
There is nothing changed between those versions which could cause this i think.
I would start by removing all the security headers except for the STS, Vaultwarden already sends these headers with all the correct values when needed.
And i think the buffering might cause some issues here. And maybe caching also has some influence, but about that I'm not sure.