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

oci-mode: fallback to tmp-sandbox from docker:// fails with 'no child with platform' error #3100

Closed
dtrudg opened this issue Jul 10, 2024 · 0 comments · Fixed by #3102
Closed
Assignees
Labels
bug Something isn't working

Comments

@dtrudg
Copy link
Member

dtrudg commented Jul 10, 2024

Version of Singularity

4.1.0 and above

Describe the bug

When FUSE mounts fail (e.g. by symlinking squashfuse_ll to /bin/false):

$ singularity run --oci docker://alpine
INFO:    Using cached OCI-SIF image
ERROR:   While removing temporary bundle: failed to delete config.json file: remove /usr/local/var/singularity/mnt/session/oci-bundle1146451062/config.json: no such file or directory
WARNING: while mounting squashfs layers: while mounting squashfs layer: encountered error while trying to mount image "/home/dtrudg-sylabs/.singularity/cache/oci-sif/sha256:dabf91b69c191a1a0a1628fd6bdd029c0c4018041c7f052870bb13c5a222ae76" with FUSE at /usr/local/var/singularity/mnt/session/oci-bundle1146451062/layers/0: fork/exec /usr/local/libexec/singularity/bin/squashfuse_ll: no such file or directory
WARNING: OCI-SIF could not be used, falling back to unpacking OCI bundle in temporary sandbox dir
FATAL:   no child with platform  in index alpine
@dtrudg dtrudg added the bug Something isn't working label Jul 10, 2024
@dtrudg dtrudg self-assigned this Jul 10, 2024
dtrudg added a commit to dtrudg/singularity that referenced this issue Jul 11, 2024
When FUSE mount fails, ensure fallback to a temporary sandbox bundle is
successful for OCI image sources (e.g. docker://...)

A selection of small fixes accomplishes this...

* Ensure platform is set in the transport options used during fallback.
* Use a new launcher instance for fallback Exec, as launcher has some
  state.
* Correctly set the image config for native bundles.

Also:

* Remove unused imgcache handle in actions code.
* Remove unused manifest obtained in native bundle code.

Fixes sylabs#3100
dtrudg added a commit to dtrudg/singularity that referenced this issue Jul 11, 2024
When FUSE mount fails, ensure fallback to a temporary sandbox bundle is
successful for OCI image sources (e.g. docker://...)

A selection of small fixes accomplishes this...

* Ensure platform is set in the transport options used during fallback.
* Use a new launcher instance for fallback Exec, as launcher has some
  state.
* Correctly set the image config for native bundles.

Also:

* Remove unused imgcache handle in actions code.
* Remove unused manifest obtained in native bundle code.

Fixes sylabs#3100
@dtrudg dtrudg closed this as completed in ad82e1e Jul 11, 2024
dtrudg added a commit to dtrudg/singularity that referenced this issue Jul 11, 2024
When FUSE mount fails, ensure fallback to a temporary sandbox bundle is
successful for OCI image sources (e.g. docker://...)

A selection of small fixes accomplishes this...

* Ensure platform is set in the transport options used during fallback.
* Use a new launcher instance for fallback Exec, as launcher has some
  state.
* Correctly set the image config for native bundles.

Also:

* Remove unused imgcache handle in actions code.
* Remove unused manifest obtained in native bundle code.

Fixes sylabs#3100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant