Project

General

Profile

Actions

Bug #18732

closed

singularity build permission denied

Added by Peter Amstutz about 2 years ago. Updated about 2 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Crunch
Target version:
Story points:
-
Release relationship:
Auto

Description

Getting this error:

2022-02-14T15:44:13.011645007Z [singularity build /tmp/crunch-run.x1pr8-dz642-nd5m2icieqol3zo.1865379834/keep2196129160/by_uuid/x1pr8-4zz18-zxxvvxctd0khbp1/image.sif docker-archive:///tmp/crunch-run-singularity-396810067/image.tar]
2022-02-14T15:44:13.035750005Z INFO:    Starting build...
2022-02-14T15:44:13.035750005Z FATAL:   While performing build: conveyor failed to get: error opening file "/tmp/crunch-run-singularity-396810067/image.tar": open /tmp/crunch-run-singularity-396810067/image.tar: permission denied

What seems to be happening is that "singularity build" uses suid to change over to the root user. If crunch-run is launched as a non-root user (and runs arv-mount as non-root), then when singularity changes to root, it can't read from the mount.

The solution is to add "--allow-other" to arv-mount.


Subtasks 3 (0 open3 closed)

Task #18778: Investigate behavior on 9tee4ResolvedTom Clegg03/21/2022Actions
Task #18779: print effective uid and gid in crunch-runResolvedTom Clegg03/20/2022Actions
Task #18825: Review 18732-crunch-run-log-uidsResolvedWard Vandewege03/18/2022Actions
Actions

Also available in: Atom PDF