[GH-ISSUE #1210] issue after installation #856

Closed
opened 2026-03-03 02:04:04 +03:00 by kerem · 3 comments
Owner

Originally created by @valderaplets on GitHub (Oct 31, 2020).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/1210

Hi i have this issue after installing bitwarden with rust :

oct. 31 16:09:51 bitwarden systemd[1]: Started Bitwarden Server (Rust Edition).
oct. 31 16:09:51 bitwarden systemd[21671]: bitwarden.service: Failed to execute command: Resource temporarily unavailable
oct. 31 16:09:51 bitwarden systemd[21671]: bitwarden.service: Failed at step EXEC spawning /opt/bitwarden/bitwarden_rs: Resource temporarily unavailable
oct. 31 16:09:51 bitwarden systemd[1]: bitwarden.service: Main process exited, code=exited, status=203/EXEC
oct. 31 16:09:51 bitwarden systemd[1]: bitwarden.service: Failed with result 'exit-code'.

i don't understand why ...

this is my config :

root@bitwarden [16:34:07][~]$ ll /opt/bitwarden/
total 14M
-rwxr-xr-x   1 www-data www-data  27M oct.  31 15:57 bitwarden_rs
-rw-r--r--   1 www-data www-data 6,2K oct.  31 15:57 bitwarden_rs.d
drwxr-xr-x 127 www-data www-data  127 oct.  31 15:52 build
drwxr-xr-x   3 www-data www-data    9 oct.  31 16:20 data
drwxr-xr-x   2 www-data www-data 1,2K oct.  31 15:57 deps
drwxr-xr-x   2 www-data www-data    2 oct.  31 15:52 examples
drwxr-xr-x   2 www-data www-data    2 oct.  31 15:52 incremental
drwxr-xr-x   8 www-data www-data   18 oct.  31 16:02 web-vault

and


root@bitwarden [16:37:57][~]$ ll /opt/bitwarden/ -d
drwxr-xr-x 9 www-data www-data 12 oct.  31 16:27 /opt/bitwarden/

and


root@bitwarden [16:34:08][~]$ ll /etc/bitwarden_rs.env 
-rw-r--r-- 1 www-data www-data 252 oct.  31 16:05 /etc/bitwarden_rs.env

and the systemd :

root@bitwarden [16:34:17][~]$ systemctl cat bitwarden
# /etc/systemd/system/bitwarden.service
[Unit]
Description=Bitwarden Server (Rust Edition)
Documentation=https://github.com/dani-garcia/bitwarden_rs
After=network.target

[Service]
# The user/group bitwarden_rs is run under. the working directory (see below) should allow write and read access to this user/group
User=www-data
Group=www-data
# The location of the .env file for configuration
EnvironmentFile=/etc/bitwarden_rs.env
# The location of the compiled binary
ExecStart=/opt/bitwarden/bitwarden_rs
# Set reasonable connection and process limits
LimitNOFILE=1048576
LimitNPROC=64
# Isolate bitwarden_rs from the rest of the system
PrivateTmp=false
PrivateDevices=true
ProtectHome=true
ProtectSystem=strict
# Only allow writes to the following directory and set it to the working directory (user and password data are stored here)
WorkingDirectory=/opt/bitwarden/
ReadWriteDirectories=/opt/bitwarden/

[Install]
WantedBy=multi-user.target
Originally created by @valderaplets on GitHub (Oct 31, 2020). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/1210 Hi i have this issue after installing bitwarden with rust : ``` oct. 31 16:09:51 bitwarden systemd[1]: Started Bitwarden Server (Rust Edition). oct. 31 16:09:51 bitwarden systemd[21671]: bitwarden.service: Failed to execute command: Resource temporarily unavailable oct. 31 16:09:51 bitwarden systemd[21671]: bitwarden.service: Failed at step EXEC spawning /opt/bitwarden/bitwarden_rs: Resource temporarily unavailable oct. 31 16:09:51 bitwarden systemd[1]: bitwarden.service: Main process exited, code=exited, status=203/EXEC oct. 31 16:09:51 bitwarden systemd[1]: bitwarden.service: Failed with result 'exit-code'. ``` i don't understand why ... this is my config : ``` root@bitwarden [16:34:07][~]$ ll /opt/bitwarden/ total 14M -rwxr-xr-x 1 www-data www-data 27M oct. 31 15:57 bitwarden_rs -rw-r--r-- 1 www-data www-data 6,2K oct. 31 15:57 bitwarden_rs.d drwxr-xr-x 127 www-data www-data 127 oct. 31 15:52 build drwxr-xr-x 3 www-data www-data 9 oct. 31 16:20 data drwxr-xr-x 2 www-data www-data 1,2K oct. 31 15:57 deps drwxr-xr-x 2 www-data www-data 2 oct. 31 15:52 examples drwxr-xr-x 2 www-data www-data 2 oct. 31 15:52 incremental drwxr-xr-x 8 www-data www-data 18 oct. 31 16:02 web-vault ``` and ``` root@bitwarden [16:37:57][~]$ ll /opt/bitwarden/ -d drwxr-xr-x 9 www-data www-data 12 oct. 31 16:27 /opt/bitwarden/ ``` and ``` root@bitwarden [16:34:08][~]$ ll /etc/bitwarden_rs.env -rw-r--r-- 1 www-data www-data 252 oct. 31 16:05 /etc/bitwarden_rs.env ``` and the systemd : ``` root@bitwarden [16:34:17][~]$ systemctl cat bitwarden # /etc/systemd/system/bitwarden.service [Unit] Description=Bitwarden Server (Rust Edition) Documentation=https://github.com/dani-garcia/bitwarden_rs After=network.target [Service] # The user/group bitwarden_rs is run under. the working directory (see below) should allow write and read access to this user/group User=www-data Group=www-data # The location of the .env file for configuration EnvironmentFile=/etc/bitwarden_rs.env # The location of the compiled binary ExecStart=/opt/bitwarden/bitwarden_rs # Set reasonable connection and process limits LimitNOFILE=1048576 LimitNPROC=64 # Isolate bitwarden_rs from the rest of the system PrivateTmp=false PrivateDevices=true ProtectHome=true ProtectSystem=strict # Only allow writes to the following directory and set it to the working directory (user and password data are stored here) WorkingDirectory=/opt/bitwarden/ ReadWriteDirectories=/opt/bitwarden/ [Install] WantedBy=multi-user.target ```
kerem 2026-03-03 02:04:04 +03:00
Author
Owner

@valderaplets commented on GitHub (Oct 31, 2020):

If i run the script in command line, is OK. But not with systemd

<!-- gh-comment-id:719992903 --> @valderaplets commented on GitHub (Oct 31, 2020): If i run the script in command line, is OK. But not with systemd
Author
Owner

@mqus commented on GitHub (Nov 1, 2020):

Hm... To me this looks like an issue with the counts of e.g. nproc or nofile. What is your system setup? Do you run this in a VM/Container? in a shared host? What OS/Distribution (and version) do you use?

Grawlinson got a very similar issue while trying to run bitwarden_rs in a LXC container and solved it by removing the LIMITNPROC line in the systemd file[1]

[1] https://aur.archlinux.org/packages/bitwarden_rs/#pinned-729736

<!-- gh-comment-id:720079869 --> @mqus commented on GitHub (Nov 1, 2020): Hm... To me this looks like an issue with the counts of e.g. nproc or nofile. What is your system setup? Do you run this in a VM/Container? in a shared host? What OS/Distribution (and version) do you use? Grawlinson got a very similar issue while trying to run bitwarden_rs in a LXC container and solved it by removing the LIMITNPROC line in the systemd file[1] [1] https://aur.archlinux.org/packages/bitwarden_rs/#pinned-729736
Author
Owner

@valderaplets commented on GitHub (Nov 1, 2020):

Hm... To me this looks like an issue with the counts of e.g. nproc or nofile. What is your system setup? Do you run this in a VM/Container? in a shared host? What OS/Distribution (and version) do you use?

yes in a container LXC. debian 10.6

thank, it's works !

perfect =)

<!-- gh-comment-id:720093564 --> @valderaplets commented on GitHub (Nov 1, 2020): >Hm... To me this looks like an issue with the counts of e.g. nproc or nofile. What is your system setup? Do you run this in a VM/Container? in a shared host? What OS/Distribution (and version) do you use? yes in a container LXC. debian 10.6 thank, it's works ! perfect =)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#856
No description provided.