I received an email that Libre auto update failed this morning. Here’s the email:
We just attempted to update your install but failed. The information below
should help you fix this.
LibreNMS\ComposerHelper::preInstall
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Package operations: 2 installs, 0 updates, 0 removals
Failed to download phpstan/phpstan from dist: The zip extension and
unzip command are both missing, skipping.
Your command-line PHP is using multiple ini files. Runphp --ini
to show
them.
Now trying to download from source
Failed to download phpstan/phpstan-mockery from dist: The zip extension
and unzip command are both missing, skipping.
Your command-line PHP is using multiple ini files. Runphp --ini
to show
them.
Now trying to download from source
0 [>---------------------------] 0 [>---------------------------]
0 [>---------------------------] - Installing phpstan/phpstan (0.12.83):
Cloning 4a967cec6e
Install of phpstan/phpstan failed
- Installing phpstan/phpstan-mockery (0.12.13): Cloning a45fee47fe
0 [>---------------------------] 0 [>---------------------------]
0 [>---------------------------]
Here’s the output when I run validate command. I ran the command seen under FIX but it still comes back as failed.
-bash-4.2$ Component | Version
-bash: Version: command not found
PHP | 7.4.11
Python | 3.6.8
MySQL | ?
RRDTool | 1.4.8
SNMP | NET-SNMP 5.7.2
[OK] Composer Version: 2.0.12
[FAIL] Missing dependencies!
[FIX]:
/opt/librenms/scripts/composer_wrapper.php install --no-dev
Dependencies:
phpstan/phpstan
I’m new to our Libre and could really use some assistance in resolving this issue. I don’t even know where to start.
Thank you.