install issues on Fedora 20

Forum for questions and support relating to the 1.25.x releases only.
Post Reply
darkpaw
Posts: 164
Joined: Thu Apr 26, 2007 2:35 am

install issues on Fedora 20

Post by darkpaw » Sun Aug 10, 2014 2:04 am

It looks like the docs aren't entirely accurate for the README.Fedora in Fedora 20. There is no longer a mysqld-server, it's now called maria. But that's just minor compared to what I'm now running into.

I've got at least a dozen things I've had to add to zm.conf because it bombs when trying to start the process. An example:
[root@localhost zoneminder]# systemctl status zoneminder.service -l
zoneminder.service - Video security and surveillance system
Loaded: loaded (/usr/lib/systemd/system/zoneminder.service; enabled)
Active: failed (Result: exit-code) since Sat 2014-08-09 22:47:47 ADT; 43s ago
Process: 1754 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=2)

Aug 09 22:47:47 localhost.localdomain zmpkg.pl[1754]: Bareword "ZM_PATH_LOGS" not allowed while "strict subs" in use at /usr/share/perl5/vendor_perl/ZoneMinder/Logger.pm line 153.
Aug 09 22:47:47 localhost.localdomain zmpkg.pl[1754]: BEGIN not safe after errors--compilation aborted at /usr/share/perl5/vendor_perl/ZoneMinder/Logger.pm line 168.
Aug 09 22:47:47 localhost.localdomain zmpkg.pl[1754]: Compilation failed in require at /usr/share/perl5/vendor_perl/ZoneMinder.pm line 34.
Aug 09 22:47:47 localhost.localdomain zmpkg.pl[1754]: BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/ZoneMinder.pm line 34.
Aug 09 22:47:47 localhost.localdomain zmpkg.pl[1754]: Compilation failed in require at /usr/bin/zmpkg.pl line 37.
Aug 09 22:47:47 localhost.localdomain zmpkg.pl[1754]: BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 37.
Aug 09 22:47:47 localhost.localdomain systemd[1]: zoneminder.service: control process exited, code=exited status=2
Aug 09 22:47:47 localhost.localdomain systemd[1]: Failed to start Video security and surveillance system.
Aug 09 22:47:47 localhost.localdomain systemd[1]: Unit zoneminder.service entered failed state.
[root@localhost zoneminder]# vi /etc/zm.conf

So I added each new one every time it bombs, as most of them have been easy so far.
But I'm stuck on one now:

Aug 09 22:53:18 localhost.localdomain zmpkg.pl[1784]: Bareword "ZM_PATH_MAP" not allowed while "strict subs" in use at /usr/share/perl5/vendor_perl/ZoneMinder/Memory/Mapped.pm line 83.
Aug 09 22:53:18 localhost.localdomain zmpkg.pl[1784]: Compilation failed in require at /usr/share/perl5/vendor_perl/ZoneMinder/Memory.pm line 120.
Aug 09 22:53:18 localhost.localdomain zmpkg.pl[1784]: Compilation failed in require at /usr/share/perl5/vendor_perl/ZoneMinder.pm line 37.
Aug 09 22:53:18 localhost.localdomain zmpkg.pl[1784]: BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/ZoneMinder.pm line 37.
Aug 09 22:53:18 localhost.localdomain zmpkg.pl[1784]: Compilation failed in require at /usr/bin/zmpkg.pl line 37.
Aug 09 22:53:18 localhost.localdomain zmpkg.pl[1784]: BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 37.
Aug 09 22:53:18 localhost.localdomain systemd[1]: zoneminder.service: control process exited, code=exited status=2
Aug 09 22:53:18 localhost.localdomain systemd[1]: Failed to start Video security and surveillance system.
Aug 09 22:53:18 localhost.localdomain systemd[1]: Unit zoneminder.service entered failed state.
[root@localhost zoneminder]# vi /usr/share/perl5/vendor_perl/ZoneMinder/General.pm
[root@localhost zoneminder]# vi /usr/share/perl5/vendor_perl/ZoneMinder/Memory/Mapped.pm

How do I know what to set that to?
Also, is there a more updated zm.conf that may have all these things already in place with some kind of default values?

I've previously been running version 1.22, and just wiped the whole thing to start fresh on Fedora 20. Having lots of install issues, though...

darkpaw
Posts: 164
Joined: Thu Apr 26, 2007 2:35 am

Re: install issues on Fedora 20

Post by darkpaw » Wed Aug 13, 2014 1:34 am

Well, I hacked it into a state that it would RUN, but I can't setup monitors. I assume it's because of one of the configs in zm.conf (which had to have every line in it added before the service would start). The only error in /var/log/messages is:

Aug 12 22:29:10 localhost zmfix[3843]: ERR [Can't stat : No such file or directory]
Aug 12 22:29:50 localhost zmfix[3869]: ERR [Can't stat : No such file or directory]
Aug 12 22:31:22 localhost zmfix[3904]: ERR [Can't stat : No such file or directory]

This line happens every time I try to create a new monitor.

What am I still missing? Here's my heavily edited zm.conf:

[root@localhost ~]# cat /etc/zm.conf
# ==========================================================================
#
# ZoneMinder Base Configuration, $Date: 2008-07-25 10:48:16 +0100 (Fri, 25 Jul 2008) $, $Revision: 2612 $
#
# ==========================================================================
#
# This file is generated by 'configure'. Care should be taken if manually
# editing this file as an changes may be overwritten by subsequent configuration
# or installations.
#

# Current version of ZoneMinder
ZM_VERSION=1.25.0

# Path to build directory, used mostly for finding DB upgrade scripts
ZM_PATH_BUILD=/usr/share/zoneminder

# Path to installed data directory, used mostly for finding DB upgrade scripts
ZM_PATH_DATA=/usr/share/zoneminder

# Build time, used to record when to trigger various checks
ZM_TIME_BUILD=1375618065

# Path to ZoneMinder binaries
ZM_PATH_BIN=/usr/bin

# Path to ZoneMinder libraries (none at present, for future use)
ZM_PATH_LIB=/usr/lib

# Path to ZoneMinder configuration (this file only at present)
ZM_PATH_CONF=/etc

ZM_PATH_LOGS=/var/log

# Path to ZoneMinder web files
ZM_PATH_WEB=/usr/share/zoneminder/www

# Path to ZoneMinder cgi files
ZM_PATH_CGI=/usr/libexec/zoneminder/cgi-bin

# Username and group that web daemon (httpd/apache) runs as
ZM_WEB_USER=apache
ZM_WEB_GROUP=apache

# ZoneMinder database hostname or ip address
ZM_DB_HOST=localhost

# ZoneMinder database name
ZM_DB_NAME=zm

# ZoneMinder database user
ZM_DB_USER=zmuser

# ZoneMinder database password
ZM_DB_PASS=zmpass

ZM_USE_DEEP_STORAGE=yes
ZM_DIR_EVENTS=/var/lib/events

ZM_PATH_MAP=/usr/mappings
ZM_RUN_AUDIT=false
ZM_OPT_TRIGGERS=false
ZM_OPT_X10=false
ZM_CHECK_FOR_UPDATES=false
ZM_DYN_DB_VERSION=1.25.0
ZM_OPT_FRAME_SERVER=false
ZM_OPT_CONTROL=false
ZM_DYN_LAST_VERSION=false
ZM_DYN_LAST_CHECK=false
ZM_EMAIL_TEXT=false
ZM_MESSAGE_TEXT=false
ZM_DYN_CURR_VERSION=1.25.0
ZM_JPEG_IMAGE_QUALITY=100
[root@localhost ~]#

-------------------------------------------------------------------------
EDIT:

Though, it does appear to at least create the monitor directory:

[root@localhost html]# ls -l /var/lib/events
total 4
drwxr-xr-x 2 apache apache 4096 Aug 12 22:29 1
lrwxrwxrwx 1 apache apache 1 Aug 12 22:29 Driveway -> 1
[root@localhost html]# ls -l /var/lib/events/1
total 0
[root@localhost html]#

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests