LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Containers (https://www.linuxquestions.org/questions/linux-containers-122/)
-   -   Singularity error: Failed creating home directory in container (https://www.linuxquestions.org/questions/linux-containers-122/singularity-error-failed-creating-home-directory-in-container-4175650902/)

PedroRaposo 03-26-2019 05:18 AM

Singularity error: Failed creating home directory in container
 
Using Singularity, I have managed to build a container from DockerHub, shell it with Sudo, successfully installed some software, and even run it with Sudo. However, when I try to shell it as an unprivileged user, it gives me an error :(
Could someone help me in this? Thank you!

The error is as follows:
Code:

> singularity shell miniconda4
Increasing verbosity level (2)
Singularity version: 2.4.2-dist
Exec'ing: /usr/lib/x86_64-linux-gnu/singularity/cli/shell.exec
Evaluating args: 'miniconda4'
VERBOSE: Set messagelevel to: 2
VERBOSE: Initialize configuration file: /etc/singularity/singularity.conf
VERBOSE: Initializing Singularity Registry
VERBOSE: Invoking the user namespace
VERBOSE: Not virtualizing USER namespace: running as SUID
VERBOSE: No autofs bug path in configuration, skipping
VERBOSE: Using session directory: /var/lib/singularity/mnt/session
VERBOSE: Mounting overlay with options: lowerdir=/var/lib/singularity/mnt/container,upperdir=/var/lib/singularity/mnt/overlay/upper,workdir=/var/lib/singularity/mnt/overlay/work
VERBOSE: Running all mount components
VERBOSE: Binding '/etc/localtime' to '/var/lib/singularity/mnt/final//etc/localtime'
VERBOSE: Binding '/etc/hosts' to '/var/lib/singularity/mnt/final//etc/hosts'
VERBOSE: Bind-mounting host /proc
VERBOSE: Mounting /sys
VERBOSE: Bind mounting /dev
VERBOSE: Mounting home directory source into session directory: /home/AD/praposo -> /var/lib/singularity/mnt/session/home/AD/praposo
VERBOSE: Failed to create parent directory /var/lib/singularity/mnt/final/home/AD/praposo
ERROR  : Failed creating home directory in container /var/lib/singularity/mnt/final/home/AD/praposo: Operation not supported
ABORT  : Retval = 255


pan64 03-27-2019 01:16 PM

do you really want to create that directory in your container? (ERROR : Failed creating home directory in container /var/lib/singularity/mnt/final/home/AD/praposo: Operation not supported)

PedroRaposo 03-28-2019 03:51 AM

Quote:

Originally Posted by pan64 (Post 5978386)
do you really want to create that directory in your container? (ERROR : Failed creating home directory in container /var/lib/singularity/mnt/final/home/AD/praposo: Operation not supported)

Hi. I don't wish to create the directory but it seems that just by 'shelling' the container using singularity, it automatically attempts to create it. Maybe it attempts to mount the home of the user (?), but I don't know.

pan64 03-28-2019 03:55 AM

I would rather say you have misconfigured something. I don't think you really need that dir.

PedroRaposo 03-28-2019 04:37 AM

Quote:

Originally Posted by pan64 (Post 5978681)
I would rather say you have misconfigured something. I don't think you really need that dir.

Thank you pan64 :hattip:! You made me think of the problem in a different way. I figured out that by using the '--writable' option in the 'singularity shell' command, it allows any user to create directories. Maybe you're right and I don't need to create that directory but I don't know how not to, since it tries to do it by itself. But we found a solution to this, so I'm going to close this thread.

Cheers

pan64 03-28-2019 07:03 AM

glad to help you.


All times are GMT -5. The time now is 11:50 AM.