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

Can't mount devpts on /newroot/dev/pts: Too many open files #530

Open
furunkel opened this issue Oct 5, 2022 · 2 comments
Open

Can't mount devpts on /newroot/dev/pts: Too many open files #530

furunkel opened this issue Oct 5, 2022 · 2 comments

Comments

@furunkel
Copy link

furunkel commented Oct 5, 2022

Hi,
I'm using bubblewrap to run several hundreds of thousands of untrusted programming contest submissions.
However, after some time I get Can't mount devpts on /newroot/dev/pts: Too many open files, and sometimes bwrap: Can't mount proc on /newroot/proc: Too many open files.
Strangely, after restarting the process, the error appears much sooner (after a few hundreds of bwrap invocations).
I tried to increase the corresponding operating system limit but that does not seem to be the problem.
Does anybody have an idea what the problem might be?

@rusty-snake
Copy link
Contributor

rusty-snake commented Oct 5, 2022

mount(2):

EMFILE (In case no block device is required:) Table of dummy devices is full.


I tried to increase the corresponding operating system limit

How? Which limit?

@furunkel
Copy link
Author

furunkel commented Oct 5, 2022

Thanks! I did look into the man page, but somehow overlooked this.
The limit I was referring to was the usual "number of open files" limit, so indeed not related to this.
Do you know of any way to work around this? Are there missing umount calls in bubblewrap or is this an OS limitation?

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

2 participants