YunoHost-Apps / vaultwarden_ynh

Open source password management solutions for YunoHost
https://bitwarden.com/
GNU General Public License v3.0
54 stars 17 forks source link

Installation failed : Segmentation fault #156

Closed croulibri closed 1 year ago

croulibri commented 2 years ago

I am with YunoHost 4.3.2.2 (stable), with Bitwarden 1.19 installed. Ia m trying for month to migrate to Vaultwarden unsuccessfully.

Following the encouraging news at https://github.com/YunoHost-Apps/vaultwarden_ynh/issues/146#issuecomment-965332492 , I've tried the migration tools that failed unfortunately, leaving Bitwarden not completely removed and Vaultwarden half installed. I uninstalled properly (yunohost app remove) the half installed Vaultwarden and the remaining Bitwarden and tried to install again Vaultwarden alone. It failed again.

Both failure happened with exactly the same error:

2021-11-12 21:29:12,225: WARNING - info: downloading component 'rustfmt'
2021-11-12 21:29:12,684: WARNING - info: installing component 'cargo'
2021-11-12 21:29:14,529: WARNING - info: installing component 'clippy'
2021-11-12 21:29:15,404: WARNING - info: installing component 'rust-docs'
2021-11-12 21:29:28,597: WARNING - info: installing component 'rust-std'
2021-11-12 21:29:36,331: WARNING - info: installing component 'rustc'
2021-11-12 21:29:51,271: WARNING - info: installing component 'rustfmt'
2021-11-12 21:29:52,753: WARNING - info: default toolchain set to 'nightly-x86_64-unknown-linux-gnu'
2021-11-12 21:29:52,754: DEBUG - 
2021-11-12 21:29:52,818: DEBUG -   nightly-x86_64-unknown-linux-gnu installed - rustc 1.58.0-nightly (936238a92 2021-11-11)
2021-11-12 21:29:52,820: DEBUG - 
2021-11-12 21:29:52,823: DEBUG - 
2021-11-12 21:29:52,825: DEBUG - Rust is installed now. Great!
2021-11-12 21:29:52,826: DEBUG - 
2021-11-12 21:29:52,827: DEBUG - To get started you may need to restart your current shell.
2021-11-12 21:29:52,829: DEBUG - This would reload your PATH environment variable to include
2021-11-12 21:29:52,830: DEBUG - Cargo's bin directory ($HOME/.cargo/bin).
2021-11-12 21:29:52,831: DEBUG - 
2021-11-12 21:29:52,833: DEBUG - To configure your current shell, run:
2021-11-12 21:29:52,834: DEBUG - source $HOME/.cargo/env
2021-11-12 21:29:52,869: DEBUG - + popd
2021-11-12 21:29:52,871: DEBUG - /var/cache/yunohost/app_tmp_work_dirs/app_mlljkdky/scripts
2021-11-12 21:29:52,872: DEBUG - + export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/var/www/vaultwarden/.cargo/bin:/var/www/vaultwarden/.local/bin:/usr/local/sbin
2021-11-12 21:29:52,874: DEBUG - + PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/var/www/vaultwarden/.cargo/bin:/var/www/vaultwarden/.local/bin:/usr/local/sbin
2021-11-12 21:29:52,874: DEBUG - + pushd /var/www/vaultwarden/build
2021-11-12 21:29:52,875: DEBUG - /var/www/vaultwarden/build /var/cache/yunohost/app_tmp_work_dirs/app_mlljkdky/scripts
2021-11-12 21:29:52,876: DEBUG - + ynh_exec_warn_less sudo -u vaultwarden env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/var/www/vaultwarden/.cargo/bin:/var/www/vaultwarden/.local/bin:/usr/local/sbin cargo build --features sqlite --release
2021-11-12 21:29:52,877: DEBUG - + [[ 10 -eq 1 ]]
2021-11-12 21:29:52,878: DEBUG - + sudo -u vaultwarden env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/var/www/vaultwarden/.cargo/bin:/var/www/vaultwarden/.local/bin:/usr/local/sbin cargo build --features sqlite --release
2021-11-12 21:29:53,605: DEBUG -     Updating git repository `https://github.com/servo/rust-url`
2021-11-12 21:29:53,907: WARNING - /usr/share/yunohost/helpers.d/logging: line 134:  7258 Segmentation fault      "$@" 2>&1
2021-11-12 21:29:53,909: DEBUG - + ynh_exit_properly
2021-11-12 21:29:53,910: DEBUG - + local exit_code=139
2021-11-12 21:29:53,918: DEBUG - + '[' 139 -eq 0 ']'
2021-11-12 21:29:54,434: DEBUG - + ynh_clean_setup
2021-11-12 21:29:54,436: DEBUG - + ynh_clean_check_starting
2021-11-12 21:29:54,438: DEBUG - + '[' -n '' ']'
2021-11-12 21:29:54,440: DEBUG - + '[' -n '' ']'
2021-11-12 21:29:55,446: ERROR - Unable to install vaultwarden: An error occurred inside the app installation script

Do you know how I can solve this issue?

ColinMaudry commented 2 years ago

I was upgrading from Bitwarden 1.20 and got a very similar error: https://paste.yunohost.org/raw/suvidatada

yalh76 commented 2 years ago

Maybe something specific of rust the day you tryed to install. can you retry and let me know