You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to run the project locally with docker. The examples from the API work fine until I try to run the example code - the run hangs waiting on the response from the python container.
From what I see the container dies immediately with:
edit: It seems nproc limit is causing this issue.
If I completely remove it from the container creation everything works fine.
But if it is present, even with seemingly ridiculous values like:
TLDR: When the user is created in any of the glot images it is created with UID 1000. UID 1000 is also a default local user ID.
To enforce ulimits like nproc we then read the numbers for the local user, and that's why it fails if nproc is set to a relatively low value like it is by default (100).
Thanks to kind people of Reddit for figuring it out -> Reddit link
Hi, I'm trying to run the project locally with docker. The examples from the API work fine until I try to run the example code - the run hangs waiting on the response from the python container.
From what I see the container dies immediately with:
exec /nix/store/mv32i0sb8sjpxlzj0p0dmx5sphy2arbw-rust_code-runner-1.2.0/bin/code-runner: resource temporarily unavailable
edit: Directly running the container from the image works:
I'm using the latest image glot/python:latest.
Do you know what could be the root cause for it?
edit: It seems
nproc
limit is causing this issue.If I completely remove it from the container creation everything works fine.
But if it is present, even with seemingly ridiculous values like:
It starts erroring.
Many thanks,
Matej
The text was updated successfully, but these errors were encountered: