Hello Everyone,
Building my own LibreNMS+Oxidized install has been my attempt to clean some rust off some very old linux skills I haven’t flexed in many years. Its a learning exercise for me, but slugging through it has been extremely rewarding.
Once I got LibreNMS + Oxidized up and running, I was feeling pretty good. Then I wondered “how do I keep oxidized up to date” and read somewhere to run “gem update”. Anyways, that ran for a very long time and updated a whole bunch of stuff I don’t think I even had or needed and now both web interfaces are down and my validate.php looks like i’ve destroyed whatever I built.
Validate PHP and whatever I could copy from the gem update below
librenms@LibreNMS:~$ ./validate.php
PHP Fatal error: Uncaught ReflectionException: Class \LibreNMS\Validations\System does not exist in /opt/librenms/LibreNMS/Validator.php:52
Stack trace:
#0 /opt/librenms/LibreNMS/Validator.php(52): ReflectionClass->__construct()
#1 /opt/librenms/validate.php(111): LibreNMS\Validator->__construct()
#2 {main}
thrown in /opt/librenms/LibreNMS/Validator.php on line 52
PHP Fatal error: Uncaught Error: Class 'Illuminate\Support\Str' not found in /opt/librenms/LibreNMS/Config.php:128
Stack trace:
#0 /opt/librenms/LibreNMS/Util/Git.php(33): LibreNMS\Config::get()
#1 /opt/librenms/LibreNMS/Util/Version.php(39): LibreNMS\Util\Git::repoPresent()
#2 /opt/librenms/LibreNMS/Util/Version.php(44): LibreNMS\Util\Version->__construct()
#3 /opt/librenms/includes/common.php(766): LibreNMS\Util\Version::get()
#4 /opt/librenms/validate.php(84): version_info()
#5 [internal function]: {closure}()
#6 {main}
thrown in /opt/librenms/LibreNMS/Config.php on line 128
Fatal error: Uncaught ReflectionException: Class \LibreNMS\Validations\System does not exist in /opt/librenms/LibreNMS/Validator.php:52
Stack trace:
#0 /opt/librenms/LibreNMS/Validator.php(52): ReflectionClass->__construct()
#1 /opt/librenms/validate.php(111): LibreNMS\Validator->__construct()
#2 {main}
thrown in /opt/librenms/LibreNMS/Validator.php on line 52
Fatal error: Uncaught Error: Class 'Illuminate\Support\Str' not found in /opt/librenms/LibreNMS/Config.php:128
Stack trace:
#0 /opt/librenms/LibreNMS/Util/Git.php(33): LibreNMS\Config::get()
#1 /opt/librenms/LibreNMS/Util/Version.php(39): LibreNMS\Util\Git::repoPresent()
#2 /opt/librenms/LibreNMS/Util/Version.php(44): LibreNMS\Util\Version->__construct()
#3 /opt/librenms/includes/common.php(766): LibreNMS\Util\Version::get()
#4 /opt/librenms/validate.php(84): version_info()
#5 [internal function]: {closure}()
#6 {main}
thrown in /opt/librenms/LibreNMS/Config.php on line 128
Gem update