-
Dear all, Our users have troubles in running jobs with singularity containers. This happens for every kind of image and on every node. It seems to be related to some missing library in DIRACOS. Here below the error message: generated by this simple command line:
A solution is ti use unpacked images pre-installed somewhere, e.g. CVMFS, but for testing purpose this is not practical. Could you please suggest a proper solution? Thank you, Luisa |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi Luisa, We had a similar issue in GridPP this week: I think there is an incompatibility between the way singularity is packaged in DIRACOS2 and the way singularity processes the dependencies for unsquashfs[*]. We generally advise people to use unpacked versions as you mention (you can just create a tar file of an unpacked directory and untar it in a test job). A quick workaround for testing is to reset the path, although this requires the machine to have mksquashfs and unsquashfs installed locally: $ PATH="/usr/bin:/usr/sbin" $(command -v singularity) exec --no-home docker://centos:7 echo "Hello world"
INFO: Converting OCI blobs to SIF format
INFO: Starting build...
...
INFO: Creating SIF file...
INFO: Converting SIF file to temporary sandbox...
Hello world
INFO: Cleaning up image... Regards, [*] This appears to be caused by the relative RPATH in the unsquashfs executable: singularity reads the library paths and runs unsquashfs in a temporary container with bind mounts for all of the libraries needed. With the relative library paths, the calculated bind mounts contain "/../" which don't seem to work properly and fail, so you get missing libraries. I'll put in an issue with singularity/apptainer and see if this is something that can be fixed properly. |
Beta Was this translation helpful? Give feedback.
-
Hi, I did some more testing of this and it seems like the 3.8.7 version of singularity is now tagged as broken in conda-forge: It looks to me like 3.8.6 version works with sif files...
I don't know if it'd be possible for there to be a new DIRACOS2 release with the previous non-broken singularity version @chrisburr ? Regards, |
Beta Was this translation helpful? Give feedback.
-
I've tested the latest version of DIRACOS2 and it contains singularity 3.8.6, so this should all be fixed now... Regards, |
Beta Was this translation helpful? Give feedback.
I've tested the latest version of DIRACOS2 and it contains singularity 3.8.6, so this should all be fixed now...
Regards,
Simon