Zoneminder crashing and taking down apache on signal loss

Forum for questions and support relating to the 1.28.x releases only.
Post Reply
davidma
Posts: 22
Joined: Fri Oct 16, 2015 1:40 am

Zoneminder crashing and taking down apache on signal loss

Post by davidma » Fri Oct 16, 2015 1:52 am

Hi, after a lot of struggle I was able to get zoneminder working on Gentoo Linux. The biggest problem I am facing at the moment is that for some strange reason when the signal is lost to the camera (whether it is due to use of the microwave, the cable getting unpluged, having to reset the connection or the camera, etc) most of the time the single monitor stream of the camera turns into a blue screen and then never recovers on its own.

Worse yet I have to issue "systemctl restart apache2" and "systemctl restart zoneminder" as everything is pretty much hosed. As you can imagine this isn't very reliable and is a pretty big annoyance. Does anyone have any suggestions or things to check? Of course this is using WiFi and going ethernet isn't an option unfortunately (and even then I often reset the router for work reasons).

Note that I am not seeing anything in the apache2 logs. I do however see in zoneminder it appears to keep trying to find a socket which does not exist.

Here is some log output (I believe) from when this occured:

Code: Select all

2015-10-15 21:23:48.099230	zmpkg	13859	INF	Command: start	zmpkg.pl	
2015-10-15 21:17:24.282643	web_php	13246	ERR	socket_sendto( /run/zm/zms-741615s.sock ) failed: No such file or directory	/usr/share/zoneminder/www/includes/functions.php	2330
2015-10-15 21:17:14.196413	web_php	13655	ERR	socket_sendto( /run/zm/zms-741615s.sock ) failed: No such file or directory	/usr/share/zoneminder/www/includes/functions.php	2330
2015-10-15 21:17:04.122844	web_php	13244	ERR	socket_sendto( /run/zm/zms-741615s.sock ) failed: No such file or directory	/usr/share/zoneminder/www/includes/functions.php	2330
2015-10-15 21:16:52.839320	web_php	13244	ERR	socket_sendto( /run/zm/zms-741615s.sock ) failed: No such file or directory	/usr/share/zoneminder/www/includes/functions.php	2330
2015-10-15 21:16:42.762830	web_php	13244	ERR	socket_sendto( /run/zm/zms-741615s.sock ) failed: No such file or directory	/usr/share/zoneminder/www/includes/functions.php	2330
2015-10-15 21:16:32.683320	web_php	13655	ERR	socket_sendto( /run/zm/zms-741615s.sock ) failed: No such file or directory	/usr/share/zoneminder/www/includes/functions.php	2330
2015-10-15 21:16:21.017978	web_php	13246	ERR	socket_sendto( /run/zm/zms-741615s.sock ) failed: No such file or directory	/usr/share/zoneminder/www/includes/functions.php	2330
2015-10-15 21:16:10.870200	web_php	13244	ERR	socket_sendto( /run/zm/zms-741615s.sock ) failed: No such file or directory	/usr/share/zoneminder/www/includes/functions.php	2330
2015-10-15 21:16:02.757560	zmdc	13313	INF	'zmc -m 1' exited normally	zmdc.pl	
2015-10-15 21:16:02.657630	zmdc	13313	INF	'zmupdate.pl -c' exited, signal 14	zmdc.pl	
2015-10-15 21:16:02.630049	zmc_m1	13651	INF	Terminating Logger	/var/tmp/portage/www-misc/zoneminder-1.28.1/work/ZoneMinder-1.28.1/src/zm_logger.cpp	235
2015-10-15 21:16:02.549270	zmdc	13313	INF	'zma -m 1' exited normally	zmdc.pl	
2015-10-15 21:16:02.490885	zmc_m1	13651	ERR	Unable to get response	/var/tmp/portage/www-misc/zoneminder-1.28.1/work/ZoneMinder-1.28.1/src/zm_remote_camera_http.cpp	1176
2015-10-15 21:16:02.432690	zmdc	13313	INF	'zmwatch.pl ' exited, signal 14	zmdc.pl	
2015-10-15 21:16:02.374186	zmc_m1	13651	ERR	Unable to read content	/var/tmp/portage/www-misc/zoneminder-1.28.1/work/ZoneMinder-1.28.1/src/zm_remote_camera_http.cpp	1053
Also memory and cpu usage seems fine when this occurs.

Thank you.

User avatar
knight-of-ni
Posts: 2243
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder crashing and taking down apache on signal los

Post by knight-of-ni » Fri Oct 16, 2015 12:55 pm

Known issue.

Pretty sure we merged some changes in master to alleviate this.
Try using a development snapshot of the master branch.
Packages are available for Redhat distros, Ubuntu, and Debian.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/

davidma
Posts: 22
Joined: Fri Oct 16, 2015 1:40 am

Re: Zoneminder crashing and taking down apache on signal los

Post by davidma » Fri Oct 16, 2015 2:45 pm

knnniggett wrote:Known issue.

Pretty sure we merged some changes in master to alleviate this.
Try using a development snapshot of the master branch.
Packages are available for Redhat distros, Ubuntu, and Debian.
Thanks Knnniggett. I found a live ebuild (zoneminder-9999) for Gentoo at gpo (dot) zugaina (dot) org/AJAX/Ebuild/2915513/View [not linkable due to new user spam controls]

I'll first verify that the ebuild is in working order and if so will build it and give it another shot and report back as to whether it solves the issue.

davidma
Posts: 22
Joined: Fri Oct 16, 2015 1:40 am

Re: Zoneminder crashing and taking down apache on signal los

Post by davidma » Fri Oct 16, 2015 8:18 pm

Hmmm. I was able to get a live version from source compiled by making a new ebuild (took some hacking as the old one was from the svn days and needed to be changed to git) but now I am running into some more serious issues.

1. At localhost/zm I see the following in the upper corner:

(note: some log entries altered to get around spam filter)

Code: Select all

Warning: disk_total_space(): No such file or directory in /usr/share/zoneminder/www /includes/functions.php on line 1642

Warning: disk_free_space(): No such file or directory in /usr/share/zoneminder/www /includes/functions.php on line 1643

Warning: Division by zero in /usr/share/zoneminder/www /includes/functions.php on line 1643
2. While going through the options and in adding a new monitor I get various messages like:

Code: Select all

Notice: Undefined variable: Server in /usr/share/zoneminder/www /skins/classic/views/monitor.php on line 46
3. Symptom: I get a white screen now after defining my camera source and I cannot view it. This is despite using the same source and other settings as before.

4. Some log entries:

Code: Select all

	zm_monitor.cpp	3160
2015-10-16 16:04:30.309182	zmc_m1	3206	INF	dlink1: 12000 - Capturing at 29.41 fps	zm_monitor.cpp	3160
2015-10-16 16:03:56.546432	zmc_m1	3206	INF	dlink1: 11000 - Capturing at 29.41 fps	zm_monitor.cpp	3160
2015-10-16 16:03:22.683094	zmc_m1	3206	INF	dlink1: 10000 - Capturing at 29.41 fps	zm_monitor.cpp	3160
2015-10-16 16:02:48.900656	zmc_m1	3206	INF	dlink1: 9000 - Capturing at 26.32 fps	zm_monitor.cpp	3160
2015-10-16 16:02:10.628165	zmc_m1	3206	INF	dlink1: 8000 - Capturing at 19.61 fps	zm_monitor.cpp	3160
2015-10-16 16:01:19.858634	zmc_m1	3206	INF	dlink1: 7000 - Capturing at 30.30 fps	zm_monitor.cpp	3160
2015-10-16 16:00:46.111322	zmc_m1	3206	INF	dlink1: 6000 - Capturing at 29.41 fps	zm_monitor.cpp	3160
2015-10-16 16:00:12.266263	zmc_m1	3206	INF	dlink1: 5000 - Capturing at 29.41 fps	zm_monitor.cpp	3160
2015-10-16 15:59:38.516206	zmc_m1	3206	INF	dlink1: 4000 - Capturing at 29.41 fps	zm_monitor.cpp	3160
2015-10-16 15:59:04.741396	zmc_m1	3206	INF	dlink1: 3000 - Capturing at 29.41 fps	zm_monitor.cpp	3160
2015-10-16 15:58:30.933852	zmc_m1	3206	INF	dlink1: 2000 - Capturing at 30.30 fps	zm_monitor.cpp	3160
2015-10-16 15:57:57.303035	web_php	3057	ERR	socket_sendto( /run/zm/zms-881943s.sock ) failed: No such file or directory	/usr/share/zoneminder/www/includes/functions.php	2347
2015-10-16 15:57:57.116103	zmc_m1	3206	INF	dlink1: 1000 - Capturing at 29.41 fps	zm_monitor.cpp	3160
2015-10-16 15:57:54.678153	web_php	3055	ERR	socket_sendto( /run/zm/zms-881943s.sock ) failed: No such file or directory	/usr/share/zoneminder/www /includes/functions.php	2347
2015-10-16 15:57:54.297761	web_js	3057	ERR	getStreamCmdResponse stream error: socket_bind( /run/zm/zms-881943w.sock ) failed: Address already in use - checkStreamForErrors()	?view=watch	
2015-10-16 15:57:54.231339	web_php	3057	ERR	socket_bind( /run/zm/zms-881943w.sock ) failed: Address already in use	/usr/share/zoneminder/www /includes/functions.php	2347
2015-10-16 15:57:51.672379	web_js	3055	ERR	getStreamCmdResponse stream error: socket_sendto( /run/zm/zms-881943s.sock ) failed: No such file or directory - checkStreamForErrors()	?view=watch	
2015-10-16 15:57:51.607117	web_php	3055	ERR	socket_sendto( /run/zm/zms-881943s.sock ) failed: No such file or directory	/usr/share/zoneminder/www /includes/functions.php	2347
2015-10-16 15:57:48.603899	web_js	3055	ERR	getStreamCmdResponse stream error: socket_sendto( /run/zm/zms-881943s.sock ) failed: No such file or directory - checkStreamForErrors()	?view=watch	
2015-10-16 15:57:48.498089	web_php	3057	ERR	socket_sendto( /run/zm/zms-881943s.sock ) failed: No such file or directory	/usr/share/zoneminder/www /includes/functions.php	2347
2015-10-16 15:57:24.006870	zmwatch	3219	INF	Watchdog pausing for 30 seconds
This is what happens when I try to view my monitor:

Code: Select all

2015-10-16 16:08:26.779038	zmc_m1	3206	INF	dlink1: 19000 - Capturing at 29.41 fps	zm_monitor.cpp	3160
2015-10-16 16:08:18.214647	web_php	3057	ERR	socket_sendto( /run/zm/zms-201093s.sock ) failed: No such file or directory	/usr/share/zoneminder/www/includes/functions.php	2347
2015-10-16 16:08:15.210666	web_js	3057	ERR	getStreamCmdResponse stream error: socket_sendto( /run/zm/zms-201093s.sock ) failed: No such file or directory - checkStreamForErrors()	?view=watch	
2015-10-16 16:08:15.155136	web_php	3057	ERR	socket_sendto( /run/zm/zms-201093s.sock ) failed: No such file or directory	/usr/share/zoneminder/www /includes/functions.php	2347
2015-10-16 16:08:12.105357	web_js	3055	ERR	getStreamCmdResponse stream error: socket_sendto( /run/zm/zms-201093s.sock ) failed: No such file or directory - checkStreamForErrors()	?view=watch	
2015-10-16 16:08:12.005600	web_php	3055	ERR	socket_sendto( /run/zm/zms-201093s.sock ) failed: No such file or directory	/usr/share/zoneminder/www /includes/functions.php	2347
2015-10-16 16:07:52.988089	zmc_m1	3206	INF	dlink1: 18000 - Capturing at 30.30 fps
/var/log/apache2/error.log:

Code: Select all

[Fri Oct 16 16:08:12 2015] [error] [client 127.0.0.1] PHP Warning:  Division by zero in /usr/share/zoneminder/www/includes/functions.php on line 1643, referer: localhost/zm/index.php
[Fri Oct 16 16:08:15 2015] [error] [client 127.0.0.1] ERR [socket_sendto( /run/zm/zms-201093s.sock ) failed: No such file or directory], referer: localhost/zm/index.php?view=watch&mid=1
[Fri Oct 16 16:08:18 2015] [error] [client 127.0.0.1] ERR [socket_sendto( /run/zm/zms-201093s.sock ) failed: No such file or directory], referer: localhost/zm/index.php?view=watch&mid=1
[Fri Oct 16 16:08:24 2015] [error] [client 127.0.0.1] client denied by server configuration: /usr/htdocs, referer: localhost/zm/index.php?view=log
[Fri Oct 16 16:08:24 2015] [error] [client 127.0.0.1] File does not exist: /usr/share/zoneminder/www/skins/classic/css/graphics, referer: localhost/zm/skins/classic/css/classic/skin.css
[Fri Oct 16 16:09:13 2015] [error] [client 127.0.0.1] PHP Warning:  disk_total_space(): No such file or directory in /usr/share/zoneminder/www/includes/functions.php on line 1642, referer: localhost/zm/index.php
[Fri Oct 16 16:09:13 2015] [error] [client 127.0.0.1] PHP Warning:  disk_free_space(): No such file or directory in /usr/share/zoneminder/www/includes/functions.php on line 1643, referer: localhost/zm/index.php
[Fri Oct 16 16:09:13 2015] [error] [client 127.0.0.1] PHP Warning:  Division by zero in /usr/share/zoneminder/www/includes/functions.php on line 1643, referer: localhost/zm/index.php
Paths appear to be good. They all seem to have the apache:apache ownership.

I do notice lots of .sock entries in /run/zm (which I set to 777 for testing though it is apache:apache ownership)

Code: Select all

srwxr-xr-x 1 apache apache 0 Oct 16 15:57 zmdc.sock
-rw-r--r-- 1 apache apache 4 Oct 16 15:57 zm.pid
srwxr-xr-x 1 apache apache 0 Oct 15 22:51 zms-025254s.sock
srwxr-xr-x 1 apache apache 0 Oct 16 11:30 zms-197412w.sock
srwxr-xr-x 1 apache apache 0 Oct 16 11:35 zms-219556s.sock
srwxr-xr-x 1 apache apache 0 Oct 16 11:35 zms-225268s.sock
srwxr-xr-x 1 apache apache 0 Oct 16 11:41 zms-228533s.sock
srwxr-xr-x 1 apache apache 0 Oct 16 11:32 zms-233718s.sock
srwxr-xr-x 1 apache apache 0 Oct 16 11:32 zms-238645s.sock
srwxr-xr-x 1 apache apache 0 Oct 16 11:32 zms-262680s.sock
srwxr-xr-x 1 apache apache 0 Oct 16 07:29 zms-325430s.sock
srwxr-xr-x 1 apache apache 0 Oct 15 17:24 zms-438571s.sock
srwxr-xr-x 1 apache apache 0 Oct 15 19:11 zms-465452s.sock
srwxr-xr-x 1 apache apache 0 Oct 15 17:32 zms-490216s.sock
srwxr-xr-x 1 apache apache 0 Oct 15 17:24 zms-507972s.sock
srwxr-xr-x 1 apache apache 0 Oct 16 11:38 zms-585137s.sock
srwxr-xr-x 1 apache apache 0 Oct 16 11:39 zms-591750s.sock
srwxr-xr-x 1 apache apache 0 Oct 15 17:33 zms-669011s.sock
srwxr-xr-x 1 apache apache 0 Oct 15 21:17 zms-741615w.sock
srwxr-xr-x 1 apache apache 0 Oct 15 19:11 zms-769902s.sock
srwxr-xr-x 1 apache apache 0 Oct 16 11:11 zms-825946s.sock
srwxr-xr-x 1 apache apache 0 Oct 15 22:50 zms-840291s.sock
srwxr-xr-x 1 apache apache 0 Oct 15 22:52 zms-854710s.sock
srwxr-xr-x 1 apache apache 0 Oct 16 01:30 zms-858231s.sock
srwxr-xr-x 1 apache apache 0 Oct 15 18:16 zms-915645w.sock
I have a feeling there is something stupid that I did wrong but I cannot find it. Any ideas? Should I try re-installing the official release again and verifying that it works (minus the crashing error when losing the stream)?

BTW, I deleted the old mysql database and started fresh with a new one.

Thanks.

User avatar
knight-of-ni
Posts: 2243
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder crashing and taking down apache on signal los

Post by knight-of-ni » Fri Oct 16, 2015 8:54 pm

I just stepped another user through setting up zoneminder on gentoo. He was receiving the same errors.

To make sure you have a successful install, you need to follow the steps outlined here:
https://github.com/ZoneMinder/ZoneMinde ... er/INSTALL

You should be using cmake, rather than autotools as that will be going away.

You should also look at the documentation specific to Gentoo here:
https://wiki.gentoo.org/wiki/ZoneMinder

The last guy to go through this missed the step from INSTALL that created the necessary symlinks for the evnet and temp folders. He also needed to update the timezone in his php.ini as documented in the Gentoo documentation.

I'd read through both of the guides completely though just to make sure there are not any other steps that need to be performed.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/

davidma
Posts: 22
Joined: Fri Oct 16, 2015 1:40 am

Re: Zoneminder crashing and taking down apache on signal los

Post by davidma » Fri Oct 16, 2015 10:59 pm

knnniggett,

Thanks again for your reply. I really do appreciate your time and efforts. Unfortunately the state of things with Zoneminder in Gentoo seems a bit "spartan". I recently tried posting a topic in the forums there to rally some users and perhaps developers to fix things a little bit after having to struggle for quite a bit to get a working install:

forums (dot) gentoo (dot) org/viewtopic-t-1030798.html

For instance the ebuild did not install a zoneminder.service file (Some Gentoo users do use systemd although openRC is the default) though the Gentoo wiki entry suggests there is one. I also had some problems with permissions/path errors with the stock Gentoo install but it's possible in retrospect I botched something.

Regardless in uninstalling the -git version from master and reverting to 1.28.1 I have found that all the aforementioned errors vanish (besides the original crash issue). This is interesting because in switching to master I simply used the Gentoo Zoneminder 1.28.1 ebuild and modified three lines to switch over to master and installed this in my own local overlay.

Here is the modified build I used with the modifications in BOLD. Also it appears that it uses cmake entirely.

[removed all h t t p and h t t p s and . com instances due to new user spam controls. :( ]
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

# TO DO:
# * ffmpeg support can be disabled in CMakeLists.txt but it does not build then
# $(cmake-utils_useno ffmpeg ZM_NO_FFMPEG)
# * dependencies of unknown status:
# dev-perl/Archive-Zip
# dev-perl/Device-SerialPort
# dev-perl/MIME-Lite
# dev-perl/MIME-tools
# dev-perl/PHP-Serialization
# virtual/perl-Archive-Tar
# virtual/perl-libnet
# virtual/perl-Module-Load

EAPI=5

PERL_EXPORT_PHASE_FUNCTIONS=no

inherit perl-module readme.gentoo eutils base cmake-utils depend.php depend.apache multilib flag-o-matic git-2

MY_PN="ZoneMinder"

DESCRIPTION="ZoneMinder allows you to capture, analyse, record and monitor any cameras attached to your system"
HOMEPAGE="www (dot) zoneminder (dot) com/"
EGIT_REPO_URI="github (dot) com/ZoneMinder/ZoneMinder.git"
SRC_URI=""


LICENSE="GPL-2"
KEYWORDS="~amd64"
IUSE="curl gcrypt gnutls +mmap +openssl vlc"
SLOT="0"

REQUIRED_USE="
|| ( openssl gnutls )
"

DEPEND="
app-eselect/eselect-php[apache2]
dev-lang/perl:=
dev-lang/php[apache2,cgi,curl,inifile,pdo,mysql,mysqli,sockets]
dev-libs/libpcre
dev-perl/Archive-Zip
dev-perl/DateManip
dev-perl/DBD-mysql
dev-perl/DBI
dev-perl/URI-Encode
dev-perl/libwww-perl
sys-auth/polkit
sys-libs/zlib
virtual/ffmpeg
virtual/jpeg
virtual/mysql
virtual/perl-ExtUtils-MakeMaker
virtual/perl-Getopt-Long
virtual/perl-Sys-Syslog
virtual/perl-Time-HiRes
www-servers/apache
curl? ( net-misc/curl )
gcrypt? ( dev-libs/libgcrypt )
gnutls? ( net-libs/gnutls )
mmap? ( dev-perl/Sys-Mmap )
openssl? ( dev-libs/openssl )
vlc? ( media-video/vlc[live] )
"
RDEPEND="${DEPEND}"

# we cannot use need_httpd_cgi here, since we need to setup permissions for the
# webserver in global scope (/etc/zm.conf etc), so we hardcode apache here.
need_apache
need_php_httpd

S=${WORKDIR}/${MY_PN}-${PV}

PATCHES=(
"${FILESDIR}/${PN}-1.26.5"-automagic.patch
)

MY_ZM_WEBDIR=/usr/share/zoneminder/www

pkg_setup() {
require_php_with_use mysql sockets apache2
}

src_configure() {
append-cxxflags -D__STDC_CONSTANT_MACROS
perl_set_version

mycmakeargs=(
-DZM_PERL_SUBPREFIX=${VENDOR_LIB#/usr}
-DZM_TMPDIR=/var/tmp/zm
-DZM_SOCKDIR=/var/run/zm
-DZM_WEB_USER=apache
-DZM_WEB_GROUP=apache
-DZM_WEBDIR=${MY_ZM_WEBDIR}
$(cmake-utils_useno mmap ZM_NO_MMAP)
-DZM_NO_X10=OFF
-DZM_NO_FFMPEG=OFF
$(cmake-utils_useno curl ZM_NO_CURL)
$(cmake-utils_useno vlc ZM_NO_LIBVLC)
$(cmake-utils_useno openssl CMAKE_DISABLE_FIND_PACKAGE_OpenSSL)
$(cmake-utils_use_has gnutls)
$(cmake-utils_use_has gcrypt)
)

cmake-utils_src_configure
}

src_install() {
cmake-utils_src_install

# the log directory
keepdir /var/log/zm
fowners apache:apache /var/log/zm

# now we duplicate the work of zmlinkcontent.sh
dodir /var/lib/zoneminder /var/lib/zoneminder/images /var/lib/zoneminder/events
fperms -R 0775 /var/lib/zoneminder
fowners -R apache:apache /var/lib/zoneminder
dosym /var/lib/zoneminder/images ${MY_ZM_WEBDIR}/images
dosym /var/lib/zoneminder/events ${MY_ZM_WEBDIR}/events

# bug 523058
keepdir ${MY_ZM_WEBDIR}/temp
fowners -R apache:apache ${MY_ZM_WEBDIR}/temp

# the configuration file
fperms 0640 /etc/zm.conf
fowners root:apache /etc/zm.conf

# init scripts etc
newinitd "${FILESDIR}"/init.d zoneminder
newconfd "${FILESDIR}"/conf.d zoneminder

cp "${FILESDIR}"/10_zoneminder.conf "${T}"/10_zoneminder.conf
sed -i "${T}"/10_zoneminder.conf -e "s:%ZM_WEBDIR%:${MY_ZM_WEBDIR}:g"

dodoc AUTHORS BUGS ChangeLog INSTALL NEWS README.md TODO "${T}"/10_zoneminder.conf

perl_delete_packlist

readme.gentoo_src_install
}

pkg_postinst() {
local myold=${REPLACING_VERSIONS}
[ "${myold}" = ${PV} ] || elog "You have upgraded zoneminder and may have to upgrade your database now."
}
Also I did notice that it seems to retain my bandwidth settings (low, medium, high) in between switching versions. Is there a configuration file somewhere not getting deleted which retains that and perhaps other info that may be causing a problem?

Maybe you can see something in the above ebuild that is an obvious problem? It's strange how keeping the same CMAKE config and apache2+php config shows issues when switching to master from 1.28.1. I wouldn't doubt it is something on my end but it's troubling not to be able to see it or understand why.

User avatar
knight-of-ni
Posts: 2243
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder crashing and taking down apache on signal los

Post by knight-of-ni » Sat Oct 17, 2015 12:41 pm

All your configuration changes are stored in the mysql dB. That is why your bandwidth settings are maintained between versions.

If you are using systemd, templates for the service file and the tmpfiles.d config (also required) are here:
https://github.com/ZoneMinder/ZoneMinde ... aster/misc

You'll need to populate the make macros @VARIBALE@ manually and remove the .in suffix yourself if you copy them from that location.

Also, make sure the legacy zoneminder sys v init file is deleted. Zoneminder will not start up properly if you have both on your system.

Verify your mysql user account has "create" permission. Then also make sure and run zmupdate.pl before you start the new version of zoneminder. This step is always required after an upgrade.

Once you do all that, and if it still does not start properly, post what error messages remain.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests