Page 1 of 1
cameraname/usr/share/zoneminder/events
Posted: Wed Apr 02, 2008 11:34 am
by donnied
Is ZM trying to get files for the archive at cameraname/usr/share/zoneminder/events or
/usr/share/zoneminder/events?
It's not finding any files and strace shows it's looking at cameraname/usr/share/zoneminder/events?
This is for Debian 1.23 (most recent).
Posted: Wed Apr 02, 2008 6:25 pm
by Lee Sharp
How did you install. I have 2 1.23 systems out. One installed clean, and one from an upgrade. Both install images in /usr/share/zoneminder/events/<cam-number>
Posted: Thu Apr 03, 2008 12:25 am
by donnied
aptitude install zoneminder
mmmm. Maybe I should try a different repository? (the packages should be identical.)
I believe it's a bug and I'll report it.
Details: in ZoneMinder 1.23.1, line 713 of scripts/zmfilter.pl defines
$arch_image_path as a relative path. In version 1.23.2, it appears to
be defined as an absolute path (which can be inferred from examining
the definition of getEventPath in .../ZoneMinder/General.pm).
However, the glob operator used to get the list of files to archive
does not use $arch_image_path directly, but prepends a star
(<*$arch_image_path>), which doesn't work with absolute paths, because
the star implicitly turns the path into a relative one. (This glob is
used both on line 749 and on line 723.)
Posted: Thu Apr 03, 2008 12:29 am
by donnied
The images are going to the right place. It's the ftp upload that's not finding the created mpg's. The images and mpg's are there but the program is not giving tar a path (or the right path variable).
Code: Select all
$ tar -cvf testt.tar
tar: Cowardly refusing to create an empty archive
Try `tar --help' or `tar --usage' for more information.
$
$ tar -cvf testt.tar *
tar: *: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
The difference in the output shows that it's not that the path
to the files that is incorrect, but that there is none defined.
zmfilter.pl gives me the error message "cowardly refusing to create an empty archive."
Posted: Thu Apr 03, 2008 8:07 pm
by Lee Sharp
The repo version is way old and has a few bugs. Get a fresh copy from Peter. See the download section, and get the debs.
Posted: Thu Apr 03, 2008 11:57 pm
by donnied
Unfortunately, there isn't a .deb for amd64 in the downloads sections. I'll try compile one this weekend; or just compile and install from source (skipping the .deb making).
Posted: Sun Apr 20, 2008 10:28 pm
by carteriii
I just ran into a similar situation in which zmfilter.pl refused to ftp / upload events. donnied's comment about the glob operator syntax is consistent with what I see so I wrote a simple little test file to make sure it wasn't something else. Unfortunately simply removing the prepended wildcard didn't fix my problem. In fact, I can't get the <> syntax to work with anything other than the wildcard. I finally had to explicitly type "glob" to get zmfilter.pl to work for me. Here is the syntax I used to get it to work:
Code: Select all
foreach my $image_file ( glob ($arch_image_path) )
This is on Ubuntu 7.10 w/perl v5.8.8 if it helps any.