Darqfallen Posted May 3, 2018 Share Posted May 3, 2018 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. Quote Link to comment
dlandon Posted May 3, 2018 Author Share Posted May 3, 2018 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. Quote Link to comment
miniwalks Posted May 3, 2018 Share Posted May 3, 2018 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 Quote Link to comment
Darqfallen Posted May 3, 2018 Share Posted May 3, 2018 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 Quote Link to comment
PanteraGSTK Posted May 3, 2018 Share Posted May 3, 2018 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. Quote Link to comment
dlandon Posted May 13, 2018 Author Share Posted May 13, 2018 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. Quote Link to comment
dlandon Posted May 13, 2018 Author Share Posted May 13, 2018 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. Quote Link to comment
Darqfallen Posted May 13, 2018 Share Posted May 13, 2018 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' Quote Link to comment
dlandon Posted May 13, 2018 Author Share Posted May 13, 2018 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/' . Quote Link to comment
Darqfallen Posted May 13, 2018 Share Posted May 13, 2018 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? Quote Link to comment
dlandon Posted May 13, 2018 Author Share Posted May 13, 2018 1 minute ago, Darqfallen said: How does one go into the docker? Go to a command line: docker exec -it Zoneminder bash Quote Link to comment
Darqfallen Posted May 13, 2018 Share Posted May 13, 2018 (edited) 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, 2018 by Darqfallen Quote Link to comment
dlandon Posted May 13, 2018 Author Share Posted May 13, 2018 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? Quote Link to comment
Darqfallen Posted May 13, 2018 Share Posted May 13, 2018 Just now, dlandon said: Did you restart the Docker after placing them there? Yup Quote Link to comment
Darqfallen Posted May 13, 2018 Share Posted May 13, 2018 If I do the copy command manually it works cp /config/control/* /usr/share/perl5/ZoneMinder/Control/ Quote Link to comment
dlandon Posted May 13, 2018 Author Share Posted May 13, 2018 16 minutes ago, Darqfallen said: Not there but they are in the '/appdata/Zoneminder/control' directory. Works fine for me. Quote Link to comment
Darqfallen Posted May 13, 2018 Share Posted May 13, 2018 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. Quote Link to comment
dlandon Posted May 13, 2018 Author Share Posted May 13, 2018 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. Quote Link to comment
Darqfallen Posted May 13, 2018 Share Posted May 13, 2018 Awesome, I hope I helped. Sent from my iPhone using Tapatalk Quote Link to comment
dlandon Posted May 13, 2018 Author Share Posted May 13, 2018 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. Quote Link to comment
Darqfallen Posted May 13, 2018 Share Posted May 13, 2018 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 Quote Link to comment
PanteraGSTK Posted May 16, 2018 Share Posted May 16, 2018 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. Quote Link to comment
PanteraGSTK Posted May 30, 2018 Share Posted May 30, 2018 Interestingly enough increasing shared memory seems to have solved my issue. Quote Link to comment
thegizzard Posted May 31, 2018 Share Posted May 31, 2018 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 Quote Link to comment
dalben Posted June 2, 2018 Share Posted June 2, 2018 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. Quote Link to comment
Recommended Posts
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.