When I attempted to log into the webserver on September 30th at 09:30 AM. LibreNMS showed me the following error.
Whoops, looks like something went wrong. Check your librenms.log.
I ran the validate script and got the following output.
===========================================
Component | Version
--------- | -------
LibreNMS | 24.9.1-1-gdbfb0a6 (2024-09-29T20:18:17-04:00)
DB Schema | 2024_03_27_123152_create_transceivers_table (300)
PHP | 8.1.28
Python | 3.6.8
Database | MariaDB 10.4.18-MariaDB-log
RRDTool | 1.4.8
SNMP | 5.7.2
===========================================
[OK] Composer Version: 2.1.6
[OK] Dependencies up-to-date.
[OK] Database connection successful
[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
[WARN] PHP version 8.2 is the minimum supported version as of October, 2024. We recommend you update PHP to a supported version (8.3 suggested) to continue to receive updates. If you do not update PHP, LibreNMS will continue to function but stop receiving bug fixes and updates.
[FAIL] Poller is not running. No poller has run within the last 300 seconds.
[OK] Dispatcher Service not detected
[OK] Locks are functional
[FAIL] No active python wrapper pollers found
[OK] Redis is unavailable
[WARN] IPv6 is disabled on your server, you will not be able to add IPv6 devices.
[OK] rrdtool version ok
[OK] Connected to rrdcached
GuzzleHttp\Exception\RequestException
cURL error 60: Peer's Certificate issuer is not recognized. (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://api.github.com/repos/librenms/librenms/commits/master
at vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:276
272▕
273▕ // Create a connection exception if it was a specific error code.
274▕ $error = isset($connectionErrors[$easy->errno])
275▕ ? new ConnectException($message, $easy->request, null, $ctx)
➜ 276▕ : new RequestException($message, $easy->request, $easy->response, null, $ctx);
277▕
278▕ return P\Create::rejectionFor($error);
279▕ }
280▕
+21 vendor frames
22 LibreNMS/Util/Git.php:199
Illuminate\Http\Client\PendingRequest::get("https://api.github.com/repos/librenms/librenms/commits/master")
23 LibreNMS/Traits/RuntimeClassCache.php:58
LibreNMS\Util\Git::LibreNMS\Util\{closure}()
The librenms.log shows the following error. The error is much longer than this but I think this should be enough.
Route [vlans.index] not defined. {"view":{"view":"/data/librenms/resources/views/layouts/menu.blade.php","data":{"errors":"<pre class=sf-dump id=sf-dump-840893591 data-indent-pad=\" \"><span class=sf-dump-note>Illuminate\\Support\\ViewErrorBag</span> {<a class=sf-dump-ref>#1404</a><samp data-depth=1 class=sf-dump-expanded>
#<span class=sf-dump-protected title=\"Protected property\">bags</span>: []
</samp>}
Not sure where to go from here
Did you run daily.sh to update ?
Yes. Here is what I get when I run daily.sh.
[librenms@librenms-0001 ~]$ ./daily.sh
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
- laravel/framework is locked to version v10.48.18 and an update of this package was not requested.
- laravel/framework v10.48.18 requires composer-runtime-api ^2.2 -> found composer-runtime-api[2.1.0] but it does not match the constraint.
Problem 2
- laravel/framework v10.48.18 requires composer-runtime-api ^2.2 -> found composer-runtime-api[2.1.0] but it does not match the constraint.
- tightenco/ziggy v1.8.2 requires laravel/framework >=5.4@dev -> satisfiable by laravel/framework[v10.48.18].
- tightenco/ziggy is locked to version v1.8.2 and an update of this package was not requested.
Updated from dbfb0a6 to bb944b9 OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
"}},"userId":9,"exception":"[object] (Spatie\\LaravelIgnition\\Exceptions\\ViewException(code: 0): Route [vlans.index] not defined. at /data/librenms/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php:477)
[previous exception] [object] (Symfony\\Component\\Routing\\Exception\\RouteNotFoundException(code: 0): Route [vlans.index] not defined. at /data/librenms/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php:477)"}
This has been resolved. I had to run a composer install to update the enshrined component.
[librenms@librenms-0001 ~]$ composer install
> LibreNMS\ComposerHelper::preInstall
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 1 install, 1 update, 0 removals
- Downloading enshrined/svg-sanitize (0.20.0)
0/1 [>---------------------------] 0% Failed to download enshrined/svg-sanitize from dist: curl error 60 while downloading https://api.github.com/repos/darylldoyle/svg-sanitizer/zipball/068d9fcf912c88a0471d101d95a2caa87c50aee7: Peer's Certificate issuer is not recognized.
Now trying to download from source
- Installing enshrined/svg-sanitize (0.20.0): Cloning 068d9fcf91
- Downgrading paragonie/sodium_compat (v2.0.1 => v1.21.1): Checking out bb312875dc
Package influxdb/influxdb-php is abandoned, you should avoid using it. No replacement was suggested.
Package web-token/jwt-key-mgmt is abandoned, you should avoid using it. Use web-token/jwt-library instead.
Package web-token/jwt-signature is abandoned, you should avoid using it. Use web-token/jwt-library instead.
Package web-token/jwt-signature-algorithm-ecdsa is abandoned, you should avoid using it. Use web-token/jwt-library instead.
Package web-token/jwt-util-ecc is abandoned, you should avoid using it. Use web-token/jwt-library instead.
Generating optimized autoload files
Warning: Ambiguous class resolution, "League\Flysystem\Local\FallbackMimeTypeDetector" was found in both "/data/librenms/vendor/league/flysystem-local/FallbackMimeTypeDetector.php" and "/data/librenms/vendor/league/flysystem/src/Local/FallbackMimeTypeDetector.php", the first will be used.
Warning: Ambiguous class resolution, "League\Flysystem\Local\LocalFilesystemAdapter" was found in both "/data/librenms/vendor/league/flysystem-local/LocalFilesystemAdapter.php" and "/data/librenms/vendor/league/flysystem/src/Local/LocalFilesystemAdapter.php", the first will be used.
Warning: Ambiguous class resolution, "League\Flysystem\Local\LocalFilesystemAdapterTest" was found in both "/data/librenms/vendor/league/flysystem-local/LocalFilesystemAdapterTest.php" and "/data/librenms/vendor/league/flysystem/src/Local/LocalFilesystemAdapterTest.php", the first will be used.
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
INFO Discovering packages.
barryvdh/laravel-debugbar ................................................................................................................... DONE
barryvdh/laravel-ide-helper ................................................................................................................. DONE
laravel-notification-channels/webpush ....................................................................................................... DONE
laravel/dusk ................................................................................................................................ DONE
laravel/socialite ........................................................................................................................... DONE
laravel/tinker .............................................................................................................................. DONE
laravel/ui .................................................................................................................................. DONE
librenms/laravel-vue-i18n-generator ......................................................................................................... DONE
mews/purifier ............................................................................................................................... DONE
nesbot/carbon ............................................................................................................................... DONE
nunomaduro/collision ........................................................................................................................ DONE
nunomaduro/termwind ......................................................................................................................... DONE
silber/bouncer .............................................................................................................................. DONE
spatie/laravel-ignition ..................................................................................................................... DONE
tightenco/ziggy ............................................................................................................................. DONE
132 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> LibreNMS\ComposerHelper::postInstall
> Illuminate\Foundation\ComposerScripts::postInstall
> @php artisan vue-i18n:generate --multi-locales --format=umd
> @php artisan view:cache
INFO Blade templates cached successfully.
> @php artisan optimize
INFO Caching the framework bootstrap files.
config ................................................................................................................................. 54ms DONE
routes ................................................................................................................................. 65ms DONE
> @php artisan config:clear
INFO Configuration cache cleared successfully.
> scripts/dynamic_check_requirements.py || pip3 install --user -r requirements.txt || :