Change in Singularity requires a change in the wrapper script
In the new version of Singularity released today --contain is incompatible w/ mounting by hand tmp "--scratch /var/tmp --scratch /tmp"
The current options in the wrapper script will cause a failure:
exec "$GWMS_SINGULARITY_PATH" exec $GWMS_SINGULARITY_EXTRA_OPTS \ --home $PWD:/srv \ --pwd /srv --scratch /var/tmp --scratch /tmp \ --contain --ipc --pid \ "$GWMS_SINGULARITY_IMAGE" $JOB_WRAPPER_SINGULARITY $CMD
The --scratch options should be removed.
#2 Updated by Marco Mambelli almost 2 years ago
Singularity is invoked in both creation/web_base/frontend/default_singularity_wrapper.sh (fixed in 220.127.116.11) and creation/web_base/singularity_setup.sh (forgotten)
Starting w/ Singularity 2.4.6, available in osg-testing RPM repo (production has still 2.4.2-1.osg34.el6) remounting of directories are not possible
--contain mounts /tmp /var/tmp and other directories (the list is not in the documentation)
--scratch /var/tmp and --scratch /tmp remount those directories, causing a failure
v3/19658 contains all fixes:
creation/web_base/frontend/default_singularity_wrapper.sh and creation/web_base/singularity_setup.sh