Validate error after performance tuning

Good day

Seems like after making some performance changes i followed this link.
https://docs.librenms.org/Support/Performance/

I get this error anyone else with this error.
/opt/librenms# ./validate.php

Component Version
LibreNMS 1.47-110-g5197074c4
DB Schema 2019_01_16_195644_add_vrf_id_and_bgpLocalAs (131)
PHP 7.2.15-0ubuntu0.18.04.1
MySQL 10.1.38-MariaDB-0ubuntu0.18.04.1
RRDTool 1.7.0
SNMP NET-SNMP 5.7.3

====================================

[OK] Composer Version: 1.8.4
[OK] Dependencies up-to-date.

In Container.php line 729:

Class App\Console\Commands\BashCompletionCommand does not exist

Any help will be greatly appreciated if someone can assist me.

I wonder if you had that error before performance tuning?

Post output of
./scripts/composer_wrapper.php install --no-dev

Ok I have run this command the output is.

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

LibreNMS\ComposerHelper::preInstall
Loading composer repositories with package information
Installing dependencies from lock file
Nothing to install or update
Generating autoload files
LibreNMS\ComposerHelper::postInstall
Illuminate\Foundation\ComposerScripts::postInstall
php artisan optimize

In Container.php line 729:

Class App\Console\Commands\BashCompletionCommand does not exist

Script php artisan optimize handling the post-install-cmd event returned with error code 1

It seems that class was added recently, @murrant may know

Does that file exist? app\Console\Commands\BashCompletionCommand.php

Probably just something messed up in your install. Run git status and report the output.

HI Murrant

fatal: not a git repository (or any of the parent directories): .git

and it does look like this does not exist app\Console\Commands\BashCompletionCommand.php

so you were in your install directory (default /opt/librenms) and you ran git status, and it said fatal: not a git repository ?

How did you install it?

Hi Chas

Ok seems like i have been bit of idiot here, after running the git status in the ocrrect directory found few other things here.

Your branch is behind ‘origin/master’ by 79 commits, and can be fast-forwarded.
(use “git pull” to update your local branch)

i then ran git pull (in the correct directory which gave me this)
Updating 5197074c4…2eac72d34
error: Your local changes to the following files would be overwritten by merge:
LibreNMS/Util/GitHub.php
LibreNMS/Util/Version.php
app/Console/Kernel.php
app/Http/Controllers/Table/DeviceController.php
app/Models/Device.php
doc/General/Changelog.md
includes/common.php
storage/debugbar/.gitignore
storage/framework/cache/.gitignore
Please commit your changes or stash them before you merge.

I decided to run then ./scripts/github-remove -d
then I ran ./daily.sh

Which came back with
Re-running /opt/librenms/daily.sh as librenms user
Updating to latest codebase OK
Updating Composer packages OK
Updated from 5197074c4 to 2eac72d34 OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK

However seems like some of the performance changes I made definitely had an impact.
Cause if i run

./validate.php

Component Version
LibreNMS 1.48.1-70-g2eac72d34
DB Schema 2019_01_16_195644_add_vrf_id_and_bgpLocalAs (131)
PHP 7.2.15-0ubuntu0.18.04.1
MySQL 10.1.38-MariaDB-0ubuntu0.18.04.1
RRDTool 1.7.0
SNMP NET-SNMP 5.7.3

====================================

[OK] Composer Version: 1.8.4
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[FAIL] The poller (monitoring-server) has not completed within the last 5 minutes, check the cron job.
[WARN] Some devices have not been polled in the last 5 minutes. You may have performance issues.
[FIX]:
Check your poll log and see: http://docs.librenms.org/Support/Performance/

So thanks for the help just need to figure out the performance thing.

Any advice again will be appreciated seriously thank you so far.

Good that you got past that error,

What information can you gather from the Settings → Pollers section ?

image

How many devices are affected, latency to those devices, did you try turning off polling modules to those devices.

this is the other thing this web page is so slow, i need to keep refreshing pages to get it to display things.


I have not tried turning off polling modules will see if i can find where to do this and revert.

I would follow through the same troubleshooting as this first:

Run the poller.php on a device, and also check disk IO / available ram and CPU.

Good day

I would like to thank everyone who assisted me in doing some troubleshooting the problem, found there was 1 device with allot vpn graphs once i deleted it restored all the speed.

there was well over 3000 monitoring graphs on it thanks to all.