-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Zoneminder container starts with state STOPPED #43
Comments
I am noticing this too... Is the zmpkg.pl start missing from the /init when the container starts? |
No, it's not missing. The error messages comes precisely from executing "zmpkg.pl start" in the s6 init I've done alot of debug and I really can't understand why this happens. |
Can you provide some more info such as os, docker compose files, env file, etc? |
The only changes I made from the initial git clone was just the timezone and exposed port: .env: docker-compose.yml: Also, my base server is x86_64 Linux 6.1.13-1-lts... I use arch btw :) Docker version 23.0.1, build a5ee5b1dfc |
Honestly none of that info gives me enough information to reproduce what exactly you did and if that's unable to be done, there's no way of determining the cause other than pure speculation. As you can see, the image boots up just fine in CI and I believe many others use it without any issues. I would have to believe you must be doing something special or out of the ordinary to cause this issue. |
I think this is an issue related with Arch, as I'm running it as well. I tried running it on Debian and it worked. |
+1 also on arch, and the problems seems to come from one of the updates of the last month(s). Zoneminder runned perfectly for months, then i recently installed long waited updates ( my internet was realy bad up until two days ago, so i didn't realy update often) and then it stoped working. at least i have a work around, thanks to @tokenize47 because of the post on the zoneminder forum i found prior to this issue here. |
The problem seems to only happen with Docker 23.0.1. Docker 20.10.23 seem to work fine. So i think it will be something that has changed from docker 20.10.23 to docker 23.0.1. Downgrading to docker 20.10.23 and rebooting (somehow restarting the service is not enough) and zoneminder is running normaly. |
That's a nice clue! Then the problem is not with Arch itself but the fact that Arch uses always the latest software versions. I guess this is an incompatibility with the s6 version with the new docker version. I'll do some research on this an come up with a PR if I find a solution. |
Any updates on this? |
Problem persists with Docker 24.0.2 i have no clue how this problem could be solved. |
This could be the same problem as: Try upgrading from "docker-compose" to "docker compose". |
Thanks for the hint. But I don't think it is related (at least in my case). I deploy with portainer, to a 3 cluster docker swarm (although this stack is locked to my NAS because of the hard drives) |
Hi all, I think the issue is caused by insufficent linux capabilities - changing the user running 'zmpkg.pl start' from www-data to root allows the socket to open (in /etc/services.d/zoneminder/run). |
can confirm. as a quick test i updated to docker 24.0.5 and replaced the file inside the container with one where www-run is replaced with root. Zoneminder starts without problems now. so at least we now know why it allways starts stopped. thx for the update @kondas |
This issue appeared for me a few days ago, when I upgraded from docker 26.x to docker 27.0.3. |
Had fine working setup in docker on ubuntu 24.04. |
On Debian 12, without changing www-data to root as described in previous comments, I think that the problem is that it takes too long time for that loop to execute when the value is 1073741816, and that causes it to timeout and fail here: https://github.com/ZoneMinder/zoneminder/blob/52c41d166b7537e81c3ce14b48e0add5aa09991c/scripts/zmdc.pl.in#L202 What I don't understand is, where are those values being set? Why does www-data have such a large value while root only has 1024? This could be related: moby/moby#44547 |
Interesting, great diagnosis. I am tempted to just use 1024 instead of SC_OPEN_MAX. We know we only have a few fds open. We are mainly concerned with STDIN/OUT/ERR. |
That might be enough to fix it, yeah. There are a few more places where it iterates over all possible FDs: https://github.com/search?q=repo%3AZoneMinder%2Fzoneminder+_SC_OPEN_MAX&type=code I still would like to figure out why it returns 1024 when changing www-data to root in |
There's this errors in the logs:
If I exec into the container and run
zmpkg.pl start
manually, it will then start.The text was updated successfully, but these errors were encountered: