Page 2 of 2
Re: zmfilter.pl ' exited abnormally, exit status 9
Posted: Tue Apr 17, 2012 12:14 am
by robertclemens
So far you are doing very well. I was wondering how you would fare with the SQL commands but you did great.
You said you were unsure of the schema file. It appears that your database exists and has the proper table layout.
The schema file you used was /usr/share/zoneminder/db/zm_create.sql
The zm.conf location is specified by the config.php file. Yours could be /etc/zm.conf but mine by default was /etc/zm/zm.conf. Use the following code to show where
your config file belongs.
Code: Select all
root@mythtv:/usr/share/zoneminder# grep zm.conf /usr/share/zoneminder/includes/config.php
define( "ZM_CONFIG", "/etc/zm/zm.conf" ); // Path to config file
root@mythtv:/usr/share/zoneminder#
One thing I noticed from your SQL output is that your monitor type was "Continuous". This was listed under the "Cause" column.
Mine is "Motion". I presume you are using Record or Mocord? Try using a different type of function to see if the event size or handling of the
events is causing an issue.
In the ZoneMinder web interface my function is "Modect". What is yours?
I'm starting to run out of things to check regarding ZoneMinder settings. It may be a system setting or software complication.
I can't imagine this would be too hard to figure out though.
I would recommend turning on the debug option in the zoneminder web options area. Maybe the log file will give more detail (note the debug log file path in that option window).
Re: zmfilter.pl ' exited abnormally, exit status 9
Posted: Tue Apr 17, 2012 5:40 pm
by teraquad
Thanks!
Code: Select all
[root@ZoneMinder ~]# grep zm.conf /usr/share/zoneminder/includes/config.php
grep: /usr/share/zoneminder/includes/config.php: No such file or directory
[root@ZoneMinder ~]# define( "ZM_CONFIG", "/etc/zm/zm.conf" ); // Path to config file
config.php is located at /usr/share/zoneminder/www/includes
Code: Select all
define( "ZM_CONFIG", "/etc/zm.conf" ); // Path to config file
I am using mocord, i have used record and motion though i cant remember if i was worrying about filters then. I will change that to Motion now.
-----------------------
Looks like you will have to be more specific on the debug info. I am unable to work out what it is that you need.
I have switched to modetect for shorter events and am building up a database as we speak.
Thanks for the help. It's been enlightening.
Re: zmfilter.pl ' exited abnormally, exit status 9
Posted: Mon Apr 23, 2012 5:51 pm
by teraquad
I have been working on debug, and have not found the additional log files i expected, or any unusual
additions to the normal log files. In fact, the only thing i find unusual at all is when i run
filter.pl as a
stand alone from the command prompt and get what follows.
Code: Select all
[root@ZoneMinder bin]# zmfilter.pl
Undefined subroutine &Date::Manip::UnixDate called at /usr/bin/zmfilter.pl line 131.
[root@ZoneMinder bin]#
When i look at line 131 << return( UnixDate( $dt_str, '%s' ) ); >> this is what i find.
Code: Select all
#
# More or less replicates the equivalent PHP function
#
sub strtotime
{
my $dt_str = shift;
return( UnixDate( $dt_str, '%s' ) );
}
Not being a code guy i understand nothing of what is going on there, but i have seen an error
report involving time and the httpd.log files, though i cant find it now.
It is interesting to note that i Also have a small problem where the date disappears from my desktop
shortly after booting the system and running zoneminder. Again i can't reliably reproduce the problem.
Could it be as simple as time being in 24 hr format or something like that?
Thanks for any advice here, I am in way over my head.
Thanks!
Re: zmfilter.pl ' exited abnormally, exit status 9
Posted: Mon Apr 23, 2012 8:59 pm
by PacoLM
Are you sure that Perl Date::Time is installed in its last version?
I would check that the needed libraries are installed:
Code: Select all
perl -MCPAN -e shell
install CPAN
reload cpan
quit
perl -MCPAN -e shell
install YAML
install Sys::Mmap MIME::Lite MIME::Entity X10::ActiveHome LWP::UserAgent
install Date::Manip PHP::Serialization
install Expect Net::SFTP::Foreign Device::SerialPort Archive::Zip
quit
Just in case...
Re: zmfilter.pl ' exited abnormally, exit status 9
Posted: Tue Apr 24, 2012 6:42 pm
by teraquad
Thanks!
I did install both under root and as my standard login. there was an upgrade of some item as i saw it breeze by. From ?.096 to ?.098
Sorry to be vague but that was all i caught. I rebooted in both cases and find the info on the zmfilter.pl command to be the same.
Code: Select all
[root@ZoneMinder bin]# zmfilter.pl
Undefined subroutine &Date::Manip::UnixDate called at /usr/bin/zmfilter.pl line 131.
[root@ZoneMinder bin]#
I don't like giving up so i will keep stabbing at it for a while.
Thanks for your help!
Re: zmfilter.pl ' exited abnormally, exit status 9
Posted: Tue Apr 24, 2012 7:17 pm
by PacoLM
Hi,
Try this, should fix your error, edit file php.ini and set your timezone (
http://nl3.php.net/manual/en/timezones.php)
Hope it helps,
PacoLM
Re: zmfilter.pl ' exited abnormally, exit status 9
Posted: Thu Apr 26, 2012 12:37 pm
by teraquad
Thank you very much for the information.
I have reformated my HDD installed Fedora16 and installed zoneminder once again.
"The problems i have are identical to all the problems described in the previous install."
I am sure this information will come in handy. I will work on it this weekend.
Thanks again for the info.
Re: zmfilter.pl ' exited abnormally, exit status 9
Posted: Mon Apr 30, 2012 4:11 pm
by teraquad
Thanks to all, It Works. apparently the timezone modification was the trick.
Code: Select all
04/30/2012 10:57:47.473918 zmfilter[2022].ERR [Auto execute script '^g' not found, skipping filter 'Arc All']
04/30/2012 17:05:10.412366 zmfilter[2062].INF [Scanning for events]
04/30/2012 17:05:15.589468 zmfilter[2062].ERR [Auto execute script '^g' not found, skipping filter 'Arc All']
04/30/2012 17:05:39.537242 zmfilter[2103].INF [Scanning for events using filter '_TempFilter1335798339']
04/30/2012 17:05:39.568878 zmfilter[2103].ERR [Auto execute script '^g' not found, skipping filter '_TempFilter1335798339']
04/30/2012 17:11:15.593332 zmfilter[2062].ERR [Auto execute script '^g' not found, skipping filter 'Arc All']
04/30/2012 17:17:15.597058 zmfilter[2062].ERR [Auto execute script '^g' not found, skipping filter 'Arc All']
04/30/2012 17:23:15.600788 zmfilter[2062].ERR [Auto execute script '^g' not found, skipping filter 'Arc All']
04/30/2012 17:29:15.604651 zmfilter[2062].ERR [Auto execute script '^g' not found, skipping filter 'Arc All']
04/30/2012 17:35:15.608806 zmfilter[2062].ERR [Auto execute script '^g' not found, skipping filter 'Arc All']
04/30/2012 17:41:14.832209 zmfilter[2613].INF [Scanning for events]
04/30/2012 17:41:19.903191 zmfilter[2613].INF [Archiving event 1]
04/30/2012 17:41:19.904458 zmfilter[2613].INF [Archiving event 2]
04/30/2012 17:41:19.905368 zmfilter[2613].INF [Archiving event 3]
04/30/2012 17:41:19.906186 zmfilter[2613].INF [Archiving event 4]
04/30/2012 17:41:19.907009 zmfilter[2613].INF [Archiving event 5]
04/30/2012 17:41:19.907833 zmfilter[2613].INF [Archiving event 6]
04/30/2012 17:41:19.908635 zmfilter[2613].INF [Archiving event 7]
Once i did the date/time mod, the log shows an error in the filter. Once i caught that error it appears to now
function properly.
My only question is, Can i change the timezone in (php.ini) to (america/new york) ???
Thank you so much for the help!!
Thanks!
Re: zmfilter.pl ' exited abnormally, exit status 9
Posted: Mon Apr 30, 2012 4:58 pm
by PacoLM
Congratulations, the correctr setting for your timezone should be : "America/New_York"
Re: zmfilter.pl ' exited abnormally, exit status 9
Posted: Tue May 01, 2012 11:47 am
by teraquad
Thanks again, It's been quite a battle!