500 error on Web, errors in validate.php

This morning after an extended power outage, I brought up LibreNMS only to discover it is returning a 500 error (so who knows what else on my network is down :slight_smile: ).

Here is the output from validate.php:

PHP Fatal error: Uncaught TypeError: Argument 1 passed to Illuminate\Config\Repository::__construct() must be of the type array, int given, called in /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php on line 36 and defined in /opt/librenms/vendor/laravel/framework/src/Illuminate/Config/Repository.php:24
Stack trace:
#0 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php(36): Illuminate\Config\Repository->__construct(1)
#1 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(230): Illuminate\Foundation\Bootstrap\LoadConfiguration->bootstrap(Object(App\Application))
#2 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(310): Illuminate\Foundation\Application->bootstrapWith(Array)
#3 /opt/librenms/LibreNMS/Util/Laravel.php(46): Illuminate\Foundation\Console\Kernel->bootstrap()
#4 /opt/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#5 /opt/librenms/validate.php( in /opt/librenms/vendor/laravel/framework/src/Illuminate/Config/Repository.php on line 24

Component Version
LibreNMS 1.70.0
DB Schema Not Connected (0)
PHP 7.3.20
Python 3.6.8
MySQL ?
RRDTool 1.7.0
SNMP NET-SNMP 5.8
OpenSSL
====================================

[OK] Composer Version: 2.0.7
[OK] Dependencies up-to-date.

The Fatal error repeats itself again here. Where can I start troubleshooting this error?

1 Like

Some non-librenms sites suggest deleting anything in bootstrap/cache. I renamed them and tried again. Now Validate shows this:

In ProviderRepository.php line 208:

  Class 'Fideloper\Proxy\TrustedProxyServiceProvider' not found


PHP Fatal error:  Uncaught ErrorException: Undefined index: openssl_ver in /opt/librenms/validate.php:167
Stack trace:
#0 /opt/librenms/validate.php(167): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8, 'Undefined index...', '/opt/librenms/v...', 167, Array)
#1 /opt/librenms/validate.php(84): print_header(Array)
#2 [internal function]: {closure}()
#3 {main}
  thrown in /opt/librenms/validate.php on line 167

Getting closer (I think). I did this:

rm -rf /opt/librenms/vendor
./scripts/composer_wrapper.php install --no-dev
./validate.php

====================================

Component Version
LibreNMS 1.70.1
DB Schema 2020_10_21_124101_allow_nullable_ospf_columns (188)
PHP 7.3.20
Python 3.6.8
MySQL 10.3.17-MariaDB
RRDTool 1.7.0
SNMP NET-SNMP 5.8
OpenSSL
====================================

[OK] Composer Version: 2.0.7
[OK] Dependencies up-to-date.
[OK] Database connection successful
[FAIL] Your database is out of date!
[FIX]:
./lnms migrate
[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX]:
You can fix this with ./scripts/github-remove
Modified Files:
composer.lock

Followed the suggested fixes:

./lnms migrate
./scripts/github-remove -d

Web interface now shows and now I’ll wait for poller to catch up!

1 Like