1.31.39 nph-zms issue
Posted: Sun Mar 11, 2018 7:59 pm
I've been using ZM for years and have TBs of continuously-recorded images created, which makes it difficult to backup or move the files with any regularity (size isn't an issue, just sheer number of files). I'm glad you guys are getting this direct to video stuff going. I decided to give it a shot on my home server and have run into a few issues.
Version: 1.31.39~20180222205919-trusty
from ppa:iconnor/zoneminder-storageareas
installed on Ubuntu 14.04.4 LTS
I ran into an issuing upgrading my existing install, so I purged the old install and dropped the MySQL table. This install should be fairly fresh. I ran into issues getting the database created, so I started with 1.30.4-trusty1 and upgraded to 1.31.39. I see in the ppa listing, there are newer versions of 1.31.39 available, but after doing an apt-get update, apt still thinks the 20180222205919 release is the latest. My apologies if this issue has been addressed already.
When log_level_syslog or log_level_database is set to info or debug, nph-zms applies text before the header when serving up a jpg. Instead of displaying the jpg, chrome downloads a file nph-zms and inside it contains:
I haven't been successful in finding where the text "not logging to file because" shows up in the source though.
I'm not sure if it's related, but I also ran into an issue where the "Filters" weblink failed to work, giving a server error 500 I think. My apache error log gave me:
PHP Parse error: Syntax error, unexpected '(' in /usr/share/zoneminder/www/includes/Filter.php on line 23
/usr/share/zoneminder/www/includes/Filter.php, line 23:
I assume I've got an older version of PHP installed and that's a newer feature, so I changed it to:
There are some other filter issues I'm working through, but that at least got the filter page to display. The "X264 Encode" options works great, but the H264 Passthrough option fails with "Error occurred when writing out file header to /var/cache/zoneminder/events/7/2018-03-11/308/308-video.mp4: Invalid argument"
Before I dig any further for these issues, is there a specific version of apache/php/javascript I should be using that may be causing my problems?
For reference, after doing apt-get update, this is what apt tells me is the latest available:
But the ppa lists 1.31.39~20180306210028-trusty as available. How do I get the latest version installed?
Version: 1.31.39~20180222205919-trusty
from ppa:iconnor/zoneminder-storageareas
installed on Ubuntu 14.04.4 LTS
I ran into an issuing upgrading my existing install, so I purged the old install and dropped the MySQL table. This install should be fairly fresh. I ran into issues getting the database created, so I started with 1.30.4-trusty1 and upgraded to 1.31.39. I see in the ppa listing, there are newer versions of 1.31.39 available, but after doing an apt-get update, apt still thinks the 20180222205919 release is the latest. My apologies if this issue has been addressed already.
When log_level_syslog or log_level_database is set to info or debug, nph-zms applies text before the header when serving up a jpg. Instead of displaying the jpg, chrome downloads a file nph-zms and inside it contains:
Code: Select all
Not logging to file because level <= mFileLevel
HTTP/1.0 200 OK
Server: ZoneMinder Video Server/1.31.39
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Last-Modified: Sun, 11 Mar 2018 18:58:19 GMT
Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Pragma: no-cache
Content-Length: 30880
Content-Type: image/jpeg
����JFIF��C
...
I'm not sure if it's related, but I also ran into an issue where the "Filters" weblink failed to work, giving a server error 500 I think. My apache error log gave me:
PHP Parse error: Syntax error, unexpected '(' in /usr/share/zoneminder/www/includes/Filter.php on line 23
/usr/share/zoneminder/www/includes/Filter.php, line 23:
Code: Select all
'sort_asc' => (ZM_WEB_EVENT_SORT_ORDER == 'asc'),
Code: Select all
'sort_asc' => 'asc',
Before I dig any further for these issues, is there a specific version of apache/php/javascript I should be using that may be causing my problems?
For reference, after doing apt-get update, this is what apt tells me is the latest available:
Code: Select all
root@Server:/# apt-cache policy zoneminder
zoneminder:
Installed: 1.31.39~20180222205919-trusty
Candidate: 1.31.39~20180222205919-trusty
Version table:
*** 1.31.39~20180222205919-trusty 0
500 http://ppa.launchpad.net/iconnor/zoneminder-storageareas/ubuntu/ trusty/main amd64 Packages
100 /var/lib/dpkg/status
1.31.1~20180221085257-trusty 0
500 http://ppa.launchpad.net/iconnor/zoneminder-master/ubuntu/ trusty/main amd64 Packages
1.30.4-trusty1 0
500 http://ppa.launchpad.net/iconnor/zoneminder/ubuntu/ trusty/main amd64 Packages
1.26.5-1ubuntu3 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages