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

Failed to close file descriptor when running in a container #445

Open
avylove opened this issue Jan 29, 2025 · 0 comments
Open

Failed to close file descriptor when running in a container #445

avylove opened this issue Jan 29, 2025 · 0 comments

Comments

@avylove
Copy link

avylove commented Jan 29, 2025

I've noticed in my CI workflows, I get the following error:

Warning: Cannot remove repo/repodata.old.119.20250129193340.189567: Failed to close file descriptor for child process (Operation not permitted)

As a result, the old metadata doesn't get removed. I haven't seen this outside of CI, which runs in a Rocky 9 docker container on a Ubuntu 20.04 host. I found some references for similar issues that suggest using the docker option --security-opt seccomp=unconfined as a workaround. This does work, but, instead, I'm just running rm -rf repo/repodata.old.* after createrepo finishes.

I'm hoping to get the host machine replaced soon and I suspect that will resolve the issue, but I wanted to report it in case someone else encounters it.

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

1 participant