[GH-ISSUE #883] cant open data/rsa_key.der for reading, no such file or directory #626

Closed
opened 2026-03-03 02:01:30 +03:00 by kerem · 1 comment
Owner

Originally created by @ghost on GitHub (Mar 1, 2020).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/883

Subject of the issue

unable to load the private key, most likely candidate is lack of permissions, but i cant figure out what files it needs.

Your environment

  • Bitwarden_rs version: 1.13.1-1
  • Install method: Arch user repository package
  • Reverse proxy and version: nginx, but its not important, as i am unable to start the service
  • Version of mysql/postgresql: mariadb version 10.4.12
  • Other relevant information: Arch Linux, SystemD

Steps to reproduce

i set the database, and wal off, I installed via aur, and have started it through systemctl

Expected behaviour

it should start.

Actual behaviour

I get the errors: cant open data/rsa_key.der for reading, no such file or directory

Relevant logs

Can't open data/rsa_key.der for reading, No such file or directory Mar 01 02:02:13 aldmant bitwarden_rs[38697]: 140638010983680:error:02001002:system library:fopen:No such file or directory:crypto/bio/bss_file.c:69:fopen(> Mar 01 02:02:13 aldmant bitwarden_rs[38697]: 140638010983680:error:2006D080:BIO routines:BIO_new_file:no such file:crypto/bio/bss_file.c:76: Mar 01 02:02:13 aldmant bitwarden_rs[38697]: unable to load Private Key

Originally created by @ghost on GitHub (Mar 1, 2020). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/883 ### Subject of the issue <!-- Describe your issue here.--> unable to load the private key, most likely candidate is lack of permissions, but i cant figure out what files it needs. ### Your environment <!-- The version number, obtained from the logs or the admin page --> * Bitwarden_rs version: 1.13.1-1 <!-- How the server was installed: Docker image / package / built from source --> * Install method: Arch user repository package * Reverse proxy and version: nginx, but its not important, as i am unable to start the service * Version of mysql/postgresql: mariadb version 10.4.12 * Other relevant information: Arch Linux, SystemD ### Steps to reproduce <!-- Tell us how to reproduce this issue. What parameters did you set (differently from the defaults) and how did you start bitwarden_rs? --> i set the database, and wal off, I installed via aur, and have started it through systemctl ### Expected behaviour <!-- Tell us what should happen --> it should start. ### Actual behaviour <!-- Tell us what happens instead --> I get the errors: cant open data/rsa_key.der for reading, no such file or directory ### Relevant logs <!-- Share some logfiles, screenshots or output of relevant programs with us. --> `Can't open data/rsa_key.der for reading, No such file or directory Mar 01 02:02:13 aldmant bitwarden_rs[38697]: 140638010983680:error:02001002:system library:fopen:No such file or directory:crypto/bio/bss_file.c:69:fopen(> Mar 01 02:02:13 aldmant bitwarden_rs[38697]: 140638010983680:error:2006D080:BIO routines:BIO_new_file:no such file:crypto/bio/bss_file.c:76: Mar 01 02:02:13 aldmant bitwarden_rs[38697]: unable to load Private Key`
kerem closed this issue 2026-03-03 02:01:30 +03:00
Author
Owner

@ghost commented on GitHub (Mar 1, 2020):

Figured it out, i chowned non-recursively.

<!-- gh-comment-id:593045638 --> @ghost commented on GitHub (Mar 1, 2020): Figured it out, i chowned non-recursively.
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#626
No description provided.