Getting error 500 on web ui

hi
i was trying to configure syslog on librenms using official documentionation . and all of sudden the web page displayed error 500.

below is validate. log


librenms@nms01:~$ ./validate.php 
PHP Fatal error:  Uncaught ReflectionException: Class "librenms-config" does not exist in /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php:912
Stack trace:
#0 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(912): ReflectionClass->__construct()
#1 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(795): Illuminate\Container\Container->build()
#2 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(731): Illuminate\Container\Container->resolve()
#3 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(120): Illuminate\Container\Container->make()
#4 /opt/librenms/LibreNMS/Util/Version.php(51): app()
#5 /opt/librenms/validate.php(162): 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:914
Stack trace:
#0 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(795): Illuminate\Container\Container->build()
#1 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(731): Illuminate\Container\Container->resolve()
#2 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(120): Illuminate\Container\Container->make()
#3 /opt/librenms/LibreNMS/Util/Version.php(51): app()
#4 /opt/librenms/validate.php(162): 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 914

Fatal error: Uncaught ReflectionException: Class "librenms-config" does not exist in /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php:912
Stack trace:
#0 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(912): ReflectionClass->__construct()
#1 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(795): Illuminate\Container\Container->build()
#2 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(731): Illuminate\Container\Container->resolve()
#3 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(120): Illuminate\Container\Container->make()
#4 /opt/librenms/LibreNMS/Util/Version.php(51): app()
#5 /opt/librenms/validate.php(162): 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:914
Stack trace:
#0 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(795): Illuminate\Container\Container->build()
#1 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(731): Illuminate\Container\Container->resolve()
#2 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(120): Illuminate\Container\Container->make()
#3 /opt/librenms/LibreNMS/Util/Version.php(51): app()
#4 /opt/librenms/validate.php(162): 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 914
librenms@nms01:~$ 

here is daily.sh output

librenms@nms01:~$ ./daily.sh 
PHP Parse error:  syntax error, unexpected end of file in /opt/librenms/config.php on line 48
Fetching new release information                  ./daily.sh: line 62: /daily.log: Permission denied
./daily.sh: line 65: /daily.log: Permission denied
./daily.sh: line 66: /daily.log: Permission denied
 OK
Between releases, waiting for newer release
PHP Parse error:  syntax error, unexpected end of file in /opt/librenms/config.php on line 48
Updating Composer packages                        /opt/librenms/daily.sh: line 62: /daily.log: Permission denied
/opt/librenms/daily.sh: line 65: /daily.log: Permission denied
/opt/librenms/daily.sh: line 66: /daily.log: Permission denied
 FAIL
> LibreNMS\ComposerHelper::preInstall
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
Package influxdb/influxdb-php is abandoned, you should avoid using it. No replacement was suggested.
Package web-token/jwt-key-mgmt is abandoned, you should avoid using it. Use web-token/jwt-library instead.
Package web-token/jwt-signature is abandoned, you should avoid using it. Use web-token/jwt-library instead.
Package web-token/jwt-signature-algorithm-ecdsa is abandoned, you should avoid using it. Use web-token/jwt-library instead.
Package web-token/jwt-util-ecc is abandoned, you should avoid using it. Use web-token/jwt-library instead.
Generating optimized autoload files
Class Tests\Unit\ConfigItemTest located in ./tests/Unit/ConfigItemTest.php does not comply with psr-4 autoloading standard (rule: LibreNMS\Tests\ => ./tests). Skipping.
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

   INFO  Discovering packages.  

  laravel-notification-channels/webpush ................................. DONE
  laravel/socialite ..................................................... DONE
  laravel/tinker ........................................................ DONE
  laravel/ui ............................................................ DONE
  librenms/laravel-vue-i18n-generator ................................... DONE
  mews/purifier ......................................................... DONE
  nesbot/carbon ......................................................... DONE
  nunomaduro/termwind ................................................... DONE
  silber/bouncer ........................................................ DONE
  spatie/laravel-ignition ............................................... DONE
  tightenco/ziggy ....................................................... DONE

75 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> LibreNMS\ComposerHelper::postInstall

In config.php line 48:
                                        
  [ParseError]                          
  syntax error, unexpected end of file  
                                        

Exception trace:
  at /opt/librenms/config.php:48
 LibreNMS\ComposerHelper::populateEnv() at /opt/librenms/LibreNMS/ComposerHelper.php:49
 LibreNMS\ComposerHelper::postInstall() at phar:///opt/librenms/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:491
 Composer\EventDispatcher\EventDispatcher->executeEventPhpScript() at phar:///opt/librenms/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:276
 Composer\EventDispatcher\EventDispatcher->doDispatch() at phar:///opt/librenms/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:131
 Composer\EventDispatcher\EventDispatcher->dispatchScript() at phar:///opt/librenms/composer.phar/src/Composer/Installer.php:410
 Composer\Installer->run() at phar:///opt/librenms/composer.phar/src/Composer/Command/InstallCommand.php:147
 Composer\Command\InstallCommand->execute() at phar:///opt/librenms/composer.phar/vendor/symfony/console/Command/Command.php:298
 Symfony\Component\Console\Command\Command->run() at phar:///opt/librenms/composer.phar/vendor/symfony/console/Application.php:1040
 Symfony\Component\Console\Application->doRunCommand() at phar:///opt/librenms/composer.phar/vendor/symfony/console/Application.php:301
 Symfony\Component\Console\Application->doRun() at phar:///opt/librenms/composer.phar/src/Composer/Console/Application.php:396
 Composer\Console\Application->doRun() at phar:///opt/librenms/composer.phar/vendor/symfony/console/Application.php:171
 Symfony\Component\Console\Application->run() at phar:///opt/librenms/composer.phar/src/Composer/Console/Application.php:136
 Composer\Console\Application->run() at phar:///opt/librenms/composer.phar/bin/composer:93
 require() at /opt/librenms/composer.phar:29

install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--download-only] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-progress] [--no-install] [--audit] [--audit-format AUDIT-FORMAT] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [<packages>...]
Updated from unset to                             /opt/librenms/daily.sh: line 62: /daily.log: Permission denied
/opt/librenms/daily.sh: line 65: /daily.log: Permission denied
/opt/librenms/daily.sh: line 66: /daily.log: Permission denied
 OK
Updating SQL-Schema                               /opt/librenms/daily.sh: line 62: /daily.log: Permission denied
/opt/librenms/daily.sh: line 65: /daily.log: Permission denied
/opt/librenms/daily.sh: line 66: /daily.log: Permission denied
 OK
Updating submodules                               /opt/librenms/daily.sh: line 62: /daily.log: Permission denied
/opt/librenms/daily.sh: line 65: /daily.log: Permission denied
/opt/librenms/daily.sh: line 66: /daily.log: Permission denied
 OK
Cleaning up DB                                    /opt/librenms/daily.sh: line 62: /daily.log: Permission denied
/opt/librenms/daily.sh: line 65: /daily.log: Permission denied
/opt/librenms/daily.sh: line 66: /daily.log: Permission denied
 FAIL
PHP Parse error:  syntax error, unexpected end of file in /opt/librenms/config.php on line 48
Fetching notifications                            /opt/librenms/daily.sh: line 62: /daily.log: Permission denied
/opt/librenms/daily.sh: line 65: /daily.log: Permission denied
/opt/librenms/daily.sh: line 66: /daily.log: Permission denied
 FAIL
PHP Parse error:  syntax error, unexpected end of file in /opt/librenms/config.php on line 48
Caching PeeringDB data                            /opt/librenms/daily.sh: line 62: /daily.log: Permission denied
/opt/librenms/daily.sh: line 65: /daily.log: Permission denied
/opt/librenms/daily.sh: line 66: /daily.log: Permission denied
 FAIL
PHP Parse error:  syntax error, unexpected end of file in /opt/librenms/config.php on line 48

i tried these but still no luck

rm -rf /opt/librenms/vendor
./scripts/composer_wrapper.php install --no-deps

tried below as well

chown -R librenms:librenms /opt/librenms
chmod 771 /opt/librenms
setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
setfacl -R -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
librenms@nms01:~$ git status
Refresh index: 100% (15138/15138), done.
On branch master
Your branch is behind 'origin/master' by 4 commits, and can be fast-forwarded.
  (use "git pull" to update your local branch)

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	composer-stable.phar

nothing added to commit but untracked files present (use "git add" to track)
librenms@nms01:~$ git pull

there was a problem in the config file. its now corrected.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.