1.31.39 nph-zms issue

Forum for questions and support relating to the 1.31.x releases only.
Locked
tuff
Posts: 2
Joined: Wed Sep 04, 2013 6:29 am

1.31.39 nph-zms issue

Post by tuff »

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:

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 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:

Code: Select all

'sort_asc' => (ZM_WEB_EVENT_SORT_ORDER == 'asc'),
I assume I've got an older version of PHP installed and that's a newer feature, so I changed it to:

Code: Select all

'sort_asc' => 'asc',
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:

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
But the ppa lists 1.31.39~20180306210028-trusty as available. How do I get the latest version installed?
jrummy
Posts: 2
Joined: Tue May 01, 2018 12:42 pm

Re: 1.31.39 nph-zms issue

Post by jrummy »

I have filed an issue on this: https://github.com/ZoneMinder/zoneminder/issues/2092
tuff wrote: Sun Mar 11, 2018 7:59 pm 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 know I'm a couple months late, but I just registered so I could say THANK YOU.

I have been digging through zoneminder and home-assistant source and logs and forums for the last few days trying to figure out why home-assistant's camera feeds from zoneminder were broken. I chased it down finally to this message coming from nph-zms, which led me to your post. Adjusting LOG_LEVEL_FILE corrected the issue for me.

You can follow the above issue and hopefully we'll see some movement soon.

Thanks again.
User avatar
iconnor
Posts: 2900
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: 1.31.39 nph-zms issue

Post by iconnor »

These fixes have been merged. New packages available today.
Locked