Sunday, October 16, 2022

Re: Vaultwarden port does not start

On 10/16/22 19:59, Chris Narkiewicz wrote:
> When starting vaultwarden, it complains about non-existing home directory:
>
> rcctl -d start vaultwarden
> doing _rc_parse_conf
> vaultwarden_flags empty, using default ><
> doing rc_check
> vaultwarden
> doing rc_start
> doing _rc_wait_for_start
> doing rc_check
> No home directory /nonexistent!
> Logging in with home = "/".
> thread '<unnamed>' panicked at 'failed to allocate a guard page: Operation not permitted (os error 1)', library/std/src/sys/unix/thread.rs:783:17

This ^ is the actual error, not the nonexistent homedir. There has been a change in recent rust and libc things, see the immutable userland mappings thread. I suggest moving to the newest snapshot and adding the latest packages, they seem to be working fine for me, but this is more of a rust issue.

> note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
> fatal runtime error: initialization or cleanup bug
> Abort trap
> doing _rc_rm_runfile
> (failed)
>
> I looked into pkg-readmes and /usr/local/share/doc/vaultwarden but I didn't find any
> special setup procedures. The .env files mentions that values can be set if to
> override defaults.
>
> I'm not sure how to proceed with it. Switching _vaultwarden home directory using usermod?
>
> Cheers,
> Chris

No comments:

Post a Comment