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

Nesting apptainer instance start fails within podman-hpc #2165

Open
asnaylor opened this issue Apr 20, 2024 · 1 comment
Open

Nesting apptainer instance start fails within podman-hpc #2165

asnaylor opened this issue Apr 20, 2024 · 1 comment

Comments

@asnaylor
Copy link

Version of Apptainer

apptainer version 1.3.0-1.el7

Expected behavior

Should be able to run apptainer instance within podman-hpc (a wrapper script around podman).

Actual behavior

Returns error and fails to start:

FATAL:   while executing starter: failed to create instance log files: user: unknown userid 75235

Steps to reproduce this behavior

user $ podman-hpc run --rm --cvmfs -it docker.io/cmssw/el7:x86_64
(root in container) $ export PATH=/cvmfs/oasis.opensciencegrid.org/mis/apptainer/current/bin:$PATH
(root in container) $ apptainer -v instance start /cvmfs/unpacked.cern.ch/registry.hub.docker.com/fastml/triton-torchgeo:22.07-py3-geometric triton
VERBOSE: Effective capability CAP_SYS_ADMIN is missing, fallback to user namespace
VERBOSE: Not forwarding APPTAINER_VERBOSE environment variable
VERBOSE: Setting HOME=/root
VERBOSE: Setting PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
FATAL:   while executing starter: failed to create instance log files: user: unknown userid 75235

Note

The image works when using apptainer shell within podman-hpc:

user $ podman-hpc run --rm --cvmfs -it docker.io/cmssw/el7:x86_64
(root in container) $ apptainer shell /cvmfs/unpacked.cern.ch/registry.hub.docker.com/fastml/triton-torchgeo:22.07-py3 geometric
WARNING: No current working directory set: skipping mount
WARNING: user: unknown userid 0
WARNING: user: unknown userid 0
Singularity> 

What OS/distro are you running

Outside container SUSE Linux Enterprise Server 15 SP4. The container is CentOS 7.

How did you install Apptainer

From cvmfs.

@DrDaveD
Copy link
Contributor

DrDaveD commented Apr 20, 2024

This is related to #1066, perhaps it is even a duplicate.

Maybe with podman you need to bind in /etc/passwd or give some other option to have it define the running user id in /etc/passwd.

Interestingly #2164 was also first reported to me using the same containers and host operating system as this issue, but was reproducible in the easier to reproduce case I presented it as. It did instance start inside of another apptainer however, not inside of podman.

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