Page 1 of 2

Zoneminder not starting

Posted: Tue Apr 28, 2020 8:41 pm
by jimkoh
I was running ZM 1.32 on Debian 10 and everything was working fine. I then tried to upgrade to 1.34 and it said I was already running the latest version. So I removed ZM so I could do a fresh install. Now I get the following error when starting the zoneminder.service. Any suggestions?

zoneminder.service - ZoneMinder CCTV recording and surveillance system
Loaded: loaded (/lib/systemd/system/zoneminder.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2020-04-28 13:16:39 PDT; 4min 34s ago
Docs: http://zoneminder.readthedocs.org/en/latest/
Process: 19085 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=11)

Apr 28 13:16:39 debian-server zmpkg.pl[19085]: DBD::mysql::st execute failed: Table 'zm.Config' doesn't exist at /usr/share/perl
Apr 28 13:16:39 debian-server zmpkg.pl[19085]: Can't execute: Table 'zm.Config' doesn't exist at /usr/share/perl5/ZoneMinder/Con
Apr 28 13:16:39 debian-server zmpkg.pl[19085]: BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 1
Apr 28 13:16:39 debian-server zmpkg.pl[19085]: Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 33.
Apr 28 13:16:39 debian-server zmpkg.pl[19085]: BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 33.
Apr 28 13:16:39 debian-server zmpkg.pl[19085]: Compilation failed in require at /usr/bin/zmpkg.pl line 34.
Apr 28 13:16:39 debian-server zmpkg.pl[19085]: BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 34.
Apr 28 13:16:39 debian-server systemd[1]: zoneminder.service: Control process exited, code=exited, status=11/n/a
Apr 28 13:16:39 debian-server systemd[1]: zoneminder.service: Failed with result 'exit-code'.
Apr 28 13:16:39 debian-server systemd[1]: Failed to start ZoneMinder CCTV recording and surveillance system.
Thanks
Jim

Re: Zoneminder not starting

Posted: Wed Apr 29, 2020 5:11 pm
by snake
ZM used to have some install steps executed by the user (creation of mysql db, permissions for db, apache enables, etc) but these are now handled by the dpkg install script and (the controversial) init. These steps are still in the .deb file, and if you download the package and extract. you will find install / uninstall steps. Unfortunately, for the average user, if something goes wrong during install, they don't always get a clear reason why the install failed.

From your error message it looks like you need to recreate the DB or update it again. # zmupdate.pl should run update scripts on the DB, if they failed.

EDIT: deleting edit due to response while editing post.

Re: Zoneminder not starting

Posted: Wed Apr 29, 2020 5:19 pm
by jimkoh
I thought the database was created during the install process. How do I recreate it?

Re: Zoneminder not starting

Posted: Wed Apr 29, 2020 5:25 pm
by snake
After reading your post again, I see you were only updating, not installing. Disregard what I said about the install steps.

Occasionally the update db script will fail halfway. It's common. Just run the update command manually. It can take a while for large DBs.

Code: Select all

# zmupdate.pl
edit: this is wrong, see below.

Re: Zoneminder not starting

Posted: Wed Apr 29, 2020 5:34 pm
by jimkoh
I initially tried updating but it didn't work. So I uninstalled ZM and tried to do a fresh install per the wiki and the result is what I posted.

Re: Zoneminder not starting

Posted: Wed Apr 29, 2020 6:50 pm
by snake
Ok, in that case unpack the .deb file and review the installation scripts. One of those steps failed.

Alternatively, you can review wiki install steps (go to the history, as the old ones get updated) and you should find the manual creation steps needed there.

Something like (this is an example of the steps, don't enter all of these in):

Code: Select all

apt-get install zoneminder  vlc-plugin-base php7.0-gd
adduser www-data video
apt-get install zoneminder
a2enmod cgi
a2enmod rewrite
a2enconf zoneminder
chmod 740 /etc/zm/zm.conf
chown root:www-data /etc/zm/zm.conf
mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
mysql -uroot -p -e "grant all on zm.* to 'zmuser'@localhost identified by 'zmpass';"
mysqladmin -uroot -p reload
My guess, is you need to create the DB again. You can review mysql/mariadb to see if the db is there.

Code: Select all

mysql -u root -p
	show databases;
	use zm;
	show tables;

Re: Zoneminder not starting

Posted: Wed Apr 29, 2020 8:41 pm
by jimkoh
My ZM database had been deleted so I removed ZM again and did an install from the 1.34 deb file. It looks like the database wasn't created.

-- The job identifier is 71167.
Apr 29 13:30:26 debian-server zmpkg.pl[15759]: DBD::mysql::st execute failed: Table 'zm.Config' doesn't exist at /usr/share/perl5/ZoneMinder/Config.pm line 120.
Apr 29 13:30:26 debian-server zmpkg.pl[15759]: Can't execute: Table 'zm.Config' doesn't exist at /usr/share/perl5/ZoneMinder/Config.pm line 166.
Apr 29 13:30:26 debian-server zmpkg.pl[15759]: BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 166.
Apr 29 13:30:26 debian-server zmpkg.pl[15759]: Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 33.
Apr 29 13:30:26 debian-server zmpkg.pl[15759]: BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 33.
Apr 29 13:30:26 debian-server zmpkg.pl[15759]: Compilation failed in require at /usr/bin/zmpkg.pl line 34.
Apr 29 13:30:26 debian-server zmpkg.pl[15759]: BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 34.
Apr 29 13:30:26 debian-server systemd[1]: zoneminder.service: Control process exited, code=exited, status=11/n/a
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecStart= process belonging to unit zoneminder.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 11.
Apr 29 13:30:26 debian-server systemd[1]: zoneminder.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit zoneminder.service has entered the 'failed' state with result 'exit-code'.
Apr 29 13:30:26 debian-server systemd[1]: Failed to start ZoneMinder CCTV recording and surveillance system.
-- Subject: A start job for unit zoneminder.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit zoneminder.service has finished with a failure.
--
-- The job identifier is 71167 and the job result is failed.
Apr 29 13:30:26 debian-server systemd[1]: Starting ZoneMinder CCTV recording and surveillance system...
-- Subject: A start job for unit zoneminder.service has begun execution
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit zoneminder.service has begun execution.
--
-- The job identifier is 71284.
Apr 29 13:30:26 debian-server zmpkg.pl[15763]: DBD::mysql::st execute failed: Table 'zm.Config' doesn't exist at /usr/share/perl5/ZoneMinder/Config.pm line 120.
Apr 29 13:30:26 debian-server zmpkg.pl[15763]: Can't execute: Table 'zm.Config' doesn't exist at /usr/share/perl5/ZoneMinder/Config.pm line 166.
Apr 29 13:30:26 debian-server zmpkg.pl[15763]: BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 166.
Apr 29 13:30:26 debian-server zmpkg.pl[15763]: Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 33.
Apr 29 13:30:26 debian-server zmpkg.pl[15763]: BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 33.
Apr 29 13:30:26 debian-server zmpkg.pl[15763]: Compilation failed in require at /usr/bin/zmpkg.pl line 34.
Apr 29 13:30:26 debian-server zmpkg.pl[15763]: BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 34.
Apr 29 13:30:26 debian-server systemd[1]: zoneminder.service: Control process exited, code=exited, status=11/n/a
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecStart= process belonging to unit zoneminder.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 11.
Apr 29 13:30:26 debian-server systemd[1]: zoneminder.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit zoneminder.service has entered the 'failed' state with result 'exit-code'.
Apr 29 13:30:26 debian-server systemd[1]: Failed to start ZoneMinder CCTV recording and surveillance system.
-- Subject: A start job for unit zoneminder.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit zoneminder.service has finished with a failure.
--
-- The job identifier is 71284 and the job result is failed.

.. done.

Re: Zoneminder not starting

Posted: Thu Apr 30, 2020 3:56 am
by snake
Please post debug output in code tags.

Try:

Code: Select all

mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
mysql -uroot -p -e "grant all on zm.* to 'zmuser'@localhost identified by 'zmpass';"
mysqladmin -uroot -p reload
Note that this makes the pw zmpass. Your configs for zm should also have these credentials.

Re: Zoneminder not starting

Posted: Thu Apr 30, 2020 6:03 pm
by jimkoh
I typed the commands you suggested and now the console comes up, but the version says 1.32.3 and I'm getting errors when trying to stream from a camera. How can I upgrade to the latest version so I can start with a clean slate? I don't mind reinstalling everything, but I don't want to wipe out MariaDB because I have other db's is use.
Thanks
Jim

Re: Zoneminder not starting

Posted: Thu Apr 30, 2020 9:38 pm
by snake
Installation docs are on the wiki
https://wiki.zoneminder.com/Contents

Backup any dbs and restore afterwards w/mysqldump.

Re: Zoneminder not starting

Posted: Thu Apr 30, 2020 9:54 pm
by jimkoh
I've followed the steps in the wiki but I only get version 1.32.3 which is what I was running before. The whole problem is it won't upgrade. This is what I get when I click the version number in the console.

You are running the most recent version of ZoneMinder, v1.32.3.

No update is necessary.

Re: Zoneminder not starting

Posted: Fri May 01, 2020 3:16 am
by snake
These install steps for 1.34 w/debian should work: https://wiki.zoneminder.com/Debian_10_B ... om_ZM_Repo

Then add the old db back into mysql/mariadb and # zmupdate.pl to get the db to 1.34

Are you adding the external repo?

What is the contents of /etc/apt/sources.list?
What do you get when you run # apt-cache show zoneminder?

Re: Zoneminder not starting

Posted: Sat May 02, 2020 9:26 pm
by jimkoh
What do you mean by: Then add the old db back into mysql/mariadb and # zmupdate.pl to get the db to 1.34?

Yes I added the external repo.

/etc/apt/sources.list
# deb cdrom:[Debian GNU/Linux 10.0.0 _Buster_ - Official amd64 DVD Binary-1 20190706-10:24]/ buster contrib main

deb http://deb.debian.org/debian/ buster main
deb-src http://deb.debian.org/debian/ buster main

deb http://security.debian.org/debian-security buster/updates main contrib
deb-src http://security.debian.org/debian-security buster/updates main contrib

# buster-updates, previously known as 'volatile'
deb http://deb.debian.org/debian/ buster-updates main contrib
deb-src http://deb.debian.org/debian/ buster-updates main contrib
deb http://www.deb-multimedia.org buster main non-free
deb https://zmrepo.zoneminder.com/debian/release-1.34 buster/
#Bullseye added per Debian Wiki for ZoneMinder when downloading deb file
deb http://ftp.us.debian.org/debian bullseye main

apt-cache show zoneminder gives me the following:

Package: zoneminder
Source: zoneminder-dmo
Version: 2:1.32.3-dmo4+deb10u2
Installed-Size: 24915
Maintainer: Christian Marillat <marillat@deb-multimedia.org>
Architecture: amd64
Depends: libavcodec58 (>= 10:4.1.4), libavformat58 (>= 10:4.1.4), libavresample4 (>= 10:4.1.4), libavutil56 (>= 10:4.1.4), libc6 (>= 2.27), libcurl3-gnutls (>= 7.16.2), libgcc1 (>= 1:3.0), libjpeg62-turbo (>= 1.3.1), libmariadb3 (>= 3.0.0), libmp4v2-2 (>= 2:2.0.0), libpcre3, libssl1.1 (>= 1.1.0), libstdc++6 (>= 5.2), libswscale5 (>= 10:4.1.4), libvlc5 (>= 1:3.0.7.1), libx264-157 (>= 4:0.157.2969+gitd4099dd), zlib1g (>= 1:1.1.4), cakephp (>= 2.10.11), libjs-mootools (>= 1.4.5~debian1), perl, apache2 | httpd, libapache2-mod-php, php, php-mysql, liburi-encode-perl, libphp-serialization-perl, libdate-manip-perl, libmime-tools-perl, libmime-lite-perl, default-mysql-client | virtual-mysql-client, libwww-perl, libarchive-tar-perl, libarchive-zip-perl, libdevice-serialport-perl, ffmpeg, rsyslog | system-log-daemon, libmodule-load-perl, libsys-mmap-perl, zip, javascript-common, php-cgi, libclass-std-fast-perl, libdata-dump-perl, libsoap-wsdl-perl, libdigest-sha-perl, libdigest-perl, libio-socket-multicast-perl, libdbd-mysql-perl, libjson-any-perl, libnet-sftp-foreign-perl, libio-pty-perl, libexpect-perl, libsys-cpu-perl, libsys-meminfo-perl, libdata-uuid-perl, lsb-base, php-apcu-bc, php-gd, fonts-glewlwyd, php-json, libnumber-bytes-human-perl, libjson-maybexs-perl
Pre-Depends: init-system-helpers (>= 1.54~)
Recommends: default-mysql-server | virtual-mysql-server
Suggests: policykit-1
Description-en: Linux video camera security and surveillance solution
ZoneMinder is intended for use in single or multi-camera video security
applications, including commercial or home CCTV, theft prevention and child
or family member or home monitoring and other care scenarios. It supports
capture, analysis, recording, and monitoring of video data coming from one
or more video or network cameras attached to a Linux system. ZoneMinder
also support web and semi-automatic control of Pan/Tilt/Zoom cameras using
a variety of protocols. It is suitable for use as a home video security
system and for commercial or professional video security and surveillance.
It can also be integrated into a home automation system via X.10 or other
protocols.
Description-md5: 595a35f84ee38e6705c73ecdf4bab145
Bugs: mailto:marillat@deb-multimedia.org
Homepage: https://www.zoneminder.com/
Section: net
Priority: optional
Filename: pool/main/z/zoneminder-dmo/zoneminder_1.32.3-dmo4+deb10u2_amd64.deb
Size: 3009772
MD5sum: 07d1d21f5f1b588eb7eac5ec03915f14
SHA256: d7c8508583059411543dc7b77d1f5044e0a99e40a07f4af8450f4393371cee50

Package: zoneminder
Architecture: amd64
Version: 1.34.10-buster1
Priority: optional
Section: net
Maintainer: Isaac Connor <isaac@zoneminder.com>
Installed-Size: 40321
Depends: libavcodec58 (>= 7:4.0), libavformat58 (>= 7:4.1), libavutil56 (>= 7:4.0), libc6 (>= 2.27), libcurl3-gnutls (>= 7.16.2), libgcc1 (>= 1:3.0), libgcrypt20 (>= 1.8.0), libgnutls30 (>= 3.6.5), libjpeg62-turbo (>= 1.3.1), libjwt-gnutls0 (>= 1.9.0), libmariadb3 (>= 3.0.0), libmp4v2-2, libpcre3, libstdc++6 (>= 5.2), libswresample3 (>= 7:4.0), libswscale5 (>= 7:4.0), libvlc5 (>= 2.1.0), libx264-155, zlib1g (>= 1:1.1.4), libjs-mootools (>= 1.4.5~debian1), perl, javascript-common, ffmpeg | libav-tools, libdate-manip-perl, libmime-lite-perl, libmime-tools-perl, libdbd-mysql-perl, libphp-serialization-perl, libmodule-load-conditional-perl, libnet-sftp-foreign-perl, libarchive-zip-perl, libdevice-serialport-perl, libimage-info-perl, libjson-maybexs-perl, libsys-mmap-perl, liburi-encode-perl, libwww-perl, liburi-perl, libdata-dump-perl, libdatetime-perl, libclass-std-fast-perl, libsoap-wsdl-perl, libio-socket-multicast-perl, libdigest-sha-perl, libsys-cpu-perl, libsys-meminfo-perl, libdata-uuid-perl, libnumber-bytes-human-perl, libfile-slurp-perl, mysql-client | mariadb-client | virtual-mysql-client, perl-modules, php5-mysql | php-mysql, php5-gd | php-gd, php5-apcu | php-apcu, php-apc | php-apcu-bc, php-json | php5-json, policykit-1, rsyslog | system-log-daemon, zip, libssl | libssl1.0.0 | libssl1.1, libcrypt-eksblowfish-perl, libdata-entropy-perl
Recommends: apache2 (>= 2.4.6-4~) | nginx | httpd, libapache2-mod-php5 | libapache2-mod-php | php5-fpm | php-fpm, mysql-server | mariadb-server | virtual-mysql-server, zoneminder-doc (>= 1.34.10-buster1), ffmpeg
Suggests: fcgiwrap, logrotate
Filename: buster/zoneminder_1.34.10-buster1_amd64.deb
Size: 6845920
SHA256: 474d69176bd78c89613cf20304b58d43113e074c2c74c0f8fa80ab3c6a2cd035
SHA512: c8ca97215d1e36a8c722398010244ef9b9222c6a6532506350001197f9d0f8110ec0abb1a330f364028895e542d67b3a43f62105e97b35512a933076b86c61dc
Homepage: http://www.zoneminder.com/
Description-en: video camera security and surveillance solution
ZoneMinder is intended for use in single or multi-camera video security
applications, including commercial or home CCTV, theft prevention and child
or family member or home monitoring and other care scenarios. It
supports capture, analysis, recording, and monitoring of video data coming
from one or more video or network cameras attached to a Linux system.
ZoneMinder also support web and semi-automatic control of Pan/Tilt/Zoom
cameras using a variety of protocols. It is suitable for use as a home
video security system and for commercial or professional video security
and surveillance. It can also be integrated into a home automation system
via X.10 or other protocols.
Description-md5: 29f69a7c7c0c0df78845ae5f4f2dcf64

Package: zoneminder
Architecture: amd64
Version: 1.34.9-buster1
Priority: optional
Section: net
Maintainer: Isaac Connor <isaac@zoneminder.com>
Installed-Size: 40339
Depends: libavcodec58 (>= 7:4.0), libavformat58 (>= 7:4.1), libavutil56 (>= 7:4.0), libc6 (>= 2.27), libcurl3-gnutls (>= 7.16.2), libgcc1 (>= 1:3.0), libgcrypt20 (>= 1.8.0), libgnutls30 (>= 3.6.5), libjpeg62-turbo (>= 1.3.1), libjwt-gnutls0 (>= 1.9.0), libmariadb3 (>= 3.0.0), libmp4v2-2, libpcre3, libstdc++6 (>= 5.2), libswresample3 (>= 7:4.0), libswscale5 (>= 7:4.0), libvlc5 (>= 2.1.0), libx264-155, zlib1g (>= 1:1.1.4), libjs-mootools (>= 1.4.5~debian1), perl, javascript-common, ffmpeg | libav-tools, libdate-manip-perl, libmime-lite-perl, libmime-tools-perl, libdbd-mysql-perl, libphp-serialization-perl, libmodule-load-conditional-perl, libnet-sftp-foreign-perl, libarchive-zip-perl, libdevice-serialport-perl, libimage-info-perl, libjson-maybexs-perl, libsys-mmap-perl, liburi-encode-perl, libwww-perl, liburi-perl, libdata-dump-perl, libdatetime-perl, libclass-std-fast-perl, libsoap-wsdl-perl, libio-socket-multicast-perl, libdigest-sha-perl, libsys-cpu-perl, libsys-meminfo-perl, libdata-uuid-perl, libnumber-bytes-human-perl, libfile-slurp-perl, mysql-client | mariadb-client | virtual-mysql-client, perl-modules, php5-mysql | php-mysql, php5-gd | php-gd, php5-apcu | php-apcu, php-apc | php-apcu-bc, php-json | php5-json, policykit-1, rsyslog | system-log-daemon, zip, libssl | libssl1.0.0 | libssl1.1, libcrypt-eksblowfish-perl, libdata-entropy-perl
Recommends: apache2 (>= 2.4.6-4~) | nginx | httpd, libapache2-mod-php5 | libapache2-mod-php | php5-fpm | php-fpm, mysql-server | mariadb-server | virtual-mysql-server, zoneminder-doc (>= 1.34.9-buster1), ffmpeg
Suggests: fcgiwrap, logrotate
Filename: buster/zoneminder_1.34.9-buster1_amd64.deb
Size: 6898788
SHA256: 7c93c635b95a2c08be65bb5c0df03808e0fd433f045d2ad6854c5bfa0ebefc39
SHA512: e987027667ad5be16be1246920e38ea3682e0ba6a98190063704eb86f780d482dfa8ade7551b5297f5f8ed2aebccc5a3a4bd347a886901b719742cf603bcb4f0
Homepage: http://www.zoneminder.com/
Description-en: video camera security and surveillance solution
ZoneMinder is intended for use in single or multi-camera video security
applications, including commercial or home CCTV, theft prevention and child
or family member or home monitoring and other care scenarios. It
supports capture, analysis, recording, and monitoring of video data coming
from one or more video or network cameras attached to a Linux system.
ZoneMinder also support web and semi-automatic control of Pan/Tilt/Zoom
cameras using a variety of protocols. It is suitable for use as a home
video security system and for commercial or professional video security
and surveillance. It can also be integrated into a home automation system
via X.10 or other protocols.
Description-md5: 29f69a7c7c0c0df78845ae5f4f2dcf64

Package: zoneminder
Version: 1.34.9-1
Installed-Size: 30292
Maintainer: Dmitry Smirnov <onlyjob@debian.org>
Architecture: amd64
Depends: fonts-glewlwyd (>= 1.4.9), perl:any, libavcodec58 (>= 7:4.2), libavformat58 (>= 7:4.2), libavutil56 (>= 7:4.0), libc6 (>= 2.27), libcurl3-gnutls (>= 7.16.2), libgcc-s1 (>= 3.0), libgcrypt20 (>= 1.8.0), libgnutls30 (>= 3.6.5), libjpeg62-turbo (>= 1.3.1), libjwt-gnutls0 (>= 1.9.0), libmariadb3 (>= 3.0.0), libpcre3, libstdc++6 (>= 5.2), libswresample3 (>= 7:4.0), libswscale5 (>= 7:4.0), libvlc5 (>= 2.1.0), zlib1g (>= 1:1.1.4), default-mysql-client | virtual-mysql-client, cakephp (>= 2.8.0), cakephp (<< 3.0.0~), javascript-common, libcrypt-eksblowfish-perl, libdata-entropy-perl, libdate-manip-perl, libmime-lite-perl, libmime-tools-perl, libmodule-load-conditional-perl, libnet-sftp-foreign-perl, libphp-serialization-perl, lsb-base (>= 3.0-6), php-apcu, php-gd, php-json, php-mysql | php5-mysql, rsyslog | system-log-daemon, zip, libarchive-zip-perl, libdbd-mysql-perl, libdevice-serialport-perl, libimage-info-perl, libjson-maybexs-perl, libnumber-bytes-human-perl, libsys-mmap-perl, liburi-encode-perl, libwww-perl, libclass-std-fast-perl, libdata-dump-perl, libdata-uuid-perl, libdigest-sha-perl, libio-socket-multicast-perl, libsoap-wsdl-perl, libsys-cpu-perl, libsys-meminfo-perl
Recommends: apache2 (>= 2.4.6-4~) | nginx | httpd, default-mysql-server | virtual-mysql-server, ffmpeg | libav-tools, libapache2-mod-php | php-fpm | libapache2-mod-php5 | php5-fpm, zoneminder-doc (>= 1.34.9-1)
Suggests: net-tools, fcgiwrap, logrotate, policykit-1
Description-en: video camera security and surveillance solution
ZoneMinder is intended for use in single or multi-camera video security
applications, including commercial or home CCTV, theft prevention and child
or family member or home monitoring and other care scenarios. It
supports capture, analysis, recording, and monitoring of video data coming
from one or more video or network cameras attached to a Linux system.
ZoneMinder also support web and semi-automatic control of Pan/Tilt/Zoom
cameras using a variety of protocols. It is suitable for use as a home
video security system and for commercial or professional video security
and surveillance. It can also be integrated into a home automation system
via X.10 or other protocols.
Description-md5: 29f69a7c7c0c0df78845ae5f4f2dcf64
Homepage: https://www.zoneminder.com/
Tag: field::electronics, hardware::camera, role::program, scope::utility,
use::monitor, works-with::video
Section: net
Priority: optional
Filename: pool/main/z/zoneminder/zoneminder_1.34.9-1_amd64.deb
Size: 5568084
MD5sum: 206f22bf901e621fb4a0a4ff1ebf0c0c
SHA256: d55897dc09b6121dc3f78d764735e04689303bbc4838beac900a4dda175c63a6

Package: zoneminder
Architecture: amd64
Version: 1.34.8-buster1
Priority: optional
Section: net
Maintainer: Isaac Connor <isaac@zoneminder.com>
Installed-Size: 40338
Depends: libavcodec58 (>= 7:4.0), libavformat58 (>= 7:4.1), libavutil56 (>= 7:4.0), libc6 (>= 2.27), libcurl3-gnutls (>= 7.16.2), libgcc1 (>= 1:3.0), libgcrypt20 (>= 1.8.0), libgnutls30 (>= 3.6.5), libjpeg62-turbo (>= 1.3.1), libjwt-gnutls0 (>= 1.9.0), libmariadb3 (>= 3.0.0), libmp4v2-2, libpcre3, libstdc++6 (>= 5.2), libswresample3 (>= 7:4.0), libswscale5 (>= 7:4.0), libvlc5 (>= 2.1.0), libx264-155, zlib1g (>= 1:1.1.4), libjs-mootools (>= 1.4.5~debian1), perl, javascript-common, ffmpeg | libav-tools, libdate-manip-perl, libmime-lite-perl, libmime-tools-perl, libdbd-mysql-perl, libphp-serialization-perl, libmodule-load-conditional-perl, libnet-sftp-foreign-perl, libarchive-zip-perl, libdevice-serialport-perl, libimage-info-perl, libjson-maybexs-perl, libsys-mmap-perl, liburi-encode-perl, libwww-perl, liburi-perl, libdata-dump-perl, libdatetime-perl, libclass-std-fast-perl, libsoap-wsdl-perl, libio-socket-multicast-perl, libdigest-sha-perl, libsys-cpu-perl, libsys-meminfo-perl, libdata-uuid-perl, libnumber-bytes-human-perl, libfile-slurp-perl, mysql-client | mariadb-client | virtual-mysql-client, perl-modules, php5-mysql | php-mysql, php5-gd | php-gd, php5-apcu | php-apcu, php-apc | php-apcu-bc, php-json | php5-json, policykit-1, rsyslog | system-log-daemon, zip, libssl | libssl1.0.0 | libssl1.1, libcrypt-eksblowfish-perl, libdata-entropy-perl
Recommends: apache2 (>= 2.4.6-4~) | nginx | httpd, libapache2-mod-php5 | libapache2-mod-php | php5-fpm | php-fpm, mysql-server | mariadb-server | virtual-mysql-server, zoneminder-doc (>= 1.34.8-buster1), ffmpeg
Suggests: fcgiwrap, logrotate
Filename: buster/zoneminder_1.34.8-buster1_amd64.deb
Size: 6896452
SHA256: 98210637e0c19c08dbeaa42b19289c4ad10ec5c88129cb3cda7a024a8407d1da
SHA512: 61fc6cd84757b44bb43b95c952359f7c995310868f6b121db50905185d913361f15fac4948cb6423c136de74eb0625b1f42cb4dd25263cce10471121d50dc8c9
Homepage: http://www.zoneminder.com/
Description-en: video camera security and surveillance solution
ZoneMinder is intended for use in single or multi-camera video security
applications, including commercial or home CCTV, theft prevention and child
or family member or home monitoring and other care scenarios. It
supports capture, analysis, recording, and monitoring of video data coming
from one or more video or network cameras attached to a Linux system.
ZoneMinder also support web and semi-automatic control of Pan/Tilt/Zoom
cameras using a variety of protocols. It is suitable for use as a home
video security system and for commercial or professional video security
and surveillance. It can also be integrated into a home automation system
via X.10 or other protocols.
Description-md5: 29f69a7c7c0c0df78845ae5f4f2dcf64

Package: zoneminder
Architecture: amd64
Version: 1.34.5-buster1
Priority: optional
Section: net
Maintainer: Isaac Connor <isaac@zoneminder.com>
Installed-Size: 40444
Depends: libavcodec58 (>= 7:4.0), libavformat58 (>= 7:4.1), libavutil56 (>= 7:4.0), libc6 (>= 2.27), libcurl3-gnutls (>= 7.16.2), libgcc1 (>= 1:3.0), libjpeg62-turbo (>= 1.3.1), libmariadb3 (>= 3.0.0), libmp4v2-2, libpcre3, libssl1.1 (>= 1.1.0), libstdc++6 (>= 5.2), libswresample3 (>= 7:4.0), libswscale5 (>= 7:4.0), libvlc5 (>= 2.1.0), libx264-155, zlib1g (>= 1:1.1.4), libjs-mootools (>= 1.4.5~debian1), perl, javascript-common, ffmpeg | libav-tools, libdate-manip-perl, libmime-lite-perl, libmime-tools-perl, libdbd-mysql-perl, libphp-serialization-perl, libmodule-load-conditional-perl, libnet-sftp-foreign-perl, libarchive-zip-perl, libdevice-serialport-perl, libimage-info-perl, libjson-maybexs-perl, libsys-mmap-perl, liburi-encode-perl, libwww-perl, liburi-perl, libdata-dump-perl, libdatetime-perl, libclass-std-fast-perl, libsoap-wsdl-perl, libio-socket-multicast-perl, libdigest-sha-perl, libsys-cpu-perl, libsys-meminfo-perl, libdata-uuid-perl, libnumber-bytes-human-perl, libfile-slurp-perl, mysql-client | mariadb-client | virtual-mysql-client, perl-modules, php5-mysql | php-mysql, php5-gd | php-gd, php5-apcu | php-apcu, php-apc | php-apcu-bc, php-json | php5-json, policykit-1, rsyslog | system-log-daemon, zip, libcrypt-eksblowfish-perl, libdata-entropy-perl
Recommends: apache2 (>= 2.4.6-4~) | nginx | httpd, libapache2-mod-php5 | libapache2-mod-php | php5-fpm | php-fpm, mysql-server | mariadb-server | virtual-mysql-server, zoneminder-doc (>= 1.34.5-buster1), ffmpeg
Suggests: fcgiwrap, logrotate
Filename: buster/zoneminder_1.34.5-buster1_amd64.deb
Size: 6883916
SHA256: 2c2a525bba54cfeb964780d2a6b697a2645dc6d7632f09ed5d39856f0070f702
SHA512: 3c443f2d2136a39c79c073cf24bf5cbe20c73e3daf3c494c8fcc2b2d5ea210ba763019527210efbc3f2881c00762f634f42fa305592834eb8dd0a389508c7409
Homepage: http://www.zoneminder.com/
Description-en: video camera security and surveillance solution
ZoneMinder is intended for use in single or multi-camera video security
applications, including commercial or home CCTV, theft prevention and child
or family member or home monitoring and other care scenarios. It
supports capture, analysis, recording, and monitoring of video data coming
from one or more video or network cameras attached to a Linux system.
ZoneMinder also support web and semi-automatic control of Pan/Tilt/Zoom
cameras using a variety of protocols. It is suitable for use as a home
video security system and for commercial or professional video security
and surveillance. It can also be integrated into a home automation system
via X.10 or other protocols.
Description-md5: 29f69a7c7c0c0df78845ae5f4f2dcf64

Package: zoneminder
Architecture: amd64
Version: 1.34.2-buster
Priority: optional
Section: net
Maintainer: Isaac Connor <isaac@zoneminder.com>
Installed-Size: 40423
Depends: libavcodec58 (>= 7:4.0), libavformat58 (>= 7:4.1), libavutil56 (>= 7:4.0), libc6 (>= 2.27), libcurl3-gnutls (>= 7.16.2), libgcc1 (>= 1:3.0), libjpeg62-turbo (>= 1.3.1), libmariadb3 (>= 3.0.0), libmp4v2-2, libpcre3, libssl1.1 (>= 1.1.0), libstdc++6 (>= 5.2), libswresample3 (>= 7:4.0), libswscale5 (>= 7:4.0), libvlc5 (>= 2.1.0), libx264-155, zlib1g (>= 1:1.1.4), libjs-mootools (>= 1.4.5~debian1), perl, javascript-common, ffmpeg | libav-tools, libdate-manip-perl, libmime-lite-perl, libmime-tools-perl, libdbd-mysql-perl, libphp-serialization-perl, libmodule-load-conditional-perl, libnet-sftp-foreign-perl, libarchive-zip-perl, libdevice-serialport-perl, libimage-info-perl, libjson-maybexs-perl, libsys-mmap-perl, liburi-encode-perl, libwww-perl, liburi-perl, libdata-dump-perl, libdatetime-perl, libclass-std-fast-perl, libsoap-wsdl-perl, libio-socket-multicast-perl, libdigest-sha-perl, libsys-cpu-perl, libsys-meminfo-perl, libdata-uuid-perl, libnumber-bytes-human-perl, libfile-slurp-perl, mysql-client | mariadb-client | virtual-mysql-client, perl-modules, php5-mysql | php-mysql, php5-gd | php-gd, php5-apcu | php-apcu, php-apc | php-apcu-bc, php-json | php5-json, policykit-1, rsyslog | system-log-daemon, zip, libcrypt-eksblowfish-perl, libdata-entropy-perl
Recommends: apache2 (>= 2.4.6-4~) | nginx | httpd, libapache2-mod-php5 | libapache2-mod-php | php5-fpm | php-fpm, mysql-server | mariadb-server | virtual-mysql-server, zoneminder-doc (>= 1.34.2-buster), ffmpeg
Suggests: fcgiwrap, logrotate
Filename: buster/zoneminder_1.34.2-buster_amd64.deb
Size: 6875648
SHA256: a0c39c31a7ff0a60324f139bddcd86941eafc523cc1b20da5df91c95f6ca44f9
SHA512: e090f30a50118a38cd40bccd6b98f4db4b25eda359dc8ed2e1b9baf297e6e222645b3eb0be7911fdc1ec292e678e752da32ce16d6e71cf634a955d7339f6a616
Homepage: http://www.zoneminder.com/
Description-en: video camera security and surveillance solution
ZoneMinder is intended for use in single or multi-camera video security
applications, including commercial or home CCTV, theft prevention and child
or family member or home monitoring and other care scenarios. It
supports capture, analysis, recording, and monitoring of video data coming
from one or more video or network cameras attached to a Linux system.
ZoneMinder also support web and semi-automatic control of Pan/Tilt/Zoom
cameras using a variety of protocols. It is suitable for use as a home
video security system and for commercial or professional video security
and surveillance. It can also be integrated into a home automation system
via X.10 or other protocols.
Description-md5: 29f69a7c7c0c0df78845ae5f4f2dcf64

Package: zoneminder
Architecture: amd64
Version: 1.34.0-buster
Priority: optional
Section: net
Maintainer: Isaac Connor <isaac@zoneminder.com>
Installed-Size: 40419
Depends: libavcodec58 (>= 7:4.0), libavformat58 (>= 7:4.1), libavutil56 (>= 7:4.0), libc6 (>= 2.27), libcurl3-gnutls (>= 7.16.2), libgcc1 (>= 1:3.0), libjpeg62-turbo (>= 1.3.1), libmariadb3 (>= 3.0.0), libmp4v2-2, libpcre3, libssl1.1 (>= 1.1.0), libstdc++6 (>= 5.2), libswresample3 (>= 7:4.0), libswscale5 (>= 7:4.0), libvlc5 (>= 2.1.0), libx264-155, zlib1g (>= 1:1.1.4), libjs-mootools (>= 1.4.5~debian1), perl, javascript-common, ffmpeg | libav-tools, libdate-manip-perl, libmime-lite-perl, libmime-tools-perl, libdbd-mysql-perl, libphp-serialization-perl, libmodule-load-conditional-perl, libnet-sftp-foreign-perl, libarchive-zip-perl, libdevice-serialport-perl, libimage-info-perl, libjson-maybexs-perl, libsys-mmap-perl, liburi-encode-perl, libwww-perl, liburi-perl, libdata-dump-perl, libdatetime-perl, libclass-std-fast-perl, libsoap-wsdl-perl, libio-socket-multicast-perl, libdigest-sha-perl, libsys-cpu-perl, libsys-meminfo-perl, libdata-uuid-perl, libnumber-bytes-human-perl, libfile-slurp-perl, mysql-client | mariadb-client | virtual-mysql-client, perl-modules, php5-mysql | php-mysql, php5-gd | php-gd, php5-apcu | php-apcu, php-apc | php-apcu-bc, php-json | php5-json, policykit-1, rsyslog | system-log-daemon, zip, libcrypt-eksblowfish-perl, libdata-entropy-perl
Recommends: apache2 (>= 2.4.6-4~) | nginx | httpd, libapache2-mod-php5 | libapache2-mod-php | php5-fpm | php-fpm, mysql-server | mariadb-server | virtual-mysql-server, zoneminder-doc (>= 1.34.0-buster), ffmpeg
Suggests: fcgiwrap, logrotate
Filename: buster/zoneminder_1.34.0-buster_amd64.deb
Size: 6871328
SHA256: 08fe6d1033036c989d5c7198078f4793a043fd674e15e887820513f20c6b1cc6
SHA512: b309054ee1f145d86b2b441cfc7699d862a269b96869c8a3b49949e3fce28efbd9928510294a969b9bb69c68981132d5dacbbb33b255da428dce95792d839912
Homepage: http://www.zoneminder.com/
Description-en: video camera security and surveillance solution
ZoneMinder is intended for use in single or multi-camera video security
applications, including commercial or home CCTV, theft prevention and child
or family member or home monitoring and other care scenarios. It
supports capture, analysis, recording, and monitoring of video data coming
from one or more video or network cameras attached to a Linux system.
ZoneMinder also support web and semi-automatic control of Pan/Tilt/Zoom
cameras using a variety of protocols. It is suitable for use as a home
video security system and for commercial or professional video security
and surveillance. It can also be integrated into a home automation system
via X.10 or other protocols.
Description-md5: 29f69a7c7c0c0df78845ae5f4f2dcf64

Re: Zoneminder not starting

Posted: Mon May 04, 2020 1:18 am
by snake
jimkoh wrote: Sat May 02, 2020 9:26 pm What do you mean by: Then add the old db back into mysql/mariadb and # zmupdate.pl to get the db to 1.34?
At any time in your old ZM you can make a backup with mysqldump. For more details on backup and restore see https://wiki.zoneminder.com/MySQL, See the link in the backup/restore tip.

If you have a backup of the previous DB, you can reinstall, and then # mysql -u root -p < mysqldump_zm.sql should anything go wrong with the update.

That should load the DB back into mysql. After you do that, you should update the DB, therefore you can run zmupdate.pl (as root), which is a perl script that will run all update routines on the zm db (make sure you've configured the ZM db user, ZM mysql password, and db name. Defaults will be zmuser / zmpass, and zm for db name.). Sometimes the update can fail, but just run it again if it does. It will eventually complete (and can take a while on large DB).
jimkoh wrote: Sat May 02, 2020 9:26 pm deb http://deb.debian.org/debian/ buster main
deb-src http://deb.debian.org/debian/ buster main

deb http://security.debian.org/debian-security buster/updates main contrib
deb-src http://security.debian.org/debian-security buster/updates main contrib

# buster-updates, previously known as 'volatile'
deb http://deb.debian.org/debian/ buster-updates main contrib
deb-src http://deb.debian.org/debian/ buster-updates main contrib
deb http://www.deb-multimedia.org buster main non-free
deb https://zmrepo.zoneminder.com/debian/release-1.34 buster/
#Bullseye added per Debian Wiki for ZoneMinder when downloading deb file
deb http://ftp.us.debian.org/debian bullseye main
This is the guide you should follow: https://wiki.zoneminder.com/Debian_10_B ... om_ZM_Repo
Which is listed at https://wiki.zoneminder.com/Debian

Bullseye is not mentioned in that guide. Also deb-multimedia is not in that guide either. I'd recommend you don't add those two repos. You may want to start over from scratch, or you can try to prioritize one repo over another (I think that can be done with apt pin priority in a config somewhere... Have to look it up).

It appears that deb-multimedia is taking priority over the other repos, although I might be wrong.

You might be able to just comment out deb-multimedia and bulleye, and apt-get update, then install ZM, however if you installed packages from those repos, things could very well break.

Re: Zoneminder not starting

Posted: Mon May 04, 2020 4:07 pm
by jimkoh
I don't have a back up of the DB. It was dropped when I uninstalled ZM the first time. It sounds like things are a mess, so moving forward, what is the best way to wipe out ZM so I can start fresh? I used dpkg -r zoneminder and dpkg --purge zoneminder but I'm not sure that's enough. I also don't want to wipe out MariaDB if I can help it because I have other db's in use.
After ZM is removed, I will follow the rest of your instructions and reinstall from scratch omitting bullseye and multimedia from my sources.list.
Thank you for all your help.
Jim