Page 1 of 1
zmaudit.pl always ends with a exit status 9 ??
Posted: Sat Jan 23, 2010 4:12 pm
by BlankMan
openSuSE 11.2
Have no clue what's wrong or how to fix this. But it happens every time it runs, every time, that is no exaggeration.
Code: Select all
Jan 23 09:59:13 router zmdc[13955]: INF ['zmaudit.pl -c' starting at 10/01/23 09:59:13, pid = 24160]
Jan 23 09:59:13 router zmdc[24160]: INF ['zmaudit.pl -c' started at 10/01/23 09:59:13]
Jan 23 09:59:13 router zmdc[13955]: ERR ['zmaudit.pl -c' exited abnormally, exit status 9]
Posted: Sat Jan 23, 2010 8:59 pm
by cordel
Posted: Tue Jan 26, 2010 5:28 am
by BlankMan
Ok, I enabled debug ran it on the command line and got this in the log file:
Code: Select all
01/25/10 23:15:00.550564 zmaudit[6634].DBG [Found database monitor '1']
01/25/10 23:15:00.551840 zmaudit[6634].DBG [Got 34 events]
01/25/10 23:15:00.551957 zmaudit[6634].DBG [Found database monitor '2']
01/25/10 23:15:00.553172 zmaudit[6634].DBG [Got 48 events]
01/25/10 23:15:00.553424 zmaudit[6634].DBG [Found filesystem monitor '1']
01/25/10 23:15:00.553972 zmaudit[6634].DBG [Got 34 events]
01/25/10 23:15:00.554016 zmaudit[6634].DBG [Found filesystem monitor '2']
01/25/10 23:15:00.554639 zmaudit[6634].DBG [Got 48 events]
01/25/10 23:15:00.574313 zmaudit[6634].DBG [Deleting zmswap-i00000.jpg]
01/25/10 23:15:00.574392 zmaudit[6634].DBG [Deleting zmswap-i00001.jpg]
01/25/10 23:15:00.574425 zmaudit[6634].DBG [Deleting zmswap-i00002.jpg]
01/25/10 23:15:00.574459 zmaudit[6634].DBG [Deleting zmswap-i00003.jpg]
But I got this on the screen:
Code: Select all
:/ # /usr/local/bin/zmaudit.pl
directory (/tmp/Restore/web/srv/www/htdocs/Weather/) images.23:59 is still tainted at /usr/lib/perl5/5.10.0/File/Find.pm line 864.
:/ #
Now, that directory is one of my directories not ZM's. I realize that the find command is probably walking the $swap_image_path = ZM_PATH_SWAP location. I use that area for restores from tape. The file it's refering to "images.23:59" is a directory I restored that contains another directory and only a directory named "dynamic" and that directory contains files.
I use the Linux find command and walk /tmp/Restore/web/srv/www/htdocs/ and it does not report any problem.
I wonder if Perl's find is having problems with the colon in the file name?
Posted: Tue Jan 26, 2010 5:35 am
by BlankMan
Yep. I renamed images.23:59 to images.23-59 and now it doesn't have a problem with it it now has a problem with:
Code: Select all
:/ # /usr/local/bin/zmaudit.pl
directory (/tmp/Restore/bnfsrvr/data02/P/CyberShot/) 20081001 Biesemeyer Wrong Part is still tainted at /usr/lib/perl5/5.10.0/File/Find.pm line 864.
:/ #
Another directory, and probably caused by the spaces in it's name.
Posted: Tue Jan 26, 2010 5:38 am
by BlankMan
Yep. Renamed "20081001 Biesemeyer Wrong Part" to 20081001_Biesemeyer_Wrong_Part and now it doesn't have a problem with that directory it's moved on to another directory with spaces in it's name.
I'd have to qualify this as a bug, those are valid characters in filenames as far as I'm aware of.
Posted: Tue Jan 26, 2010 6:03 am
by BlankMan
Ok if I attempt to use a different ZM_PATH_SWAP location and define this in zm.conf "ZM_PATH_SWAP=/tmp/ZM" which exists, I get this:
Code: Select all
Starting ZoneMinder: Subroutine ZoneMinder::Config::ZM_PATH_SWAP redefined at /usr/lib/perl5/site_perl/5.10.0/ZoneMinder/Config.pm line 95.
Subroutine ZoneMinder::Config::ZM_PATH_SWAP redefined at /usr/lib/perl5/site_perl/5.10.0/ZoneMinder/Config.pm line 95.
Subroutine ZoneMinder::Config::ZM_PATH_SWAP redefined at /usr/lib/perl5/site_perl/5.10.0/ZoneMinder/Config.pm line 95.
Subroutine ZoneMinder::Config::ZM_PATH_SWAP redefined at /usr/lib/perl5/site_perl/5.10.0/ZoneMinder/Config.pm line 95.
Subroutine ZoneMinder::Config::ZM_PATH_SWAP redefined at /usr/lib/perl5/site_perl/5.10.0/ZoneMinder/Config.pm line 95.
Subroutine ZoneMinder::Config::ZM_PATH_SWAP redefined at /usr/lib/perl5/site_perl/5.10.0/ZoneMinder/Config.pm line 95.
Subroutine ZoneMinder::Config::ZM_PATH_SWAP redefined at /usr/lib/perl5/site_perl/5.10.0/ZoneMinder/Config.pm line 95.
Subroutine ZoneMinder::Config::ZM_PATH_SWAP redefined at /usr/lib/perl5/site_perl/5.10.0/ZoneMinder/Config.pm line 95.
Subroutine ZoneMinder::Config::ZM_PATH_SWAP redefined at /usr/lib/perl5/site_perl/5.10.0/ZoneMinder/Config.pm line 95.
Subroutine ZoneMinder::Config::ZM_PATH_SWAP redefined at /usr/lib/perl5/site_perl/5.10.0/ZoneMinder/Config.pm line 95.
Subroutine ZoneMinder::Config::ZM_PATH_SWAP redefined at /usr/lib/perl5/site_perl/5.10.0/ZoneMinder/Config.pm line 95.
And this running zmaudit.pl:
Code: Select all
# /usr/local/bin/zmaudit.pl
Subroutine ZoneMinder::Config::ZM_PATH_SWAP redefined at /usr/lib/perl5/site_perl/5.10.0/ZoneMinder/Config.pm line 95.
directory (/tmp/Restore/bnfsrvr/data02/P/CyberShot/) 20081003 Biesemeyer Fence is still tainted at /usr/lib/perl5/5.10.0/File/Find.pm line 864.
#
So it looks like it complains about reassigning ZM_PATH_SWAP and ignores it and still uses /tmp
So, what is the proper way to change this location/Is there way to change this location?
I didn't see a configure option and setting an environmental variable ZM_PATH_SWAP=/tmp/ZM and exporting it then running configure didn't seem to work either
Posted: Tue Jan 26, 2010 6:13 am
by BlankMan
Doh! Change it in Options.
Posted: Tue Jan 26, 2010 6:23 am
by BlankMan
Problem solved.