Page 2 of 2
Re: Zoneminder 1.24.3/1.24.4 on Fedora 15
Posted: Tue Jun 21, 2011 9:51 pm
by zoneminder
The zmwatch.pl crash is not critical but it shouldn't be happening. It it keeps doing it you can trying seeing if there is anything in zmwatch.log or have a go at running it manually from the command line to see if it shws what is wrong.
You should not need to start it manually just for that reason. If you have installed the zm script into /etc/init.d and added it via chkconfig then it should start by itself.
Re: Zoneminder 1.24.3/1.24.4 on Fedora 15
Posted: Tue Jun 21, 2011 9:59 pm
by danodemano
It is continuing to do it, yes (log snipped to show just the crashes):
Code: Select all
Jun 21 17:43:36 fedoraserver zmdc[3499]: ERR ['zmwatch.pl ' exited abnormally, exit status 9]
Jun 21 17:44:06 fedoraserver zmdc[3499]: ERR ['zmwatch.pl ' exited abnormally, exit status 9]
Jun 21 17:44:41 fedoraserver zmdc[3499]: ERR ['zmwatch.pl ' exited abnormally, exit status 9]
Jun 21 17:45:21 fedoraserver zmdc[3499]: ERR ['zmwatch.pl ' exited abnormally, exit status 9]
Jun 21 17:46:11 fedoraserver zmdc[3499]: ERR ['zmwatch.pl ' exited abnormally, exit status 9]
Jun 21 17:47:21 fedoraserver zmdc[3499]: ERR ['zmwatch.pl ' exited abnormally, exit status 9]
Jun 21 17:49:11 fedoraserver zmdc[3499]: ERR ['zmwatch.pl ' exited abnormally, exit status 9]
Jun 21 17:52:21 fedoraserver zmdc[3499]: ERR ['zmwatch.pl ' exited abnormally, exit status 9]
I checked in the debug logs in /tmp and didn't see anything useful there. Where is the zmwatch.log, there is nothing in /var/log/zoneminder at all? And how would I go about running it manually from the command line, I thought that's what I did???
And it does appear to be listed in the chkconfig so it looks like I should be good to go there:
Code: Select all
[root@fedoraserver ~]# chkconfig --list zoneminder
Note: This output shows SysV services only and does not include native
systemd services. SysV configuration data might be overridden by native
systemd configuration.
zoneminder 0:off 1:off 2:on 3:on 4:on 5:on 6:off
Thanks!
Re: Zoneminder 1.24.3/1.24.4 on Fedora 15
Posted: Wed Jun 22, 2011 7:43 am
by zoneminder
Sorry for not making myself clear. I meant just run zmwatch from the command line as per
though you will probably need to be root to do so.
Re: Zoneminder 1.24.3/1.24.4 on Fedora 15
Posted: Fri Jun 24, 2011 2:28 pm
by danodemano
lol, no, I should have understood that. Sorry it took me a few days to get to this.
Anyway I started it up from command line and it crashed in about 30 seconds with the following error:
Code: Select all
Undefined subroutine &ZoneMinder::Memory::Mapped::mmap called at /usr/share/perl5/vendor_perl/ZoneMinder/Memory/Mapped.pm line 92.
That line was the line I had changed from:
Code: Select all
my $mmap_addr = mmap( $mmap, $size, PROT_READ|PROT_WRITE, MAP_SHARED, \*MMAP );
to
Code: Select all
my $mmap_addr = mmap( $mmap, $size, *PROT_READ|*PROT_WRITE, *MAP_SHARED, \*MMAP );
per KeithB a while back.
I changed it back to what it was then was getting the same errors again when starting up zmpkg.pl:
Code: Select all
[root@fedoraserver ~]# /usr/bin/zmpkg.pl start
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.
So I commented back out the use strict; and it started up. However, the zmwatch.pl is still crashing:
Code: Select all
Undefined subroutine &ZoneMinder::Memory::Mapped::mmap called at /usr/share/perl5/vendor_perl/ZoneMinder/Memory/Mapped.pm line 91.
Line 91 reads:
Code: Select all
my $mmap_addr = mmap( $mmap, $size, PROT_READ|PROT_WRITE, MAP_SHARED, \*MMAP );
Hope all that made sense. Thanks so much!!
Re: Zoneminder 1.24.3/1.24.4 on Fedora 15
Posted: Fri Jun 24, 2011 8:16 pm
by mattyo
FWIW I was able to successfully compile 1.24.4 on Fedora 15 x86_64 with no problems. Here is the configuration script I've been using for the last couple versions:
Code: Select all
# make process can't find ffmpeg include files for some reason:
export CPPFLAGS="-D__STDC_CONSTANT_MACROS -I/usr/include/ffmpeg"
export CFLAGS=$CPPFLAGS
./configure \
--with-webdir=/var/www/html/zm \
--with-cgidir=/var/www/cgi-bin \
--with-webuser=apache \
--with-webgroup=apache \
--with-libarch=lib64 \
--enable-debug=no \
--enable-crashtrace=yes \
--enable-mmap=no \
--with-ffmpeg=/usr \
--with-mysql=/usr \
--with-extralibs=""
Also, make sure you address all of the warnings you get from configure.
I didn't have to modify any system files, although I did have to increase shmall and shmmax to get images from my cameras.
Re: Zoneminder 1.24.3/1.24.4 on Fedora 15
Posted: Sat Jun 25, 2011 8:45 am
by mastertheknife
mattyo wrote:FWIW I was able to successfully compile 1.24.4 on Fedora 15 x86_64 with no problems. Here is the configuration script I've been using for the last couple versions:
Code: Select all
# make process can't find ffmpeg include files for some reason:
export CPPFLAGS="-D__STDC_CONSTANT_MACROS -I/usr/include/ffmpeg"
export CFLAGS=$CPPFLAGS
./configure \
--with-webdir=/var/www/html/zm \
--with-cgidir=/var/www/cgi-bin \
--with-webuser=apache \
--with-webgroup=apache \
--with-libarch=lib64 \
--enable-debug=no \
--enable-crashtrace=yes \
--enable-mmap=no \
--with-ffmpeg=/usr \
--with-mysql=/usr \
--with-extralibs=""
Also, make sure you address all of the warnings you get from configure.
I didn't have to modify any system files, although I did have to increase shmall and shmmax to get images from my cameras.
Yeah. ZM is not hard to install from source as many people think. Just need to have all the dependencies installed and use the correct configuration line.
By the way, the reason you had to increase shmall and shmmax is because you are using the shm shared memory. mmap shared memory became the default in ZM 1.24.3 and newer. It doesn't require editing the shmmax and shmall stuff and should not cause any problems.
mastertheknife