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

ERROR : Requesting capability set 0x000001ffffffffff while permitted capability set is 0x0000003fffffffff #18

Closed
jpfeuffer opened this issue Mar 23, 2023 · 11 comments

Comments

@jpfeuffer
Copy link

jpfeuffer commented Mar 23, 2023

Using your 3.11.0 image on a hosted GitHub Actions runner.

see https://github.com/OpenMS/OpenMS/actions/runs/4495601964/jobs/7909390460

@vsoch
Copy link
Member

vsoch commented Mar 23, 2023

You shouldn't need to dockerize singularity for GitHub actions - try just installing it to the runner. https://github.com/singularityhub/install-singularity

@jpfeuffer
Copy link
Author

Thank you! I will give it a try.

@jpfeuffer
Copy link
Author

It worked by the way. Thanks.

@fcasson
Copy link

fcasson commented Jun 6, 2023

I have the same issue. I need a docker image with singularity for gitlab CI tests on the docker runner executor

@vsoch
Copy link
Member

vsoch commented Jun 7, 2023

Based on the error being about permissions, you'd need to run it in privileged mode I think?

@fcasson
Copy link

fcasson commented Jun 7, 2023

I did run it in privileged mode, but maybe its a problem with my docker daemon env (ubuntu on WSL2, during "hello world" prep before gitlab GI)

@jpfeuffer
Copy link
Author

Hi. Maybe my corresponding issue at singularity helps you:
sylabs/singularity#1466

TLDR: Github runners do not have a recent enough daemon version.
But as always, GitHub is ignoring community feedback:
actions/runner-images#7332
actions/runner-images#7042

@fcasson
Copy link

fcasson commented Jun 7, 2023

Thanks for the link, I had not found it. I am not using GitHub actions, but trying to do something similar on GitLab CI using the Docker executor for runners.

Anyway my first tests before moving to gitlab CI (where I found the issue) were just locally on my laptop (in Ubunutu on WSL2). If I understand the title of that issue correctly, updating my Docker version >= 23 should help?

Will post some simple steps to reproduce later when I am back at the laptop.

EDIT: Upgrading from Docker 20 to Docker 24 fixed the issue for me on Ubuntu / WSL2. A collegue could not reproduce the issue with Docker 20, so it does seem to depend on the env in which the docker daemon is running.

EDIT2: From this links above, it also looks like downgrading the singularity version might also help, but since I have a solution by upgrading docker, I won't need to try that route.

@jpfeuffer
Copy link
Author

Yes, correct, I would try that.

@fcasson
Copy link

fcasson commented Jun 8, 2023

For posterity, here's a oneliner to reproduce the error (on some systems) on docker versions < 23

docker run --privileged quay.io/singularity/singularity:v3.11.0 run docker://alpine

@maawoo
Copy link
Contributor

maawoo commented Jun 13, 2023

EDIT2: From this links above, it also looks like downgrading the singularity version might also help, but since I have a solution by upgrading docker, I won't need to try that route.

Downgrading to v3.10 worked for me on Docker v24.0.2:
image

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

4 participants