Suddenly errors?

After running LibreNMS for years without any issue I suddenly having problems when clicking between the hosts. We didn’t install any new plugin or anything, it really just stopped working.

bash-4.2$ git pull
Already up-to-date.
bash-4.2$ ./validate.php

Component Version
LibreNMS 1.68-37-g90483b8
DB Schema 2020_09_24_000500_create_cache_locks_table (176)
PHP 7.3.23
Python 3.6.8
MySQL 5.5.65-MariaDB
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2
====================================

[OK] Composer Version: 1.10.13
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
bash-4.2$ ./daily.sh
Updating to latest codebase OK
Updating Composer packages OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
bash-4.2$

The error I get at librenms.log is:

[2020-10-09 14:24:30] production.ERROR: unserialize(): Error at offset 65535 of 65535 bytes (View: /opt/librenms/resources/views/layouts/librenmsv1.blade.php) (View: /opt/librenms/resources/views/layouts/librenmsv1.blade.php) {“userId”:1,“exception”:"[object] (ErrorException(code: 0): unserialize(): Error at offset 65535 of 65535 bytes (View: /opt/librenms/resources/views/layouts/librenmsv1.blade.php) (View: /opt/librenms/resources/views/layouts/librenmsv1.blade.php) at /opt/librenms/vendor/laravel/framework/src/Illuminate/Cache/DatabaseStore.php:375)
[stacktrace]
#0 /opt/librenms/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(43): Illuminate\View\Engines\CompilerEngine->handleViewException(Object(ErrorException), 1)
#1 /opt/librenms/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(57): Illuminate\View\Engines\PhpEngine->evaluatePath(‘/opt/librenms/s…’, Array)
#2 /opt/librenms/vendor/laravel/framework/src/Illuminate/View/View.php(139): Illuminate\View\Engines\CompilerEngine->get(‘/opt/librenms/r…’, Array)
#3 /opt/librenms/vendor/laravel/framework/src/Illuminate/View/View.php(122): Illuminate\View\View->getContents()
#4 /opt/librenms/vendor/laravel/framework/src/Illuminate/View/View.php(91): Illuminate\View\View->renderContents()
#5 /opt/librenms/vendor/laravel/framework/src/Illuminate/Http/Response.php(62): Illuminate\View\View->render()

[previous exception] [object] (ErrorException(code: 0): unserialize(): Error at offset 65535 of 65535 bytes at /opt/librenms/vendor/laravel/framework/src/Illuminate/Cache/DatabaseStore.php:375)
[stacktrace]
#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8, ‘unserialize(): …’, ‘/opt/librenms/v…’, 375, Array)
#1 /opt/librenms/vendor/laravel/framework/src/Illuminate/Cache/DatabaseStore.php(375): unserialize(‘O:39:"Illuminat…’)
#2 /opt/librenms/vendor/laravel/framework/src/Illuminate/Cache/DatabaseStore.php(107): Illuminate\Cache\DatabaseStore->unserialize(‘O:39:"Illuminat…’)
#3 /opt/librenms/vendor/laravel/framework/src/Illuminate/Cache/Repository.php(97): Illuminate\Cache\DatabaseStore->get(‘ObjectCache:app…’)
#4 /opt/librenms/vendor/laravel/framework/src/Illuminate/Cache/Repository.php(374): Illuminate\Cache\Repository->get(‘ObjectCache:app…’)

Does anyone have any idea?

When I refresh the page 4 - 5 times, it suddenly shows and the next refresh it is gone.

thanks,

Desmond

Just did an update to php74, still same issue…

I found something weird… when I log in I see 1 page, when I click any second page, no matter which, I get the Whoops notice.

I can refresh the page 20 times without any luck. When I wait for like several minutes and than refresh, the page loads. When I click another one, again the whoops notice. Wait for 2 minutes, refresh and the page loads…

After many days I found a workaround…

In file:
/opt/librenms/storage/framework/views/cde89dba324d4a09ffd2ec12c13984db9181ee04.php

I commented out line 404:

<?php //if($app_menu->isNotEmpty()): ?>

And now my LibreNMS is working again untill daily updates…

So need to write a bash script for this…

Still having the error, need to change the file every day even after migrating to another clean server.