Page 1 of 1

ftp upload does not create archive

Posted: Sun Sep 28, 2008 1:17 pm
by spooky
zm 1.23.3

When filter is configured for "upload all matches" an empty zip or tar failure is the result.

I have traced to:

Code: Select all

if ( $arch_error = !Archive::Tar->create_archive( $arch_file, ZM_UPLOAD_ARCH_COMPRESS, <*$arch_image_path> ) )
in zmfilter.pl

If I expand

Code: Select all

$arch_image_path
in shell I get a valid list of image files, eg:

Code: Select all

-rw-r--r-- 1 www-data www-data 25674 2008-09-28 18:17 /usr/share/zoneminder/events/9/20776/287-capture.jpg
-rw-r--r-- 1 www-data www-data 25887 2008-09-28 18:17 /usr/share/zoneminder/events/9/20776/288-capture.jpg
-rw-r--r-- 1 www-data www-data 25687 2008-09-28 18:17 /usr/share/zoneminder/events/9/20776/289-capture.jpg
If I select a zip file output it has no files in it, if I select tar I get the error:

Code: Select all

09/28/08 22:38:49.583468 zmfilter[28598].INF [[gp0] tar cprs]
09/28/08 22:38:49.583954 zmfilter[28598].INF [Creating upload file '/tmp/BT1-20777.tar.gz']
09/28/08 22:38:49.584261 zmfilter[28598].INF [[gp1] arch file '/tmp/BT1-20777.tar.gz' path '/usr/share/zoneminder/events/9/20777/{*analyse,*capture}.jpg']
09/28/08 22:38:49.585837 zmfilter[28598].ERR [Tar error: Cowardly refusing to create empty archive!
 ]
  • The [gpN] lines are my testing
I looked up Archive::Tar It seems to me that the error could be from the @filelist being empty, I don't perl so I am stumped from here.

Help please.

same problem here

Posted: Thu Oct 09, 2008 11:04 pm
by c0mputerking
hello i am having the same problem here

Posted: Tue Oct 21, 2008 7:30 pm
by c0mputerking
bump still haveing same problem anyone else solve this??