Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Failed to create user namespace: user namespace requires to set /proc/sys/kernel/unprivileged_userns_clone to 1

Open
#7 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
github-actions, typescript
Domain
ci-cd, devops

Research direction

Start with the setup-singularity action and compare the successful singularity run docker://alpine cat /etc/os-release invocation with the Snakemake container invocation. Investigate the reported /proc/sys/kernel/unprivileged_userns_clone setting and execution context; done means reproducing the failure and documenting or implementing a confirmed fix.

Written by the indexing model from the issue text.

Description

Hello! Thank for making this action! I am close to getting it working for my project, but am running into the following error message. The setup-singularity action step completes fine, but when subsequent steps attempt to run singularity containers I get the following error:

Activating singularity image /github/workspace/.singularity/be463e8ff7ab6a778774f91d2bfa1a1d.simg
INFO:    Converting SIF file to temporary sandbox...
FATAL:   while extracting /github/workspace/.singularity/be463e8ff7ab6a778774f91d2bfa1a1d.simg: root filesystem extraction failed: extract command failed: ERROR  : Failed to create user namespace: user namespace requires to set /proc/sys/kernel/unprivileged_userns_clone to 1

Googling has been unproductive so far. I tried adding --fakeroot to the singularity command to no avail. I am trying to have the action run through a snakemake pipeline where each task is executed with a container, so I don't have the exact invovation unfortunately. The test invocation singularity run docker://alpine cat /etc/os-release runs fine without error.

Its a long shot, but have you come across something like this before?

Dominant language
TypeScript
Stars
18
Forks
2
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from eWaterCycle/setup-singularity

All issues in eWaterCycle/setup-singularity

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.