GithubHelp home page GithubHelp logo

dlandon / zoneminder.machine.learning Goto Github PK

View Code? Open in Web Editor NEW
315.0 23.0 143.0 3.26 MB

Zoneminder Docker

License: GNU General Public License v2.0

Shell 13.22% Perl 52.53% Python 31.83% Dockerfile 2.42%

zoneminder.machine.learning's Introduction

Zoneminder Docker (Deprecated)

(Current version: 1.36)

This container will no longer be maintained or updated. The current ZM Event Server is being phased out at the end of 2021 and this container will not be updated when a new ZM Event Server is released.

About

This is an easy to run dockerized image of ZoneMinder along with the the ZM Event Notification Server and its machine learning subsystem.

The configuration settings that are needed for this implementation of Zoneminder are pre-applied and do not need to be changed on the first run of Zoneminder.

This version will now upgrade Zoneminder from previous versions.

You can donate here.

Support

There is minimal support for this docker container at this time.

Go to the Zoneminder Forum here for support.

Installation

Install the docker container by going to a command line and enter the command:

docker pull dlandon/zoneminder.machine.learning

This will pull the zoneminder docker image. Once it is installed you are ready to run the docker container.

Before you run the image, feel free to read the configuration section below to customize various settings.

To run Zoneminder:

docker run -d --name="Zoneminder" \
--net="bridge" \
--privileged="false" \
--shm-size="8G" \
-p 8443:443/tcp \
-p 9000:9000/tcp \
-e TZ="America/New_York" \
-e PUID="99" \
-e PGID="100" \
-e MULTI_PORT_START="0" \
-e MULTI_PORT_END="0" \
-v "/mnt/Zoneminder":"/config":rw \
-v "/mnt/Zoneminder/data":"/var/cache/zoneminder":rw \
dlandon/zoneminder.machine.learning

For http:// access use: -p 8080:80/tcp

Shared Memory

Set shared memory to half of your installed memory.

Subsequent runs

You can start/stop/restart the container anytime. You don't need to run the command above every time. If you have already created the container once (by the docker run command above), you can simply do a docker stop Zoneminder to stop it and a docker start Zoneminder to start it any time (or do a docker restart Zoneminder).

Customization

  • Set MULTI_PORT_START and MULTI_PORT_END to define a port range for ES multi-port operation.
  • The commands above use a host path of /mnt/Zoneminder to map the container config and cache directories. This is going to be persistent directory that will retain data across container/image stop/restart/deletes. ZM mysql/other config data/event files/etc are kept here. You can change this to any directory in your host path that you want to.

User Script

You can enable a custom user script that will run every time the container is started.

Put your script in the /mnt/Zoneminder/ folder and name it userscript.sh. The script will be executed each time the container is started before Zoneminder is started. Be sure to chmod +x userscript.sh so the script is executable. Set ADVANCED_SCRIPT="1" environment variable to enable your script.

Adding Nvidia GPU support to the Zoneminder.

You will have to install support for your graphics card. If you are using Unraid, install the Nvidia plugin and follow these instructions. On other systems install the Nvidia docker, see here.

After you confirm the graphics card is seen by the Zoneminder docker container, you can then compile opencv with GPU support. Be sure your container can see the graphics card. Read the opencv.sh script for instructions on how to download the packages needed for compiling opencv. You will need to get a developer account for some of the packages because of licensing. Get into the docker command line by docker exec -it Zoneminder /bin/bash and do this once you have the packages:

cd /config/opencv
./opencv.sh

This will compile the opencv with GPU support. It takes a LONG time. You should then have GPU support.

You will have to install the CuDNN runtime yourself based on your particular setup.

Post install configuration and caveats

  • After successful installation, please refer to the ZoneMinder, Event Server and Machine Learning configuration guides from the authors of these components to set it up to your needs. Specifically, if you are using the Event Server and the machine learning hooks, you will need to customize /etc/zm/zmeventnotification.ini and /etc/zm/objectconfig.ini.

  • Note that by default, this docker build runs ZM on port 443 inside the docker container and maps it to port 8443 for the outside world. Therefore, if you are configuring /etc/zm/objectconfig.ini or /etc/zm/zmeventnotification.ini remember to use https://localhost:443/<etc> as the base URL.

  • Push notifications with images will not work unless you replace the self-signed certificates that are auto-generated. Feel free to use the excellent and free LetsEncrypt service if you'd like.

Usage

To access the Zoneminder GUI, browse to: https://<your host ip>:8443/zm or http://<your host ip>:8080/zm if -p 8080:80/tcp is specified.

The zmNinja Event Notification Server is accessed at port 9000. Security with a self signed certificate is enabled. You may have to install the certificate on iOS devices for the event notification to work properly.

Troubleshooting when the container fails

If you have a situation where the container fails to start, you can set NO_START_ZM="1" as an environment variable - this will spin up the container but will not automatically start the MySql and Zoneminder processes. This way, you can get into a command line in the container (docker exec -it Zoneminder /bin/bash) and troubleshoot your issue by using the following commands to start MySql and Zoneminder and fix any errors/problems with them starting.

service mysql start
service zoneminder start

zoneminder.machine.learning's People

Contributors

amitie10g avatar danobot avatar dlandon avatar firefly2442 avatar i39 avatar markdavison avatar orens77 avatar pashok2398 avatar pengman avatar pliablepixels avatar prplhaz4 avatar thobaier avatar tony763 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zoneminder.machine.learning's Issues

hook feature testing

I use your latest container with OpenMediaVault. Running stable for nearly 6 months now.
Thanks a lot for providing it.

The eventnotification server without hooks works well with my setup.
Testing the hook feature I followed your instructions on the unraid forum.
A bit of feedback:

  1. It looks like the "detect.py" is not copied into the docker on startup, only the "detect_wrapper.sh" is.

  2. I am struggeling with the line python setup.py install in the "userscript.sh" because it gives the python: can't open file 'setup.py': [Errno 2] No such file or directory error.
    Do I have to copy the file "setup.py" into the appdata/zoneminder/hook directory as well to be copied into the container at startup? I am sure I am missing something here but cant figure out what myself.
    The first lines of the "userscript.sh" are excecuted ok and dependencies install without errors in the log.

Thanks for looking into this.

Apache2 Ubuntu Default Page

Hey Dan,

Since Today I'm getting just the Apache2 Ubuntu Default Page when starting a brand new Container.

So I pulled this Repo and did docker-compose up, when visiting https://localhost:8443/ there is just the Default Page.
Am I missing to set a Property or has something changed?

I tested it on Docker for Windows and also on an Ubuntu machine.
It worked on another Ubuntu, where I had the Commit ed764bf, maybe that helps.

Best regards

fails to run on odroid.

j@odroidxu4:~$ docker --version
Docker version 17.05.0-ce, build 89658be
j@odroidxu4:~$ cat zm.sh 
docker run -d --name="Zoneminder" \
--net="bridge" \
--privileged="true" \
-p 8080:80/tcp \
-p 8443:443/tcp \
-p 9000:9000/tcp \
-e TZ="America/New_York" \
-e SHMEM="50%" \
-e SSL_EVENTS="1" \
-e PUID="99" \
-e PGID="100" \
-v "/srv/dev-disk-by-label-hgst1/zm/config":"/config":rw \
-v "/srv/dev-disk-by-label-hgst1/zm/data":"/var/cache/zoneminder":rw \
dlandon/zoneminder:latest
j@odroidxu4:~$ ./zm.sh 
830086ebbfa24d0f3961be4f2a47c0330d8935e876d59e1137512e7fe9771c6b
j@odroidxu4:~$ docker logs Zoneminder
standard_init_linux.go:178: exec user process caused "permission denied"

I copied the start launch script exactly and changed the paths for the volume mounts to ones on my system. When I start the container, it tries to start but nothing is available in the web browser on port 8080 or 8443. The logs say permission denied trying to exec something. Does this container support arm?

Permissions trouble running container on UnRAID

I'm new to UnRAID (and Docker!) but I've managed to get your container up and running and generally it's working great (including events and app access) so thanks for all your hard work.

I have one specific issue however and I'm not sure if it is specific to my configuration (I think it might be otherwise I'm sure other people would be having the same problem).

I have separate disks for my ZM recordings and database (configured via the Unassigned Devices plugin for UnRAID), these are mapped through to the container successfully but each time I restart the UnRAID server something is changing the permissions on my /var/cache/zoneminder folder so all the files are owned by root. Due to this permission change I get constant errors in the ZM log that recordings cannot be written to the events folder. I have found that running:

chown -R www-data:www-data /var/cache/zoneminder/

fixes the problem, but as soon as I reboot the server the permissions revert and ZM is broken until I fix the permissions. So my questions are:

  1. Is there something in the container startup sequence that is changing the permissions on my folder?

  2. Is there a way to stop this permission rewriting OR of running a custom script (after boot) to fix the permissions?

  3. How is no-one else getting this problem (am I doing something wrong!)?

Happy to provide more info if required...

Create prebuilt images for the different event server/hooks/face configurations

On start up the container is installing all the additional dependencies like the event notification server and face recognition.
It would be much better if the installation of those dependencies can be handled in the Dockerfile and distributed via a tagged image. this means containers will start up immediately and the dependencies only need to be installed once when the imgae is built (rather than each time the container is created).

chown root:www-data on /var/cache/zoneminder

Hi there,

I've setup a container using your image and migrated my previous installation to it (db + recordings). Now, whenever I restart my container ownership gets changed to root:www-data on zoneminder folders making it no longer writable to apache's www-data (on my previous installation those folders were www-data:www-data owned).

I tried adjusting these settings in init/40_firstrun.sh and rebuilding the image after that, but for some reason this makes apache refuse connections. There are no error messages in container log nor apache's error log. Restarting apache results in [fail], though when I check its status it says it is running.

I'm a docker dummy, just started familiarizing myself with it recently so I guess I must be doing something wrong here. I'll be grateful for any assistance.
Thanks in advance!

path broken after 4.6 event server update

it seems after upgrading 4.6 event server, paths are broken in multiple points

according to this commit 8abbd69, file names are changed
/root/zmeventnotification/detect_wrapper.sh -> /root/zmeventnotification/zm_detect_wrapper.sh
/root/zmeventnotification/detect.py -> /root/zmeventnotification/zm_detect.py
right?

  1. two old files(detect_wrapper.sh, detect.py) are not removed although they are not used at all
    https://github.com/dlandon/zoneminder/tree/8abbd690c2a1acafe1769eac3a529f45fbcd4a98/zmeventnotification

  2. symlink old files not new one
    https://github.com/dlandon/zoneminder/blob/8abbd690c2a1acafe1769eac3a529f45fbcd4a98/init/40_firstrun.sh#L335

  3. accessing non exist files
    there are no /var/lib/zmeventnotification/bin/zm_detect_wrapper.sh
    /var/lib/zmeventnotification/bin/zm_detect.py
    should be symlinked first at 2) + chmod +x
    https://github.com/dlandon/zoneminder/blob/8abbd690c2a1acafe1769eac3a529f45fbcd4a98/zmeventnotification/zmeventnotification.ini#L112
    https://github.com/dlandon/zoneminder/blob/8abbd690c2a1acafe1769eac3a529f45fbcd4a98/zmeventnotification/zm_detect_wrapper.sh#L22

  4. also this path should be fixed
    there is no file /etc/zm/secrets.ini
    should be symlinked first
    https://github.com/dlandon/zoneminder/blob/master/zmeventnotification/objectconfig.ini#L11
    or should use /config/secrets.ini like this one
    https://github.com/dlandon/zoneminder/blob/master/zmeventnotification/zmeventnotification.ini#L7

Question: SSMTP working?

Hi,

I've spend days on getting smtp working in your docker, but I can't get it to work. Does it work for you? From command line ssmtp works, but not from within ZoneMinder.

Regards,

Niels

ZM docker build (not just unraid)

Hi, would you be interested in tweaking this repo to become an official ZM docker build? This is the only one I know of that makes it easy to get ZM+ES+ML working. I just built it for my mac and with some small tweaks, everything seems to work well. If you think its something you want to help us with (i.e. take this and make it an official ZM docker build for the full package), would be great if you could join the ZM slack channel to chat about it. I spoke about this briefly to @connortechnology as well and it looks interesting. If not, no worries - great work!

ONVIF Probe not working

I cannot get onvif probe to work when manually probing at the terminal I just get

Name "ZoneMinder::ONVIF::verbose" used only once: possible typo at /usr/bin/zmonvif-probe.pl line 81.
Probing for SOAP 1.1
soap:ServerError sending / receiving message: Timed out waiting for responseurn:localhost
Probing for SOAP 1.2
soap:ServerError sending / receiving message: Timed out waiting for responseurn:localhost

Boot loop during initial container start

I'm getting errors and a never ending loop while trying to start this container. I had it working for quite some time then made some changes to my system and now can't get it running again even on a clean install. This is the error I'm seeing in the logs.

Setting up util-linux (2.27.1-6ubuntu3.8) ...
Configuration file '/etc/cron.weekly/fstrim'
 ==> Deleted (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** fstrim (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package util-linux (--configure):
 end of file on stdin at conffile prompt
Errors were encountered while processing:
  util-linux
E: Sub-process /usr/bin/dpkg returned an error code (1)
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 32 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up util-linux (2.27.1-6ubuntu3.8) ...

Configuration file '/etc/cron.weekly/fstrim'
 ==> Deleted (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** fstrim (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package util-linux (--configure):
 end of file on stdin at conffile prompt
Errors were encountered while processing:
  util-linux
E: Sub-process /usr/bin/dpkg returned an error code (1)
*** /etc/my_init.d/20_apt_update.sh failed with status 100

*** Killing all processes...
Sep  4 22:43:12 dns syslog-ng[13]: syslog-ng shutting down; version='3.5.6'
*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
*** Running /etc/my_init.d/05_set_the_time.sh...
*** Running /etc/my_init.d/06_set_php_time.sh...
*** Running /etc/my_init.d/10_syslog-ng.init...
Sep  4 22:43:14 dns syslog-ng[13]: syslog-ng starting up; version='3.5.6'
Sep  4 22:43:14 dns syslog-ng[13]: EOF on control channel, closing connection;
*** Running /etc/my_init.d/20_apt_update.sh...
Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:2 http://archive.ubuntu.com/ubuntu xenial InRelease
Hit:3 http://ppa.launchpad.net/iconnor/zoneminder-1.32/ubuntu xenial InRelease
Hit:4 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease
Hit:5 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:6 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages have been kept back:

2
The following packages will be upgraded:
  apache2 apache2-bin apache2-data apache2-utils dh-python
  libapache2-mod-php7.1 libblkid1 libdns-export162 libfdisk1 libgd3
  libglib2.0-0 libisc-export160 libldap-2.4-2 libmount1 libsmartcols1 libuuid1
  mount php-apcu-bc php7.1 php7.1-cli php7.1-common php7.1-fpm php7.1-gd
  php7.1-json php7.1-mysql php7.1-opcache php7.1-readline php7.3-common
  php7.3-mysql python3-software-properties software-properties-common
31 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
Need to get 10.4 MB of archives.
After this operation, 6144 B of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 mount amd64 2.27.1-6ubuntu3.8 [121 kB]
Get:2 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 libgd3 amd64 2.2.5-5.2+ubuntu16.04.1+deb.sury.org+1 [134 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libglib2.0-0 amd64 2.48.2-0ubuntu4.4 [1120 kB]
Get:4 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.1-gd amd64 7.1.32-1+ubuntu16.04.1+deb.sury.org+1 [27.2 kB]
Get:5 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.1-json amd64 7.1.32-1+ubuntu16.04.1+deb.sury.org+1 [17.2 kB]
Get:6 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.1-opcache amd64 7.1.32-1+ubuntu16.04.1+deb.sury.org+1 [143 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libldap-2.4-2 amd64 2.4.42+dfsg-2ubuntu3.7 [160 kB]
Get:8 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 libapache2-mod-php7.1 amd64 7.1.32-1+ubuntu16.04.1+deb.sury.org+1 [1268 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apache2 amd64 2.4.18-2ubuntu3.12 [86.6 kB]
Get:10 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apache2-bin amd64 2.4.18-2ubuntu3.12 [927 kB]
Get:11 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.1-mysql amd64 7.1.32-1+ubuntu16.04.1+deb.sury.org+1 [120 kB]
Get:12 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.1-readline amd64 7.1.32-1+ubuntu16.04.1+deb.sury.org+1 [12.9 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apache2-utils amd64 2.4.18-2ubuntu3.12 [82.1 kB]
Get:14 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.1-cli amd64 7.1.32-1+ubuntu16.04.1+deb.sury.org+1 [1325 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apache2-data all 2.4.18-2ubuntu3.12 [162 kB]
Get:16 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.1-fpm amd64 7.1.32-1+ubuntu16.04.1+deb.sury.org+1 [1331 kB]
Get:17 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libuuid1 amd64 2.27.1-6ubuntu3.8 [14.4 kB]
Get:18 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libblkid1 amd64 2.27.1-6ubuntu3.8 [107 kB]
Get:19 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libfdisk1 amd64 2.27.1-6ubuntu3.8 [139 kB]
Get:20 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.1-common amd64 7.1.32-1+ubuntu16.04.1+deb.sury.org+1 [901 kB]
Get:21 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libmount1 amd64 2.27.1-6ubuntu3.8 [114 kB]
Get:22 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php-apcu-bc amd64 1.0.5-1+ubuntu16.04.1+deb.sury.org+1 [11.3 kB]
*** An error occurred. Aborting.
*** Shutting down /etc/my_init.d/20_apt_update.sh (PID 16)...
Sep  4 22:43:24 dns syslog-ng[13]: syslog-ng shutting down; version='3.5.6'
*** Init system aborted.
*** Killing all processes...

zmeventnotification config

How do you have zmeventnotification setup?

I am trying to update it with a different location for certs, or copy mine into it, but the image resets it after restart.

Could we move the path to

/config/keys/cert.crt
/config/keys/cert.key

Question: User running the image

Hi,

I've got another question for you. I'm still trying to get ssmtp in ZoneMinder to work. It seems to something specific to setup of the docker. I can't see any log of zmfilter after turning debugging on. Can you tell me with what user you are running the image? Is it a dedicated user for the image with maybe special priviliges or do you run it under the root user?

Thanks in advance!

Regards,

Niels

privileged, and bridge network

Why do you recommend starting the container with a bridged network, and in privileged mode?

In my opinion you should stay away from privileged containers as much as possible.

issue pulling in camera profiles

This doesnt seem fully unique to your docker image looking on the forums, but in /usr/share/perl5/ONVIF/Client.pm there is a line that is commented out " #$self->get_service_urls();" this needs to be uncommented for camera profiles to work properly.

Feature Request: Using an external MySQL DB

Hey,
First of all, thank you so much for this. Your dockerfile works a treat.

Just a quick Question, would it be possible to somehow use an external MySQL DB server?
I already have one running on my UnRaid box and didn't want to double up on it. Is this at all possible? Maybe through use of Environment Vars?

Thanks heaps!

Delete monitor 1 API Problem

Hi, English is not my main language.

We use zoneminder in your dockerhub.

I have been using your hub since version 1.30, but I know it has recently changed to version 1.32.

Delete monitor 1 API is not working on your images
curl -XDELETE http://server/zm/api/monitors/1.json
aa

Could you please give me an example to solve the above problem or tell me how to download your old version 1.30?

Restart every X time

I have add an export of the log. It seems that everything is crashing after a X amount of time, and I can't seem to pin point what the problem is.

zm-log.txt

change the ip of the database

Is there any way to change the ip of the database inside the docker run script?
I currently have to configure zm.conf and insert it into the volume /mnt/cache/appdata/Zoneminder/appdata/conf/zm.conf

I ask why I saw other images in dockerhub have this method of changing the port in the docker run.

ssmtp not working :(

Hi, sending notifications via ssmtp is not working.
I set up this guide: https://wiki.zoneminder.com/How_to_get_ssmtp_working_with_Zoneminder

Oct 18 15:40:11 zoneminder zmfilter_3 [1012]: INF [Sending notification email 'ZoneMinder: Alarm - AxisIn4-456 (62 - 28 15)']
Oct 18 15:40:11 zoneminder zmfilter_3 [1012]: ERR [Unable to send email: error closing / usr / lib / sendmail: (exit 256)]

Earned after adding the user www-data to the mail group and chmod -R 777 / config / ssmtp and restart apache and zoneminder from docker console

After new install:
root@zoneminder:/# tail -f /var/log/mail.log

Oct 18 17:00:25 zoneminder sSMTP[886]: /etc/ssmtp/ssmtp.conf not found
Oct 18 17:00:26 zoneminder sSMTP[886]: Unable to locate mailhub
Oct 18 17:00:26 zoneminder sSMTP[886]: Cannot open mailhub:25
Oct 18 17:01:26 zoneminder sSMTP[896]: /etc/ssmtp/ssmtp.conf not found
Oct 18 17:01:26 zoneminder sSMTP[896]: Unable to locate mailhub
Oct 18 17:01:26 zoneminder sSMTP[896]: Cannot open mailhub:25

Making changes:

root@zoneminder:/# usermod -a -G mail www-data
root@zoneminder:/# chmod -R 777 /config/ssmtp
root@zoneminder:/# service zoneminder stop
Stopping ZoneMinder:
10/18/18 17:06:58.942959 zmpkg[925].INF [main:57] [Command: status]
10/18/18 17:06:58.949272 zmpkg[925].INF [main:305] [Sanity checking States table...]
10/18/18 17:06:58.956833 zmpkg[925].INF [main:97] [Command: status]
10/18/18 17:06:59.242767 zmpkg[932].INF [main:57] [Command: stop]
10/18/18 17:06:59.247079 zmpkg[932].INF [main:305] [Sanity checking States table...]
10/18/18 17:06:59.250929 zmpkg[932].INF [main:97] [Command: stop]
ZoneMinder stopped successfully

root@zoneminder:/# service apache2 stop

  • Stopping Apache httpd web server apache2 *
    root@zoneminder:/# service apache2 start
  • Starting Apache httpd web server apache2 *
    root@zoneminder:/# service zoneminder start
    Starting ZoneMinder:
    10/18/18 17:07:39.138213 zmpkg[1019].INF [main:57] [Command: start]
    10/18/18 17:07:39.144336 zmpkg[1019].INF [main:305] [Sanity checking States table...]
    10/18/18 17:07:39.147962 zmpkg[1019].INF [main:97] [Command: start]
    10/18/18 17:07:43.425503 zmpkg[1019].INF [main:205] [Single server configuration detected. Starting up services.]
    ZoneMinder started successfully

root@zoneminder:/# tail -f /var/log/mail.log
Oct 18 17:03:26 zoneminder sSMTP[905]: Cannot open mailhub:25
Oct 18 17:04:26 zoneminder sSMTP[908]: /etc/ssmtp/ssmtp.conf not found
Oct 18 17:04:26 zoneminder sSMTP[908]: Unable to locate mailhub
Oct 18 17:04:26 zoneminder sSMTP[908]: Cannot open mailhub:25
Oct 18 17:05:26 zoneminder sSMTP[911]: /etc/ssmtp/ssmtp.conf not found
Oct 18 17:05:26 zoneminder sSMTP[911]: Unable to locate mailhub
Oct 18 17:05:26 zoneminder sSMTP[911]: Cannot open mailhub:25
Oct 18 17:06:26 zoneminder sSMTP[919]: /etc/ssmtp/ssmtp.conf not found
Oct 18 17:06:26 zoneminder sSMTP[919]: Unable to locate mailhub
Oct 18 17:06:26 zoneminder sSMTP[919]: Cannot open mailhub:25
Oct 18 17:08:05 zoneminder sSMTP[1121]: Set Root="[email protected]"
Oct 18 17:08:05 zoneminder sSMTP[1121]: Set MailHub="smtp.gmail.com"
Oct 18 17:08:05 zoneminder sSMTP[1121]: Set RemotePort="587"
Oct 18 17:08:05 zoneminder sSMTP[1121]: Set HostName="localhost"
Oct 18 17:08:05 zoneminder sSMTP[1121]: Set RewriteDomain="gmail.com"
Oct 18 17:08:05 zoneminder sSMTP[1121]: Set FromLineOverride="True"
Oct 18 17:08:05 zoneminder sSMTP[1121]: Set UseSTARTTLS="True"
Oct 18 17:08:05 zoneminder sSMTP[1121]: Set UseTLS="True"
Oct 18 17:08:05 zoneminder sSMTP[1121]: Set AuthUser="[email protected]"
Oct 18 17:08:05 zoneminder sSMTP[1121]: Set AuthPass="GmailPassword"
Oct 18 17:08:05 zoneminder sSMTP[1121]: Set MailHub="smtp.gmail.com"
Oct 18 17:08:05 zoneminder sSMTP[1121]: via SMTP Port Number="587"
Oct 18 17:08:06 zoneminder sSMTP[1121]: Creating SSL connection to host
Oct 18 17:08:06 zoneminder sSMTP[1121]: 220 smtp.gmail.com ESMTP r13-v6sm4564862ljc.64 - gsmtp
Oct 18 17:08:06 zoneminder sSMTP[1121]: EHLO localhost
Oct 18 17:08:06 zoneminder sSMTP[1121]: 250 SMTPUTF8
Oct 18 17:08:06 zoneminder sSMTP[1121]: STARTTLS
Oct 18 17:08:06 zoneminder sSMTP[1121]: 220 2.0.0 Ready to start TLS
Oct 18 17:08:06 zoneminder sSMTP[1121]: SSL connection using ECDHE_RSA_AES_128_GCM_SHA256
Oct 18 17:08:06 zoneminder sSMTP[1121]: EHLO localhost
Oct 18 17:08:06 zoneminder sSMTP[1121]: 250 SMTPUTF8
Oct 18 17:08:06 zoneminder sSMTP[1121]: AUTH LOGIN
Oct 18 17:08:06 zoneminder sSMTP[1121]: 334 123123
Oct 18 17:08:06 zoneminder sSMTP[1121]: 123123
Oct 18 17:08:06 zoneminder sSMTP[1121]: 334 123123
Oct 18 17:08:06 zoneminder sSMTP[1121]: UUFGQ0hjellEVA==
Oct 18 17:08:06 zoneminder sSMTP[1121]: 235 2.7.0 Accepted
Oct 18 17:08:06 zoneminder sSMTP[1121]: MAIL FROM:root@localhost
Oct 18 17:08:06 zoneminder sSMTP[1121]: 250 2.1.0 OK r13-v6sm4564862ljc.64 - gsmtp
Oct 18 17:08:06 zoneminder sSMTP[1121]: RCPT TO:[email protected]
Oct 18 17:08:06 zoneminder sSMTP[1121]: 250 2.1.5 OK r13-v6sm4564862ljc.64 - gsmtp
Oct 18 17:08:06 zoneminder sSMTP[1121]: DATA
Oct 18 17:08:07 zoneminder sSMTP[1121]: 354 Go ahead r13-v6sm4564862ljc.64 - gsmtp
Oct 18 17:08:07 zoneminder sSMTP[1121]: Received: by localhost (sSMTP sendmail emulation); Thu, 18 Oct 2018 17:08:05 +0300
Oct 18 17:08:07 zoneminder sSMTP[1121]: Content-Transfer-Encoding: binary
Oct 18 17:08:07 zoneminder sSMTP[1121]: Content-Type: multipart/mixed; boundary="_----------=153987168510850"
Oct 18 17:08:07 zoneminder sSMTP[1121]: MIME-Version: 1.0
Oct 18 17:08:07 zoneminder sSMTP[1121]: X-Mailer: MIME::Lite 3.030 (F2.85; T2.12; A2.13; B3.15; Q3.13)
Oct 18 17:08:07 zoneminder sSMTP[1121]: Date: Thu, 18 Oct 2018 17:08:05 +0300
Oct 18 17:08:07 zoneminder sSMTP[1121]: From: root@localhost
Oct 18 17:08:07 zoneminder sSMTP[1121]: To: [email protected]
Oct 18 17:08:07 zoneminder sSMTP[1121]: Subject: ZoneMinder: Alarm - AxisIn4-458 (50 - 40 5)
Oct 18 17:08:07 zoneminder sSMTP[1121]:
Oct 18 17:08:07 zoneminder sSMTP[1121]: This is a multi-part message in MIME format.
Oct 18 17:08:07 zoneminder sSMTP[1121]:
Oct 18 17:08:07 zoneminder sSMTP[1121]: --
----------=153987168510850
Oct 18 17:08:07 zoneminder sSMTP[1121]: Content-Disposition: inline
Oct 18 17:08:07 zoneminder sSMTP[1121]: Content-Transfer-Encoding: 8bit
Oct 18 17:08:07 zoneminder sSMTP[1121]: Content-Type: text/plain
Oct 18 17:08:07 zoneminder sSMTP[1121]:
Oct 18 17:08:07 zoneminder sSMTP[1121]: Hello,
Oct 18 17:08:07 zoneminder sSMTP[1121]:
Oct 18 17:08:07 zoneminder sSMTP[1121]: An alarm has been detected on your installation of the ZoneMinder.
Oct 18 17:08:07 zoneminder sSMTP[1121]:
Oct 18 17:08:07 zoneminder sSMTP[1121]: The details are as follows :-
Oct 18 17:08:07 zoneminder sSMTP[1121]:
Oct 18 17:08:07 zoneminder sSMTP[1121]: Monitor : AxisIn4
Oct 18 17:08:07 zoneminder sSMTP[1121]: Event Id : 458
Oct 18 17:08:07 zoneminder sSMTP[1121]: Length : 1.75
Oct 18 17:08:07 zoneminder sSMTP[1121]: Frames : 13 (5)
Oct 18 17:08:07 zoneminder sSMTP[1121]: Scores : t201 m50 a40
Oct 18 17:08:07 zoneminder sSMTP[1121]:
Oct 18 17:08:07 zoneminder sSMTP[1121]: This alarm was matched by the AlarmSend filter and can be viewed at https://192.168.10.237:8443/zm?view=event&mode=stream&mid=3&eid=458
Oct 18 17:08:07 zoneminder sSMTP[1121]:
Oct 18 17:08:07 zoneminder sSMTP[1121]: ZoneMinder
Oct 18 17:08:07 zoneminder sSMTP[1121]: --
----------=_153987168510850--
Oct 18 17:08:08 zoneminder sSMTP[1121]: .
Oct 18 17:08:10 zoneminder sSMTP[1121]: 250 2.0.0 OK 1539871690 r13-v6sm4564862ljc.64 - gsmtp
Oct 18 17:08:10 zoneminder sSMTP[1121]: QUIT
Oct 18 17:08:10 zoneminder sSMTP[1121]: 221 2.0.0 closing connection r13-v6sm4564862ljc.64 - gsmtp
Oct 18 17:08:10 zoneminder sSMTP[1121]: Sent mail for root@localhost (221 2.0.0 closing connection r13-v6sm4564862ljc.64 - gsmtp) uid=33 username=www-data outbytes=1191
^C
root@zoneminder:/#

MySQL server has gone away

Every couple of days i see that zoneminder is unavailable. I see "MySQL server has gone away" as a fatal error in the log. Restarting the docker temp fixes it. Any help is appreciated!

DBI connet issue caused by mysql permission

Hi, is there a solution for this ? (same issue: #19)

im using the :latest tag as today.

the log says:

Setting shared memory to : 50% of 3901824 bytes
Starting services...
 * Starting MariaDB database server mysqld                                                                                                 [fail]
DBI connect('database=zm;host=localhost','zmuser',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at /usr/share/perl5/ZoneMinder/Config.pm line 117.

the mysql log says:

191110  4:35:09 [Note] InnoDB: Completed initialization of buffer pool
191110  4:35:09 [ERROR] InnoDB: ./ibdata1 can't be opened in read-write mode
191110  4:35:09 [ERROR] InnoDB: The system tablespace must be writable!
191110  4:35:09 [ERROR] Plugin 'InnoDB' init function returned error.
191110  4:35:09 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
191110  4:35:09 [ERROR] mysqld: File '/var/lib/mysql/aria_log_control' not found (Errcode: 13 "Permission denied")
191110  4:35:09 [ERROR] mysqld: Got error 'Can't open file' when trying to use aria control file '/var/lib/mysql/aria_log_control'
191110  4:35:09 [ERROR] Plugin 'Aria' init function returned error.
191110  4:35:09 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.
191110  4:35:09 [Note] Plugin 'FEEDBACK' is disabled.
191110  4:35:09 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
191110  4:35:09 [ERROR] Unknown/unsupported storage engine: InnoDB
191110  4:35:09 [ERROR] Aborting```

ive tried to fix the permission but that did not work. If i start the container with 

docker run -it Zoneminder /bin/bash

and then start the /etc/my_init.d/40_....sh it seems to work. any ideas ? 

Manual start of zmeventnotification.pl

I've executed the image like this:

docker run -d --name="Zoneminder" \
--net="bridge" \
--privileged="true" \
-p 8443:443/tcp \
-p 9001:9000/tcp \
-e TZ="America/Santiago" \
-e SHMEM="50%" \
-e PUID="99" \
-e PGID="100" \
-e INSTALL_HOOK="1" \
-e INSTALL_FACE="1" \
-e INSTALL_TINY_YOLO="1" \
-e INSTALL_YOLO="1" \
-v "/mnt/Zoneminder":"/config":rw \
-v "/mnt/Zoneminder/data":"/var/cache/zoneminder":rw \
dlandon/zoneminder

It is working as expected but i have to enter container on every restart and execute the following command manually, otherwise it won't work:

sudo -u www-data /usr/bin/zmeventnotification.pl --config /etc/zm/zmeventnotification.ini

What am i missing?

Im sorry if i do wront but im new to this

Is it only me who only get
For Monitor:5 event:187, hook script returned with text: exit:1

When I use this docker..
It newer identifies any object or write back to zm.. The only thing i can see in Events is "Motion All"

It has never ever marked a person or car or anything?

I start the docker with "sudo docker start Zoneminder"

Should I do something else?

yolov3 and tinyyolo folders empty

Hi,
the docker runs smoothly (i.e. zoneminder works and zmeventnotification seems to be ok as well).

However, looking at looking at https://zmeventnotification.readthedocs.io/en/latest/guides/hooks.html, I would expect to find models in the following folders:
/var/lib/zmeventnotification/models/yolov3
/var/lib/zmeventnotification/models/tinyyolo
...while such folders are empty. Is that ok?

What about detect.py and detect_wrapper.sh? Shouldn't they be in /usr/bin?
And objectconfig.ini in /etc/zm?

Thanks.
Arturo.

face/object recognition

I am following your progress on this. Anxiously await the full support of zmeventnotification object recognition. Good luck

Use of detection and face recognition

Hi,

Thank you for awesome repo. I managed to run everything smoothly and can access ZM console and see my camera feeds.

For detection and face recognition part could you please provide comprehensive documentation how to do that, because by changing some .ini files I did not get anything to work.

Thank you in advance.

Onvif probe is not working (missing arp?)

These are the errors I get when I want to probe:

2018-01-21 22:18:04.488943 web_php   1984 FAT Unable to probe network cameras, status is '1' /config/skins/classic/views/monitorprobe.php 321
2018-01-21 22:18:04.466466 web_php   1984 WAR Unable to determine path for arp command, which arp returned '1' /config/skins/classic/views/monitorprobe.php 304
2018-01-21 22:18:03.997169 web_php   1984 WAR Unable to determine path for arp command, type -p arp returned '127' output is: -p: not found arp: not found /config/skins/classic/views/monitorprobe.php 300

zm_detect.py path in zm_detect_wrapper.sh

zm_detect_wrapper.sh calls /var/lib/zmeventnotification/bin/zm_detect.py, a path that doesn't exist. A soft link could be added to /config/hook, or the path changed to just /config/hook - not sure what makes the most sense. Also, these zm_detect* files overwrite my modifications each time I pull a new docker image.

Python module install

Hello,

I think we have an issue with python module install

If I run the pip command found in 40_firstrun.sh for installing hook, it failed

root@d1d7eb3bd7a3:/config/hook# pip install numpy opencv-python imutils configparser Shapely future
Collecting numpy
  Using cached https://files.pythonhosted.org/packages/da/32/1b8f2bb5fb50e4db68543eb85ce37b9fa6660cd05b58bddfafafa7ed62da/numpy-1.17.0.zip
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-OjXLgx/numpy/setup.py", line 31, in <module>
        raise RuntimeError("Python version >= 3.5 required.")
    RuntimeError: Python version >= 3.5 required.

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-OjXLgx/numpy/
You are using pip version 8.1.1, however version 19.2.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Due to wrong python version.

We should install python3-pip and run pip3 install ... and add module pyzmutils and requests in order to have /usr/bin/detect_wrapper.sh working

turn on MQTT?

Have the container running fine, appears to work, but want to turn on MQTT to send events to home assistant, have tried modifying zmeventnotification.ini to

Use MQTT for messaging (default: no)

[mqtt]
enable = yes

But in restarting the container, its not picked up.

How can I turn on mqtt?

Starting MariaDB database server mysqld ...fail!

Hello.
I'm quite new to docker. but have ran other images with some issues that I was able to fix.

  I'm trying to run  dlandon/zoneminder through your docker-run.sh script as root but always get the same errors and then it get closed.  (Bellow the logs)

  How can I solve this?

Best Regards.
DM

Setting shared memory to : 50% of 16294700 bytes
Starting services
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of stop.
/usr/sbin/policy-rc.d returned 101, not running 'stop zoneminder.service'
Detected db service is mysql.service
Failed to connect to bus: No such file or directory
Failed to connect to bus: No such file or directory
/usr/sbin/policy-rc.d returned 101, not running 'start mysql.service'
Failed to connect to bus: No such file or directory
NOTE: MySQL/MariaDB not running; please start mysql and run dpkg-reconfigure zoneminder when it is running.
/usr/sbin/policy-rc.d returned 101, not running 'restart zoneminder.service'
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.

  • /etc/init.d/mysql: WARNING: /etc/mysql/my.cnf cannot be read. See README.Debian.gz
    Jan 31 22:01:26 galacticempire /etc/init.d/mysql[453]: WARNING: /etc/mysql/my.cnf cannot be read. See README.Debian.gz
  • Starting MariaDB database server mysqld
    ...fail!
    DBI connect('database=zm;host=localhost','zmuser',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at /usr/share/perl5/ZoneMinder/Config.pm line 117.
    Can't connect to db at /usr/share/perl5/ZoneMinder/Config.pm line 166.
    BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 166.
    Compilation failed in require at /usr/bin/zmupdate.pl line 71.
    BEGIN failed--compilation aborted at /usr/bin/zmupdate.pl line 71.
    DBI connect('database=zm;host=localhost','zmuser',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at /usr/share/perl5/ZoneMinder/Config.pm line 117.
    Can't connect to db at /usr/share/perl5/ZoneMinder/Config.pm line 166.
    BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 166.
    Compilation failed in require at /usr/bin/zmupdate.pl line 71.
    BEGIN failed--compilation aborted at /usr/bin/zmupdate.pl line 71.
  • Starting Apache httpd web server apache2

Starting ZoneMinder:
DBI connect('database=zm;host=localhost','zmuser',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at /usr/share/perl5/ZoneMinder/Config.pm line 117.
Can't connect to db at /usr/share/perl5/ZoneMinder/Config.pm line 166.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 166.
Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 33.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 33.
Compilation failed in require at /usr/bin/zmpkg.pl line 34.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 34.
ZoneMinder failed to start

*** /etc/my_init.d/40_firstrun.sh failed with status 255

*** Killing all processes...
Jan 31 22:02:06 galacticempire syslog-ng[16]: syslog-ng shutting down; version='3.5.6'

No module named 'future'

after issuing : sudo -u www-data /mnt/Zoneminder/hook/detect_wrapper.sh
i get this error:

Traceback (most recent call last):
  File "/mnt/Zoneminder/hook/detect.py", line 21, in <module>
    import zmes_hook_helpers.utils as utils
  File "/usr/local/lib/python3.6/dist-packages/zmes_hook_helpers/utils.py", line 20, in <module>
    from future import standard_library
ModuleNotFoundError: No module named 'future'

pip install future doesnt work (pip3 either)

image versioning

Please, consider to implement versioning of docker images. By DB version for example. It's very important for multiple (50+) installations. I'd like to be sure all of my further installations have the same database version as previouse ones.

P.S. latest in production is not best practise as well)

shm size

Please note some were. If use docker stack deploy:
something like:
docker stack deploy --compose-file zoneminder-compose.yml zoneminderserver
in zonemminder-compose.yml
have to be next:
volumes:
- type: tmpfs
target: /dev/shm
tmpfs:
size: 524288000

It solve issue with default 64MB shm size (only 2 cams woking :) )

zmEventNotifications don't seem to work

I installed you docker container and noticed that there are a few things that need to be change.

  1. zmeventnotification.ini, set the hook to /config/hook/zm_detect_wrapper.sh
  2. zm_detect_wrapper.sh, change DETECTION_SCRIPT to /config/hook/zm_detect.py
  3. chmod +x /config/hook/zm_detect.py
  4. objectconfig.ini, set secrets to /config/secrets

After that there where no more errors still it wasn't working as intended, no mqtt, no feedback on the object detected.

Nov 28 21:25:28 b08b327f22a0 zmeventnotification[760]: INF [New event 60 reported for Monitor:1 (Name:Oprit) ]
Nov 28 21:25:28 b08b327f22a0 zmeventnotification[1575]: INF [Forking process:1575 to handle 1 alarms]
Nov 28 21:25:28 b08b327f22a0 zmeventnotification[1575]: INF [processAlarms: EID:60 Monitor:Oprit (id):1 cause:]
Nov 28 21:25:28 b08b327f22a0 zmeventnotification[1575]: INF [Invoking hook:'/config/hook/zm_detect_wrapper.sh' 60 1 "Oprit" ""]
Nov 28 21:25:28 b08b327f22a0 /zm_detect.py[1579]: INF [zmesdetect_m1] [---------| app version: 4.6.1 |------------]
Nov 28 21:25:29 b08b327f22a0 zmeventnotification[1575]: INF [For Monitor:1 event:60, hook script returned with text: exit:1]
Nov 28 21:25:29 b08b327f22a0 zmeventnotification[1575]: INF [Ending process:1575 to handle alarms]

Email not working

I've configured email in zoneminder following this guide and it seems that email sending is not triggered by zoneminder at all. There's nothing in the logs or console output to say it's trying to send an email.

Could this possibly be an issue with the docker container? I have email set up the same on another non-docker install of zoneminder and it's working fine.

Video cannot stream through proxy

Works fine with direct connection but not working if I proxy with haproxy or other proxies. Image appears blank with an image placeholder on the webpage.

Works fine with zmninja app on iOS.

Permission help

Hello,

I'm pretty new to this docker and docker in general. Sorry if it's a newbie question.

I have been playing with this docker for few hours. Usually I don't have issue with permission but I must have missed something.

Here is my docker-compose file :
zoneminder:
image: dlandon/zoneminder:latest
container_name: zoneminder
restart: unless-stopped
volumes:
- ${USERDIR}/docker/zoneminder:/config:rw
- ${USERDIR}/docker/zoneminder/data:/var/cache/zoneminder:rw
- /mnt/ryzen7-10tb/smb-share-ryzen7/cam/zoneminder:/video:rw
ports:
- 7443:443/tcp
- 9500:9000/tcp
network_mode: "bridge"
privileged: true
environment:
- PUID=1000
- PGID=999
- TZ=${TZ}
- SHMEM=50%
- INSTALL_HOOK=0
- INSTALL_FACE=0
- INSTALL_TINY_YOLO=0
- INSTALL_YOLO=0

I created my folders with PUID = 1000 and PGID = 999.

Here is one error in my log right after I log in the web gui.

Cannot write to content dirs('/var/cache/zoneminder/events','/var/cache/zoneminder/images'). Check that these exist and are owned by the web account user

Any tips?

Regards and merry xmas all!

Yves

Connection to SQL DB error

Good morning,

Transitioning from quantomobject zoneminder to yours since I need a simpler setup (they are moving towards swarm) and I have a single machine. Anyways, got the following error when trying to launch the container.

Unable to connect to ZM db.SQLSTATE[HY000] [2002] Connection refused

A couple seconds after this appears in the browser, the container stops until I restart it.

Re-Enable HTTP?

With the latest update http access was removed and only https is allowed. Any way to allow http to be enabled as a settings option?

I use zoneminder with Home Assistant using http and with the latest update of zoneminder I cannot get https to work with Home Assistant. The removing of http essentially broke its' intergration ability with Home Assistant. The self-signed certificate cannot be verified by Home Assistant and therefore it cannot be set up.Thanks

Explosive Memory Usage

I don't think I've changed anything at all about how this container runs but recently I've noticed it is just chewing up ram (like 20GB). When I restart the container it will fall then slowly build back up. I'm wondering if anyone else is experiencing this issue and/or if there is some way to mitigate it?

recommended way to upgrade this container?

I'm new to docker, but been using Zoneminder for quite a while.
What is the recommended way to update the container?

In case it makes a difference : this container is running in Openmediavault instead of the intended UnRaid.

latest docker build getting php error

This is where it bombs out after re-start. I also deleted the image and re-pulled. This happened suddenly today . It looks like a problem with /etc/my_init.d/20_apt_update.sh

Setting up php7.4-fpm (7.4.2-2+ubuntu18.04.1+deb.sury.org+1) ...
Setting up php7.4-fpm (7.4.2-2+ubuntu18.04.1+deb.sury.org+1) ...
update-alternatives: error: alternative path /run/php/php7.4-fpm.sock doesn't exist
dpkg: error processing package php7.4-fpm (--configure):
installed php7.4-fpm package post-installation script subprocess returned error exit status 2
Setting up libapache2-mod-php7.4 (7.4.2-2+ubuntu18.04.1+deb.sury.org+1) ...
libapache2-mod-php7.4: not switching MPM - already enabled
Feb 1 06:59:32 5f1438c9b5dc libapache2-mod-php7.4: libapache2-mod-php7.4: not switching MPM - already enabled
Setting up php7.4 (7.4.2-2+ubuntu18.04.1+deb.sury.org+1) ...
Processing triggers for systemd (237-3ubuntu10.33) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for php7.4-cli (7.4.2-2+ubuntu18.04.1+deb.sury.org+1) ...
Processing triggers for php7.4-cli (7.4.2-2+ubuntu18.04.1+deb.sury.org+1) ...
Processing triggers for libapache2-mod-php7.4 (7.4.2-2+ubuntu18.04.1+deb.sury.org+1) ...
Errors were encountered while processing:
php7.4-fpm
E: Sub-process /usr/bin/dpkg returned an error code (1)
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up php7.4-fpm (7.4.2-2+ubuntu18.04.1+deb.sury.org+1) ...
update-alternatives: error: alternative path /run/php/php7.4-fpm.sock doesn't exist
dpkg: error processing package php7.4-fpm (--configure):
installed php7.4-fpm package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
php7.4-fpm
E: Sub-process /usr/bin/dpkg returned an error code (1)
*** /etc/my_init.d/20_apt_update.sh failed with status 100

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.