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.
Zoneminder 1.24.3/1.24.4 on Fedora 15
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
-
- Posts: 14
- Joined: Mon Mar 14, 2011 10:00 pm
- Location: Columbus, OH
Re: Zoneminder 1.24.3/1.24.4 on Fedora 15
It is continuing to do it, yes (log snipped to show just the crashes):
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:
Thanks!
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]
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
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: Zoneminder 1.24.3/1.24.4 on Fedora 15
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.
Code: Select all
/path/to/zmwatch.pl
Phil
-
- Posts: 14
- Joined: Mon Mar 14, 2011 10:00 pm
- Location: Columbus, OH
Re: Zoneminder 1.24.3/1.24.4 on Fedora 15
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:
That line was the line I had changed from:
to
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:
So I commented back out the use strict; and it started up. However, the zmwatch.pl is still crashing:
Line 91 reads:
Hope all that made sense. Thanks so much!!
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.
Code: Select all
my $mmap_addr = mmap( $mmap, $size, PROT_READ|PROT_WRITE, MAP_SHARED, \*MMAP );
Code: Select all
my $mmap_addr = mmap( $mmap, $size, *PROT_READ|*PROT_WRITE, *MAP_SHARED, \*MMAP );
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.
Code: Select all
Undefined subroutine &ZoneMinder::Memory::Mapped::mmap called at /usr/share/perl5/vendor_perl/ZoneMinder/Memory/Mapped.pm line 91.
Code: Select all
my $mmap_addr = mmap( $mmap, $size, PROT_READ|PROT_WRITE, MAP_SHARED, \*MMAP );
Re: Zoneminder 1.24.3/1.24.4 on Fedora 15
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:
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.
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=""
I didn't have to modify any system files, although I did have to increase shmall and shmmax to get images from my cameras.
-
- Posts: 678
- Joined: Wed Dec 16, 2009 4:32 pm
- Location: Israel
Re: Zoneminder 1.24.3/1.24.4 on Fedora 15
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.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:
Also, make sure you address all of the warnings you get from configure.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=""
I didn't have to modify any system files, although I did have to increase shmall and shmmax to get images from my cameras.
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
Kfir Itzhak.