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

xgboost 2.0.1 is breaking on rootless docker. #10250

Open
prafullat opened this issue May 3, 2024 · 3 comments
Open

xgboost 2.0.1 is breaking on rootless docker. #10250

prafullat opened this issue May 3, 2024 · 3 comments

Comments

@prafullat
Copy link

On rootless docker, path cgroup is readable only by root user.
image

As such, if any non-root users even tries to import xgboost, it fails with permission error.
Permission denied [/sys/fs/cgroup/cpu.max]

Can you please check and avoid this error is this path is not accessible?
We are not able to use xgboost in the rootless docker container.

@hcho3
Copy link
Collaborator

hcho3 commented May 3, 2024

@prafullat Can you post the full stack trace for the permission error?

@trivialfis
Copy link
Member

Will try to reproduce once I get back to work. At the moment my guess is this line to be blamed

auto has_v2 = fs::exists(bandwidth_path);

@trivialfis
Copy link
Member

trivialfis commented May 6, 2024

I have tried to launch an image with and without gosu, running in rootless mode of docker, but couldn't reproduce the issue. @hcho3 might have better insight here.

$ docker info | grep "Root"
WARNING: No cpuset support
WARNING: No io.weight support
WARNING: No io.weight (per device) support
WARNING: No io.max (rbps) support
WARNING: No io.max (wbps) support
 Docker Root Dir: /home/ubuntu/.local/share/docker
WARNING: No io.max (riops) support
WARNING: No io.max (wiops) support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants