[support] dlandon - Zoneminder 1.36


1113 posts in this topic Last Reply

Recommended Posts

I guess there a few options:

 

1. community maintain the zoneminder docker

2. Consider separating the ML components to a separate docker and Zoneminder docker

3. move to another NVR docker like Shinobi, motioneye, blue iris (Shinobi has tensorflow built in, but there is deepstack or frigate for object detection docker components).

 

happy to help where I can 

Link to post
  • Replies 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

This is an update of the Zoneminder Docker initially created by aptalca to the latest version of Zoneminder.  You can do an in place update of this Docker and your current configuration will be kept a

Map an external port to the Zoneminder docker port 80.

Posted Images

53 minutes ago, mikeg_321 said:

It's a bit tough to tell from the recent comments what state it's in for issues. 

There are still issues with the last update to ES.  I was being overwhelmed with issues (a lot from GitHub, not necessarily here) and honestly there was some attitude I really didn't appreciate, so I stopped.

Link to post
57 minutes ago, mikeg_321 said:

still will if you decide to go to some pay model.

I'm not going to go to a pay model.  I want this to stay a free solution, but in order to do that I need to change things.

 

15 minutes ago, Jaburges said:

I guess there a few options:

Take a pause and let me see what I come up with as an answer that will work for all of us.

Link to post
3 hours ago, Schmeckles23 said:

I updated to the latest version and for some off reason my camera's are now offline, I have reinstalled and still the same fate. Checking my feed via VLC and they are all working.

Be sure you use the new template from CA and set the shared memory as per the instructions in the template.

Link to post
11 hours ago, dlandon said:

Be sure you use the new template from CA and set the shared memory as per the instructions in the template.

Thank you, I will check later. Was there some additional settings added on the update which could have caused this?

As it's worked flawlessly for months even after updating.

Link to post
20 hours ago, dlandon said:

Take a pause and let me see what I come up with as an answer that will work for all of us.

Once you figure out your bearing i'd be happy to beta. Your container, with ES/ML made zoneminder pop and helped complete my home automation setup.

I noticed a lot of questions around ES 6.1.5 came from out of date objectconfig.ini configs. 


<this isn't applicable to current CA template>
Also; I haven't dug into it yet but there seems to be an issue with unraid 6.8.3 and the compiled version of opencv 4.5.1.   I was getting a managedptr exception when ES handed off to ML for detection.  Going to compile against 4.4.0 sometime soon to see if that resolves that error.

Edited by repomanz
Link to post
2 hours ago, repomanz said:

I noticed a lot of questions around ES 6.1.5 came from out of date objectconfig.ini configs. 

Yes, on top of the configuration change regarding shared memory, the new ES presented a lot of issues.  Once we get started with a new 'all in one' Docker, we can sort through the ES issues.  There is actually a 6.1.7 release now.

Link to post
8 minutes ago, dlandon said:

Yes, on top of the configuration change regarding shared memory, the new ES presented a lot of issues.  Once we get started with a new 'all in one' Docker, we can sort through the ES issues.  There is actually a 6.1.7 release now.

Unfortunately, this may be unifi controller type situation all over again, where 'a solution' (but not easy, fun, or making @dlandon's life any easier) is versioning so people can lock in a 'last working version', but that's an ugly matrix of versions, ZM ver + ES Ver + ?opencv? = exponential growth.  

Link to post

Hi,

 

After an update of a working instance of Zoneminder, I have the problem of;

 

Unable to connect to ZM db.SQLSTATE[HY000] [2002] No such file or directory

 

On inspection of the log (bottom), it references the MariaDB.

 

When I use mc to try and navigate to the floder/files referred too..... they don't exist.... presumably because the "kill" at the end deletes them?

 

After much frustration, I installed a fresh Zoneminder on my other unRaid server. This server runs as a NAS with no other dockers........ and that works fine!

 

So........... if it's an interaction between Zoneminder and my MariaDB, is there a workaround? I only have MariaDB because of my Nextcloud instance, and they work fine together.

 

This server is my high core/high memory VM and docker server so, although it works, I dont want to leave Zoneminder on my NAS server.

 

Having read through the forum, I've tried deleting templates for a fresh install from CA...... I've tried deleting log files.... but they didn't exist.... presumably because it's never done anything............

 

I noticed from comparing the Appdata folders that the non-working instance has an extra directory "opencv". My working version doesn't have this even though it was installed after the broken one???

 

Any help gratefully received,

 

ATB,

 

Paul

 

 

Starting services...
* Starting Apache httpd web server apache2
*

* Starting MariaDB database server mysqld
Jan 12 15:23:43 70771cb7af9e web_php[657]: FAT [Failed db connection to ]
...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/Database.pm line 110.
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/Database.pm line 110.
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/Database.pm line 110.
Jan 12 15:24:12 70771cb7af9e zmupdate[1092]: ERR [Error reconnecting to db: errstr:Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) error val:]
Can't call method "prepare_cached" on an undefined value at /usr/share/perl5/ZoneMinder/Config.pm line 96.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 147.
Compilation failed in require at /usr/bin/zmupdate.pl line 73.
BEGIN failed--compilation aborted at /usr/bin/zmupdate.pl line 73.
Jan 12 15:24:12 70771cb7af9e zmupdate[1092]: ERR [Error reconnecting to db: errstr:Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) error val:]
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/Database.pm line 110.
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/Database.pm line 110.
Jan 12 15:24:12 70771cb7af9e zmupdate[1094]: ERR [Error reconnecting to db: errstr:Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) error val:]
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/Database.pm line 110.
Can't call method "prepare_cached" on an undefined value at /usr/share/perl5/ZoneMinder/Config.pm line 96.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 147.
Compilation failed in require at /usr/bin/zmupdate.pl line 73.
BEGIN failed--compilation aborted at /usr/bin/zmupdate.pl line 73.
Jan 12 15:24:12 70771cb7af9e zmupdate[1094]: ERR [Error reconnecting to db: errstr:Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) error val:]
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/Database.pm line 110.
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/Database.pm line 110.
Jan 12 15:24:12 70771cb7af9e zmpkg[1104]: ERR [Error reconnecting to db: errstr:Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) error val:]
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/Database.pm line 110.
Can't call method "prepare_cached" on an undefined value at /usr/share/perl5/ZoneMinder/Config.pm line 96.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 147.
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.
Jan 12 15:24:12 70771cb7af9e zmpkg[1104]: ERR [Error reconnecting to db: errstr:Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) error val:]
ZoneMinder failed to start

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

*** Killing all processes...
Jan 12 15:24:12 70771cb7af9e syslog-ng[38]: syslog-ng shutting down; version='3.25.1'

Edited by pm1961
Link to post

Hi All,

 

My /dev/shm is full at 100% and I can't get it to any less than that. Worked for a long time with no issues. The /dev/shm is only 64M but it's set to 50% of my 16GB. How can I fix this? Looked around all over the place and saw this: https://www.gitmemory.com/issue/dlandon/zoneminder/106/658316960 but without cloning the repo, I don't think I can modify the docker compose. Any thoughts? Thanks.

Link to post
23 minutes ago, Galileo said:

Hi All,

 

My /dev/shm is full at 100% and I can't get it to any less than that. Worked for a long time with no issues. The /dev/shm is only 64M but it's set to 50% of my 16GB. How can I fix this? Looked around all over the place and saw this: https://www.gitmemory.com/issue/dlandon/zoneminder/106/658316960 but without cloning the repo, I don't think I can modify the docker compose. Any thoughts? Thanks.

Get the new template from CA and read the instructions on how to set shared memory.  It has changed.

Link to post
On 1/14/2021 at 7:24 PM, Jaburges said:

@dlandonJust pointed a friend to the Unraid template and its missing the ENV variables for hook processing and Yolo etc.

Is it still actually there and they can add it manually or will they need an older dockerfile?

The Docker from CA does not include hook processing any longer.

Link to post

I have changed the CA template for Zoneminder to include ES and none of the hook processing,  It was very complicated with all the environment variables that needed to be set for each person's preferences and was becoming very confusing to users.  What I want to do is develop a new Docker Container that will be for Zoneminder, ES, and hook processing pre-configured without all the environment variables. The Yolo models will be installed in the Docker so they don't have to be downloaded.  Everything for ML will be pre-configured with the exception of opencv with GPU support and specific hardware support like coral edge tpu. GPU support is unique on each system and Nvidia has licensing restrictions that prevent distribution.

 

I have created a GoFundMe campaign to fund the development, enhancement, maintenance, and support of this new Docker.

Link to post
  • 2 weeks later...
On 1/11/2021 at 11:49 AM, repomanz said:

Once you figure out your bearing i'd be happy to beta.

I am building a preliminary machine learning Docker for testing.  PM me and I'll make arrangements for you to access the Private Docker.  Access and support for this preliminary version will be very limited until the GoFundMe is successful.

Link to post
On 1/12/2021 at 6:01 PM, pm1961 said:

Hi,

 

After an update of a working instance of Zoneminder, I have the problem of;

 

Unable to connect to ZM db.SQLSTATE[HY000] [2002] No such file or directory

 

On inspection of the log (bottom), it references the MariaDB.

 

When I use mc to try and navigate to the floder/files referred too..... they don't exist.... presumably because the "kill" at the end deletes them?

 

After much frustration, I installed a fresh Zoneminder on my other unRaid server. This server runs as a NAS with no other dockers........ and that works fine!

 

So........... if it's an interaction between Zoneminder and my MariaDB, is there a workaround? I only have MariaDB because of my Nextcloud instance, and they work fine together.

 

This server is my high core/high memory VM and docker server so, although it works, I dont want to leave Zoneminder on my NAS server.

 

Having read through the forum, I've tried deleting templates for a fresh install from CA...... I've tried deleting log files.... but they didn't exist.... presumably because it's never done anything............

 

I noticed from comparing the Appdata folders that the non-working instance has an extra directory "opencv". My working version doesn't have this even though it was installed after the broken one???

 

Any help gratefully received,

 

ATB,

 

Paul

 

 

Starting services...
* Starting Apache httpd web server apache2
*

* Starting MariaDB database server mysqld
Jan 12 15:23:43 70771cb7af9e web_php[657]: FAT [Failed db connection to ]
...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/Database.pm line 110.
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/Database.pm line 110.
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/Database.pm line 110.
Jan 12 15:24:12 70771cb7af9e zmupdate[1092]: ERR [Error reconnecting to db: errstr:Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) error val:]
Can't call method "prepare_cached" on an undefined value at /usr/share/perl5/ZoneMinder/Config.pm line 96.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 147.
Compilation failed in require at /usr/bin/zmupdate.pl line 73.
BEGIN failed--compilation aborted at /usr/bin/zmupdate.pl line 73.
Jan 12 15:24:12 70771cb7af9e zmupdate[1092]: ERR [Error reconnecting to db: errstr:Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) error val:]
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/Database.pm line 110.
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/Database.pm line 110.
Jan 12 15:24:12 70771cb7af9e zmupdate[1094]: ERR [Error reconnecting to db: errstr:Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) error val:]
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/Database.pm line 110.
Can't call method "prepare_cached" on an undefined value at /usr/share/perl5/ZoneMinder/Config.pm line 96.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 147.
Compilation failed in require at /usr/bin/zmupdate.pl line 73.
BEGIN failed--compilation aborted at /usr/bin/zmupdate.pl line 73.
Jan 12 15:24:12 70771cb7af9e zmupdate[1094]: ERR [Error reconnecting to db: errstr:Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) error val:]
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/Database.pm line 110.
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/Database.pm line 110.
Jan 12 15:24:12 70771cb7af9e zmpkg[1104]: ERR [Error reconnecting to db: errstr:Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) error val:]
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/Database.pm line 110.
Can't call method "prepare_cached" on an undefined value at /usr/share/perl5/ZoneMinder/Config.pm line 96.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 147.
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.
Jan 12 15:24:12 70771cb7af9e zmpkg[1104]: ERR [Error reconnecting to db: errstr:Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) error val:]
ZoneMinder failed to start

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

*** Killing all processes...
Jan 12 15:24:12 70771cb7af9e syslog-ng[38]: syslog-ng shutting down; version='3.25.1'

 

I have the same error after updating a couple of days ago. Can't get it started. Seems like the "internal" DB is gone, or moved?

 

Link to post
7 hours ago, JesperPersson said:

 

I have the same error after updating a couple of days ago. Can't get it started. Seems like the "internal" DB is gone, or moved?

 

Have you adjusted the shared memory using the new template from CA?

Link to post
On 1/29/2021 at 11:11 PM, dlandon said:

Have you adjusted the shared memory using the new template from CA?

Yes, that I did on the previous update. Worked all fine until the update a few days ago. It doesn't seem to find/manage to start the internal DB.

Link to post
1 hour ago, JesperPersson said:

Yes, that I did on the previous update. Worked all fine until the update a few days ago. It doesn't seem to find/manage to start the internal DB.

Show the Zoneminder log where the database doesn't start.

Link to post

Thank you for assisting!

 

*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
*** Running /etc/my_init.d/05_set_the_time.sh...
Setting the timezone to : Europe/Berlin

Current default time zone: 'Europe/Berlin'
Local time is now: Mon Feb 1 09:40:19 CET 2021.
Universal Time is now: Mon Feb 1 08:40:19 UTC 2021.

Date: Mon Feb 1 09:40:20 CET 2021
*** Running /etc/my_init.d/06_set_php_time.sh...
*** Running /etc/my_init.d/07_set_dri_permissions.sh...
Granting permissions on /dev/dri/* devices...
*** Running /etc/my_init.d/10_syslog-ng.init...
Feb 1 09:40:20 618a71471b35 syslog-ng[38]: syslog-ng starting up; version='3.25.1'
*** Running /etc/my_init.d/20_apt_update.sh...
Performing updates...
Hit:1 http://ppa.launchpad.net/iconnor/zoneminder-1.34/ubuntu focal InRelease
Hit:2 http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease
Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [109 kB]
Hit:4 http://archive.ubuntu.com/ubuntu focal InRelease
Get:5 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal-updates/main Sources [454 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal-updates/restricted Sources [11.7 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal-updates/multiverse Sources [11.1 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal-updates/universe Sources [184 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [921 kB]
Get:12 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1005 kB]
Get:13 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [21.1 kB]
Get:14 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [194 kB]
Get:15 http://security.ubuntu.com/ubuntu focal-security/universe Sources [55.4 kB]
Get:16 http://security.ubuntu.com/ubuntu focal-security/main Sources [151 kB]
Get:17 http://security.ubuntu.com/ubuntu focal-security/restricted Sources [10.4 kB]
Get:18 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [161 kB]
Get:19 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [598 kB]
Get:20 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [659 kB]
Fetched 4760 kB in 7s (713 kB/s)
Get:19 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [598 kB]
Get:20 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [659 kB]
Fetched 4760 kB in 7s (713 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages will be upgraded:
base-files language-pack-en language-pack-en-base libglib2.0-0
libglib2.0-bin libglib2.0-data python-apt-common python3-apt tzdata
9 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 2334 kB of archives.
After this operation, 17.4 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 base-files amd64 11ubuntu5.3 [60.6 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 language-pack-en all 1:20.04+20210121 [1896 B]
Get:3 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 language-pack-en-base all 1:20.04+20210121 [442 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libglib2.0-data all 2.64.6-1~ubuntu20.04.1 [6120 B]
Get:5 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libglib2.0-bin amd64 2.64.6-1~ubuntu20.04.1 [72.6 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libglib2.0-0 amd64 2.64.6-1~ubuntu20.04.1 [1284 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 tzdata all 2021a-0ubuntu0.20.04 [295 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 python-apt-common all 2.0.0ubuntu0.20.04.4 [17.4 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-apt amd64 2.0.0ubuntu0.20.04.4 [154 kB]
Preconfiguring packages ...
Preconfiguring packages ...
Fetched 2334 kB in 4s (644 kB/s)
Preparing to unpack .../base-files_11ubuntu5.3_amd64.deb ...
Preparing to unpack .../base-files_11ubuntu5.3_amd64.deb ...
Unpacking base-files (11ubuntu5.3) over (11ubuntu5.2) ...
Setting up base-files (11ubuntu5.3) ...
Installing new version of config file /etc/issue ...
Installing new version of config file /etc/issue.net ...
Installing new version of config file /etc/lsb-release ...
Installing new version of config file /etc/lsb-release ...
Preparing to unpack .../0-language-pack-en_1%3a20.04+20210121_all.deb ...
Unpacking language-pack-en (1:20.04+20210121) over (1:20.04+20200709) ...
Preparing to unpack .../1-language-pack-en-base_1%3a20.04+20210121_all.deb ...
Unpacking language-pack-en-base (1:20.04+20210121) over (1:20.04+20200709) ...
Preparing to unpack .../2-libglib2.0-data_2.64.6-1~ubuntu20.04.1_all.deb ...
Unpacking libglib2.0-data (2.64.6-1~ubuntu20.04.1) over (2.64.3-1~ubuntu20.04.1) ...
Preparing to unpack .../3-libglib2.0-bin_2.64.6-1~ubuntu20.04.1_amd64.deb ...
Unpacking libglib2.0-bin (2.64.6-1~ubuntu20.04.1) over (2.64.3-1~ubuntu20.04.1) ...
Preparing to unpack .../4-libglib2.0-0_2.64.6-1~ubuntu20.04.1_amd64.deb ...
Preparing to unpack .../4-libglib2.0-0_2.64.6-1~ubuntu20.04.1_amd64.deb ...
Unpacking libglib2.0-0:amd64 (2.64.6-1~ubuntu20.04.1) over (2.64.3-1~ubuntu20.04.1) ...
Preparing to unpack .../5-tzdata_2021a-0ubuntu0.20.04_all.deb ...
Unpacking tzdata (2021a-0ubuntu0.20.04) over (2020f-0ubuntu0.20.04.1) ...
Preparing to unpack .../6-python-apt-common_2.0.0ubuntu0.20.04.4_all.deb ...
Unpacking python-apt-common (2.0.0ubuntu0.20.04.4) over (2.0.0ubuntu0.20.04.3) ...
Preparing to unpack .../7-python3-apt_2.0.0ubuntu0.20.04.4_amd64.deb ...
Unpacking python3-apt (2.0.0ubuntu0.20.04.4) over (2.0.0ubuntu0.20.04.3) ...
Setting up libglib2.0-0:amd64 (2.64.6-1~ubuntu20.04.1) ...
Setting up tzdata (2021a-0ubuntu0.20.04) ...

Current default time zone: 'Europe/Berlin'
Local time is now: Mon Feb 1 09:41:30 CET 2021.
Universal Time is now: Mon Feb 1 08:41:30 UTC 2021.
Run 'dpkg-reconfigure tzdata' if you wish to change it.

Setting up libglib2.0-data (2.64.6-1~ubuntu20.04.1) ...
Setting up python-apt-common (2.0.0ubuntu0.20.04.4) ...
Setting up python3-apt (2.0.0ubuntu0.20.04.4) ...
Setting up libglib2.0-bin (2.64.6-1~ubuntu20.04.1) ...
Setting up language-pack-en (1:20.04+20210121) ...
Setting up language-pack-en-base (1:20.04+20210121) ...
Generating locales (this might take a while)...
Generation complete.
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
*** Running /etc/my_init.d/30_gen_ssl_keys.sh...
using existing keys in "/config/keys"
*** Running /etc/my_init.d/40_firstrun.sh...
Using existing conf folder
File zm.conf already copied
Moving zmeventnotification.ini
Moving secrets.ini
Moving the event notification server
Moving the pushover api
Using existing ssmtp folder
Using existing mysql database folder
Copy /config/control/ scripts to /usr/share/perl5/ZoneMinder/Control/
Copy /config/conf/ scripts to /etc/zm/conf.d/
Creating symbolink links
Using existing data directory for events
Using existing data directory for images
Using existing data directory for temp
Using existing data directory for cache
no crontab for root
Starting services...
* Starting Apache httpd web server apache2
*
* Starting MariaDB database server mysqld
cat: /run/mysqld/mysqld.pid: No such file or directory
...fail!
DBI connect('database=zm;host=localhost','zmuser',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) at /usr/share/perl5/ZoneMinder/Database.pm line 110.
DBI connect('database=zm;host=localhost','zmuser',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) at /usr/share/perl5/ZoneMinder/Database.pm line 110.
DBI connect('database=zm;host=localhost','zmuser',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) at /usr/share/perl5/ZoneMinder/Database.pm line 110.
Can't call method "prepare_cached" on an undefined value at /usr/share/perl5/ZoneMinder/Config.pm line 96.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 147.
Compilation failed in require at /usr/bin/zmupdate.pl line 73.
BEGIN failed--compilation aborted at /usr/bin/zmupdate.pl line 73.
Feb 1 09:42:15 618a71471b35 zmupdate[1935]: ERR [Error reconnecting to db: errstr:Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) error val:]
Feb 1 09:42:15 618a71471b35 zmupdate[1935]: ERR [Error reconnecting to db: errstr:Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) error val:]
DBI connect('database=zm;host=localhost','zmuser',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) at /usr/share/perl5/ZoneMinder/Database.pm line 110.
DBI connect('database=zm;host=localhost','zmuser',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) at /usr/share/perl5/ZoneMinder/Database.pm line 110.
Feb 1 09:42:15 618a71471b35 zmupdate[1938]: ERR [Error reconnecting to db: errstr:Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) error val:]
DBI connect('database=zm;host=localhost','zmuser',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) at /usr/share/perl5/ZoneMinder/Database.pm line 110.
Can't call method "prepare_cached" on an undefined value at /usr/share/perl5/ZoneMinder/Config.pm line 96.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 147.
Compilation failed in require at /usr/bin/zmupdate.pl line 73.
BEGIN failed--compilation aborted at /usr/bin/zmupdate.pl line 73.
Feb 1 09:42:15 618a71471b35 zmupdate[1938]: ERR [Error reconnecting to db: errstr:Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) error val:]
Starting ZoneMinder:
DBI connect('database=zm;host=localhost','zmuser',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) at /usr/share/perl5/ZoneMinder/Database.pm line 110.
DBI connect('database=zm;host=localhost','zmuser',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) at /usr/share/perl5/ZoneMinder/Database.pm line 110.
Feb 1 09:42:15 618a71471b35 zmpkg[1948]: ERR [Error reconnecting to db: errstr:Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) error val:]
DBI connect('database=zm;host=localhost','zmuser',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) at /usr/share/perl5/ZoneMinder/Database.pm line 110.
Can't call method "prepare_cached" on an undefined value at /usr/share/perl5/ZoneMinder/Config.pm line 96.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 147.
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.
Feb 1 09:42:15 618a71471b35 zmpkg[1948]: ERR [Error reconnecting to db: errstr:Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) error val:]
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...
Feb 1 09:42:15 618a71471b35 syslog-ng[38]: syslog-ng shutting down; version='3.25.1'

 

Link to post

Still no luck, tested the https://github.com/dlandon/zoneminder.unraid, here is the results:

root@xxxx:/# service mysql start
 * Starting MariaDB database server mysqld                                                                           [fail] 
root@xxxx:/# service mysql start
 * Starting MariaDB database server mysqld                                                                           [fail] 
root@xxxx:/# service zoneminder start
Starting ZoneMinder:
DBI connect('database=zm;host=localhost','zmuser',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) at /usr/share/perl5/ZoneMinder/Database.pm line 110.
DBI connect('database=zm;host=localhost','zmuser',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) at /usr/share/perl5/ZoneMinder/Database.pm line 110.
02/01/21 11:28:52.199797 zmpkg[2572].ERR [ZoneMinder::Database:113] [Error reconnecting to db: errstr:Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) error val:]
02/01/21 11:28:52.200061 zmpkg[2572].ERR [ZoneMinder::Database:113] [Error reconnecting to db: errstr:Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) error val:]
DBI connect('database=zm;host=localhost','zmuser',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) at /usr/share/perl5/ZoneMinder/Database.pm line 110.
02/01/21 11:28:52.200388 zmpkg[2572].ERR [ZoneMinder::Database:113] [Error reconnecting to db: errstr:Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) error val:]
Can't call method "prepare_cached" on an undefined value at /usr/share/perl5/ZoneMinder/Config.pm line 96.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 147.
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

Edited by JesperPersson
Link to post
44 minutes ago, JesperPersson said:

Still no luck, tested the https://github.com/dlandon/zoneminder.unraid, here is the results:

root@xxxx:/# service mysql start
 * Starting MariaDB database server mysqld                                                                           [fail] 
root@xxxx:/# service mysql start
 * Starting MariaDB database server mysqld                                                                           [fail] 
root@xxxx:/# service zoneminder start
Starting ZoneMinder:
DBI connect('database=zm;host=localhost','zmuser',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) at /usr/share/perl5/ZoneMinder/Database.pm line 110.
DBI connect('database=zm;host=localhost','zmuser',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) at /usr/share/perl5/ZoneMinder/Database.pm line 110.
02/01/21 11:28:52.199797 zmpkg[2572].ERR [ZoneMinder::Database:113] [Error reconnecting to db: errstr:Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) error val:]
02/01/21 11:28:52.200061 zmpkg[2572].ERR [ZoneMinder::Database:113] [Error reconnecting to db: errstr:Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) error val:]
DBI connect('database=zm;host=localhost','zmuser',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) at /usr/share/perl5/ZoneMinder/Database.pm line 110.
02/01/21 11:28:52.200388 zmpkg[2572].ERR [ZoneMinder::Database:113] [Error reconnecting to db: errstr:Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) error val:]
Can't call method "prepare_cached" on an undefined value at /usr/share/perl5/ZoneMinder/Config.pm line 96.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 147.
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

You didn't follow the instructions on the GitHub in the readme.  Read the write up on the GitHub about how to troubleshoot when the docker fails.  You set an environment variable that doesn't start zonemnder or mariadb so you can get in the container and start them manually and find/fix the problem.

 

You just applied the same docker so the result will be the same.  Slow down and follow the suggestions.

Link to post

Hi again,

 

I tried what it said: in the ReadMe

 

"

Troubleshooting when the docker fails

If you have a situation where the docker fails to start, you can set an environemtnt variable when the docker is started and MySql and Zoneminder will not be started. This will keep the docker running so you can get into a command line in the docker and troubleshoot the problem.

Create an environment variable: NO_START_ZM="1"

MySql and Zoneminder will not be started.

Get into a command line in the docker and troubleshoot your issue by using the following commands to start MySql and zonemonder and fix any errors/problems with them starting.

service mysql start

service zoneminder start

"

 

Didn't get any more information then the "fail"

Link to post
  • dlandon changed the title to [support] dlandon - Zoneminder 1.36

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.