Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
smlpt opened this issue Oct 1, 2024 · 0 comments

Comments

@smlpt
Copy link
Contributor

smlpt commented Oct 1, 2024

System:

  • Ubuntu 24.04.1 LTS
  • Kernel 6.8.0-45
  • NVIDIA A40
  • Apptainer v1.3.4
  • using v0.6 development branch (head at 5306819)

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant