ZoneMinder failed to start

Forum for questions and support relating to the 1.29.x releases only.
Locked
jkousholt
Posts: 2
Joined: Fri Jun 16, 2017 9:42 pm

ZoneMinder failed to start

Post by jkousholt »

Hi guys

I'm having some trouble starting ZoneMinder 1.29

Linux version 3.16.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 SMP Debian 3.16.43-2 (2017-04-30)

I followed this guide https://wiki.zoneminder.com/Debian_8_64 ... e_Easy_Way

start zoneminder.service

Code: Select all

root@debianserver:/home/jan# systemctl start zoneminder.service
Job for zoneminder.service failed. See 'systemctl status zoneminder.service' and 'journalctl -xn' for details.
But when i run

Code: Select all

systemctl status zoneminder.service
I get this result:

Code: Select all

● zoneminder.service - ZoneMinder CCTV recording and surveillance system
   Loaded: loaded (/lib/systemd/system/zoneminder.service; enabled)
   Active: failed (Result: exit-code) since Fri 2017-06-16 22:38:19 CEST; 1h 13min ago

Jun 16 22:38:19 debianserver zmpkg.pl[15666]: Insecure directory in $ENV{PATH} while running with -T switch at /usr/share/perl5/ZoneMinder/Memory.pm line 140.
Jun 16 22:38:19 debianserver zmpkg.pl[15666]: Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 37.
Jun 16 22:38:19 debianserver zmpkg.pl[15666]: BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 37.
Jun 16 22:38:19 debianserver zmpkg.pl[15666]: Compilation failed in require at /usr/bin/zmpkg.pl line 48.
Jun 16 22:38:19 debianserver zmpkg.pl[15666]: BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 48.
Jun 16 22:38:19 debianserver systemd[1]: zoneminder.service: control process exited, code=exited status=2
Jun 16 22:38:19 debianserver systemd[1]: Failed to start ZoneMinder CCTV recording and surveillance system.
Jun 16 22:38:19 debianserver systemd[1]: Unit zoneminder.service entered failed state.
/usr/share/perl5/ZoneMinder/Memory.pm line 140

Code: Select all

our $arch = 32 + 32*( qx(uname -m) =~ /64/ );
/usr/share/perl5/ZoneMinder.pm line 37

Code: Select all

use ZoneMinder::Memory qw(:all);
/usr/bin/zmpkg.pl line 48

Code: Select all

use ZoneMinder;
logs

Code: Select all

root@debianserver:/home/jan# tail -f /var/log/messages /var/log/httpd/error_log /var/log/zm/zm*.log
==> /var/log/messages <==
Jun 15 23:04:37 debianserver org.a11y.Bus[1033]: Reloaded configuration
Jun 15 23:04:37 debianserver org.a11y.Bus[1033]: Reloaded configuration
Jun 16 06:25:03 debianserver rsyslogd: [origin software="rsyslogd" swVersion="8.4.2" x-pid="763" x-info="http://www.rsyslog.com"] rsyslogd was HUPed
Jun 16 06:30:01 debianserver rsyslogd0: action 'action 17' resumed (module 'builtin:ompipe') [try http://www.rsyslog.com/e/0 ]
Jun 16 06:30:01 debianserver rsyslogd-2359: action 'action 17' resumed (module 'builtin:ompipe') [try http://www.rsyslog.com/e/2359 ]
Jun 16 07:01:52 debianserver rsyslogd-2007: action 'action 17' suspended, next retry is Fri Jun 16 07:02:22 2017 [try http://www.rsyslog.com/e/2007 ]
Jun 16 20:24:53 debianserver undef[7108]: INF [No Server ID or Name specified in config.  Not using Multi-Server Mode.]
Jun 16 20:24:53 debianserver web_php[6812]: WAR [Unable to determine path for arp command, type -p arp returned '127' output is: -p: not found#012arp is /usr/sbin/arp]
Jun 16 20:25:38 debianserver undef[7336]: INF [No Server ID or Name specified in config.  Not using Multi-Server Mode.]
Jun 16 20:25:38 debianserver web_php[6856]: WAR [Unable to determine path for arp command, type -p arp returned '127' output is: -p: not found#012arp is /usr/sbin/arp]
tail: cannot open ‘/var/log/httpd/error_log’ for reading: No such file or directory
tail: cannot open ‘/var/log/zm/zm*.log’ for reading: No such file or directory
I can't change the status to "Start". It's keeps saying "Stopped".
screendump.PNG
screendump.PNG (23.95 KiB) Viewed 6444 times
The php page is "working", but why does it say "Failed to start ZoneMinder CCTV recording and surveillance system." when i view the service status?

I couldn't find anything regarding the "status=2" code.

Btw I'm toying around with to old webcams, which both appear when using Cheese. But I can't set them as monitors. Properly related to the error above.

Does anyone have some thoughts about this issue?
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: ZoneMinder failed to start

Post by bbunge »

I ran that install a week ago and it worked perfectly. Recommend you start over with a clean Debian 8.8 minimal install and try again. It is possible that something has changed in Debian 8.8. Am setting up to get Debian 9 so I will not take the time to review the install for Debian 8 until I am satisfied with the new version.
jkousholt
Posts: 2
Joined: Fri Jun 16, 2017 9:42 pm

Re: ZoneMinder failed to start

Post by jkousholt »

I'm running several services on the current server. Therefore I'm not keen on doing a clean Debian install.
How about running ZM on a VirtualBox?
How does it perform when using USB webcams?
Locked