Creating a bug report/issue
Required Information
-
DietPi version | cat /boot/dietpi/.version
G_DIETPI_VERSION_CORE=8
G_DIETPI_VERSION_SUB=5
G_DIETPI_VERSION_RC=1
G_GITBRANCH=‘master’
G_GITOWNER=‘MichaIng’
-
Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
bullseye 1
-
Kernel version | uname -a
Linux DietPi 5.15.32-v7+ #1538 SMP Thu Mar 31 19:38:48 BST 2022 armv7l GNU/Linux
-
SBC model | echo $G_HW_MODEL_NAME
or (EG: RPi3)
RPi 2 Model B (armv7l)
-
Power supply used | Official Raspberry pi powersupply
-
SD card used | USB SSD
Additional Information (if applicable)
- Software title | Vaultvarden
- Was the software title installed freshly or updated/migrated?
updated
- Can this issue be replicated on a fresh installation of DietPi?
may be i do not know
Steps to reproduce
- Vaultwarden was working on my raspberry pi
- today i tried to update vaultwarden with command “dietpi-software reinstall 183”
- update fail with blue screen
- now vaultwarden is not started even old one
#### Expected behaviour
- vaultwarden must update & restart
#### Actual behaviour
- vaultwarden update fail & not starting
#### Extra details
- log file as below
root@DietPi:~# journalctl -u vaultwarden
Journal file /var/log/journal/57258817a57c4498b87a8f128ea3af12/system.journal is truncated, ignoring file.
-- Journal begins at Mon 2022-06-06 14:23:12 MDT, ends at Mon 2022-06-06 16:26:51 MDT. --
Jun 06 14:23:17 DietPi systemd[1]: Started vaultwarden Server (Rust Edition).
Jun 06 14:23:17 DietPi systemd[446]: vaultwarden.service: Failed to locate executable /opt/vaultwarden/target/release/vaultwarden: No such file or directory
Jun 06 14:23:17 DietPi systemd[446]: vaultwarden.service: Failed at step EXEC spawning /opt/vaultwarden/target/release/vaultwarden: No such file or directory
Jun 06 14:23:17 DietPi systemd[1]: vaultwarden.service: Main process exited, code=exited, status=203/EXEC
Jun 06 14:23:17 DietPi systemd[1]: vaultwarden.service: Failed with result 'exit-code'.
Jun 06 14:23:22 DietPi systemd[1]: vaultwarden.service: Scheduled restart job, restart counter is at 1.
Jun 06 14:23:22 DietPi systemd[1]: Stopped vaultwarden Server (Rust Edition).
Jun 06 14:23:22 DietPi systemd[1]: Started vaultwarden Server (Rust Edition).
Jun 06 14:23:22 DietPi systemd[638]: vaultwarden.service: Failed to locate executable /opt/vaultwarden/target/release/vaultwarden: No such file or directory
Jun 06 14:23:22 DietPi systemd[638]: vaultwarden.service: Failed at step EXEC spawning /opt/vaultwarden/target/release/vaultwarden: No such file or directory
Jun 06 14:23:22 DietPi systemd[1]: vaultwarden.service: Main process exited, code=exited, status=203/EXEC
Jun 06 14:23:22 DietPi systemd[1]: vaultwarden.service: Failed with result 'exit-code'.
Jun 06 14:23:27 DietPi systemd[1]: vaultwarden.service: Scheduled restart job, restart counter is at 2.
Jun 06 14:23:27 DietPi systemd[1]: Stopped vaultwarden Server (Rust Edition).
Jun 06 14:23:27 DietPi systemd[1]: Started vaultwarden Server (Rust Edition).
Jun 06 14:23:27 DietPi systemd[650]: vaultwarden.service: Failed to locate executable /opt/vaultwarden/target/release/vaultwarden: No such file or directory
Jun 06 14:23:27 DietPi systemd[650]: vaultwarden.service: Failed at step EXEC spawning /opt/vaultwarden/target/release/vaultwarden: No such file or directory
Jun 06 14:23:27 DietPi systemd[1]: vaultwarden.service: Main process exited, code=exited, status=203/EXEC
Jun 06 14:23:27 DietPi systemd[1]: vaultwarden.service: Failed with result 'exit-code'.
Jun 06 14:23:32 DietPi systemd[1]: vaultwarden.service: Scheduled restart job, restart counter is at 3.
Jun 06 14:23:32 DietPi systemd[1]: Stopped vaultwarden Server (Rust Edition).
Jun 06 14:23:32 DietPi systemd[1]: Started vaultwarden Server (Rust Edition).
Jun 06 14:23:33 DietPi systemd[667]: vaultwarden.service: Failed to locate executable /opt/vaultwarden/target/release/vaultwarden: No such file or directory
Jun 06 14:23:33 DietPi systemd[667]: vaultwarden.service: Failed at step EXEC spawning /opt/vaultwarden/target/release/vaultwarden: No such file or directory
Jun 06 14:23:33 DietPi systemd[1]: vaultwarden.service: Main process exited, code=exited, status=203/EXEC
Jun 06 14:23:33 DietPi systemd[1]: vaultwarden.service: Failed with result 'exit-code'.
Jun 06 14:23:38 DietPi systemd[1]: vaultwarden.service: Scheduled restart job, restart counter is at 4.
Jun 06 14:23:38 DietPi systemd[1]: Stopped vaultwarden Server (Rust Edition).
Jun 06 14:23:38 DietPi systemd[1]: Started vaultwarden Server (Rust Edition).
Jun 06 14:23:38 DietPi systemd[676]: vaultwarden.service: Failed to locate executable /opt/vaultwarden/target/release/vaultwarden: No such file or directory
Jun 06 14:23:38 DietPi systemd[676]: vaultwarden.service: Failed at step EXEC spawning /opt/vaultwarden/target/release/vaultwarden: No such file or directory
Jun 06 14:23:38 DietPi systemd[1]: vaultwarden.service: Main process exited, code=exited, status=203/EXEC
Jun 06 14:23:38 DietPi systemd[1]: vaultwarden.service: Failed with result 'exit-code'.
Jun 06 14:23:43 DietPi systemd[1]: vaultwarden.service: Scheduled restart job, restart counter is at 5.
Jun 06 14:23:43 DietPi systemd[1]: Stopped vaultwarden Server (Rust Edition).
Jun 06 14:23:43 DietPi systemd[1]: vaultwarden.service: Start request repeated too quickly.
Jun 06 14:23:43 DietPi systemd[1]: vaultwarden.service: Failed with result 'exit-code'.
Jun 06 14:23:43 DietPi systemd[1]: Failed to start vaultwarden Server (Rust Edition).
![dietpi_vaultwarden_2|690x402](upload://fq7aQJOIn0h8box2hrYOzeZDMJf.png)
Blue error screen show following log if useful for brainstorming
’
Compiling fern v0.6.1
Compiling diesel_migrations v1.4.0
Compiling hyper-tls v0.5.0
Compiling reqwest v0.11.10
Compiling yubico v0.11.0
error: could not compile vaultwarden
Caused by:
process didn’t exit successfully: rustc --crate-name vaultwarden --edition=2021 src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C opt-level=3 -C lto=thin --cfg 'feature="libsqlite3-sys"' --cfg 'feature="sqlite"' -C metadata=b93a34c84c49cef0 -C extra-filename=-b93a34c84c49cef0 --out-dir /opt/vaultwarden/target/release/deps -C strip=debuginfo -L dependency=/opt/vaultwarden/target/release/deps --extern backtrace=/opt/vaultwarden/target/release/deps/libbacktrace-85197329a21b1dd7.rlib --extern bytes=/opt/vaultwarden/target/release/deps/libbytes-01332363d1a0e40e.rlib --extern cached=/opt/vaultwarden/target/release/deps/libcached-81c1bc59e266ae8d.rlib --extern chashmap=/opt/vaultwarden/target/release/deps/libchashmap-ac5321f8e1002f09.rlib --extern chrono=/opt/vaultwarden/target/release/deps/libchrono-01b429907ea667ca.rlib --extern chrono_tz=/opt/vaultwarden/target/release/deps/libchrono_tz-c9a17e71250b818c.rlib --extern cookie=/opt/vaultwarden/target/release/deps/libcookie-83bb50cd09d59e62.rlib --extern cookie_store=/opt/vaultwarden/target/release/deps/libcookie_store-541fca9b2902184c.rlib --extern ctrlc=/opt/vaultwarden/target/release/deps/libctrlc-567ec1a5ea2b604c.rlib --extern data_encoding=/opt/vaultwarden/target/release/deps/libdata_encoding-c5ae8b1b3c76c023.rlib --extern data_url=/opt/vaultwarden/target/release/deps/libdata_url-c6c912d9240d5dc8.rlib --extern diesel=/opt/vaultwarden/target/release/deps/libdiesel-5df6224218d0e02d.rlib --extern diesel_migrations=/opt/vaultwarden/target/release/deps/libdiesel_migrations-6b64667229513aaa.rlib --extern dotenvy=/opt/vaultwarden/target/release/deps/libdotenvy-0d096656bb0bcadc.rlib --extern fern=/opt/vaultwarden/target/release/deps/libfern-3effe40a3bf189e6.rlib --extern futures=/opt/vaultwarden/target/release/deps/libfutures-9e6964707f8e2f70.rlib --extern governor=/opt/vaultwarden/target/release/deps/libgovernor-f2e13c20f5625fb2.rlib --extern handlebars=/opt/vaultwarden/target/release/deps/libhandlebars-f23b898cb32be292.rlib --extern html5gum=/opt/vaultwarden/target/release/deps/libhtml5gum-0303979ed24c4148.rlib --extern idna=/opt/vaultwarden/target/release/deps/libidna-d5ecabcd7743ec05.rlib --extern job_scheduler=/opt/vaultwarden/target/release/deps/libjob_scheduler-0618514544d12880.rlib --extern jsonwebtoken=/opt/vaultwarden/target/release/deps/libjsonwebtoken-ed2b816580701f08.rlib --extern lettre=/opt/vaultwarden/target/release/deps/liblettre-4cad0a667ca8aad2.rlib --extern libsqlite3_sys=/opt/vaultwarden/target/release/deps/liblibsqlite3_sys-7c81b7b7c175026e.rlib --extern log=/opt/vaultwarden/target/release/deps/liblog-ddab2eb870fb3c46.rlib --extern num_derive=/opt/vaultwarden/target/release/deps/libnum_derive-ec83b7aa5f6acfcb.so --extern num_traits=/opt/vaultwarden/target/release/deps/libnum_traits-bff377983f8c0a94.rlib --extern once_cell=/opt/vaultwarden/target/release/deps/libonce_cell-37b64e370822957b.rlib --extern openssl=/opt/vaultwarden/target/release/deps/libopenssl-65e695afca2afbd0.rlib --extern ws=/opt/vaultwarden/target/release/deps/libparity_ws-d74cce35a606e996.rlib --extern paste=/opt/vaultwarden/target/release/deps/libpaste-1c83657cb61cf3c8.so --extern percent_encoding=/opt/vaultwarden/target/release/deps/libpercent_encoding-07ded23d9b0a0d29.rlib --extern pico_args=/opt/vaultwarden/target/release/deps/libpico_args-a00a6360ffbc2c02.rlib --extern rand=/opt/vaultwarden/target/release/deps/librand-84a4bc0693e6c278.rlib --extern regex=/opt/vaultwarden/target/release/deps/libregex-ea9c71baf994075b.rlib --extern reqwest=/opt/vaultwarden/target/release/deps/libreqwest-b52e87c157280d14.rlib --extern ring=/opt/vaultwarden/target/release/deps/libring-e225f02641321851.rlib --extern rmpv=/opt/vaultwarden/target/release/deps/librmpv-9972b2e7679b7c9e.rlib --extern rocket=/opt/vaultwarden/target/release/deps/librocket-73b8895055503c24.rlib --extern serde=/opt/vaultwarden/target/release/deps/libserde-c9ea5423b3f8fb9e.rlib --extern serde_json=/opt/vaultwarden/target/release/deps/libserde_json-fcbdd7231ef90614.rlib --extern syslog=/opt/vaultwarden/target/release/deps/libsyslog-cf36b4de2411b7ac.rlib --extern time=/opt/vaultwarden/target/release/deps/libtime-0d218b38a661c911.rlib --extern tokio=/opt/vaultwarden/target/release/deps/libtokio-327f9bb9250a1075.rlib --extern totp_lite=/opt/vaultwarden/target/release/deps/libtotp_lite-cd46fc48a1646fc8.rlib --extern tracing=/opt/vaultwarden/target/release/deps/libtracing-20202f1ecda0f6b7.rlib --extern url=/opt/vaultwarden/target/release/deps/liburl-4538405161897813.rlib --extern uuid=/opt/vaultwarden/target/release/deps/libuuid-1eed097332eb1db5.rlib --extern webauthn_rs=/opt/vaultwarden/target/release/deps/libwebauthn_rs-dfd742c8c7f79c7b.rlib --extern yubico=/opt/vaultwarden/target/release/deps/libyubico-529fab3330c2af57.rlib --cfg sqlite -L native=/opt/vaultwarden/target/release/build/libsqlite3-sys-f403fdf87f72fbb2/out -L native=/opt/vaultwarden/target/release/build/ring-4076a7aaf4d4a5f9/out
(signal: 9, SIGKILL: kill)
`
Reboot your system and try to reinstall again
I did many times, i repeated same procedure three four time today. same failure in end after “Compiling yubico v0.11.0” system freeze for some time & then blue error screen pop up.
The process got killed. Most probably some memory issues. Keep watching memory usage during reinstall. I guess it’s reaching limits. How much SWAP you are using?
i am using raspberrpi b2 with 1 gb ram & swap file also 1gb, if ram is the issue please tell me how to increase the ram to 2 gb. my ssd is 200 gb free space.
I increase the swap file to 2 gb with following command
/boot/dietpi/func/dietpi-set_swapfile 4096
also again restart the vaulvarden reinstall procedure & inform you the result soon
again system fail, same type of log . i am using swap size 4096 for my raspberry pi b2
Compiling fern v0.6.1
│ Compiling jsonwebtoken v8.1.0
│ Compiling diesel_migrations v1.4.0
│ Compiling hyper-tls v0.5.0
│ Compiling reqwest v0.11.10
│ Compiling yubico v0.11.0
│ terminate called after throwing an instance of 'std::bad_alloc'
│ what(): std::bad_alloc
│ error: could not compile `vaultwarden`
│
│ Caused by:
│ process didn't exit successfully: `rustc --crate-name vaultwarden --edition=2021 src/main.rs --error-format=json
│ --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C opt-level=3 -C
│ lto=thin --cfg 'feature="libsqlite3-sys"' --cfg 'feature="sqlite"' -C metadata=b93a34c84c49cef0 -C
│ extra-filename=-b93a34c84c49cef0 --out-dir /opt/vaultwarden/target/release/deps -C strip=debuginfo -L
│ dependency=/opt/vaultwarden/target/release/deps --extern
│ backtrace=/opt/vaultwarden/target/release/deps/libbacktrace-85197329a21b1dd7.rlib --extern
│ bytes=/opt/vaultwarden/target/release/deps/libbytes-01332363d1a0e40e.rlib --extern
│ cached=/opt/vaultwarden/target/release/deps/libcached-81c1bc59e266ae8d.rlib --extern
│ chashmap=/opt/vaultwarden/target/release/deps/libchashmap-ac5321f8e1002f09.rlib --extern
│ chrono=/opt/vaultwarden/target/release/deps/libchrono-01b429907ea667ca.rlib --extern
│ chrono_tz=/opt/vaultwarden/target/release/deps/libchrono_tz-c9a17e71250b818c.rlib --extern
│ cookie=/opt/vaultwarden/target/release/deps/libcookie-83bb50cd09d59e62.rlib --extern
│ cookie_store=/opt/vaultwarden/target/release/deps/libcookie_store-541fca9b2902184c.rlib --extern
│ ctrlc=/opt/vaultwarden/target/release/deps/libctrlc-567ec1a5ea2b604c.rlib --extern
│ data_encoding=/opt/vaultwarden/target/release/deps/libdata_encoding-c5ae8b1b3c76c023.rlib --extern
│ data_url=/opt/vaultwarden/target/release/deps/libdata_url-c6c912d9240d5dc8.rlib --extern
│ diesel=/opt/vaultwarden/target/release/deps/libdiesel-5df6224218d0e02d.rlib --extern
│ diesel_migrations=/opt/vaultwarden/target/release/deps/libdiesel_migrations-6b64667229513aaa.rlib --extern
│ dotenvy=/opt/vaultwarden/target/release/deps/libdotenvy-0d096656bb0bcadc.rlib --extern
│ fern=/opt/vaultwarden/target/release/deps/libfern-3effe40a3bf189e6.rlib --extern
│ futures=/opt/vaultwarden/target/release/deps/libfutures-9e6964707f8e2f70.rlib --extern
│ governor=/opt/vaultwarden/target/release/deps/libgovernor-f2e13c20f5625fb2.rlib --extern
│ handlebars=/opt/vaultwarden/target/release/deps/libhandlebars-f23b898cb32be292.rlib --extern
│ html5gum=/opt/vaultwarden/target/release/deps/libhtml5gum-0303979ed24c4148.rlib --extern
│ idna=/opt/vaultwarden/target/release/deps/libidna-d5ecabcd7743ec05.rlib --extern
│ job_scheduler=/opt/vaultwarden/target/release/deps/libjob_scheduler-0618514544d12880.rlib --extern
│ jsonwebtoken=/opt/vaultwarden/target/release/deps/libjsonwebtoken-ed2b816580701f08.rlib --extern
│ lettre=/opt/vaultwarden/target/release/deps/liblettre-4cad0a667ca8aad2.rlib --extern
│ libsqlite3_sys=/opt/vaultwarden/target/release/deps/liblibsqlite3_sys-7c81b7b7c175026e.rlib --extern
│ log=/opt/vaultwarden/target/release/deps/liblog-ddab2eb870fb3c46.rlib --extern
root@DietPi:~# free -m
total used free shared buff/cache available
Mem: 973 239 454 61 279 619
Swap: 4095 843 3252
root@DietPi:~#
Details:
- Date | Mon Jun 6 20:31:12 MDT 2022
- DietPi version | v8.5.1 (MichaIng/master)
- Image creator | DietPi Core Team
- Pre-image | Raspbian Lite
- Hardware | RPi 2 Model B (armv7l) (ID=2)
- Kernel version |
Linux DietPi 5.15.32-v7+ #1538 SMP Thu Mar 31 19:38:48 BST 2022 armv7l GNU/Linux
- Distro | bullseye (ID=6,RASPBIAN=1)
- Command |
cargo build --features sqlite --release
- Exit code | 101
- Software title | DietPi-Software
Steps to reproduce:
- …
- …
Expected behaviour:
Actual behaviour:
Extra details:
Additional logs:
Compiling vaultwarden v1.0.0 (/opt/vaultwarden)
thread '<unnamed>' panicked at 'wanted an rlib: "Cannot allocate memory"', compiler/rustc_codegen_llvm/src/back/lto.rs:112:49
stack backtrace:
0: 0x704cfa8c - std::backtrace_rs::backtrace::libunwind::trace::h411ecdfee4883958
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
1: 0x704cfa8c - std::backtrace_rs::backtrace::trace_unsynchronized::h5b76ed3a4aac0add
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: 0x704cfa8c - std::sys_common::backtrace::_print_fmt::h5980b58201241fb4
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/sys_common/backtrace.rs:66:5
3: 0x704cfa8c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::had5730c67ab50e4d
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/sys_common/backtrace.rs:45:22
4: 0x70530f00 - core::fmt::write::ha42b2480a34f3eb5
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/core/src/fmt/mod.rs:1194:17
5: 0x704c08cc - std::io::Write::write_fmt::hfa663667fab44c82
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/io/mod.rs:1655:15
6: 0x704d2d34 - std::sys_common::backtrace::_print::h159351218049fc98
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/sys_common/backtrace.rs:48:5
7: 0x704d2d34 - std::sys_common::backtrace::print::h14d61e4374feb17a
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/sys_common/backtrace.rs:35:9
8: 0x704d2d34 - std::panicking::default_hook::{{closure}}::h6e8d770966f585fd
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panicking.rs:295:22
9: 0x704d28e4 - std::panicking::default_hook::h71b5cfb8a06cd56f
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panicking.rs:314:9
10: 0x70bff2a8 - <unknown>
11: 0x643fd450 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h1914302d2a05cb45
12: 0x6442ba94 - proc_macro::bridge::client::<impl proc_macro::bridge::Bridge>::enter::{{closure}}::{{closure}}::hfc6df75807c47581
13: 0x64468e0c - std::panicking::update_hook::{{closure}}::ha9d8861d9edb5fc8
14: 0x704d3584 - std::panicking::rust_panic_with_hook::hfc13f45907194734
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panicking.rs:702:17
15: 0x704d3360 - std::panicking::begin_panic_handler::{{closure}}::h8bd28c15b24c2fb7
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panicking.rs:588:13
16: 0x704d0008 - std::sys_common::backtrace::__rust_end_short_backtrace::hef7cb296473d0b87
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/sys_common/backtrace.rs:138:18
17: 0x704d311c - rust_begin_unwind
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panicking.rs:584:5
18: 0x70496f7c - core::panicking::panic_fmt::hc45184285ee465d2
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/core/src/panicking.rs:143:14
19: 0x70497050 - core::result::unwrap_failed::h51f4224fc12cbf0e
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/core/src/result.rs:1785:5
20: 0x70e431d0 - <unknown>
21: 0x70e56db8 - <unknown>
22: 0x70dd4ee0 - <unknown>
23: 0x70e194b4 - <unknown>
24: 0x70e97c74 - <unknown>
25: 0x704dde80 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h35fe2fe648286d10
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/alloc/src/boxed.rs:1861:9
26: 0x704dde80 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hb027b34d04a0b178
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/alloc/src/boxed.rs:1861:9
27: 0x704dde80 - std::sys::unix::thread::Thread::new::thread_start::h4d2e91ba3882837c
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/sys/unix/thread.rs:108:17
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md
note: rustc 1.61.0 (fe5b13d68 2022-05-18) running on armv7-unknown-linux-gnueabihf
note: compiler flags: --crate-type bin -C opt-level=3 -C lto=thin -C strip=debuginfo
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
end of query stack
thread 'rustc' panicked at '/rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/compiler/rustc_codegen_ssa/src/back/write.rs:1822:17: panic during codegen/LLVM phase', compiler/rustc_middle/src/util/bug.rs:35:26
stack backtrace:
0: 0x704cfa8c - std::backtrace_rs::backtrace::libunwind::trace::h411ecdfee4883958
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
1: 0x704cfa8c - std::backtrace_rs::backtrace::trace_unsynchronized::h5b76ed3a4aac0add
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: 0x704cfa8c - std::sys_common::backtrace::_print_fmt::h5980b58201241fb4
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/sys_common/backtrace.rs:66:5
3: 0x704cfa8c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::had5730c67ab50e4d
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/sys_common/backtrace.rs:45:22
4: 0x70530f00 - core::fmt::write::ha42b2480a34f3eb5
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/core/src/fmt/mod.rs:1194:17
5: 0x704c08cc - std::io::Write::write_fmt::hfa663667fab44c82
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/io/mod.rs:1655:15
6: 0x704d2d34 - std::sys_common::backtrace::_print::h159351218049fc98
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/sys_common/backtrace.rs:48:5
7: 0x704d2d34 - std::sys_common::backtrace::print::h14d61e4374feb17a
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/sys_common/backtrace.rs:35:9
8: 0x704d2d34 - std::panicking::default_hook::{{closure}}::h6e8d770966f585fd
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panicking.rs:295:22
9: 0x704d28e4 - std::panicking::default_hook::h71b5cfb8a06cd56f
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panicking.rs:314:9
10: 0x70bff2a8 - <unknown>
11: 0x643fd450 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h1914302d2a05cb45
12: 0x6442ba94 - proc_macro::bridge::client::<impl proc_macro::bridge::Bridge>::enter::{{closure}}::{{closure}}::hfc6df75807c47581
13: 0x64468e0c - std::panicking::update_hook::{{closure}}::ha9d8861d9edb5fc8
14: 0x704d3584 - std::panicking::rust_panic_with_hook::hfc13f45907194734
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panicking.rs:702:17
15: 0x74d82144 - <unknown>
16: 0x74d79700 - <unknown>
17: 0x70b0dcfc - <unknown>
18: 0x74d756a0 - <unknown>
19: 0x74d8dde0 - <unknown>
20: 0x74d90df4 - <unknown>
21: 0x70b14254 - <unknown>
22: 0x70e5a288 - <unknown>
23: 0x70de8f58 - <unknown>
24: 0x70e5907c - <unknown>
25: 0x70d9ceec - <unknown>
26: 0x70bbe8ac - <unknown>
27: 0x70c314f4 - <unknown>
28: 0x70bb8898 - <unknown>
29: 0x70c04a64 - <unknown>
30: 0x70bc60bc - <unknown>
31: 0x704dde80 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h35fe2fe648286d10
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/alloc/src/boxed.rs:1861:9
32: 0x704dde80 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hb027b34d04a0b178
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/alloc/src/boxed.rs:1861:9
33: 0x704dde80 - std::sys::unix::thread::Thread::new::thread_start::h4d2e91ba3882837c
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/sys/unix/thread.rs:108:17
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md
note: rustc 1.61.0 (fe5b13d68 2022-05-18) running on armv7-unknown-linux-gnueabihf
note: compiler flags: --crate-type bin -C opt-level=3 -C lto=thin -C strip=debuginfo
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
end of query stack
error: could not compile `vaultwarden`
[FAILED] DietPi-Software | Unable to continue, DietPi-Software will now terminate.
rlib: "Cannot allocate memory"
Indeed a memory issue, although 4 GiB swap should be more than sufficient . However, could you try to raise it further? I think we need to reduce the amount of concurrent jobs before increasing the swap file size. I’ll have a look into how to adjust the code when I’m back home.
Can you watch memory consumption using htop
while valtwarden is going to compile stuff? Just to get an idea where it fails. Maybe we should report as well to valtwarden devs in parallel.
Just want to chip in and say I get the same the error message on a RPi Model 3B.
Did you tried to reboot your system before starting the reinstall?
I made swap file of 10GB & then reboot & then give reinstall command system again fail at same location. near failing time system was using full 1GB hard ram & about 1.81GB swap file. as i was using swap file of 10 GB system having more then 8GB free memory. the screen shot near failure is at following link
Another idea: What is the size of your /tmp mount?
df /tmp
root@DietPi:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 58G 16G 42G 28% /
devtmpfs 455M 0 455M 0% /dev
tmpfs 487M 0 487M 0% /dev/shm
tmpfs 195M 3.0M 192M 2% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 5.5G 0 5.5G 0% /tmp
tmpfs 50M 8.0K 50M 1% /var/log
/dev/mmcblk0p1 253M 52M 201M 21% /boot
/dev/sda2 177G 34G 134G 20% /mnt/ssd5
root@DietPi:~# ^C
root@DietPi:~#
root@DietPi:~#
root@DietPi:~# df /tmp
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 5740544 0 5740544 0% /tmp
Okay that is more than sufficient, as expected increased with the swap file size. I’ll try to replicate it.
Just side question, is my valutwarden database is safe & i can retrieve my all password. if in future my system able to install vaultwarden through dietpi default installation. even in past working vaultwarden was the default installation by dietpi in december 2021. mostly i tried to update homeassistant & vaultwarden after six month frequency. but all system by dietpi default installation.