Composer Requires Already Installed Extensions

A couple of days ago, my Libre installation stopped allowing access via the web interface. I get the following error when navigating to the interface:

“Composer detected issues in your platform: Your Composer dependencies require the following PHP extensions to be installed: curl, dom, gd, simplexml, xml.”

I have attempted to reinstall each of those extensions, but am told that it is already installed and at the most current version. It appears that Libre is still functioning just fine, as we are getting email alerts for our network devices. We simply can’t access the web interface to monitor things live. Any information you can give me would be much appreciated, as we very much need to monitor several problematic nodes at the moment.

Browser: Chrome v115.0.5790.102

$ ./validate.php

Component Version
LibreNMS 23.7.0-23-ga69d50e96 (2023-07-25T11:09:34-06:00)
DB Schema 2023_06_02_230406_create_vendor_oui_table (253)
PHP 8.2.8
Python 3.8.10
Database MariaDB 10.3.38-MariaDB-0ubuntu0.20.04.1
RRDTool 1.7.2
SNMP 5.8
===========================================

[OK] Composer Version: 2.5.8
[OK] Dependencies up-to-date.
[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] Database and column collations are correct
[OK] Database schema correct
[OK] MySQl and PHP time match
[OK] Active pollers found
[OK] Dispatcher Service not detected
[OK] Locks are functional
[FAIL] Some poller nodes have not checked in recently
Inactive Nodes:
librenms-2
[OK] Redis is unavailable
[OK] rrdtool version ok
[OK] Connected to rrdcached

I have determined that the FPM and CLI version of PHP are different. I am running PHP8.2.8 for CLI and PHP8.1.21 for FPM. My question now, is how to revert back to 8.1.21 for the CLI. I ran some updates on this server not long ago, and I’m assuming that is when this happened. Please let me know if there is any further information that one of you might have. Thanks.

EDIT: I was able to force transition from 8.1 to 8.2 moving the librenms.conf file from /etc/php/8.1/fpm/pool.d to /etc/php/8.2/fpm/pool.d. Then I ran daily.sh as user librenms and restarted the server. Everything is working as intended now.

1 Like

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