Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Singularity fails to build image on disk with sufficient space #6500

Closed
jhlegarreta opened this issue Aug 11, 2023 · 1 comment
Closed

Singularity fails to build image on disk with sufficient space #6500

jhlegarreta opened this issue Aug 11, 2023 · 1 comment

Comments

@jhlegarreta
Copy link

Hi,
thanks for developing and maintaining this tool.

I am trying to build a singularity image following https://qsiprep.readthedocs.io/en/latest/installation.html#singularity-container:

singularity build /mnt/data/containers/qsiprep/qsiprep-0.19.0.sif docker://pennbbl/qsiprep:0.19.0

However, the build is systematically failing with the following error:

INFO:    Creating SIF file...
FATAL:   While performing build: while creating squashfs: create command failed: exit status 1: Write failed because No space left on device
FATAL ERROR: Failed to write to output filesystem

I have set my SINGULARITY_CACHEDIR to point to a hard drive that I have mounted and that has 4 TB of capacity. The variable reads

/mnt/data/containers/.singularity

The disk capacity reads

$ df -H
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           3.4G  2.5M  3.4G   1% /run
/dev/nvme0n1p2  135G  106G   22G  83% /
tmpfs            17G  318M   17G   2% /dev/shm
tmpfs           5.3M  4.1k  5.3M   1% /run/lock
/dev/nvme0n1p4  333G  183G  134G  58% /home
/dev/nvme0n1p1  1.1G  6.4M  1.1G   1% /boot/efi
/dev/sda1       4.0T  316G  3.5T   9% /mnt/data
tmpfs           3.4G  181k  3.4G   1% /run/user/1001

So the disk at issue has only 9% of its capacity used; the usage of the disk at issue reads

$ du -hs /mnt/data
295G	/mnt/data

Version of Singularity:

singularity-ce version 3.11.3

Expected behavior

I would expect the singularity image to be built without issues.

Actual behavior

The image build process fails apparently due to a disk space problem.

Steps to reproduce this behavior

Run

singularity build /mnt/data/containers/qsiprep/qsiprep-0.19.0.sif docker://pennbbl/qsiprep:0.19.0

What OS/distro are you running

$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

How did you install Singularity

Followed the instructions on the singularity documentation:
https://docs.sylabs.io/guides/3.0/user-guide/installation.html#install-dependencies

@github-actions
Copy link

New issues are no longer accepted in this repository. If singularity --version says singularity-ce, submit instead to https://github.com/sylabs/singularity, otherwise submit to https://github.com/apptainer/apptainer.

@github-actions github-actions bot locked and limited conversation to collaborators Aug 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant