-
Notifications
You must be signed in to change notification settings - Fork 77
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
Broken os_detect #255
Comments
Can you clarify what platform you're running on? I can't reproduce your issue. The unit tests locally or here on github actions are passing. You can trigger the os detection logic directly using: I made a new PR to check that things are working on GitHub Actions as well as testing locally on my machine. #256 Where I added basic CLI tests. |
I thought the problem was more generalized, but it turns out it might be something related to my kernel. On this system fails:
On other systems runs fine:
|
Somehow I had changed these seccomp settings half a year ago and forgot about it. If anyone stumbles upon this, check your |
Thanks for the follow-up with the root cause. A small tweak like that to the system that long ago is easy to forget. Glad it's working for you now. |
rocker --nvidia ubuntu
Fails with the following:
This seems to be caused by docker's security options, explained here:
https://stackoverflow.com/questions/74959500/getaddrinfo-thread-failed-to-start-while-building-docker-image
The same problem can be reproduced with
docker run golang:1.19 git clone -q https://github.com/dekobon/distro-detect.git
And can be worked around with
docker run --security-opt seccomp=unconfined golang:1.19 git clone -q https://github.com/dekobon/distro-detect.git
Root cause seems to be this: actions/runner-images#3812
And there's no workaround for docker build, as documented here: moby/moby#34454
An option would be to use a different base image, with a different libc version. Tested golang:1.21 but still fails.
The text was updated successfully, but these errors were encountered: