Daily update not working

I have alerts in the GUI saying that the daily update script has failed. When running the script manually all steps seem to complete successfully. Any ideas why its showing as failed?

Output of daily.log and validate.php below

Updating to latest codebase

Returned: 0
Updating Composer packages
warning: unable to access ‘/root/.gitconfig’: Permission denied
warning: unable to access ‘/root/.config/git/config’: Permission denied
warning: unable to access ‘/root/.gitconfig’: Permission denied
warning: unable to access ‘/root/.gitconfig’: Permission denied
warning: unable to access ‘/root/.config/git/config’: Permission denied
warning: unable to access ‘/root/.gitconfig’: Permission denied

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
Generating optimized class loader
The compiled services file has been removed.
Returned: 0
Updating SQL-Schema

Returned: 0
Updating submodules

Returned: 0
Cleaning up DB
Refreshing alert rules queries
Clearing OS cache
Perf times cleared for entries over 30 days
Returned: 0
Fetching notifications
[ Fri, 28 Sep 2018 20:37:41 +0100 ] LibreNMS Notifications (33)
[ Fri, 28 Sep 2018 20:37:41 +0100 ] misc/notifications.rss (40)
[ Fri, 28 Sep 2018 20:37:41 +0100 ] Updating DB Done
Returned: 0
Caching PeeringDB data
Peering DB integration disabled
Returned: 0


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

Component Version
LibreNMS 1.43-119-g6242f941f
DB Schema 268
PHP 7.0.30-1+ubuntu17.10.1+deb.sury.org+1
MySQL 10.1.30-MariaDB-0ubuntu0.17.10.1
RRDTool 1.6.0
SNMP NET-SNMP 5.7.3
====================================

[OK] Composer Version: 1.7.2
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[FAIL] fping6 location is incorrect or bin not installed.
[FIX] Install fping6 or manually set the path to fping6 by placing the following in config.php: $config[‘fping6’] = ‘/path/to/fping6’;

Why are you running this as root? Only do this as the librenms user.

1 Like

Sorry, i’ve always run as root before which has worked.

I have run the script as the librenms user and this is what i get in the daily.log

Updating to latest codebase

Returned: 0
Updating Composer packages

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
Generating optimized class loader
The compiled services file has been removed.
Returned: 0
Updating SQL-Schema

Returned: 0
Updating submodules

Returned: 0
Cleaning up DB
Refreshing alert rules queries
Clearing OS cache
Perf times cleared for entries over 30 days
Device perf cleared for entries over 7 days
Returned: 0
Fetching notifications
[ Sat, 29 Sep 2018 13:50:13 +0100 ] LibreNMS Notifications (33)
[ Sat, 29 Sep 2018 13:50:13 +0100 ] misc/notifications.rss (40)
[ Sat, 29 Sep 2018 13:50:13 +0100 ] Updating DB Done
Returned: 0
Caching PeeringDB data
Peering DB integration disabled
Returned: 0

What does validate say?