E4S-Project / e4s-cl

Container manager for E4S
https://e4s-cl.readthedocs.io
MIT License
14 stars 3 forks source link

Apptainer/singularity: File does not exist in container #85

Closed spoutn1k closed 2 years ago

spoutn1k commented 2 years ago

On some configurations, the container backend (apptainer/singularity) refuses to run with the following error:

FATAL:   container creation failed: 
mount /usr/lib/openmpi/libompi_dbg_msgq.so->/usr/lib/openmpi/libompi_dbg_msgq.so error: 
while mounting /usr/lib/openmpi/libompi_dbg_msgq.so: 
destination /usr/lib/openmpi/libompi_dbg_msgq.so doesn't exist in container

This is due to a file binding order/duplicate. In the above example, both /usr and /usr/lib/openmpi/libompi_dbg_msgq.so are bound to the container, and the backend mixes things up as one overwrites the other.