-
-
Notifications
You must be signed in to change notification settings - Fork 350
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
Unable to enter background: Out of memory #1672
Comments
Solved it for now by running: It works, but is a bit hacky :-) |
Never saw such a case TBH. Maybe there are OS limits on forking and/or memory allotment (ulimit or other quotas)? Is NUT running in a Docker container - can that have limits set? Maybe try running it with many I'm curious if it is some real ENOMEM from the OS, or misdiagnostics (mismatch of error code in headers used from what the OS emits), some bitness issue, etc. As for |
I ran into this myself a couple of days again. Weird thing is, the image I use was working just fine until the last docker update. Unfortunately, adding a bunch of
Fortunately the |
The "Invalid PID 0" seems to stem from entrypoint.sh:
Not sure about "Out of memory", maybe docker forbids forking and/or detaching from grandparent terminal? |
I ran into this issue as well. Using strace showed a It turned out that the container environment had a very high file ulimit:
Setting a lower value in the docker-compose.yml got the service working as expected.
|
Curious. Thanks for the report! :) |
I'm trying to get NUT up and running within docker.
Using an APC Back-UPS BX1600MI, connected via ESXi -> PhotonOS VM -> nut 2.80 on Alpine 3.16.2 in Docker con
The driver seems to start successfully:
But upsd doens't want to start:
Unless I run it with the -D option so it stays in the foreground:
After which I can successfully use upsc to read all values.
Any idea what is causing the "Unable to enter background: Out of memory" error? (Can't be a RAM issue since there's plenty of available RAM on the VM)
The text was updated successfully, but these errors were encountered: