Validate.php: Please install memcached (but it is installed, and enabled)

Hello,

I recently upgraded PHP to 8.1 on my Ubuntu 20.04 Libre deployment (which is currently using 6 distributed pollers, FYI).

After running validate.php on the main node, I see the following:

~$ ./validate.php
===========================================
Component | Version
--------- | -------
LibreNMS  | 22.9.0-34-ge4fdbbd82 (2022-10-03T10:55:49-07:00)
DB Schema | 2022_09_03_091314_update_ports_adsl_table_with_defaults (246)
PHP       | 8.1.11
Python    | 3.8.10
Database  | MariaDB 10.3.34-MariaDB-0ubuntu0.20.04.1
RRDTool   | 1.7.2
SNMP      | 5.8
===========================================

[OK]    Composer Version: 2.4.2
[OK]    Dependencies up-to-date.
[FAIL]  APP_KEY does not match key used to encrypt data. APP_KEY must be the same on all nodes.
        [FIX]:
        If you rotated APP_KEY, run lnms key:rotate to resolve.
[OK]    Database connection successful
[OK]    Database Schema is current
[OK]    SQL Server meets minimum requirements
[OK]    lower_case_table_names is enabled
[OK]    MySQL engine is optimal
[OK]
[OK]    Database schema correct
[OK]    MySQl and PHP time match
[OK]    Distributed Polling setting is enabled globally
[OK]    Connected to rrdcached
[FAIL]  Missing PHP extension: memcached
        [FIX]:
        Please install memcached
[OK]    Active pollers found
[OK]    Dispatcher Service is enabled
[OK]    Locks are functional
[OK]    Python wrapper cron entry is not present
[OK]    Redis is functional
[OK]    rrdtool version ok
[OK]    Connected to rrdcached

However, if I look at phpinfo(), I see the older memcache and newer memcached listed:

I have the following memcached packages installed:

$ sudo apt list --installed | grep memcache

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libmemcached-tools/focal,now 1.0.18-4.2ubuntu2 amd64 [installed]
libmemcached11/focal,now 1.0.18-4.2ubuntu2 amd64 [installed,automatic]
libmemcachedutil2/focal,now 1.0.18-4.2ubuntu2 amd64 [installed,automatic]
memcached/focal-updates,now 1.5.22-2ubuntu0.2 amd64 [installed]
php-memcached/focal,now 3.2.0+2.2.0-1+ubuntu20.04.1+deb.sury.org+1 amd64 [installed]
php8.1-memcache/focal,now 8.0+4.0.5.2+3.0.9~20170802.e702b5f9+-7+ubuntu20.04.1+deb.sury.org+10 amd64 [installed]
php8.1-memcached/focal,now 3.2.0+2.2.0-1+ubuntu20.04.1+deb.sury.org+1 amd64 [installed]

(Also, I’m not sure what’s up with APP_KEY message from validate.php - I haven’t looked into that yet).

Thanks,
David

i encountered this issue before. issue resolved after installing php-memache or php-memcahed.
cannot recall which one from above

regarding APP-KEY

APP-KEY value in .env file of all pollers should be same

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.