Began getting the “Whoops, page can not be reached at this time” message. I saw a few others experiencing this and their solution was to upgrade PHP to 7.4. I had my admins update to 7.3 as 7.4 was not available (redhat7 server). Now, my application is completely bricked and I can no longer run ./daily.sh or ./validate.php…receiving the following errors. I really don’t want to lose 2years worth of data and hoping someone can help me to get up and running again:
here’s daily.sh output:
librenms]# su librenms
bash-4.2$ ./daily.sh
PHP Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
PHP Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
PHP Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
Fetching new release information OK
Updating to latest release OK
PHP Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
PHP Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
Updating Composer packages FAIL
PHP Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
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
- Root composer.json requires PHP extension ext-gd * but it is missing from your system. Install or enable PHP’s gd extension.
Problem 2
- Root composer.json requires PHP extension ext-mbstring * but it is missing from your system. Install or enable PHP’s mbstring extension.
Problem 3
- Root composer.json requires PHP extension ext-pdo * but it is missing from your system. Install or enable PHP’s pdo extension.
Problem 4
- amenadiel/jpgraph is locked to version 3.6.14 and an update of this package was not requested.
- amenadiel/jpgraph 3.6.14 requires ext-gd * → it is missing from your system. Install or enable PHP’s gd extension.
Problem 5
- doctrine/dbal is locked to version 2.12.0 and an update of this package was not requested.
- doctrine/dbal 2.12.0 requires ext-pdo * → it is missing from your system. Install or enable PHP’s pdo extension.
Problem 6
- laravel/framework is locked to version v8.11.2 and an update of this package was not requested.
- laravel/framework v8.11.2 requires ext-mbstring * → it is missing from your system. Install or enable PHP’s mbstring extension.
Problem 7
- league/commonmark is locked to version 1.5.6 and an update of this package was not requested.
- league/commonmark 1.5.6 requires ext-mbstring * → it is missing from your system. Install or enable PHP’s mbstring extension.
Problem 8
- librenms/laravel-vue-i18n-generator is locked to version 0.1.47 and an update of this package was not requested.
- librenms/laravel-vue-i18n-generator 0.1.47 requires ext-mbstring * → it is missing from your system. Install or enable PHP’s mbstring extension.
Problem 9
- php-amqplib/php-amqplib is locked to version v2.12.1 and an update of this package was not requested.
- php-amqplib/php-amqplib v2.12.1 requires ext-mbstring * → it is missing from your system. Install or enable PHP’s mbstring extension.
Problem 10
- laravel/framework v8.11.2 requires ext-mbstring * → it is missing from your system. Install or enable PHP’s mbstring extension.
- wpb/string-blade-compiler 6.0.2 requires laravel/framework ^6.0|^7.0|^8.0 → satisfiable by laravel/framework[v8.11.2].
- wpb/string-blade-compiler is locked to version 6.0.2 and an update of this package was not requested.
To enable extensions, verify that they are enabled in your .ini files:
- /etc/opt/rh/rh-php73/php.ini
- /etc/opt/rh/rh-php73/php.d/20-bz2.ini
- /etc/opt/rh/rh-php73/php.d/20-calendar.ini
- /etc/opt/rh/rh-php73/php.d/20-ctype.ini
- /etc/opt/rh/rh-php73/php.d/20-curl.ini
- /etc/opt/rh/rh-php73/php.d/20-dom.ini
- /etc/opt/rh/rh-php73/php.d/20-exif.ini
- /etc/opt/rh/rh-php73/php.d/20-fileinfo.ini
- /etc/opt/rh/rh-php73/php.d/20-ftp.ini
- /etc/opt/rh/rh-php73/php.d/20-gettext.ini
- /etc/opt/rh/rh-php73/php.d/20-iconv.ini
- /etc/opt/rh/rh-php73/php.d/20-json.ini
- /etc/opt/rh/rh-php73/php.d/20-phar.ini
- /etc/opt/rh/rh-php73/php.d/20-posix.ini
- /etc/opt/rh/rh-php73/php.d/20-shmop.ini
- /etc/opt/rh/rh-php73/php.d/20-simplexml.ini
- /etc/opt/rh/rh-php73/php.d/20-sockets.ini
- /etc/opt/rh/rh-php73/php.d/20-sysvmsg.ini
- /etc/opt/rh/rh-php73/php.d/20-sysvsem.ini
- /etc/opt/rh/rh-php73/php.d/20-sysvshm.ini
- /etc/opt/rh/rh-php73/php.d/20-tokenizer.ini
- /etc/opt/rh/rh-php73/php.d/20-xml.ini
- /etc/opt/rh/rh-php73/php.d/20-xmlwriter.ini
- /etc/opt/rh/rh-php73/php.d/20-xsl.ini
- /etc/opt/rh/rh-php73/php.d/20-zip.ini
- /etc/opt/rh/rh-php73/php.d/30-wddx.ini
- /etc/opt/rh/rh-php73/php.d/30-xmlreader.ini
You can also run
php --ini
inside terminal to see which files are used by PHP in CLI mode.
Updating SQL-Schema FAIL
PHP Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/includes/sql-schema/update.php(29): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/includes/sql-schema/update.php(29): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
Updating submodules OK
Cleaning up DB FAIL
PHP Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
PHP Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
PHP Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
PHP Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
PHP Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
PHP Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
PHP Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
PHP Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
PHP Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
PHP Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
PHP Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
PHP Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
PHP Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
PHP Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
PHP Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
PHP Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
PHP Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
Fetching notifications FAIL
PHP Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
Caching PeeringDB data FAIL
PHP Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
Fatal error: Uncaught Error: Class ‘App\Application’ not found in /nms/librenms/bootstrap/app.php:14
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/nms/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/nms/librenms/daily.php(17): require(‘/nms/librenms/i…’)
#3
{main}
thrown in /nms/librenms/bootstrap/app.php on line 14
here’s validate.php output:
bash-4.2$ ./validate.php
PHP Fatal error: Uncaught Error: Class ‘Illuminate\Support\Str’ not found in /nms/librenms/LibreNMS/Config.php:128
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Git.php(33): LibreNMS\Config::get(‘install_dir’, ‘/nms/librenms’)
#1
/nms/librenms/LibreNMS/Validations/Dependencies.php(49): LibreNMS\Util\Git::repoPresent()
#2
/nms/librenms/LibreNMS/Validator.php(81): LibreNMS\Validations\Dependencies->validate(Object(LibreNMS\Validator))
#3
/nms/librenms/validate.php(112): LibreNMS\Validator->validate(Array)
#4
{main}
thrown in /nms/librenms/LibreNMS/Config.php on line 128
PHP Fatal error: Uncaught Error: Class ‘Illuminate\Support\Str’ not found in /nms/librenms/LibreNMS/Config.php:128
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Git.php(33): LibreNMS\Config::get(‘install_dir’, ‘/nms/librenms’)
#1
/nms/librenms/LibreNMS/Util/Version.php(39): LibreNMS\Util\Git::repoPresent()
#2
/nms/librenms/LibreNMS/Util/Version.php(44): LibreNMS\Util\Version->__construct()
#3
/nms/librenms/includes/common.php(766): LibreNMS\Util\Version::get()
#4
/nms/librenms/validate.php(84): version_info()
#5
[internal function]: {closure}()
#6
{main}
thrown in /nms/librenms/LibreNMS/Config.php on line 128
Fatal error: Uncaught Error: Class ‘Illuminate\Support\Str’ not found in /nms/librenms/LibreNMS/Config.php:128
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Git.php(33): LibreNMS\Config::get(‘install_dir’, ‘/nms/librenms’)
#1
/nms/librenms/LibreNMS/Validations/Dependencies.php(49): LibreNMS\Util\Git::repoPresent()
#2
/nms/librenms/LibreNMS/Validator.php(81): LibreNMS\Validations\Dependencies->validate(Object(LibreNMS\Validator))
#3
/nms/librenms/validate.php(112): LibreNMS\Validator->validate(Array)
#4
{main}
thrown in /nms/librenms/LibreNMS/Config.php on line 128
Fatal error: Uncaught Error: Class ‘Illuminate\Support\Str’ not found in /nms/librenms/LibreNMS/Config.php:128
Stack trace:
#0
/nms/librenms/LibreNMS/Util/Git.php(33): LibreNMS\Config::get(‘install_dir’, ‘/nms/librenms’)
#1
/nms/librenms/LibreNMS/Util/Version.php(39): LibreNMS\Util\Git::repoPresent()
#2
/nms/librenms/LibreNMS/Util/Version.php(44): LibreNMS\Util\Version->__construct()
#3
/nms/librenms/includes/common.php(766): LibreNMS\Util\Version::get()
#4
/nms/librenms/validate.php(84): version_info()
#5
[internal function]: {closure}()
#6
{main}
thrown in /nms/librenms/LibreNMS/Config.php on line 128
PRETTY_NAME=“Red Hat Enterprise Linux”
ANSI_COLOR=“0;31”
CPE_NAME=“cpe:/o:redhat:enterprise_linux:7.7:GA:server”
HOME_URL=“
https://www.redhat.com/
”
BUG_REPORT_URL=“
https://bugzilla.redhat.com/
”
REDHAT_BUGZILLA_PRODUCT=“Red Hat Enterprise Linux 7”
REDHAT_BUGZILLA_PRODUCT_VERSION=7.7
REDHAT_SUPPORT_PRODUCT=“Red Hat Enterprise Linux”
REDHAT_SUPPORT_PRODUCT_VERSION=“7.7”
Hi! Same error here, since last 2nd of December my LibreNMS suddenly stopped Working. The error that show me when i run the “daily.sh” script is this one :
Fatal error: Uncaught Error: Class ‘App\Application’ not found in /opt/librenms/bootstrap/app.php:14
Stack trace:
#0
/opt/librenms/LibreNMS/Util/Laravel.php(44): require_once()
#1
/opt/librenms/includes/init.php(91): LibreNMS\Util\Laravel::bootCli()
#2
/opt/librenms/daily.php(17): require(‘/opt/librenms/i…’)
#3
{main}
thrown in /opt/librenms/bootstrap/app.php on line 14
I’ve also noticed that the “httpd.service” is failing to start. I tried to reinstall PHP and upgrade to PHP7.4 version but none works. I continue looking for a solution to this. Please if you found something that worked for you post it here.
Thanks for your help.
Go to the directory
/opt/librenms
and re-install your php dependencies:
su - librenms
./scripts/composer_wrapper.php install --no-dev
As far as httpd.service
failing to start, are you sure you aren’t using nginx
?
Hi @robvas Thanks for your reply. Since my last post i’ve upgraded PHP version to 7.4.13 and now when i ran the “validate.php” script seems to be OK, this is the result:
====================================
Component | Version
--------- | -------
LibreNMS | 1.70.1-6-g9ccb707
DB Schema | 2020_11_02_164331_add_powerstate_enum_to_vminfo (191)
PHP | 7.4.13
Python | 3.6.8
MySQL | 5.5.68-MariaDB
RRDTool | 1.4.8
SNMP | NET-SNMP 5.7.2
====================================
[OK] Composer Version: 2.0.8
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
And the “Daily.sh” also seems to work:
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
Everything seems to be ok, but i’m unable to see the librenms web interface and this is so frustrating. This is the list of services that are currently running on the machine:
auditd.service loaded active running Security Auditing Service
chronyd.service loaded active running NTP client/server
crond.service loaded active running Command Scheduler
dbus.service loaded active running D-Bus System Message Bus
dkms.service loaded active exited Builds and install new kernel modules through DKMS
firewalld.service loaded active running firewalld - dynamic firewall daemon
getty@tty1.service loaded active running Getty on tty1
irqbalance.service loaded active running irqbalance daemon
kmod-static-nodes.service loaded active exited Create list of required static device nodes for the current kernel
mariadb.service loaded active running MariaDB database server
network.service loaded active exited LSB: Bring up/down networking
● nginx.service loaded failed failed The nginx HTTP and reverse proxy server
● php-fpm.service loaded failed failed The PHP FastCGI Process Manager
polkit.service loaded active running Authorization Manager
rhel-dmesg.service loaded active exited Dump dmesg to /var/log/dmesg
rhel-domainname.service loaded active exited Read and set NIS domainname from /etc/sysconfig/network
rhel-readonly.service loaded active exited Configure read-only root support
rrdcached.service loaded active running Data caching daemon for rrdtool
snmpd.service loaded active running Simple Network Management Protocol (SNMP) Daemon.
sshd.service loaded active running OpenSSH server daemon
syslog-ng.service loaded active running System Logger Daemon
systemd-journal-flush.service loaded active exited Flush Journal to Persistent Storage
systemd-journald.service loaded active running Journal Service
systemd-logind.service loaded active running Login Service
systemd-random-seed.service loaded active exited Load/Save Random Seed
systemd-remount-fs.service loaded active exited Remount Root and Kernel File Systems
systemd-sysctl.service loaded active exited Apply Kernel Variables
systemd-tmpfiles-setup-dev.service loaded active exited Create Static Device Nodes in /dev
systemd-tmpfiles-setup.service loaded active exited Create Volatile Files and Directories
systemd-udev-trigger.service loaded active exited udev Coldplug all Devices
systemd-udevd.service loaded active running udev Kernel Device Manager
systemd-update-utmp.service loaded active exited Update UTMP about System Boot/Shutdown
systemd-user-sessions.service loaded active exited Permit User Sessions
systemd-vconsole-setup.service loaded active exited Setup Virtual Console
tuned.service loaded active running Dynamic System Tuning Daemon
● vboxadd-service.service loaded failed failed vboxadd-service.service
● vboxadd.service loaded failed failed vboxadd.service
As you can see the nginx is failing to start. I’ve tried rebooting the system but it was useless. There’s a way to restore the nginx service?
Thanks for your help!
service nginx restart
Then let us know the output of these two commands:
systemctl status nginx.service
journalctl -xe
Re-installing did nothing ( Running Apache)…here is the output:
[root@hqlx-prd-nms-01 librenms]# su - librenms
Last login: Wed Dec 23 10:24:15 EST 2020 on pts/0
-bash-4.2$ pwd
/nms/librenms
-bash-4.2$ ./scripts/composer_wrapper.php install --no-dev
LibreNMS\ComposerHelper::preInstall
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
Generating optimized autoload files
Class Crypt_CHAP_MD5 located in ./vendor/dapphp/radius/lib/Pear_CHAP.php does not comply with psr-0 autoloading standard. Skipping.
Class Crypt_CHAP_MSv1 located in ./vendor/dapphp/radius/lib/Pear_CHAP.php does not comply with psr-0 autoloading standard. Skipping.
Class Crypt_CHAP_MSv2 located in ./vendor/dapphp/radius/lib/Pear_CHAP.php does not comply with psr-0 autoloading standard. Skipping.
Illuminate\Foundation\ComposerScripts::postAutoloadDump
@php artisan package:discover --ansi
Discovered Package: darkghosthunter/larapoke
Discovered Package: fideloper/proxy
Discovered Package: fruitcake/laravel-cors
Discovered Package: laravel/tinker
Discovered Package: laravel/ui
Discovered Package: librenms/laravel-vue-i18n-generator
Discovered Package: nesbot/carbon
Discovered Package: oriceon/toastr-5-laravel
Discovered Package: tightenco/ziggy
Discovered Package: wpb/string-blade-compiler
Package manifest generated successfully.
52 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
Compiled views cleared!
Blade templates cached successfully!
@php artisan optimize
Configuration cache cleared!
Configuration cached successfully!
Route cache cleared!
Routes cached successfully!
Compiled views cleared!
Blade templates cached successfully!
Files cached successfully!
@php artisan config:clear
Configuration cache cleared!
scripts/check_requirements.py || pip3 install --user -r requirements.txt || :
.Running the daily.sh and validate.php yield no errors. I receive a HTTP 403 forbidden error when trying to access the webpage; upon looking at the http logs, it complains that there is no index.html file to load (No matching DirectoryIndex (index.html) found). If i modify /etc/httpd/conf/httpd.conf and add index.php ( DirectoryIndex index.html index.php ), then it loads a webpage but the webpage is only the contents of the index.php script located in my /nms/librenms/html/ directory. Is there a way to reinstall and retain my historical data? I have 2years worth of graph data which i do not want to lose. Or if someone has any other ideas how to get my webpage to load back to normal, then i would greatly appreciate it. I’m running RHEL7 w/ Apache
If you are seeing php source code…you need to enable php in Apache (php.net instructions follow)
Tell Apache to parse certain extensions as PHP. For example, let’s have Apache parse .php files as PHP. Instead of only using the Apache AddType directive, we want to avoid potentially dangerous uploads and created files such as exploit.php.jpg from being executed as PHP. Using this example, you could have any extension(s) parse as PHP by simply adding them. We’ll add .php to demonstrate.
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>