mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-11 09:13:02 +03:00
Read error (Connection reset by peer) in headers #1624
Reference in New Issue
Block a user
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.
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:
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:
Closing this ticket because of inactivity.
Feel free to continue this discussion on the forum: https://bitwardenrs.discourse.group/