Hello,
Month ago I upgraded my php installation to 7.3. After that the notification on the web gui about unsupported version of php disappeared, but I can’t get daily.sh running anymore. I’m stuck in a loop of commands, and there is no exist. Watch this:
librenms@monitoring:~$ ./daily.sh
Updating to latest codebase FAIL
error: The following untracked working tree files would be overwritten by merge:
config/hashing.php
config/logging.php
config/tinker.php
Please move or remove them before you merge.
Aborting
Updating Composer packages OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
librenms@monitoring:~$
So I read about it on the Internet and it says there is a merge error on git, so the advice is to use this command.
librenms@monitoring:~$ ./scripts/github-remove --discard
Are you sure you want to delete all modified and untracked files? [y/N] y
Then I try to validate, but without success.
librenms@monitoring:~$ ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS | 1.48.1-27-gc7c1ca2c5
DB Schema | 2019_02_10_220000_add_dates_to_fdb (132)
PHP | 7.3.3-1+0~20190307202245.32+stretch~1.gbp32ebb2
MySQL | 10.1.37-MariaDB-0+deb9u1
RRDTool | 1.6.0
SNMP | NET-SNMP 5.7.3
====================================
[OK] Composer Version: 1.8.4
[OK] Dependencies up-to-date.
[OK] Database connection successful
[WARN] Your database schema has extra migrations (2019_02_10_220000_add_dates_to_fdb). If you just switched to the stable release from the daily release, your database is in between releases and this will be resolved with the next release.
[OK] Database schema correct
[FAIL] The poller (monitoring) has not completed within the last 5 minutes, check the cron job.
[WARN] IPv6 is disabled on your server, you will not be able to add IPv6 devices.
[WARN] Your install is over 24 hours out of date, last update: Thu, 07 Feb 2019 20:58:56 +0000
[FIX]:
Make sure your daily.sh cron is running and run ./daily.sh by hand to see if there are any errors.
[FAIL] Some folders have incorrect file permissions, this may cause issues.
[FIX]:
sudo chown -R librenms:librenms /opt/librenms
sudo setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
sudo chmod -R ug=rwX /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
Files:
/opt/librenms/bootstrap/cache/services.php
librenms@monitoring:~$
So I fixed the permissions issues with root account, and try to run daily.sh again.
[email protected]:~# chown -R librenms:librenms /opt/librenms
[email protected]:~# chmod -R ug=rwX /opt/librenms/rrd /opt/librenms/logs /opt/librenms /bootstrap/cache/ /opt/librenms/storage/
[email protected]:~#
And get same errors:
librenms@monitoring:~$ ./daily.sh
Updating to latest codebase FAIL
error: The following untracked working tree files would be overwritten by merge:
config/hashing.php
config/logging.php
config/tinker.php
Please move or remove them before you merge.
Aborting
Updating Composer packages OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
librenms@monitoring:~$
So can anybody help me with that?
Thanks a lot!