Page 1 of 1

Fresh install v1.33.16

Posted: Tue Jan 14, 2020 3:35 pm
by factor200x
Good afternoon, everyone,

i have done a fresh installation of zoneminder .1.33.16 on a Debian 10. I performed the installation as described in ... pro_Master

as described. So far everything works but I can't get the API to work. If I call this via

curl -XPOST -d "user=admin&pass=PASSWORD" http://video.intern/zm/api/host/login.json

I find the following error in the apache log:

Code: Select all

[Tue Jan 14 16:19:52.776374 2020] [php7:error] [pid 1045] [client] PHP Fatal error:  Uncaught Error: Call to undefined function apc_fetch() in /usr/share/zoneminder/www/api/lib/Cake/Cache/Engine/ApcEngine.php:91\nStack trace:\n#0 /usr/share/zoneminder/www/api/lib/Cake/Cache/Cache.php(363): ApcEngine->read('myapp_cake_core...')\n#1 /usr/share/zoneminder/www/api/lib/Cake/I18n/I18n.php(235): Cache::read('cake_dev_eng', '_cake_core_')\n#2 /usr/share/zoneminder/www/api/lib/Cake/basics.php(636): I18n::translate('Cache engine "%...', NULL, 'cake_dev')\n#3 /usr/share/zoneminder/www/api/lib/Cake/Cache/Cache.php(182): __d('cake_dev', 'Cache engine "%...', '_cake_core_')\n#4 /usr/share/zoneminder/www/api/lib/Cake/Cache/Cache.php(151): Cache::_buildEngine('_cake_core_')\n#5 /usr/share/zoneminder/www/api/app/Config/core.php(375): Cache::config('_cake_core_', Array)\n#6 /usr/share/zoneminder/www/api/lib/Cake/Core/Configure.php(72): include('/usr/share/zone...')\n#7 /usr/share/zoneminder/www/api/lib/Cake/bootstrap.php(442): Configure::bootstrap(true)\n#8 /usr/share/zoneminder/www/api/app/webroot/index.php(90): includ in /usr/share/zoneminder/www/api/lib/Cake/Cache/Engine/ApcEngine.php on line 91
During my search I found hints that the packages php-apcu php-apcu-bc still need to be installed but they were already installed.

Installed versions:

Zonminder v1.33.16
Apache/2.4.38 (Debian)
PHP Version 7.3.11-1~deb10u1

I have been looking for a solution for hours now and all approaches have not brought about any change. I would be very grateful for help!


Re: Fresh install v1.33.16

Posted: Tue Jan 14, 2020 7:33 pm
by bbunge
Did you enable the api for the user?

Edit Just set up Zmninja on a fresh pi3 zm installed from the same wiki article. The api works for me.

Re: Fresh install v1.33.16

Posted: Thu Jan 16, 2020 12:07 am
by iconnor
I suspect that the apc packages might be for php 7.2 or other instead of 7.3

Re: Fresh install v1.33.16

Posted: Thu Jan 16, 2020 1:10 pm
by factor200x

Yes, I have activated the API


that would be one possibility. I'll try PHP 7.

Thanks to all!

Re: Fresh install v1.33.16

Posted: Sat Feb 01, 2020 10:31 am
by factor200x
Hello everybody,

I have reinstalled the whole system and now it works!