Page 1 of 1

Zoneminder does not start [Done]

PostPosted: Apr 7th, '15, 20:05
by rodgoslin
Having acquired a couple of CCTV cameras, recently, I thiught I'd set them up with a more sophisticated setup than the rather crude web based system that came with them
I picked Zonemander, largely because it was there. However, on installing it I had problems. Not with the install, which appeared to go without a hitch. The problem is with starting the Zoneminder daemon. The install creates an instance in the '"Manage System Services" in the Maggeia Control Center. The daemon is indicated as stopped and started at boot. Attempts to start the daemon fail. A re-boot does not start the daemon. Doing it the command line way, "service zoneminder start", similarly fails. But at least it does give an error message.
:-
Redirecting to /bin/systemctl start zoneminder.service
Job for zoneminder.service failed. See 'systemctl status zoneminder.service' and 'journalctl -n' for details..

Calling up systemctl gives the following_-

Code: Select all
[root@down rod]# systemctl status zoneminder.service
zoneminder.service - ZoneMinder CCTV recording and security system
          Loaded: loaded (/usr/lib/systemd/system/zoneminder.service; enabled)
          Active: failed (Result: exit-code) since Tue, 2015-04-07 18:31:31 BST; 28min ago
         Process: 12049 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=255)
          CGroup: name=systemd:/system/zoneminder.service

Apr 07 18:31:31 down systemd[1]: Starting ZoneMinder CCTV recording and security system...
Apr 07 18:31:31 down zmpkg.pl[12049]: DBI connect('database=zm;host=localhost','zmuser',...) failed: Access de...ne 89.
Apr 07 18:31:31 down zmpkg.pl[12049]: Can't call method "prepare_cached" on an undefined value at /usr/lib/per...ne 91.
Apr 07 18:31:31 down zmpkg.pl[12049]: BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.16.3/Z...e 100.
Apr 07 18:31:31 down zmpkg.pl[12049]: Compilation failed in require at /usr/lib/perl5/vendor_perl/5.16.3/ZoneM...ne 33.
Apr 07 18:31:31 down zmpkg.pl[12049]: BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.16.3/Z...ne 33.
Apr 07 18:31:31 down zmpkg.pl[12049]: Compilation failed in require at /usr/bin/zmpkg.pl line 37.
Apr 07 18:31:31 down zmpkg.pl[12049]: BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 37.
Apr 07 18:31:31 down systemd[1]: Failed to start ZoneMinder CCTV recording and security system.
Apr 07 18:31:31 down systemd[1]: Unit zoneminder.service entered failed state
[root@down rod]#


This was on my desktop machine running Mga 3, and is AMD powered. I also tried installing it on an IBM (Lenovo) Thinkpad T400 and an Asus 1225b netbook, both running Mga 4. With, as far as I can see, identical results

Re: Zoneminder does not start

PostPosted: Apr 7th, '15, 20:50
by doktor5000
Please show the output as root of
Code: Select all
systemctl status zoneminder.service -l -n 100
as some of the lines are ellipsized and unreadable.

Also, did you run zmsetup as root as indicated by the documentation that is shown when installing the zoneminder package?
Those docs are located under /usr/share/doc/zoneminder/README.Mageia and /usr/share/doc/zoneminder/README.urpmi - please be sure to read them.

Re: Zoneminder does not start

PostPosted: Apr 7th, '15, 21:25
by rodgoslin
Thanks for the prompt return on this
Pasting your command line entry into a command line yields the following:-

systemctl: invalid option -- 'l'

I'll look into it.

I'll have a look at zmset and the other documention later

Re: Zoneminder does not start

PostPosted: Apr 7th, '15, 22:45
by doktor5000
rodgoslin wrote:Thanks for the prompt return on this
Pasting your command line entry into a command line yields the following:-

systemctl: invalid option -- 'l'

Maybe it wasn't available with Mageia 3, but should definitely be available since Mageia 4.
Have a look at the man page for systemctl, maybe you can use --full instead of -l for example.

Re: Zoneminder does not start

PostPosted: Apr 7th, '15, 23:35
by rodgoslin
Thanks. However I'll not need to use it. Your advise re zmset . This worked, and setup the system. I was a bit puzzled, not having noticed the advise about zmsetup on install. I deleted the instance on one of the machines, then installed it again. The message about zmsetup was in the update information at the end of the install, which, commonly I disregard. Something I shall have to note in the future.. The browse application now works, and I shall have to do some more research as to how to use it. But gor now the problem is over.