Daily.sh & validate.php issue - LibreNMS not updating itself

Librenms installation crashing right after the “git reset” command. Getting http/500. Even after running validate.php it asks to run some commands witch I did and still failing with http/500…

1st time validate.php output:

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

Component Version
LibreNMS 1.52-45-g0baeb07
DB Schema Not Connected (0)
PHP 7.2.17
MySQL ?
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2
====================================

[FAIL] Missing dependencies! [FIX] ./scripts/composer_wrapper.php install --no-dev
kylekatarnls/update-helper
symfony/polyfill-php72
symfony/polyfill-php73
symfony/polyfill-intl-idn
symfony/mime
symfony/event-dispatcher-contracts
symfony/service-contracts
symfony/polyfill-iconv
doctrine/lexer
egulias/email-validator
and 18 more…
[FAIL] Outdated dependencies [FIX] ./scripts/composer_wrapper.php install --no-dev
symfony/dotenv
amenadiel/jpgraph
doctrine/inflector
erusev/parsedown
symfony/polyfill-ctype
vlucas/phpdotenv
symfony/css-selector
symfony/polyfill-mbstring
symfony/var-dumper
symfony/routing
and 29 more…
[OK] Composer Version: 1.8.6
[FAIL] Missing dependencies!
[FIX]:
composer install --no-dev
Dependencies:
kylekatarnls/update-helper
symfony/polyfill-php72
symfony/polyfill-php73
symfony/polyfill-intl-idn
symfony/mime
symfony/event-dispatcher-contracts
symfony/service-contracts
symfony/polyfill-iconv
doctrine/lexer
egulias/email-validator
psr/simple-cache
psr/container
opis/closure
symfony/translation-contracts
ralouphie/getallheaders
and 13 more…

2nd time validate.php (After command were run):

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

Component Version
LibreNMS 1.52-45-g0baeb07
DB Schema No Schema (0)
PHP 7.2.17
MySQL 10.3.14-MariaDB
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2
====================================

[OK] Composer Version: 1.8.6
[OK] Dependencies up-to-date.
[OK] Database connection successful
[FAIL] Your database schema (271) is older than the latest (1000).
[FIX]:
Manually run ./daily.sh, and check for any errors.
[FAIL] The poller (s1186moniqcp.ssq.local) has not completed within the last 5 minutes, check the cron job.
[FAIL] Discovery has not completed in the last 24 hours.
[FIX]:
Check the cron job to make sure it is running and using discovery-wrapper.py
[FAIL] We have found some files that are owned by a different user than librenms, this will stop you updating automatically and / or rrd files being updated causing graphs to fail.
[FIX]:
sudo chown -R librenms:librenms /app/librenms
sudo setfacl -d -m g::rwx /app/librenms/rrd /app/librenms/logs /app/librenms/bootstrap/cache/ /app/librenms/storage/
sudo chmod -R ug=rwX /app/librenms/rrd /app/librenms/logs /app/librenms/bootstrap/cache/ /app/librenms/storage/
Files:
/app/librenms/disable_all_device.sql
/app/librenms/html/plugins/Weathermap/configs/Prod_Physical_FW.conf
/app/librenms/html/includes/graphs/generic_data.inc.php.orig
/app/librenms/includes/dbFacile.php_bck
/app/librenms/includes/polling/bck_netscaler-vsvr.inc.php

Run the daily.sh and it says this (It’s being stuck at Updating SQL-Schema):

Updating to latest codebase FAIL
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details

git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

git branch --set-upstream-to=origin/<branch> master

Updating Composer packages OK
Updating SQL-Schema

I know about the security file warning, i will check this as all of thoses files are backups.

Thanks! :slight_smile: