May 3, 20188 yr Anyone having memory issues with this docker. I've tracked it down and for some reason this docker maxes out my servers ram and causes everything to eventually fail. It brings down the whole server to the point where an unclean reboot is all I can do.
May 3, 20188 yr Author 6 hours ago, Darqfallen said: Anyone having memory issues with this docker. I've tracked it down and for some reason this docker maxes out my servers ram and causes everything to eventually fail. It brings down the whole server to the point where an unclean reboot is all I can do. Why do you think Zoneminder is using up all the memory? Post diagnostics.
May 3, 20188 yr I had the same issue with my various zone minder dockers. Unraid docker engine doesn’t handle memory management terribly well, which is what I put it down toHave seen migrated my 15 cameras off to BlueIris on an UnRaid Windows VMSent from my iPhone using Tapatalk
May 3, 20188 yr Why do you think Zoneminder is using up all the memory? Post diagnostics.Would love to but as I can barely logon through the console when this happens it’s impossible to take a diagnostic. The only thing I can say is that if I don’t have zone minder docker running uptime for my server is measured in months, with ZM running its measure in days. Sent from my iPhone using Tapatalk
May 3, 20188 yr I back up appdata every night which means my dockers are all stopped. For some reason this Zoneminder docker won't stop or let me remove it. I've deleted the docker image and redone everything multiple times without success. I used a new template that was put into CA, but it only worked for about a week before the issue came back. Nothing in the zoneminder logs tells me anything is necessarily wrong, but the docker is pretty much dead unless I start over...again.
May 13, 20188 yr Author On 5/3/2018 at 3:49 PM, PanteraGSTK said: I back up appdata every night which means my dockers are all stopped. For some reason this Zoneminder docker won't stop or let me remove it. I've deleted the docker image and redone everything multiple times without success. I used a new template that was put into CA, but it only worked for about a week before the issue came back. Nothing in the zoneminder logs tells me anything is necessarily wrong, but the docker is pretty much dead unless I start over...again. You might have a memory issue. Try setting the shared memory lower.
May 13, 20188 yr Author I have just upgraded the Docker to version 1.0 of the zmNinja Event Notification Server. There is now a configuration file to set the event server parameters. The file is appdata/Zoneminder/zmeventnotification.ini. Make your changes and then restart the Docker for the changes to take effect.
May 13, 20188 yr On 4/16/2017 at 4:11 AM, dlandon said: PTZ Control Scripts: If you have a PTZ camera that has a custom script, put it in the '/appdata/control' folder and whenever the Zoneminder docker is started, it will copy the script to the '/usr/share/perl5/ZoneMinder/Control' folder in the docker image Does this mean I have to create a new directory in the appdata directory or is it a typo? My custom scripts don't seem to be copying from '/appdata/Zoneminder/control'
May 13, 20188 yr Author 9 minutes ago, Darqfallen said: Does this mean I have to create a new directory in the appdata directory or is it a typo? My custom scripts don't seem to be copying from '/appdata/Zoneminder/control' Typo. Directory is '/appdata/Zoneminder/control/'. It is created by the Docker when it is first run. Go into the Docker and verify the scripts are at '/usr/share/perl5/ZoneMinder/Control/' .
May 13, 20188 yr Just now, dlandon said: Typo. Directory is '/appdata/Zoneminder/control/'. It is created by the Docker when it is first run. Go into the Docker and verify the scripts are at '/usr/share/perl5/ZoneMinder/Control/' . How does one go into the docker?
May 13, 20188 yr Author 1 minute ago, Darqfallen said: How does one go into the docker? Go to a command line: docker exec -it Zoneminder bash
May 13, 20188 yr 2 minutes ago, dlandon said: Go to a command line: docker exec -it Zoneminder bash Not there but they are in the '/appdata/Zoneminder/control' directory. Edited May 13, 20188 yr by Darqfallen
May 13, 20188 yr Author 3 minutes ago, Darqfallen said: Not there but they are in the '/appdata/Zoneminder/control' directory. Did you restart the Docker after placing them there?
May 13, 20188 yr If I do the copy command manually it works cp /config/control/* /usr/share/perl5/ZoneMinder/Control/
May 13, 20188 yr Author 16 minutes ago, Darqfallen said: Not there but they are in the '/appdata/Zoneminder/control' directory. Works fine for me.
May 13, 20188 yr 41 minutes ago, dlandon said: Works fine for me. Going through the log this is what is happening for me. {"log":"/etc/my_init.d/40_firstrun.sh: line 56: [: too many arguments\n","stream":"stderr","time":"2018-05-13T22:04:30.061886935Z"} Which is this line if [ -f /config/control/* ]; then of this part of the script # Create Control folder if it doesn't exist and copy files into image if [ ! -d /config/control ]; then echo "Creating control folder in config folder" mkdir /config/control else if [ -f /config/control/* ]; then echo "Copy /config/control scripts to /usr/share/perl5/ZoneMinder/Control" chown root:root /config/control/* chmod 644 /config/control/* cp /config/control/* /usr/share/perl5/ZoneMinder/Control 2>/dev/null fi fi And I don't know enough bash scripting to fix it.
May 13, 20188 yr Author 2 minutes ago, Darqfallen said: Going through the log this is what is happening for me. {"log":"/etc/my_init.d/40_firstrun.sh: line 56: [: too many arguments\n","stream":"stderr","time":"2018-05-13T22:04:30.061886935Z"} Which is this line if [ -f /config/control/* ]; then of this part of the script # Create Control folder if it doesn't exist and copy files into image if [ ! -d /config/control ]; then echo "Creating control folder in config folder" mkdir /config/control else if [ -f /config/control/* ]; then echo "Copy /config/control scripts to /usr/share/perl5/ZoneMinder/Control" chown root:root /config/control/* chmod 644 /config/control/* cp /config/control/* /usr/share/perl5/ZoneMinder/Control 2>/dev/null fi fi And I don't know enough bash scripting to fix it. I just found that it is because you have multiple files and I don't handle that correctly. I'm working on a fix right now.
May 13, 20188 yr Author Just now, Darqfallen said: Awesome, I hope I helped. Sent from my iPhone using Tapatalk It would have helped if you would have shown the log entry on your first post. I just guessed that you might have had more than one script file and ran a quick test.
May 13, 20188 yr It would have helped if you would have shown the log entry on your first post. I just guessed that you might have had more than one script file and ran a quick test.I don’t do this enough to remember all the commands so every time I have to try to debug something I have to relearn almost everything. It would be nice to have an option to generate a debug/diagnostic file from the docker menu. Sent from my iPhone using Tapatalk
May 16, 20188 yr On 5/13/2018 at 1:00 PM, dlandon said: You might have a memory issue. Try setting the shared memory lower. Set it lower and had the same issue. It actually happened faster this time.
May 31, 20188 yr 4K doesnt work. Everything works fine until I set my new 4K camera (monitor 7) to 4K (3840x2160). It works fine at 2560x1440, but when I set it to 4K, errors start flying. See attached log. Any ideas on why? zm-log.html
June 2, 20188 yr Is anyone seeing huge CPU usage with this container? With no cameras connected, Zoneminder was pushing 2 of my 4 i5-2500 cores to around 80%. Stopping the container brings the CPU back to low single digits idle.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.