Zoneminder does not start [Done]

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Zoneminder does not start [Done]

Postby rodgoslin » Apr 7th, '15, 20:05

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
Last edited by rodgoslin on Apr 7th, '15, 23:36, edited 1 time in total.
rodgoslin
 
Posts: 523
Joined: Nov 19th, '11, 01:31

Re: Zoneminder does not start

Postby doktor5000 » Apr 7th, '15, 20:50

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18061
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Zoneminder does not start

Postby rodgoslin » Apr 7th, '15, 21:25

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
rodgoslin
 
Posts: 523
Joined: Nov 19th, '11, 01:31

Re: Zoneminder does not start

Postby doktor5000 » Apr 7th, '15, 22:45

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18061
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Zoneminder does not start

Postby rodgoslin » Apr 7th, '15, 23:35

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.
rodgoslin
 
Posts: 523
Joined: Nov 19th, '11, 01:31


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest