I'm new to singularity and have built some simple images successfully.
At this point I am trying to build an image that has an 8gb sequence database in it, so I have set a tempdir with $SINGULARITY_TMPDIR and that works for copying my files and starting the build. I am not root and cannot be made root.
But when it tries to install a dependency for git I am getting a fatal error:
Errors were encountered while processing: openssh-client W: chown to _apt:root of directory /var/cache/apt/archives/partial failed - SetupAPTPartialDirectory (1: Operation not permitted) W: chown to _apt:root of directory /var/lib/apt/lists/auxfiles failed - SetupAPTPartialDirectory (1: Operation not permitted) W: Download is performed unsandboxed as root as file '/var/cache/apt/archives/partial/perl-base_5.26.2-7ubuntu0.1_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) W: chown to root:adm of file /var/log/apt/term.log failed - OpenLog (1: Operation not permitted) E: Sub-process /usr/bin/dpkg returned an error code (1)
What am I missing?
Hi @dn-ra , what is the underlying filesystem for SINGULARITY_TMPDIR location ? Fakeroot may not work correctly with some network filesystems not aware of user namespace mappings.
It's nfs. I made it with mkdir in the working directory.
I see now that the temp directories are actually all ext4. But when I tried to mktemp -d the same issue of 'No space left on device' came up during build.
Is there a way to set/make temp directory and make it bigger than the default?
Doing some reading now. Looks like it is because the /tmp directory itself is out of storage. We are on a Nectar server, so might be limited by that. I'll try changing $SINGULARITY_LOCALCACHEDIR to something with more space
Hello,
I'm new to singularity and have built some simple images successfully.
At this point I am trying to build an image that has an 8gb sequence database in it, so I have set a tempdir with $SINGULARITY_TMPDIR and that works for copying my files and starting the build. I am not root and cannot be made root.
But when it tries to install a dependency for git I am getting a fatal error:
Errors were encountered while processing: openssh-client W: chown to _apt:root of directory /var/cache/apt/archives/partial failed - SetupAPTPartialDirectory (1: Operation not permitted) W: chown to _apt:root of directory /var/lib/apt/lists/auxfiles failed - SetupAPTPartialDirectory (1: Operation not permitted) W: Download is performed unsandboxed as root as file '/var/cache/apt/archives/partial/perl-base_5.26.2-7ubuntu0.1_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) W: chown to root:adm of file /var/log/apt/term.log failed - OpenLog (1: Operation not permitted) E: Sub-process /usr/bin/dpkg returned an error code (1)What am I missing?
I've attached the debug output.
debug.log
Version of Singularity:
3.4.2-1Expected behavior
Should install without root privileges (and has been successfully installed as such prior to setting SINGULARITY_TEMPDIR
Actual behavior
Fatal error installing openssh-client as a dependency for git
Steps to reproduce this behavior
See attached .def file
def_file.txt
What OS/distro are you running
NAME="Ubuntu" VERSION="18.04.3 LTS (Bionic Beaver)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 18.04.3 LTS" VERSION_ID="18.04" 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" VERSION_CODENAME=bionic UBUNTU_CODENAME=bionicHow did you install Singularity
From source, standard install.
The text was updated successfully, but these errors were encountered: