Missing package dependency

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
narad
Posts: 3
Joined: Thu Sep 19, 2019 5:35 pm

Missing package dependency

Post by narad »

Tested on Fedora 35, Zoneminder 1.36.12 - ZM API requires the following to work:

Code: Select all

dnf install php-pecl-apcu
systemctl restart zoneminder.service
I did a fresh install (twice :-( ) and the issue reproduces.

I tested the APIs with the usual
https://myhost/zm/api/host/getVersion.json

This dependency should probably be added to the package.
Thank you!
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Missing package dependency

Post by knight-of-ni »

Negative.

Cakephp 2.x uses the old, compatability version of apcu, which is found in php-pecl-apcu-bc. That package was deprecated in Fedora.

Consequently, ZoneMinder on Fedora was switched to use memcached rather than apc:
https://github.com/ZoneMinder/zoneminde ... a16edee23a

Verify line 26 of your web/api/app/Config/bootstrap.php file shows a cache engine of "Memcached" and not "Apc".
It does on my Fedora 35 system.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
jsg001
Posts: 1
Joined: Tue Dec 20, 2022 2:37 am

Re: Missing package dependency

Post by jsg001 »

FYI....

The zoneminder packages on rpmfusion-free-updates for Fedora 37 (1.36.32-1.fc37) does _not_ include this patch.

After debugging, I installed php-pecl-apcu before finding this thread.

I installed following the guide at https://zoneminder.readthedocs.io/en/st ... index.html, but maybe I missed something....
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Missing package dependency

Post by knight-of-ni »

This has been a bit of moving target. There was a time where we had to use memcached on Fedora, but that is no longer the case.
Indeed a new problem arose with memcached. However, php caching appears to be working with php Apc on Fedora, without the deprecated backwards compatibility subpackage that is no longer available.

Thus, the zoneminder package on Fedora is now using Apc:
https://github.com/ZoneMinder/zoneminde ... 5ae70c6831
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
Post Reply