Ubuntu 17.04 with Zoneminder 1.30.2

Forum for questions and support relating to the 1.30.x releases only.
Locked
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Ubuntu 17.04 with Zoneminder 1.30.2

Post by bbunge »

Zoneminder for Ubuntu 17.04 is now on the PPA!

Use the same instructions as Ubuntu 16.04:

https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Ubuntu 17.04 with Zoneminder 1.30.2

Post by bbunge »

I discovered that the API does not work when you install Zoneminder 1.30.2 on Ubuntu 17.04.
The API does work on Zoneminder 1.30.0 on Ubuntu 17.04 and if you upgrade that to Zoneminder 1.30.2.

Now trying to figure out why...
Pyrotechnic
Posts: 4
Joined: Mon Apr 24, 2017 1:46 am

Re: Ubuntu 17.04 with Zoneminder 1.30.2

Post by Pyrotechnic »

Same here.

Fresh 17.04 install. ZM install via apt.

When accessing server/zm/api I get a 500 error.

Apache error log shows the following:

Code: Select all

[Mon Apr 24 02:35:51.922460 2017] [:error] [pid 27224] [client 192.168.0.13:42030] PHP Warning:  _cake_core_ cache was unable to write 'cake_dev_en-gb' to File cache in /usr/share/zoneminder/www/api/lib/Cake/Cache/Cache.php on line 327
[Mon Apr 24 02:35:51.922493 2017] [:error] [pid 27224] [client 192.168.0.13:42030] PHP Warning:  /usr/share/zoneminder/www/api/app/tmp/cache/persistent/ is not writable in /usr/share/zoneminder/www/api/lib/Cake/Cache/Engine/FileEngine.php on line 385
[Mon Apr 24 02:35:51.922528 2017] [:error] [pid 27224] [client 192.168.0.13:42030] PHP Fatal error:  Uncaught CacheException: Cache engine "_cake_core_" is not properly configured. Ensure required extensions are installed, and credentials/permissions are correct in /usr/share/zoneminder/www/api/lib/Cake/Cache/Cache.php:186\nStack trace:\n#0 /usr/share/zoneminder/www/api/lib/Cake/Cache/Cache.php(151): Cache::_buildEngine('_cake_core_')\n#1 /usr/share/zoneminder/www/api/app/Config/core.php(375): Cache::config('_cake_core_', Array)\n#2 /usr/share/zoneminder/www/api/lib/Cake/Core/Configure.php(72): include('/usr/share/zone...')\n#3 /usr/share/zoneminder/www/api/lib/Cake/bootstrap.php(431): Configure::bootstrap(true)\n#4 /usr/share/zoneminder/www/api/app/webroot/index.php(90): include('/usr/share/zone...')\n#5 {main}\n  thrown in /usr/share/zoneminder/www/api/lib/Cake/Cache/Cache.php on line 186
all the folders are 'drwxr-xr-x www-data' (no idea if that's correct...).

Since installing ZM I have changed the admin password from the default.

I've followed the instructions in this thread (manually creating /tmp/cache etc as they weren't there and chmodding) but web still gives 500 and ZMNinja (which prompted all this) still complains it can't find the api.
rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: Ubuntu 17.04 with Zoneminder 1.30.2

Post by rockedge »

something perhaps to do with thr URL rewrites involving the directory /usr/share/zoneminder/www/api and /usr/share/zoneminder/www/api/app there are important .htaccess files in both these directories that contain the rewrite rules. If these do not work the API will not work. At the moment I am working on getting the API to work running with a Hiawatha v10.5 server and have this problem of internal server errors using the API or can't find the directories. So maybe check if the mod rewrite is functioning. Hope this helps.
Locked