dani-garcia / vaultwarden

Unofficial Bitwarden compatible server written in Rust, formerly known as bitwarden_rs
GNU Affero General Public License v3.0
36.78k stars 1.79k forks source link

cant open data/rsa_key.der for reading, no such file or directory #883

Closed ghost closed 4 years ago

ghost commented 4 years ago

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

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

ghost commented 4 years ago

Figured it out, i chowned non-recursively.