LinHES Forums
http://forums.linhes.org/

Zoneminder and R8.5.1
http://forums.linhes.org/viewtopic.php?f=21&t=24706
Page 1 of 2

Author:  bobmyth [ Thu Dec 28, 2017 1:18 pm ]
Post subject:  Zoneminder and R8.5.1

My zoneminder is not working, meaning I cannot see any live streams nor can I see any previously captured events. It appears zoneminder if still analyzing and capturing events, though.

The first step is to do: zmupdate.pl

This will update your zoneminder database from 1.30.0 to 1.30.2

The nph-zms binary appears to be compiled so that all libraries resolve (good news).

However, the nph-zms processes don't appear to go away once you attempt to view a camera or event.

Yes, I am using Firefox.

Author:  tscholl [ Thu Dec 28, 2017 1:51 pm ]
Post subject:  Re: Zoneminder and R8.5.1

I'm not using Zm but with the latest versions of Firefox I can no longer view any of my cameras. I do how ever get a message on the browser screen. Try IE. That's what I had to resort to.

Author:  bobmyth [ Thu Dec 28, 2017 2:07 pm ]
Post subject:  Re: Zoneminder and R8.5.1

My version of Firefox has not changed. Meaning, I was able to view my cameras this morning before the upgrade and after the upgrade I am unable to view them.

Author:  tscholl [ Thu Dec 28, 2017 8:38 pm ]
Post subject:  Re: Zoneminder and R8.5.1

Got it, well keep using the version your using. Don't upgrade..

Wish I had something else but no other thoughts at the moment. Good luck.

Author:  bobmyth [ Sun Dec 31, 2017 9:40 am ]
Post subject:  Re: Zoneminder and R8.5.1

Something else that I just noticed, I left a nph-zms process running Friday morning and how I have 28,000 files from lighthttpd in /myth/tmp, it's odd:

Code:
$ ls -ltr /myth/tmp
-rw------- 1 http http 1055112 Dec 29 10:36 /myth/tmp/lighttpd-upload-fWipqP
-rw------- 1 http http 1064678 Dec 29 10:36 /myth/tmp/lighttpd-upload-laZsr5
...
-rw------- 1 http http 1087619 Dec 31 08:33 /myth/tmp/lighttpd-upload-HSrDN7
-rw------- 1 http http  681069 Dec 31 08:33 /myth/tmp/lighttpd-upload-PhN66W


Now that I've killed the process, the files have stopped accumulating.

Also interesting is the content of the files:
Code:
$ sudo less /myth/tmp/lighttpd-upload-ps6S00
"/myth/tmp/lighttpd-upload-ps6S00" may be a binary file.  See it anyway?
--ZoneMinderFrame
Content-Type: image/jpeg
Content-Length: 54572

<FF><D8><FF><E0>^@^PJFIF^@^A^A^@^@^A^@^A^@^@<FF><DB>^@C^@
^G^G^H^G^F
^H^H^H^K


Looks like a zoneminder jpeg file.

Author:  bobmyth [ Tue Jan 30, 2018 10:34 pm ]
Post subject:  Re: Zoneminder and R8.5.1

Small progress, I found an error:
Code:
# tail -f /var/log/2018-01-30/mythtv_php-cgi.log
Jan 30 20:26:58 mythtv php-cgi[26996]: PHP Warning:  _cake_core_ cache was unable to write 'cake_dev_en-us' to File cache in /data/srv/httpd/zoneminder/api/lib/Cake/Cache/Cache.php on line 328
Jan 30 20:26:58 mythtv php-cgi[26996]: PHP Warning:  /data/srv/httpd/zoneminder/api/app/tmp/cache/persistent/ is not writable in /data/srv/httpd/zoneminder/api/lib/Cake/Cache/Engine/FileEngine.php on line 385

I created /data/srv/httpd/zoneminder/api/app/tmp/cache/persistent/ but still cannot view live or recorded events.

I should be able to view this URL: http://mythtv/zm/api/host/getVersion.json

but am not there yet.

Author:  bobmyth [ Wed Jan 31, 2018 10:32 pm ]
Post subject:  Re: Zoneminder and R8.5.1

Small progress. Creating these:
Code:
tmp/
tmp/cache
tmp/cache/models
tmp/cache/cache_group
tmp/cache/persistent
tmp/logs
made it so I could get this somewhat working:
http://mythtv/zm/api/

Author:  nigelpearson [ Sat Feb 17, 2018 1:13 am ]
Post subject:  Re: Zoneminder and R8.5.1

I upgraded from 8.4.2 to 8.5.1 on Dec. 29, but after a recent power outage, couldn't use the frontend because database filesystem filled up. Some snooping revealed:

Code:
# ls -l /data/srv/mysql/zm
total 1502980
-rw-rw---- 1 mysql mysql       8972 Jan  8  2017 Config.frm
-rw-rw---- 1 mysql mysql     344064 Dec 29 15:56 Config.ibd
-rw-rw---- 1 mysql mysql       8636 Jan  8  2017 ControlPresets.frm
-rw-rw---- 1 mysql mysql      98304 Jan  8  2017 ControlPresets.ibd
-rw-rw---- 1 mysql mysql      13106 Jan  8  2017 Controls.frm
-rw-rw---- 1 mysql mysql      98304 Jan  8  2017 Controls.ibd
-rw-rw---- 1 mysql mysql         61 Jan  8  2017 db.opt
-rw-rw---- 1 mysql mysql       8662 Jan  8  2017 Devices.frm
-rw-rw---- 1 mysql mysql      98304 Jan  8  2017 Devices.ibd
-rw-rw---- 1 mysql mysql       9330 Jan  8  2017 Events.frm
-rw-rw---- 1 mysql mysql     163840 Jan  8  2017 Events.ibd
-rw-rw---- 1 mysql mysql       8980 Jan  8  2017 Filters.frm
-rw-rw---- 1 mysql mysql      98304 Jan  8  2017 Filters.ibd
-rw-rw---- 1 mysql mysql       8782 Jan  8  2017 Frames.frm
-rw-rw---- 1 mysql mysql     147456 Jan  8  2017 Frames.ibd
-rw-rw---- 1 mysql mysql       8628 Jan  8  2017 Groups.frm
-rw-rw---- 1 mysql mysql      98304 Jan  8  2017 Groups.ibd
-rw-rw---- 1 mysql mysql       8830 Jan  8  2017 Logs.frm
-rw-rw---- 1 mysql mysql 1535115264 Feb 17 17:38 Logs.ibd
...



The thing is, I don't even use ZoneMinder. I don't think I have ever configured it. Is that normal?

Thankfully, a Google revealed a fast way to fix this:
Code:
mysql  -uroot  zm
truncate table Logs;
quit


but this might be a problem for other users?

Author:  bobmyth [ Sun Feb 18, 2018 10:22 pm ]
Post subject:  Re: Zoneminder and R8.5.1

nigelpearson wrote:
The thing is, I don't even use ZoneMinder. I don't think I have ever configured it. Is that normal?

I'm not certain if this is normal as I usually configure zoneminder and set-up rules to automatically truncate events.

I appreciate the suggestion, though.

Author:  brfransen [ Mon Feb 19, 2018 8:09 am ]
Post subject:  Re: Zoneminder and R8.5.1

I don't see anywhere that zoneminder is on by default. The user would have to specifically install it using either pacman or select it in LinHES Settings --> Programs.

Author:  bobmyth [ Wed Apr 18, 2018 9:19 pm ]
Post subject:  Re: Zoneminder and R8.5.1

Small progress, I suspect a PHP package called php-uapc is missing, more information here.

Maybe this will fix my problem? Can someone package this?

Author:  knappster [ Thu Apr 19, 2018 6:20 am ]
Post subject:  Re: Zoneminder and R8.5.1

I dont mind trying to build it tomorrow evening if you dont mind installing something which is not yet in the linhes repository.

Author:  bobmyth [ Thu Apr 19, 2018 9:05 pm ]
Post subject:  Re: Zoneminder and R8.5.1

Sure, let me know where to get it and give me a md5sum/sha256sum value and I'll give it a go. Thanks.

Author:  knappster [ Fri Apr 20, 2018 8:39 pm ]
Post subject:  Re: Zoneminder and R8.5.1

Fair warning... I have not even tried to install this, but I was able to get it to build:
php-apcu 4.0.11
Download link:
https://drive.google.com/open?id=1llK2X ... J9JxWeP4Y1
md5sum:
9b66cec84fbb448201a3db2c381bf50e
Don't hold me responsible for any problems you encounter! It looks like you may still need to enable it in configuration somewhere as well. Let me know if this helps. I have the PKGBUILD file I can submit for consideration in the repository.

Author:  bobmyth [ Sun Apr 22, 2018 9:29 pm ]
Post subject:  Re: Zoneminder and R8.5.1

I installed the package.

I added the following line to /etc/php/php.ini:
Code:
extension=apcu.so

to the "Dynamic Extensions" section.

I restarted lighttpd.

I created a script to run phpinfo() for me and I did see apcu in that output.

I restarted zoneminder for good measure.

Unfortunately, I still cannot view live video or recorded events. :(

The search continues...

Page 1 of 2 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/