librenms@server01:~$ git pull && ./daily.sh
Bereits aktuell.
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
Caching Mac OUI data OK
Sorry for editing, i struggled with preformatted text
The only way for it to return a float is if you set your session lifetime to a float. I wonder what is going on. If anyone else is seeing this error, please chime in. Looks like a one off issue to me.
I am having the same error, it just started today. I didnât try the "manually set the session lifetime back to 120 " as I donât know where or how to do that
Any help getting this going again would be great. I have tried the git pull and ./daily.sh to see if that would help, nothing. Also validate has no errors as well
2021-11-13 20:05:34] production.ERROR: Return value of GeneaLabs\LaravelCaffeine\Dripper::getAgeThresholdAttribute() must be of the type int, float returned {âuserIdâ:1,âexceptionâ:"[object] (TypeError(code: 0): Return value of GeneaLabs\LaravelCaffeine\Dripper::getAgeThresholdAttribute() must be of the type int, float returned at /opt/librenms/vendor/genealabs/laravel-caffeine/src/Dripper.php:28)
[stacktrace] #0 /opt/librenms/vendor/jenssegers/model/src/Model.php(619): GeneaLabs\LaravelCaffeine\Dripper->getAgeThresholdAttribute(NULL) #1 /opt/librenms/vendor/jenssegers/model/src/Model.php(573): Jenssegers\Model\Model->mutateAttribute(âageThresholdâ, NULL) #2 /opt/librenms/vendor/jenssegers/model/src/Model.php(556): Jenssegers\Model\Model->getAttributeValue(âageThresholdâ) #3 /opt/librenms/vendor/jenssegers/model/src/Model.php(845): Jenssegers\Model\Model->getAttribute(âageThresholdâ) #4 /opt/librenms/vendor/genealabs/laravel-caffeine/src/Dripper.php(12): Jenssegers\Model\Model->__get(âageThresholdâ) #5 /opt/librenms/vendor/jenssegers/model/src/Model.php(619): GeneaLabs\LaravelCaffeine\Dripper->getHtmlAttribute(NULL) #6 /opt/librenms/vendor/jenssegers/model/src/Model.php(573): Jenssegers\Model\Model->mutateAttribute(âhtmlâ, NULL) #7 /opt/librenms/vendor/jenssegers/model/src/Model.php(556): Jenssegers\Model\Model->getAttributeValue(âhtmlâ) #8 /opt/librenms/vendor/jenssegers/model/src/Model.php(845): Jenssegers\Model\Model->getAttribute(âhtmlâ) #9 /opt/librenms/vendor/genealabs/laravel-caffeine/src/Http/Middleware/LaravelCaffeineDripMiddleware.php(45): Jenssegers\Model\Model->__get(âhtmlâ) #10 /opt/librenms/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): GeneaLabs\LaravelCaffeine\Http\Middleware\LaravelCaffeineDripMiddleware->handle(Object(Illuminate\Http\Request), Object(Closure)) #11 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #12 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure)) #13 /opt/librenms/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure)) #14 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #15 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure)) #16 /opt/librenms/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure)) #17 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #18 /opt/librenms/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure)) #19 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #20 /opt/librenms/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure)) #21 /opt/librenms/vendor/fruitcake/laravel-cors/src/HandleCors.php(38): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #22 /opt/librenms/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Fruitcake\Cors\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure)) #23 /opt/librenms/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #24 /opt/librenms/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure)) #25 /opt/librenms/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #26 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(141): Illuminate\Pipeline\Pipeline->then(Object(Closure)) #27 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(110): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request)) #28 /opt/librenms/html/index.php(52): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request)) #29 {main}
"}
/opt/librenms/discovery.php new 2021-11-13 20:10:02 - 0 devices discovered in 0.013 secs
/opt/librenms/poller.php 5 2021-11-13 20:10:10 - 1 devices polled in 5.608 secs
/opt/librenms/poller.php 4 2021-11-13 20:10:10 - 1 devices polled in 5.533 secs
/opt/librenms/poller.php 17 2021-11-13 20:10:11 - 1 devices polled in 5.820 secs
/opt/librenms/poller.php 14 2021-11-13 20:10:11 - 1 devices polled in 5.815 secs
/opt/librenms/poller.php 3 2021-11-13 20:10:11 - 1 devices polled in 5.787 secs
/opt/librenms/poller.php 1 2021-11-13 20:10:11 - 1 devices polled in 6.343 secs
/opt/librenms/poller.php 15 2021-11-13 20:10:11 - 1 devices polled in 6.149 secs
/opt/librenms/poller.php 2 2021-11-13 20:10:11 - 1 devices polled in 6.188 secs
/opt/librenms/poller.php 16 2021-11-13 20:10:13 - 1 devices polled in 8.250 secs
/opt/librenms/poller.php 7 2021-11-13 20:10:16 - 1 devices polled in 11.48 secs
/opt/librenms/poller.php 6 2021-11-13 20:10:17 - 1 devices polled in 12.02 secs
The librenms is running on rasbian with the latest stable as far as I know.
So, what should I do? I think daily.sh runs by it self every now and then as well.
Same here. .validate and .daily working but GUI down. On an up-to date Rasberry Pi OS (Buster). Pollers still collecting data without issue since RRD graphs can be viewed outside of the LibreNMS GUI.
Another voice to the choir; LibreNMS stopped working overnight.
A little digging suggests the problem is that the default value of session.lifetime is 43800, which is getting multiplied by 60000 in the Dipper code, putting it outside the bounds of an integer.
It looks like one side or the other has changed the interpretation of that value from seconds to minutes, or vice versa. Iâve not dug through the revision history to figure out which one it is.
A quick fix seems to be setting SESSION_LIFETIME in your .env file to something that Dripper accepts, like its default value of 32.
Same problem at my side
Librenms worked like a charm until yesterday (13/11) morning on a Raspberry.
Error in librenms.log
[2021-11-14 15:17:13] production.ERROR: Return value of GeneaLabs\LaravelCaffeine\Dripper::getAgeThresholdAttribute() must be of the type int, float returned {âexceptionâ:"[object] (TypeError(code: 0): Return value of GeneaLabs\LaravelCaffeine\Dripper::getAgeThresholdAttribute() must be of the type int, float returned at /opt/librenms/vendor/genealabs/laravel-caffeine/src/Dripper.php:28)
validate is Ok, daily works, poller works but is GUI down!