No space left on device with 'singularity build --sandbox'

424 views
Skip to first unread message

Kaur Alasoo

unread,
Jul 13, 2018, 3:55:47 PM7/13/18
to singularity
Hi,

I am running Singularity in an Ubuntu virtual machine:
vagrant@ubuntu-bionic:~$ singularity --version
2.5.2-master.b258b651

I managed to create and start a Singularity container using the following commands:

sudo singularity build --sandbox ubuntu shub://singularityhub/ubuntu
sudo singularity shell ubuntu/

Within the container, I can see that there is 2GB of free space:
Singularity ubuntu:~> df -h
Filesystem      Size  Used Avail Use% Mounted on
singularity     2.0G     0  2.0G   0% /

I then installed a number of software packages:
apt-get update
apt-get install wget bzip2 -y

bash Miniconda3-latest-Linux-x86_64.sh -b -p /software/minconda3
rm Miniconda3-latest-Linux-x86_64.sh
PATH="/software/minconda3/bin:$PATH"

conda update -y conda
conda config --add channels defaults
conda config --add channels conda-forge
conda config --add channels bioconda

conda install -y salmon

All of these steps succeeded, but they used up almost all of the available space:
Singularity ubuntu:~> df -h
Filesystem      Size  Used Avail Use% Mounted on
singularity     2.0G     1.96G  2.0G   98% /

I then tried to install hisat2 (conda install -y hisat2), but this failed with the "No space left on device" error. The same error also occurred when I tried to copy large files exceeding the 2GB limit to the / filesystem. Is it possible to increase the size of the / filesystem or am I doing something obviously wrong?

Best,
Kaur




Dave Godlove

unread,
Jul 13, 2018, 10:12:07 PM7/13/18
to singu...@lbl.gov
Hiya Kaur,

For your second command, try this:

sudo singularity shell --writable ubuntu/

Does that work?

Dave

--
You received this message because you are subscribed to the Google Groups "singularity" group.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity+unsubscribe@lbl.gov.

Kaur Alasoo

unread,
Jul 16, 2018, 5:01:26 AM7/16/18
to singularity
Thanks, Dave!

This solved the issue.

Best,
Kaur
To unsubscribe from this group and stop receiving emails from it, send an email to singularity...@lbl.gov.

Reply all
Reply to author
Forward
0 new messages