No live/events with LinHes

Forum for questions and support relating to the 1.30.x releases only.
Locked
bob
Posts: 5
Joined: Wed Feb 18, 2009 3:38 am

No live/events with LinHes

Post by bob »

I'm using a Linux distribution geared toward home entertainment/TV recording that also includes Zoneminder (1.30.2). The package makers do not have a lot of zoneminder experience, but include it with the distribution.

I cannot view live images or recorded events.However, events are being captured. if I select an event and create a video (such as AVI) I can view the event.

Initially, there were issues with CakePHP and I have made some improvements because I can now see http://server/zm/api/, though I'm not sure if it's 100% correct (authentication is turned off):

Code: Select all

CakePHP: the rapid development php framework
Not Found

Error: The requested address '/zm/api/' was not found on this server.
CakePHP: the rapid development php framework	

CakePHP 2.8.0
When I try http://server/zm/api/host/getVersion.json I get a blank window and nothing helpful in any log files I can find.

I can see the nph-zms process running on my system, even when I close the "live" view. More interesting, files are written to /var/log as follows:

Code: Select all

-rw------- 1 http http 1066616 Feb 20 20:43 /var/tmp/lighttpd-upload-4OT8gf
-rw------- 1 http http 1071960 Feb 20 20:46 /var/tmp/lighttpd-upload-5CO2je
-rw------- 1 http http 1066374 Feb 20 20:43 /var/tmp/lighttpd-upload-65mzSQ
-rw------- 1 http http 1064589 Feb 20 20:43 /var/tmp/lighttpd-upload-8VUrkX
I have to kill the nph-zms process or the processes will remain until the system is rebooted. Once I kill the process(es) the files in /var/tmp are removed.

The files appear to be related to zoneminder:

Code: Select all

$ sudo less /var/tmp/lighttpd-upload-ps6S00
"/var/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
I am using Firefox 52 for my browser, which worked well with zoneminder 1.30.0.

Help.
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: No live/events with LinHes

Post by bbunge »

Linux distro and version?
bob
Posts: 5
Joined: Wed Feb 18, 2009 3:38 am

Re: No live/events with LinHes

Post by bob »

LinHes 8.5.1 (http://www.linhes.org), a derivative of Arch Linux.
bob
Posts: 5
Joined: Wed Feb 18, 2009 3:38 am

Re: No live/events with LinHes

Post by bob »

I'm still trying to fix this. When use my web browser and go to /zm/api/ I get the following:

Code: Select all

Not Found

Error: The requested address '/zm/api/' was not found on this server.
CakePHP: the rapid development php framework	

CakePHP 2.8.0
and I see the following in api/app/tmp/logs/error.log:

Code: Select all

2018-04-22 20:36:25 Error: [NotFoundException] Not Found
Request URL: /zm/api/
Stack Trace:
#0 /data/srv/httpd/zoneminder/api/lib/Cake/View/View.php(971): include()
#1 /data/srv/httpd/zoneminder/api/lib/Cake/View/View.php(933): View->_evaluate('/data/srv/httpd...', Array)
#2 /data/srv/httpd/zoneminder/api/lib/Cake/View/View.php(473): View->_render('/data/srv/httpd...')
#3 /data/srv/httpd/zoneminder/api/lib/Cake/Controller/Controller.php(963): View->render('home', NULL)
#4 /data/srv/httpd/zoneminder/api/app/Controller/PagesController.php(69): Controller->render('home')
#5 [internal function]: PagesController->display('home')
#6 /data/srv/httpd/zoneminder/api/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(PagesController), Array)
#7 /data/srv/httpd/zoneminder/api/app/Plugin/Crud/Lib/CrudControllerTrait.php(31): Controller->invokeAction(Object(CakeRequest))
#8 /data/srv/httpd/zoneminder/api/lib/Cake/Routing/Dispatcher.php(193): AppController->invokeAction(Object(CakeRequest))
#9 /data/srv/httpd/zoneminder/api/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(PagesController), Object(CakeRequest))
#10 /data/srv/httpd/zoneminder/api/app/webroot/index.php(108): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#11 /data/srv/httpd/zoneminder/api/index.php(41): require('/data/srv/httpd...')
#12 {main}
Is this an unexpected error?

Also, visiting /zm/api/host/getVersion.json from the browser returns a blank page. :(
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: No live/events with LinHes

Post by bbunge »

Looking at the WIKI for Zoneminder on Arch Linux you should use http://localhost/zoneminder to get to the web gui. As things are slow I will download and install LinHES to give it a try. May take me a while to get up to speed on a "new" distro...
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: No live/events with LinHes

Post by bbunge »

I gave it a try but did not succeed. I suspect that the Lighttpd cgi is not set up right for Zoneminder.
Additionally I had to fix the MySQL config:

In the [mysqld] section add the following

init_connect = 'SET @@sql_mode = CASE CURRENT_USER() WHEN \'zmuser@localhost\' THEN \'NO_ENGINE_SUBSTITUTION\' ELSE @@sql_mode END;'

and

mysql -uroot -p -e "grant all on zm.* to 'zmuser'@localhost identified by 'zmpass';"

Seems to be recording events but I can't see them...
Locked