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

Failure to find real path on volume binding #327

Open
spoutn1k opened this issue Mar 17, 2023 · 1 comment
Open

Failure to find real path on volume binding #327

spoutn1k opened this issue Mar 17, 2023 · 1 comment

Comments

@spoutn1k
Copy link

spoutn1k commented Mar 17, 2023

Hello,

I am getting what I suspect is a bug while binding a directory to a container. I am trying to run a container with the /opt/cray/pe/mpich/8.1.24/ofi/gnu/9.1 folder accessible inside.

jskutnik@nid002737:~> /usr/bin/shifter --image=ecpe4s/e4s-cuda:22.05 --volume=/opt/cray/pe/mpich/8.1.24/ofi/gnu/9.1:/opt/cray/pe/mpich/8.1.24/ofi/gnu/9.1 ls
shifter_realpath: failed to lstat /var/udiMount/opt/cray
FAILED to find real path for volume "from": /opt/cray/pe/mpich/8.1.24/ofi/gnu/9.1
FAILED to setup user-requested mounts.
FAILED to setup image.

The error shows a failure to resolve a path on the host, while this path exists and is not a symlink:

jskutnik@perlmutter:login22:~> file /opt/cray/pe/mpich/8.1.24/ofi/gnu/9.1
/opt/cray/pe/mpich/8.1.24/ofi/gnu/9.1: directory
jskutnik@perlmutter:login22:~> readlink -f /opt/cray/pe/mpich/8.1.24/ofi/gnu/9.1
/opt/cray/pe/mpich/8.1.24/ofi/gnu/9.1

I tested this behaviour on both the login and work nodes, and both are identical. The code snippets come from one of each as I took some time writing this error report.

I would have included the software version but shifter --version is not a thing.

@scanon
Copy link
Member

scanon commented May 1, 2023

Please file a NERSC ticket for this but the short answer is Shifter has some restrictions set by the site (eg NERSC) on which directories are allowed to be volume mounted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants