mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[GH-ISSUE #750] WebSockets through HaProxy not working ([WARN] Responding with 404 Not Found catcher.) #509
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#509
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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 @ElPistoler0 on GitHub (Nov 28, 2019).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/750
Hi all,
Long time lurker, first-time poster. I'd like to begin by thanking the dev for this amazing work. Really appreciate it!
I enabled WebSockets on my Docker container running under Windows Server 2019. Here is my CREATE command:
`docker pull bitwardenrs/server:latest
docker create --name bitwarden_rs -p 88:80 -p 89:3012 -v SOMEDRIVE\bitwarden\data:/data -e WEBSOCKET_ENABLED=true -e DOMAIN=https://pw.blah -e SMTP_HOST=smtp.gmail.com -e SMTP_FROM=blah@gmail.com -e SMTP_PORT=465 -e SMTP_SSL=true -e SMTP_USERNAME=blah@gmail.com -e SMTP_PASSWORD=bleh -e SMTP_EXPLICIT_TLS=true -e LOG_FILE=/data/bitwarden.log -e LOG_LEVEL=warn -e EXTENDED_LOGGING=true -e ADMIN_TOKEN=********** --restart unless-stopped bitwardenrs/server:latest`
This setup is behind a pfSense firewall with HaProxy on it. I can browse to my vault, use browser extensions, and mobile apps. Everything seems to be working as expected, except for the WebSockets... Here is what I get on the BW log:
[2019-11-28 22:01:38][][WARN] Response was
None.[2019-11-28 22:01:38][][WARN] Responding with 404 Not Found catcher.
[2019-11-28 22:01:38][][WARN] Response was
None.[2019-11-28 22:01:38][][WARN] Responding with 404 Not Found catcher.
[2019-11-28 22:01:39][][WARN] Response was
None.[2019-11-28 22:01:39][][WARN] Responding with 404 Not Found catcher.
[2019-11-28 22:01:39][][WARN] Response was
None.[2019-11-28 22:01:39][][WARN] Responding with 404 Not Found catcher.
[2019-11-28 22:01:39][][WARN] Response was
None.[2019-11-28 22:01:39][][WARN] Responding with 404 Not Found catcher.
[2019-11-28 22:01:39][][WARN] Response was
None.[2019-11-28 22:01:39][][WARN] Responding with 404 Not Found catcher.
[2019-11-28 22:01:39][][WARN] Response was
None.[2019-11-28 22:01:39][][WARN] Responding with 404 Not Found catcher.
[2019-11-28 22:01:39][_][WARN] Response was
None.And here's my HaProxy config:
backend BE_HPM_BitWarden_88_ipvANY
mode http
id 137
log global
option log-health-checks
http-response set-header Strict-Transport-Security max-age=900000;
timeout connect 600000
timeout server 600000
retries 5
server HPM_BW_88 x.x.x.x:88 id 112
backend BE_HPM_BitWarden_89_WebSockets_ipvANY
mode http
id 140
log global
option log-health-checks
http-response set-header Strict-Transport-Security max-age=900000;
timeout connect 600000
timeout server 600000
retries 5
reqrep ^([^\ :])\ /notifications/hub/(.) \1\ /\2
server HPM_BW_89_WS x.x.x.x:89 id 139
No matter what I try, I only manage to get this in the BW log:
[WARN] Responding with 404 Not Found catcher.
Could a charitable soul please help me to get this working? Also, could someone please explain what I am missing by WS being broken?
Thanks!
Pistoler0
@meska commented on GitHub (Dec 5, 2019):
chunk of my haproxy.cfg , not very elegant but it's working
domains.map contains
bw.xxxxxx.com bitwardenand many others@ohkeenan commented on GitHub (Dec 7, 2019):
Just noticed mine may actually not work either? I can browse to https://warden.example.com/notifications/hub and see the JSON but still get this error in logs:
edit: I think since it's only in the logs once maybe it's just because the service comes up and immediately checks for the existence but since haproxy isn't routing to that backend yet it can't see it?
Chunk of my frontends (in case it's of any use):
Could probably simplify the above once more:
Backends:
Logs:
@ElPistoler0 commented on GitHub (Dec 10, 2019):
Thank you guys for the help! I'll check my config.
@dani-garcia commented on GitHub (May 13, 2020):
Closed due to inactivity.