Skip to content

Singularity container - difficulty building flag_combinefilter.image #20

@G-Thomson

Description

@G-Thomson

I know you have been working on packaging FLAG in one Singularity container. I have been trying to run it today on my institution's cluster and have been running into issues.

First, when I ran build_singularity_flag.sh I got the following error (or similar) for every sub singularity container called in direct_pull_singularity_images_and_move_to_folders.sh

FATAL:   While making image from oci registry: error fetching image to cache: while building SIF from layers: packer failed to pack: while unpacking tmpfs: error unpacking rootfs: unpack entry: opt/seqkit: apply hdr metadata: restore chown metadata: /tmp/build-temp-3056869678/rootfs/opt/seqkit: lchown /tmp/build-temp-3056869678/rootfs/opt/seqkit: invalid argument

I solved this by amending ./containers/singularity_flag/singularity_flag.def to use a slightly newer version of singularity
wget -O- https://github.com/sylabs/singularity/releases/download/v4.1.2/singularity-ce_4.1.2-jammy_amd64.deb > singularity.deb

and by directing singularity tmp files to the /tmp directory for each pull command in direct_pull_singularity_images_and_move_to_folders.sh via the following command:

sed -i -e 's/pull/pull --tmpdir=\/tmp/g' direct_pull_singularity_images_and_move_to_folders.sh

I an now running into an issue in building the flag_combinefilter.image file.
I get the following error.

WARNING: Could not lookup the current user's information: user: unknown userid 16748
FATAL:   container creation failed: mount /.singularity.d/libs/fakeroot->/.singularity.d/libs/fakeroot error: while mounting /.singularity.d/libs/fakeroot: destination /.singularity.d/libs/fakeroot doesn't exist in container
FATAL:   While performing build: while running engine: exit status 255

I am not yet sure what this means or how to fix it.

Many thanks for your help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions