mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 09:46:00 +03:00
[GH-ISSUE #776] Address already in use when starting Bitwarden_rs #537
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#537
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 @Jungack on GitHub (Dec 21, 2019).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/776
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
@mprasil commented on GitHub (Dec 22, 2019):
Hi @Jungack,
bitwarden_rsis expecting file named.envso your file is very likely ignored and thenbitwarden_rsdefaults to port80which seems to be used.@Jungack commented on GitHub (Dec 22, 2019):
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 !
@fbartels commented on GitHub (Dec 23, 2019):
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
@Jungack commented on GitHub (Dec 23, 2019):
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 ?@fbartels commented on GitHub (Dec 24, 2019):
Like you would source any other file in your shell ;-)
source .env@Jungack commented on GitHub (Dec 25, 2019):
Ok tanks all is working ! Thank you for your patience !