Page 1 of 2

Export ZIP

Posted: Sat Mar 19, 2016 2:19 pm
by RyGy7
I've been working through some issues with my new installation and please forgive my lack of linux foo.

zm 1.29.0 / ubuntu server 15.10

I originally had an issue with generating the video, but found the solution here
https://github.com/ZoneMinder/ZoneMinder/issues/1126

now i can export tar, but fails when I try .zip. I checked on ubuntu that zip package was installed

apt-get install zip unzip.

been searching all morning so if anyone has some direction they can point me in that would be great.

Re: Export ZIP

Posted: Sat Mar 19, 2016 2:21 pm
by bbunge
Any errors in your log?

Re: Export ZIP

Posted: Sat Mar 19, 2016 3:09 pm
by RyGy7
So i get

Export Failed /usr/share/zoneminder/www/includes/functions.php
&
Command 'cat 'temp/zmFileList.txt' | zip -q 'temp/zmExport.zip' -@' returned with status 12 /usr/share/zoneminder/www/skins/classic/includes/export_functions.php


in my research i've come across some posts that look at permissions issues but i am unsure where to go from there.

Re: Export ZIP

Posted: Mon Mar 21, 2016 8:59 pm
by RyGy7
So I've been researching this for a day and found handfuls of people with the same issue but no real good answers. I guess this one is very difficult indeed. :?

Re: Export ZIP

Posted: Tue Mar 22, 2016 12:48 am
by bbunge
Sorry, have not had time to research. Did five upgrades from Vista to 10 today and am working on the 6th PC at home. Also replaced a monitor and a PC at a client 40 miles away. Will set up 15.10 on my VM and see what I can figure out.

bb

Re: Export ZIP

Posted: Tue Mar 22, 2016 1:08 pm
by RyGy7
Sorry, have not had time to research.
Absolutely no reason to apologize, I go weeks before I get back to working on my zoneminder. Just glad I'm not alone :lol:

Re: Export ZIP

Posted: Tue Mar 22, 2016 2:48 pm
by bbunge
Well, my export of an event in zip format worked. And I was able to generate a video and download it. I used .avi format.

Keep in mind that export does a whole bunch of images, not video. Something like looking a a strip of film. ZM does this in tar or zip format. Videos are generated and downloaded as a single file.

You may want to review the install procedures to see if you missed something:

https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way

Re: Export ZIP

Posted: Tue Mar 22, 2016 3:33 pm
by RyGy7
So I followed these steps

https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way

even though i'm on 15.10. I'll try your link and report back, at the time I couldn't find what you have provided. I'll build again and let you know shortly if that indeed is the difference.

Re: Export ZIP

Posted: Tue Mar 22, 2016 4:54 pm
by bbunge
Well, there is a difference between the 14.04 and the 15.10 versions procedure. Good luck!

Re: Export ZIP

Posted: Wed Mar 23, 2016 12:58 am
by RyGy7
Nope, went through step by step and still the same "returned with status 12" error. Very odd, you went through the same ubuntu server 15.10 easy and got different results. aaaahhhhhh :shock: :shock:

Love my zm, just want to be able to export the events.

Re: Export ZIP

Posted: Wed Mar 23, 2016 1:32 am
by RyGy7
Tried out the permissions and looking at the export php file with no solutions yet.

https://bugs.launchpad.net/ubuntu/+sour ... bug/740809


Edit: I tried to run a cmd directly for giggles and got...........

zip error: Nothing to Do!

ran............

cat zmFileList.txt | zip -q 'temp/zmEport.zip'

I believe for whatever reason now, the zmFileLIst.txt is empty and there is the issue.... just a guess.

Re: Export ZIP

Posted: Wed Mar 23, 2016 8:55 pm
by RyGy7
Interesting addition I hadn't noticed. Although I can generate a video successfully, just below that it reads "Existing Video Files
No Video Files Found".

So export .zip gets an error and export .tar gets an empty file then this is a false message that it was successful. I believe more and more that no video is being created.

Re: Export ZIP

Posted: Thu Mar 24, 2016 12:39 am
by bbunge
Did you enable OPT_FFMPEG and configure PATH_FFMPEG? without those you will not get a video file.

For Ubuntu 15.10 PATH_FFMPEG is /usr/bin/ffmpeg

Re: Export ZIP

Posted: Thu Mar 24, 2016 1:50 pm
by RyGy7
Indeed I do Sir!
zm_ffmpeg.PNG
zm_ffmpeg.PNG (7.33 KiB) Viewed 10184 times

Re: Export ZIP

Posted: Fri Mar 25, 2016 2:18 am
by rockedge
I have encountered the same problem. I had video generation working and now after an install using the latest iconner repo Ubuntu package it is doing as described in the previous post and this warning is popping up.

Code: Select all

Warning: opendir(events/1/16/03/26/00/56/37): failed to open dir: No such file or directory in /usr/share/zoneminder/www/skins/classic/views/video.php on line 69
although I found that the video is being generated.