Page 1 of 1

Missing package dependency

Posted: Mon Feb 21, 2022 11:54 pm
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!

Re: Missing package dependency

Posted: Wed Feb 23, 2022 5:58 pm
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.

Re: Missing package dependency

Posted: Tue Dec 20, 2022 2:58 am
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....

Re: Missing package dependency

Posted: Wed Dec 21, 2022 9:28 pm
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