Hi y’all,
Noticed my main Libre host updated to php 8.0 (Ubuntu 18.04.5 LTS), PHP 8.0.1 (cli).
Getting the following errors that make it appear LibreNMS doesn’t support php 8.0, couldn’t find anything on Google, can anyone confirm?
Everything seems to “work”, just errors in the Validate section of the Web UI and ./validate.php output here:
Updating to latest codebase OK
Updating Composer packages FAIL
> LibreNMS\ComposerHelper::preInstall
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.
Problem 1
- Root composer.json requires php ^7.3 but your php version (8.0.1) does not satisfy that requirement.
Problem 2
- darkghosthunter/larapoke is locked to version dev-master and an update of this package was not requested.
- darkghosthunter/larapoke dev-master requires php ^7.2 -> your php version (8.0.1) does not satisfy that requirement.
Problem 3
- darkghosthunter/larapoke dev-master requires php ^7.2 -> your php version (8.0.1) does not satisfy that requirement.
- darkghosthunter/larapoke is locked to version dev-master and an update of this package was not requested.
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
Output of attempting composer update
:
librenms@libre ~ % composer update
Deprecation Notice: Required parameter $path follows optional parameter $schema in /usr/share/php/JsonSchema/Constraints/UndefinedConstraint.php:62
Deprecation Notice: Required parameter $path follows optional parameter $schema in /usr/share/php/JsonSchema/Constraints/UndefinedConstraint.php:108
Deprecation Notice: Method ReflectionParameter::getClass() is deprecated in /usr/share/php/Composer/Repository/RepositoryManager.php:129
Deprecation Notice: Method ReflectionParameter::getClass() is deprecated in /usr/share/php/Composer/Repository/RepositoryManager.php:129
In ArrayLoader.php line 44:
Unknown package has no name defined ([{"name":"amenadiel\/jpgraph"
And finally the Web UI validate:
Fail: PHP version of your webserver (7.4.14) does not match the cli version (8.0.1)
Fix:`If you updated PHP recently, restart php-fpm or apache to switch to the new version`