mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-10 17:23:04 +03:00
Address already in use when starting Bitwarden_rs #1880
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 @Jungack on GitHub.
Hello,
I am trying to run bitwarden_rs without docker on my server. However, I come to this error :
[bitwarden_rs][ERROR] Launch error Bind(Io(Os { code: 98, kind: AddrInUse, message: "Address already in use" }))I am quite a noob sorry... In fact I think I don't know how to manage the
.envfile. After having compiled bitwarden_rs and installed the web-vault, I have copied the.env.templatefile to/bitwarden_rs/target/release/and renamed It tobitwarden_rs.env. Then, I have modifiedWEBSOCKET_PORT=3012toWEBSOCKET_PORT=3013andROCKET_PORT=8000toROCKET_PORT=8001. However, the same error is still there. What is wrong?Thank you
@Jungack commented on GitHub:
Thanks for replying ! I first wanted to start bitwarden_rs using
cargo run --features sqlite --release. However you are right, after being able to use the previous command, I planned to use systemd to start bitwarden_rs on boot !So how can I load the
.envfile first without systemd ?@Jungack commented on GitHub:
Hello,
Thank you ! So you mean that I have to rename my
bitwarden_rs.envfile to just.envand put It in/bitwarden_rs/target/release/?I have a LEMP stack on my server actually with Nextcloud (and Onlyoffice which is running port
8000). How can I change the default port used by Bitwarden_rs to remove all the conflicts?Thank you !
@mprasil commented on GitHub:
Hi @Jungack,
bitwarden_rsis expecting file named.envso your file is very likely ignored and thenbitwarden_rsdefaults to port80which seems to be used.@fbartels commented on GitHub:
How are you planning on starting the bitwardenrs process? If you are using systemd, the you could also load the env file into the environment with it: https://serverfault.com/a/413408
@fbartels commented on GitHub:
Like you would source any other file in your shell ;-)
source .env@Jungack commented on GitHub:
Ok tanks all is working ! Thank you for your patience !