Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[support] dlandon - Zoneminder 1.36

Featured Replies

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.

 

  • Replies 1.3k
  • Views 300.2k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • I realize that Zoneminder 1.32.0 has been released and I will eventually update the Docker for this new release.  Please don't try to lobby me to update the Docker right away.  I won't update it for a

  • There is an update to the Zoneminder Docker.  This is still version 1.30.4.  I will be working on 1.32 soon. The update included: zmeventnotification updated to v1.6.  The zmeventnotificati

  • Map an external port to the Zoneminder docker port 80.

Posted Images

  • 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.

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 to

Have seen migrated my 15 cameras off to BlueIris on an UnRaid Windows VM


Sent from my iPhone using Tapatalk

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

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.

  • 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.

  • 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.

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'

  • 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/' .

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?

  • Author
1 minute ago, Darqfallen said:

How does one go into the docker?

Go to a command line:

docker exec -it Zoneminder bash

 

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 by Darqfallen

  • 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?

Just now, dlandon said:

Did you restart the Docker after placing them there?

Yup

If I do the copy command manually it works 

cp /config/control/* /usr/share/perl5/ZoneMinder/Control/

 

  • Author
16 minutes ago, Darqfallen said:

Not there but they are in the '/appdata/Zoneminder/control' directory.

Works fine for me.

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.

  • 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.

Awesome, I hope I helped.


Sent from my iPhone using Tapatalk

  • 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.

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
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.

  • 2 weeks later...

Interestingly enough increasing shared memory seems to have solved my issue.

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

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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.