Everythign working great other than video dl and export

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
davidma
Posts: 36
Joined: Fri Oct 16, 2015 1:40 am

Everythign working great other than video dl and export

Post by davidma »

Hello I upgraded my Ubuntu Server to 20.4 and did a clean install of zoneminder 1.36.7 from the repo. Everything appears fully functional other than the video download and video export. When I try to export or view with either .zip or tar it says it succeeds and a zip or tar file is generated however it is missing the video. For instance it will say the size generated should be 54.59MB but the actual size is 95.2KB.

OPT_FFMPEG enabled (tried toggling it back and forth and saving)
PATH_FFMPEG = /usr/bin/ffmpeg

$which ffmpeg
/usr/bin/ffmpeg

Strangely even when turning on debug info, setting it to '9' and then restarting I am not seeing anything which seems relevant to generating the export at all? I even disabled all my monitors so that it would reduce extraneous information. How may I debug this further?
davidma
Posts: 36
Joined: Fri Oct 16, 2015 1:40 am

Re: Everythign working great other than video dl and export

Post by davidma »

Debug log level 9 all components (hopefully I did this right)

https://pastebin.com/icv1jxac

All I did here was restart zoneminder and try to download a video of an event. Interestingly I see absolutely nothing in the log about this?
User avatar
kitkat
Posts: 193
Joined: Sun Jan 27, 2019 5:17 pm

Re: Everythign working great other than video dl and export

Post by kitkat »

A shot in the dark here... Is there anything helpful/unusual in the webserver logs?
davidma
Posts: 36
Joined: Fri Oct 16, 2015 1:40 am

Re: Everythign working great other than video dl and export

Post by davidma »

kitkat wrote: Thu Sep 30, 2021 12:57 am A shot in the dark here... Is there anything helpful/unusual in the webserver logs?
I do see some errors which seem related to the montage view which I usually keep running. Though the errors are troubling they aren't constant and everything seems to be working there.

(note blank line between some entries manually added by myself to improve readability of logs)

Code: Select all

[Wed Sep 29 18:35:44.260151 2021] [cgi:warn] [pid 142545] [client 192.168.1.201:49754] AH01220: Timeout waiting for output from CGI script /usr/lib/zoneminder/cgi-bin/nph-zms, referer: http://192.168.1.202:8080/zm/?view=event&eid=2000&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Battr%5D=StartDateTime&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Bop%5D=%3E%3D&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Bval%5D=-1+day&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Bcnj%5D=and&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Battr%5D=MonitorId&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Bop%5D=%3D&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Bval%5D=1&sort_field=StartDateTime&sort_asc=1&page=1

[Wed Sep 29 19:12:42.751196 2021] [cgi:warn] [pid 142628] [client 192.168.1.201:49898] AH01220: Timeout waiting for output from CGI script /usr/lib/zoneminder/cgi-bin/nph-zms, referer: http://192.168.1.202:8080/zm/?view=montage&group=0
I also see some rare errors in this form:

Code: Select all

[Wed Sep 29 18:31:26.113538 2021] [cgi:warn] [pid 137646] [client 192.168.1.201:49530] AH01220: Timeout waiting for output from CGI script /usr/lib/zoneminder/cgi-bin/nph-zms, referer: http://192.168.1.202:8080/zm/index.php
[Wed Sep 29 18:31:36.974199 2021] [php7:notice] [pid 142734] [client 192.168.1.201:49792] WAR [Invalid value for width: px]
[Wed Sep 29 18:31:37.007565 2021] [php7:notice] [pid 142734] [client 192.168.1.201:49792] WAR [Invalid value for width: px]
[Wed Sep 29 18:31:37.041039 2021] [php7:notice] [pid 142734] [client 192.168.1.201:49792] WAR [Invalid value for width: px]
[Wed Sep 29 18:31:37.074538 2021] [php7:notice] [pid 142734] [client 192.168.1.201:49792] WAR [Invalid value for width: px]
In error.log for Apache I was able to find some debug info for the download action but so far nothing (at least to me) seems indicative of what is wrong:

Code: Select all

[Wed Sep 29 17:41:21.846278 2021] [php7:notice] [pid 139860] [client 192.168.1.201:49422] DBG [View: console Request: modal Action:  User: david], referer: http://192.168.1.202:8080/zm/index.php?view=events&page=1&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Battr%5D=StartDateTime&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Bop%5D=%3E%3D&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Bval%5D=-1+hour&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Bcnj%5D=and&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Battr%5D=MonitorId&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Bop%5D=%3D&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Bval%5D=4

[Wed Sep 29 17:41:21.846421 2021] [php7:notice] [pid 139860] [client 192.168.1.201:49422] DBG [Including modals/download.php], referer: http://192.168.1.202:8080/zm/index.php?view=events&page=1&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Battr%5D=StartDateTime&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Bop%5D=%3E%3D&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Bval%5D=-1+hour&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Bcnj%5D=and&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Battr%5D=MonitorId&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Bop%5D=%3D&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Bval%5D=4

[Wed Sep 29 17:41:23.590455 2021] [php7:notice] [pid 139860] [client 192.168.1.201:49422] DBG [Setting cookie parameters to Array\n(\n    [lifetime] => 3600\n    [path] => /\n    [domain] => \n    [secure] => \n    [httponly] => 1\n    [samesite] => Strict\n)], referer: http://192.168.1.202:8080/zm/index.php?view=events&page=1&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Battr%5D=StartDateTime&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Bop%5D=%3E%3D&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Bval%5D=-1+hour&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Bcnj%5D=and&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Battr%5D=MonitorId&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Bop%5D=%3D&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Bval%5D=4

[Wed Sep 29 17:41:23.619504 2021] [php7:notice] [pid 139860] [client 192.168.1.201:49422] DBG [View: request Request: event Action: download User: david], referer: http://192.168.1.202:8080/zm/index.php?view=events&page=1&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Battr%5D=StartDateTime&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Bop%5D=%3E%3D&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Bval%5D=-1+hour&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Bcnj%5D=and&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Battr%5D=MonitorId&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Bop%5D=%3D&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Bval%5D=4

[Wed Sep 29 17:41:23.619626 2021] [php7:warn] [pid 139860] [client 192.168.1.201:49422] PHP Warning:  mkdir(): File exists in /usr/share/zoneminder/www/skins/classic/includes/export_functions.php on line 904, referer: http://192.168.1.202:8080/zm/index.php?view=events&page=1&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Battr%5D=StartDateTime&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Bop%5D=%3E%3D&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Bval%5D=-1+hour&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Bcnj%5D=and&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Battr%5D=MonitorId&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Bop%5D=%3D&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Bval%5D=4
But at least this is more info. I will try to set everything to DEBUG and log level 9 for all components and try again.
Post Reply