dionysius / vaultwarden-deb

clean(er) debian packaging for vaultwarden
MIT License
30 stars 2 forks source link

process didn't exit successfully #13

Closed Artim96 closed 5 months ago

Artim96 commented 5 months ago

I'm trying to compile the deb again in a Debian Stable VM, as I originally compiled it on Testing, but that won't be able to run on a Stable system. But the Stable systm doesn't have enough space for compiling. I've installed everything needed, including both the rust 1.78 toolchain via rustup and cargo (and with that the rust toolchain of Stable). For some reason toolchain 1.76 is being installed by the script (either by it or vaultwarden), but compilation fails with this message: Screenshot from 2024-06-06 11-16-49

dionysius commented 5 months ago

I see SIGKILL in your message. Something is killing the build process from outside. Is that a container or VM? Have a look into the /var/log/kern.log on your host system. Probably OOM (out-of-memory)

dionysius commented 5 months ago

Oh, and 1.76 is used because https://github.com/dani-garcia/vaultwarden/blob/1.30.5/rust-toolchain.toml describes it. rustup handles this autonomously. But since the --locked fix from #12 this should not be an issue to build with 1.76, cargo will use the dependencies references by version as defined in the lock file https://github.com/dani-garcia/vaultwarden/blob/1.30.5/Cargo.lock

dionysius commented 5 months ago

Building this locally on my laptop (with other tools open and full desktop environment) the full system memory usage peaked at 19.2GB. There are several issues in cargo addressing memory issues, e.g.: https://github.com/rust-lang/cargo/issues/12912

Artim96 commented 5 months ago

Right, compiling diesel_migrations and building the packages takes up loads of memory. In a VirtualBox VM on a very basic install from Debian Netinstall, it used 14.7 GB of memory (measured by GNU time). Was confused that compiling on an 8 GB machine on the other hand wasn't a problem. But loads of swap space does that for you.

Artim96 commented 5 months ago

Do this is done now