Errors after last update 8/11/26

Getting a internal server error on gui and this CLI:

[librenms@ns-power ~]$ ./daily.sh
In RestifyServiceProvider.php line 15:

Class “Binaryk\LaravelRestify\RestifyApplicationServiceProvider” not found

Updating SQL-Schema FAIL
In RestifyServiceProvider.php line 15:

Class “Binaryk\LaravelRestify\RestifyApplicationServiceProvider” not found

Cleaning up DB OK
In RestifyServiceProvider.php line 15:

Class “Binaryk\LaravelRestify\RestifyApplicationServiceProvider” not found

[librenms@ns-power ~]$ [librenms@ns-power ~]$ ./validate.php
PHP Fatal error: Uncaught ReflectionException: Class “librenms-config” does not exist in /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php:1122
Stack trace:
#0 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(1122): ReflectionClass->__construct()
#1 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(933): Illuminate\Container\Container->build()
#2 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(864): Illuminate\Container\Container->resolve()
#3 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(138): Illuminate\Container\Container->make()
#4 /opt/librenms/LibreNMS/Util/Version.php(51): app()
#5 /opt/librenms/validate.php(160): LibreNMS\Util\Version::get()
#6 /opt/librenms/validate.php(83): print_header()
#7 [internal function]: {closure}()
#8 {main}
Next Illuminate\Contracts\Container\BindingResolutionException: Target class [librenms-config] does not exist. in /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php:1124
Stack trace:
#0 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(933): Illuminate\Container\Container->build()
#1 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(864): Illuminate\Container\Container->resolve()
#2 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(138): Illuminate\Container\Container->make()
#3 /opt/librenms/LibreNMS/Util/Version.php(51): app()
#4 /opt/librenms/validate.php(160): LibreNMS\Util\Version::get()
#5 /opt/librenms/validate.php(83): print_header()
#6 [internal function]: {closure}()
#7 {main}
thrown in /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 1124
Fatal error: Uncaught ReflectionException: Class “librenms-config” does not exist in /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php:1122
Stack trace:
#0 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(1122): ReflectionClass->__construct()
#1 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(933): Illuminate\Container\Container->build()
#2 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(864): Illuminate\Container\Container->resolve()
#3 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(138): Illuminate\Container\Container->make()
#4 /opt/librenms/LibreNMS/Util/Version.php(51): app()
#5 /opt/librenms/validate.php(160): LibreNMS\Util\Version::get()
#6 /opt/librenms/validate.php(83): print_header()
#7 [internal function]: {closure}()
#8 {main}
Next Illuminate\Contracts\Container\BindingResolutionException: Target class [librenms-config] does not exist. in /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php:1124
Stack trace:
#0 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(933): Illuminate\Container\Container->build()
#1 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(864): Illuminate\Container\Container->resolve()
#2 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(138): Illuminate\Container\Container->make()
#3 /opt/librenms/LibreNMS/Util/Version.php(51): app()
#4 /opt/librenms/validate.php(160): LibreNMS\Util\Version::get()
#5 /opt/librenms/validate.php(83): print_header()
#6 [internal function]: {closure}()
#7 {main}
thrown in /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 1124

Ideas?

Did you manually update? Make sure you install new composer dependencies if you are manually updating…

./scripts/composer_wrapper.php install --no-dev

Boom! That fixed it!

Thank you for the fast reply!

Here is the complete doc of everything you need to do when manually updating:

We also got problems the 11th of August (on three servers that all run the daily.sh script at the same time).

Looking in ~/logs/daily.log I see the following:

Updating to latest codebase

Returned: 0
Updating Composer packages

LibreNMS\ComposerHelper::preInstall
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Package operations: 11 installs, 0 updates, 0 removals

Downloading spatie/laravel-package-tools (1.93.1)

Downloading spatie/php-structure-discoverer (2.3.2)

Downloading phpstan/phpdoc-parser (2.3.3)

Downloading phpdocumentor/reflection-common (2.2.0)

Downloading doctrine/deprecations (1.1.6)

Downloading phpdocumentor/type-resolver (2.0.0)

Downloading phpdocumentor/reflection-docblock (6.0.3)

Downloading spatie/laravel-data (4.23.0)

Downloading laravel/pint (v1.30.3)

Downloading binaryk/laravel-restify (9.11.3)

Downloading laravel/sanctum (v4.3.3)
0/11 [>---------------------------]   0%
3/11 [=======>--------------------]  27%
8/11 [====================>-------]  72%
9/11 [======================>-----]  81%
10/11 [=========================>--]  90%    Failed to download laravel/pint from dist: The
)
Source fallback is disabled. Not trying alternative sources.

11/11 [============================] 100%
In CurlDownloader.php line 686:

The "https://codeload.github.com/laravel/pint/legacy.zip/19ca6de4ce07869f61
f09863e37e81562ebc0a9b" file could not be downloaded (HTTP/2 429 )

HTTP Error 429 is “Too many requests”

Did codeload.github.com do some “Rate-limiting” that hit some (or many) of us LibreNMS users?

not updated manually, but that fixed it!
Thanks!

seems that caused the problem when automatic update in daily.sh executed on 11.8 night

To summarize what I said in the announcement. There was a bad commit that caused a situation where your install had ONE chance to update composer packages. If that failed for any reason, your install would stop updating due to a php failure from the missing package.

If you got unlucky, installing the composer packages manually is the best way to get unstuck.

The bad change has since been fixed so users will not get stuck even if they fail to install packages.

Tony Thank your for the quick fix, Much appreciated .