elephant-track / elephant-server

A server implementation of ELEPHANT
BSD 2-Clause "Simplified" License
7 stars 5 forks source link

Apptainer: container creation failed; /.elephant_binds/var/lib doesn't exist (runscript not called) #32

Open smlpt opened 1 month ago

smlpt commented 1 month ago

System:

Issue: When trying to run make apptainer-launch after building the apptainer image, the start-up crashes with the following error:

ERROR:   container cleanup failed: no instance found with name elephant0
FATAL:   container creation failed: mount hook function failure: mount /home/pantze28/.elephant_binds/var/lib->/var/lib error: while mounting /home/pantze28/.elephant_binds/var/lib: mount source /home/pantze28/.elephant_binds/var/lib doesn't exist

This happens because the ~/.elephant_binds directory does not exist. It should be created in the %runscript part of elephant.def, but it seems that this script is not being executed when performing make apptainer-launch (I added an echo for debugging in %runscript). I tried renaming the script to %startscript because make apptainer-launch calls apptainer instance start under the hood, but that also did get called.

Could this be related to #22 ?