Page 1 of 1

Zoneminder refuses to start after upgrade

Posted: Thu Sep 08, 2011 5:12 pm
by fred1234
With a working zoneminder in Fedora 14 I upgraded to Fedora 15 resulting in zoneminder v1.24.3 which does not start.

The symptoms:
Clicking on the word 'Stopped' in the zoneminder main interface window and then clicking 'Apply' in the popup window does not appear to change anything, nor produce error message. (before and after each attempt to restart using the service command.)

Initially the output from 'service zoneminder status' displayed:
zoneminder.service - SYSV: ZoneMinder is the top Linux video camera security and surveillance solution. ZoneMinder is intended for use in single or multi-camera video security applications.Copyright: Philip Coombes, Corey DeLasaux 2003-2008
Loaded: loaded (/etc/rc.d/init.d/zoneminder)
Active: failed since Thu, 08 Sep 2011 11:05:03 -0500; 8s ago
Process: 17619 ExecStart=/etc/rc.d/init.d/zoneminder start (code=exited, status=255)
CGroup: name=systemd:/system/zoneminder.service
zoneminder.service - SYSV: ZoneMinder is the top Linux video camera security and surveillance solution. ZoneMinder is intended for use in single or multi-camera video security applications.Copyright: Philip Coombes, Corey DeLasaux 2003-2008
Loaded: loaded (/etc/rc.d/init.d/zoneminder)
Active: failed since Thu, 08 Sep 2011 11:05:03 -0500; 8s ago
Process: 17619 ExecStart=/etc/rc.d/init.d/zoneminder start (code=exited, status=255)
CGroup: name=systemd:/system/zoneminder.service
Bareword "PROT_READ" not allowed while "strict subs" in use at /usr/share/perl5/vendor_perl/ZoneMinder/Memory/Mapped.pm line 91.
Bareword "PROT_WRITE" not allowed while "strict subs" in use at /usr/share/perl5/vendor_perl/ZoneMinder/Memory/Mapped.pm line 91.
Bareword "MAP_SHARED" not allowed while "strict subs" in use at /usr/share/perl5/vendor_perl/ZoneMinder/Memory/Mapped.pm line 91.
Compilation failed in require at /usr/share/perl5/vendor_perl/ZoneMinder/Memory.pm line 120.
Compilation failed in require at /usr/share/perl5/vendor_perl/ZoneMinder.pm line 37.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/ZoneMinder.pm line 37.
Compilation failed in require at /usr/bin/zmpkg.pl line 46.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 46.
ZoneMinder is stopped
As identified on http://www.vivaolinux.com.br/topico/QEM ... Zoneminder, changing line 816 in /usr/share/perl5/vendor_perl/Zoneminder/Memory.pm from:
if ( "yes" eq 'yes' ) # 'yes' if memory is mmapped
to
if ( "no" eq 'yes' ) # 'yes' if memory is mmapped
eliminated the error messages, but did not allow the zoneminder to start. (Can someone explain this?)

'service zoneminder start' now produces:
Restarting zoneminder (via systemctl): Job failed. See system logs and 'systemctl status' for details.
[FAILED]
'service zoneminder status':
zoneminder.service - SYSV: ZoneMinder is the top Linux video camera security and surveillance solution. ZoneMinder is intended for use in single or multi-camera video security applications.Copyright: Philip Coombes, Corey DeLasaux 2003-2008
Loaded: loaded (/etc/rc.d/init.d/zoneminder)
Active: failed since Thu, 08 Sep 2011 11:14:34 -0500; 31s ago
Process: 18324 ExecStart=/etc/rc.d/init.d/zoneminder start (code=exited, status=255)
CGroup: name=systemd:/system/zoneminder.service
zoneminder.service - SYSV: ZoneMinder is the top Linux video camera security and surveillance solution. ZoneMinder is intended for use in single or multi-camera video security applications.Copyright: Philip Coombes, Corey DeLasaux 2003-2008
Loaded: loaded (/etc/rc.d/init.d/zoneminder)
Active: failed since Thu, 08 Sep 2011 11:14:34 -0500; 31s ago
Process: 18324 ExecStart=/etc/rc.d/init.d/zoneminder start (code=exited, status=255)
CGroup: name=systemd:/system/zoneminder.service
ZoneMinder is stopped
With zoneminder's loglevel set to 4, the /tmp/zmpkg.log file contains:
09/08/2011 11:14:33.770653 zmpkg[18339].INF [Command: start]
09/08/2011 11:14:34.308996 zmpkg[18339].ERR [Unable to run "su apache --shell=/bin/sh --command='/usr/bin/zmfix'", output is ""]
Note SElinux is set to permissive.

As far as I can tell there are no other relevant error messages, i.e. console, /var/log/messages.
Also there is no video from the camera, although I assume that this is because zoneminder is not starting.

Any ideas on how to proceed to fix this would be appreciated.

thanks in advance,

Fred

Re: Zoneminder refuses to start after upgrade

Posted: Mon Sep 19, 2011 5:00 pm
by fred1234
I am a little dismayed that there were no replies, oh well...

Increasing the log level to 6 now produces the following in /var/log/messages
Sep 19 11:36:26 _ zmfix[7647]: ERR [Config mismatch, expected 197 items, read 183. Try running 'zmupdate.pl -f' to reload config.]
Sep 19 11:36:27 _ zmpkg[7628]: ERR [Unable to run "su apache --shell=/bin/sh --command='/usr/bin/zmfix'", output is ""]
Sep 19 11:36:27 _ systemd[1]: zoneminder.service: control process exited, code=exited status=255
Sep 19 11:36:27 _ systemd[1]: Unit zoneminder.service entered failed state.
lo and behold, running the suggested command 'zmupdate.pl -f' as root resolves the problem and allows ZoneMinder to start.
It would seem to me that this indication of the underlying problem / suggested resolution should have been printed without needing to turn debugging on. Hopefully this update to the post will help some future suffer from upgrading to F15 and it just don't work.

Can anyone shed some light on the 'if memory is mmpapped' issue / resolution?

Thanks,

Fred