Insufficient memory leads to package install failure with micromamba, but docker build
still succeeds
#1100
Labels
type::bug
Something isn't working
Issue
When there's not enough memory,
micromamba install
fails to install some packages, but still has exit code 0. This can cause, eg, adocker build
to succeed and generate a broken image that's missing packages.Steps to reproduce
The following examples installs tensorflow when limited to 300MB of memory. Note the
/tmp/mambaf8guFlIGAYT: line 4: 57 Killed
bit near the end. I believe this is due to a process being killed due to memory limits, leading to the failed install. But the exit code is 0.Root cause / solution(?)
With some random poking, I found an example /tmp/mamba* file that looked like this:
It seems like the "Line 4: ... Killed" is referring to the final line in the script mentioned above. I think the problem is that the system is terminating the command on line 4 due to running out of memory, but this failure isn't propagated so
micromamba install
has exit code 0.I believe including
set -e
or usingexec
in this script would cause the error to propagate to micromamba.Misc
Some instances of people saying they needed to increase the memory limits for docker build:
Thanks to @wholtz for the simple reproduction above (originally from mamba-org/micromamba-docker#29 (comment)).
The text was updated successfully, but these errors were encountered: