Skip to content

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

@smlpt

Description

@smlpt

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions