enroot-switchroot: failed to execute: /bin/sh: Permission denied
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- shell
- Domain
- devops, infrastructure
Research direction
Start with the enroot-switchroot failure in the provided log and trace how pyxis starts the container after XDG_DATA_HOME is moved to /run/tmp. Check the /bin/sh symlink and its target inside the container filesystem, along with permissions and execution constraints on the tmpfs-backed path. Done means identifying the environment or configuration cause and documenting a reproducible fix.
Written by the indexing model from the issue text.
Description
Hi,
I am testing Megatron training on a demo machine with slurm. The machine has very limited disk size. And, I have to change the squashfs filesystem path to /run (tmpfs filesystem) by using srun --export="XDG_DATA_HOME=/run/tmp". I am not sure if this is the right way to change the default path off the home directory, but the error message No space left on device was gone after setting this env var. However, there is another error coming out as shown below. Any advice will be very much appreciated.
[2023-05-04T22:50:32.199] launch task StepId=81.0 request from UID:1002 GID:1002 HOST:127.0.0.1 PORT:60098
[2023-05-04T22:50:32.200] task/affinity: lllp_distribution: JobId=81 implicit auto binding: cores, dist 8192
[2023-05-04T22:50:32.200] task/affinity: _task_layout_lllp_cyclic: _task_layout_lllp_cyclic
[2023-05-04T22:50:32.200] task/affinity: _lllp_generate_cpu_bind: _lllp_generate_cpu_bind jobid [81]: mask_cpu, 0x00000000000000000000000000010000000000000000000000000001
[2023-05-04T22:50:32.273] [81.0] pyxis: creating container filesystem: pyxis_81.0
[2023-05-04T22:50:44.775] [81.0] pyxis: starting container: pyxis_81.0
[2023-05-04T22:50:44.984] [81.0] error: pyxis: container start failed with error code: 1
[2023-05-04T22:50:44.984] [81.0] error: pyxis: printing enroot log file:
[2023-05-04T22:50:44.984] [81.0] error: pyxis: enroot-switchroot: failed to execute: /bin/sh: Permission denied
[2023-05-04T22:50:44.984] [81.0] error: pyxis: couldn't start container
[2023-05-04T22:50:44.984] [81.0] error: spank: required plugin spank_pyxis.so: task_init() failed with rc=-1
[2023-05-04T22:50:44.984] [81.0] error: Failed to invoke spank plugin stack
[2023-05-04T22:50:44.986] [81.0] pyxis: removing container filesystem: pyxis_81.0
[2023-05-04T22:50:46.968] [81.0] done with job
/bin/sh permission should be correct:
lrwxrwxrwx 1 root root 4 Mar 23 2022 /bin/sh -> dash
- Dominant language
- Shell
- Stars
- 1.1k
- Forks
- 139
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from NVIDIA/enroot
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Similar issues
-
Update Vish to 1.1.5 Openpackage-update
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
oSoWoSo/vOid_Community_repOsitory#144 · 1 comment ·
-
help wanted new command
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
tldr-pages/tldr#24151 ·
-
PacReq: Rune IDE Openpackage request
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
pacstall/pacstall-programs#9402 ·
-
[BUG] ci: the first prefetch-images.sh call runs before shard.txt exists, so it is always a no-op Openbug github-actions
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
update-request
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
msys2/MINGW-packages#31768 ·