Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exporting video leads to empty tar/zip file #3324

Open
maretodoric opened this issue Aug 2, 2021 · 11 comments
Open

Exporting video leads to empty tar/zip file #3324

maretodoric opened this issue Aug 2, 2021 · 11 comments

Comments

@maretodoric
Copy link

Describe Your Environment

  • Version of ZoneMinder [release version, development version, or commit]: 1.36.5
  • How you installed ZoneMinder [e.g. PPA, RPMFusion, from-source, etc]: RPMFusion
  • Full name and version of OS: CentOS 8 (CentOS Linux release 8.2.2004 (Core))
  • Browser name and version (if this is an issue with the web interface): Google Chrome 92.0.4515.107

Describe the bug
I have an archived video(s) that i would like to download. I go to Filters -> Search for archived videos -> Select -> Click on download then click on "Generate Download"
I will briefly wait for data to be exported then i get an almost empty zip file.
It will contain folder named "zmExport_207327"
zmFileList.txt file containing:

zmExport207327/zmEventImagesMaster.html
/var/lib/zoneminder/temp/zmExport_207327/zmFileList.txt

And empty folders named with event ID (for example 65896)
No video files anywhere.

To Reproduce
Steps to reproduce the behavior:

  1. Go to main page
  2. Click on 'Filters '
  3. Archive Status equal to Archived Only
  4. Click on 'List Matches'
  5. Select video to export
  6. Click on "Download Video"
  7. Click on "GENERATE DOWNLOAD"

Expected behavior
A zip file containing video should be downloaded

Debug Logs
Please advise how to extract debug logs

@welcome
Copy link

welcome bot commented Aug 2, 2021

Thanks for opening your first issue here! Just a reminder, this forum is for Bug Reports only. Be sure to follow the issue template!

@connortechnology
Copy link
Member

Please update to 1.36.7 and let us know if the issue is fixed. In 1.36.6 we updated a lot of the export/downloading code.

I was never able to reproduce this bug, but may have fixed it anyways.

@tommysnello
Copy link

i have the same issue with zoneminder 1.36.7 and ubuntu 20.04

@jorioux
Copy link

jorioux commented Oct 21, 2021

Same issue here with 1.36.9 on ubuntu 21.10.
I've enabled OPT_FFMPEG, and ffmpeg is installed on ubuntu.

@Vic-Y
Copy link

Vic-Y commented Nov 11, 2021

{Thank you to developers who contribute to ZM!}

I found the same/similar problem running ZM 1.36.10 on Ubuntu 20.04 LTS. Downloading video generates a ZIP or TAR file containing folders and files as described by OP and missing the video. I was not filtering for archived events though, just listed events for past day.

If I view a single event, then I the download video button works. However, I would like to download multiple events, which is where the ZIP file is broken.

@PX03AFK
Copy link
Contributor

PX03AFK commented Sep 15, 2023

I have just run into the same issue with 1.37.3. Tar file exports but has multiple empty folders, zip file fails.

@connortechnology
Copy link
Member

Update, as you can see above it was fixed a long time ago.

@PX03AFK
Copy link
Contributor

PX03AFK commented Sep 15, 2023

I have just checked the script which was updated for the fix and I can see that this is the update applied in November 2021. The history for this script indicates that there have been a few more updates since that one but nothing to suggest any further fix for the problem as described. If it really is fixed can you help me establish why I have the problem. What evidence can I collect?

@PX03AFK
Copy link
Contributor

PX03AFK commented Sep 15, 2023

Sorry, should have been clear, the Nov 2021 version is the one included in 1.37.3 and is the one I am running.

@connortechnology
Copy link
Member

We need the web_php.log from doing the export. Perhaps turn on debugging first.

@PX03AFK
Copy link
Contributor

PX03AFK commented Sep 15, 2023

I've turned on Log_Debug and changed Log_Debug_Level to 9 with no component specified and nothing in the web_php.log. Then I changed Log_Level_Weblog to debug but still nothing. I even tried specifying _web as a component. I've also restarted ZM with debug set on.

I did, however, sort out the problem trying export as a zip file. zip wasn't installed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants