On some environements, if an apptainer container takes too long to mount its userspace filesystems, the container fails to setup. On ComputeCanada is looks like this:
FATAL: container creation failed: mount hook function failure:
mount /proc/self/fd/9->/cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/apptainer/1.1.6/var/apptainer/mnt/session/data-images/0
error: while mounting image /proc/self/fd/9:
fuse2fs failed to mount /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/apptainer/1.1.6/var/apptainer/mnt/session/data-images/0 in 10s
There's a maximum allowed delay of 10 seconds for the FUSE mount to succeed.
Our script that launch apptainer containers should detect such situations and just try again, maybe multiple times (5 times?)
On some environements, if an apptainer container takes too long to mount its userspace filesystems, the container fails to setup. On ComputeCanada is looks like this:
There's a maximum allowed delay of 10 seconds for the FUSE mount to succeed.
Our script that launch apptainer containers should detect such situations and just try again, maybe multiple times (5 times?)