mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[GH-ISSUE #1129] Read error (Connection reset by peer) in headers #797
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#797
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 @StarScream159 on GitHub (Sep 8, 2020).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/1129
Subject of the issue
Read error (Connection reset by peer) in headers.
Your environment
Steps to reproduce
Start/install the application with docker:
docker run -d --name bitwarden -e WEBSOCKET_ENABLED=true -e LOG_FILE=/data/bitwarden.log -v /opt/bitwarden/:/data/ -p 32080:80 -p 3012:3012 bitwardenrs/server:latestExpected behaviour
To be able to load the interface via web browser, or get a html response via wget/curl.
Actual behaviour
docker starts okay:
However trying to connect to the service on the server via IP in browser (http://192.168.2.25:32080/) fails with an "This site can’t be reached. 192.168.2.25 took too long to respond.".
Also accessing via command line directly on the server via wget or curl gets me the connection reset:
Docker appears okay:
No other information appears in the docker log (via docker logs bitwarden) or via the /data/bitwarden.log file. It's as if the connection doesn't each the application in docker.
The port chosen (32080) isn't used for anything else.
Anyone got any ideas? Thanks.
EDIT:
If I run curl within the container, you get the expected response:
@StarScream159 commented on GitHub (Sep 8, 2020):
It appears my docker setup isn't correct, as adding the
--network hostflag to my docker run command fixed the issue. So the following command works for me:Of course I had to also add the
-e ROCKET_PORT=32080flag, or bitwarden attempted to start on port 80 which is in use on my system. And this also means that the websocket is running on the default 3012 on my host system occupying that port too.I'd like to know what I've done to my docker config though.
@BlackDex commented on GitHub (Nov 18, 2020):
Closing this ticket because of inactivity.
Feel free to continue this discussion on the forum: https://bitwardenrs.discourse.group/