dlandon / zoneminder.master-docker

Zoneminder Master Docker
GNU General Public License v2.0
31 stars 15 forks source link

Previously working container fails to start fully #25

Closed compmas2 closed 2 years ago

compmas2 commented 3 years ago

I have had the most recent version of dlandon/zoneminder (sha256:733b124cdfef35ebbd6e89ab1958b11f5bfeec812ac43e6ae248edf8acd9c958) running for a week or so with no issue. It was fully configured and recording events as configured. The system has been rebooted several times and the container always restarts successfully. I rebooted the Ubuntu 20.04 server system running docker with a normal reboot and when the system came back up the zoneminder container will no longer start. I removed the container, made sure I had the newest version of your image, and created the container again. I still get the same errors which are below. Is there anyway to recover from this or is this a possible bug?

Here is the docker command I used to create the container: docker run -d --name="zoneminder" --net="bridge" --privileged="false" --shm-size="16G" -p 8443:443/tcp -p 9001:9000/tcp -e TZ="America/Chicago" -e PUID="99" -e PGID="100" -e INSTALL_HOOK="1" -e INSTALL_FACE="1" -e INSTALL_TINY_YOLOV3="0" -e INSTALL_YOLOV3="0" -e INSTALL_TINY_YOLO4="0" -e INSTALL_YOLO4="1" -e MULTI_PORT_START="0" -e MULTI_PORT_END="0" -v "/mnt/backup/zoneminder-container":"/config":rw -v "/mnt/backup/zoneminder-container/data":"/var/cache/zoneminder":rw dlandon/zoneminder

Here are the docker logs for the zoneminder container:


  Downloading protobuf-3.17.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB),
Collecting python-utils>=2.3.0,
  Downloading python_utils-2.5.6-py2.py3-none-any.whl (12 kB),
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from progressbar2>=3.53.1->pyzm==0.3.25->zmes-hook-helpers==6.1.5) (1.14.0),
Building wheels for collected packages: zmes-hook-helpers, imutils, pygifsicle, pyzm,
  Building wheel for zmes-hook-helpers (setup.py): started,
  Building wheel for zmes-hook-helpers (setup.py): finished with status 'done',
  Created wheel for zmes-hook-helpers: filename=zmes_hook_helpers-6.1.5-py3-none-any.whl size=14956 sha256=07fd64983d8550c190ba14d89696fa3ab2d14628ac48f18bcb851137f5886677,
  Stored in directory: /tmp/pip-ephem-wheel-cache-ukly8rrg/wheels/de/60/d3/5e805190cc742e43f1b9531921da4c27d69863e0c263a9efb1,
  Building wheel for imutils (setup.py): started,
  Building wheel for imutils (setup.py): finished with status 'done',
  Created wheel for imutils: filename=imutils-0.5.4-py3-none-any.whl size=25858 sha256=eb8bd3b318dfb1a5ebf13b93fe25c1c36fbdea11d2ee045f4ed1a7dd99b9d791,
  Stored in directory: /root/.cache/pip/wheels/59/1b/52/0dea905f8278d5514dc4d0be5e251967f8681670cadd3dca89,
  Building wheel for pygifsicle (setup.py): started,
  Building wheel for pygifsicle (setup.py): finished with status 'done',
  Created wheel for pygifsicle: filename=pygifsicle-1.0.4-py3-none-any.whl size=4604 sha256=16140c5d5626315029fe12c6a3643b65a77fc318eca4ac3852906fc67e28084d,
  Stored in directory: /root/.cache/pip/wheels/8b/13/f1/8d0029fde12b4a96fd5fc89bdc0d4606d341d32305e4a226dd,
  Building wheel for pyzm (setup.py): started,
  Building wheel for pyzm (setup.py): finished with status 'done',
  Created wheel for pyzm: filename=pyzm-0.3.25-py3-none-any.whl size=59297 sha256=d23dc9002dcf9e005e135efb53fc599f0b77702f85645185d8019ace15824e06,
  Stored in directory: /root/.cache/pip/wheels/5d/5f/b3/35e497ccbe1af930f88a80830c2ad2960002352e8e045c6836,
Successfully built zmes-hook-helpers imutils pygifsicle pyzm,
Installing collected packages: Shapely, numpy, imageio, imageio-ffmpeg, imutils, pygifsicle, greenlet, SQLAlchemy, regex, python-dateutil, tzlocal, dateparser, protobuf, mysql-connector-python, portalocker, python-utils, progressbar2, psutil, websocket-client, pyzm, joblib, scipy, threadpoolctl, scikit-learn, zmes-hook-helpers,
Successfully installed SQLAlchemy-1.4.22 Shapely-1.7.1 dateparser-1.0.0 greenlet-1.1.0 imageio-2.9.0 imageio-ffmpeg-0.4.4 imutils-0.5.4 joblib-1.0.1 mysql-connector-python-8.0.26 numpy-1.21.1 portalocker-2.3.0 progressbar2-3.53.1 protobuf-3.17.3 psutil-5.8.0 pygifsicle-1.0.4 python-dateutil-2.8.2 python-utils-2.5.6 pyzm-0.3.25 regex-2021.7.6 scikit-learn-0.24.2 scipy-1.7.0 threadpoolctl-2.2.0 tzlocal-2.1 websocket-client-1.1.0 zmes-hook-helpers-6.1.5,
Moving objectconfig.ini,
Moving config_upgrade.py,
Moving zm_event_start.sh,
Moving zm_event_end.sh,
Moving zm_detect.py,
Moving zm_detect_old.py,
Moving zm_train_faces.py,
Moving train_faces.py,
chown: cannot access '/var/lib/zmeventnotification/models/coral_edgetpu': No such file or directory,
Collecting face_recognition,
  Downloading face_recognition-1.3.0-py2.py3-none-any.whl (15 kB),
Collecting face-recognition-models>=0.3.0,
  Downloading face_recognition_models-0.3.0.tar.gz (100.1 MB),
Requirement already satisfied: Pillow in /usr/lib/python3/dist-packages (from face_recognition) (7.0.0),
Collecting dlib>=19.7,
  Downloading dlib-19.22.0.tar.gz (7.4 MB),
Requirement already satisfied: numpy in /usr/local/lib/python3.8/dist-packages (from face_recognition) (1.21.1),
Collecting Click>=6.0,
  Downloading click-8.0.1-py3-none-any.whl (97 kB),
Building wheels for collected packages: face-recognition-models, dlib,
  Building wheel for face-recognition-models (setup.py): started,
  Building wheel for face-recognition-models (setup.py): finished with status 'done',
  Created wheel for face-recognition-models: filename=face_recognition_models-0.3.0-py2.py3-none-any.whl size=100566172 sha256=1b6955dd2d9a51a61383f5c9953479e89c798f38a9b2210bd145723e227dfebc,
  Stored in directory: /root/.cache/pip/wheels/b4/4b/8f/751e99d45f089bdf366a7d3e5066db3c2b84a62e4377f534d7,
  Building wheel for dlib (setup.py): started,
  Building wheel for dlib (setup.py): finished with status 'done',
  Created wheel for dlib: filename=dlib-19.22.0-cp38-cp38-linux_x86_64.whl size=3949990 sha256=4cc7bfc7a0cefa2ccb2459b2907ff104859dc8b88091f8b966b9614e62bf664d,
  Stored in directory: /root/.cache/pip/wheels/80/93/82/7b6b3974475c898a823b58a6c0b87013f0782095d43b910e64,
Successfully built face-recognition-models dlib,
Installing collected packages: face-recognition-models, dlib, Click, face-recognition,
Successfully installed Click-8.0.1 dlib-19.22.0 face-recognition-1.3.0 face-recognition-models-0.3.0,
Hook installation completed,
Compiling opencv - this will take a while...,
Jul 23 09:33:40 2a92fe561657 EventServer: Compiling opencv without GPU Support,
Jul 23 09:34:04 2a92fe561657 EventServer: Compiling opencv...,
Jul 23 09:38:53 2a92fe561657 EventServer: Installing opencv...,
Jul 23 09:38:56 2a92fe561657 EventServer: Cleaning up...,
Starting services...,
 * Starting Apache httpd web server apache2,
 * ,
 * Starting MariaDB database server mysqld,
   ...done.,
Jul 23 09:38:58 2a92fe561657 /etc/mysql/debian-start[42286]: Upgrading MySQL tables if necessary.,
Jul 23 09:38:58 2a92fe561657 /etc/mysql/debian-start[42290]: Looking for 'mysql' as: /usr/bin/mysql,
Jul 23 09:38:58 2a92fe561657 /etc/mysql/debian-start[42290]: Looking for 'mysqlcheck' as: /usr/bin/mysqlcheck,
Jul 23 09:38:58 2a92fe561657 /etc/mysql/debian-start[42290]: This installation of MySQL is already upgraded to 10.3.29-MariaDB, use --force if you still need to run mysql_upgrade,
Jul 23 09:38:58 2a92fe561657 /etc/mysql/debian-start[42297]: Checking for insecure root accounts.,
Jul 23 09:38:58 2a92fe561657 /etc/mysql/debian-start[42301]: Triggering myisam-recover for all MyISAM tables and aria-recover for all Aria tables,
,
Database already at version 1.34.26, update skipped.,
,
,
Freshening configuration in database,
Migratings passwords, if any...,
Loading config from DB 230 entries,
Saving config to DB 230 entries,
DBD::mysql::db do failed: Lost connection to MySQL server during query at /usr/share/perl5/ZoneMinder/Config.pm line 196.,
Can't lock Config table: Lost connection to MySQL server during query at /usr/bin/zmupdate.pl line 321.,
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.,
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.,
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 34.,
Jul 23 09:38:59 2a92fe561657 zmpkg[42368]: ERR [Error reconnecting to db: errstr:Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) error val:],
Jul 23 09:38:59 2a92fe561657 zmpkg[42368]: ERR [Error reconnecting to db: errstr:Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) error val:],
ZoneMinder failed to start,
,
*** /etc/my_init.d/40_firstrun.sh failed with status 255,
,
*** Killing all processes...,
Jul 23 09:38:59 2a92fe561657 syslog-ng[38]: syslog-ng shutting down; version='3.25.1'
dlandon commented 2 years ago

This docker project has been deprecated.