Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@librenms librenms]# php validate.php
- ====================================
- Component | Version
- --------- | -------
- LibreNMS | 1.56-3-g74724a4
- DB Schema | 2019_09_29_114433_change_default_mempool_perc_warn_in_mempools_table (142)
- PHP | 7.2.21
- MySQL | 5.5.60-MariaDB
- RRDTool | 1.4.8
- SNMP | NET-SNMP 5.7.2
- ====================================
- [OK] Composer Version: 1.9.0
- [OK] Dependencies up-to-date.
- [OK] Database connection successful
- [FAIL] Database: incorrect column (notifications/datetime)
- [FAIL] Database: incorrect column (users/created_at)
- [FAIL] We have detected that your database schema may be wrong, please report the following to us on Discord (https://t.libren.ms/discord) or the community site (https://t.libren.ms/5gscd):
- [FIX]:
- Run the following SQL statements to fix.
- SQL Statements:
- ALTER TABLE `notifications` CHANGE `datetime` `datetime` timestamp NOT NULL DEFAULT '1970-01-02 00:00:00' ;
- ALTER TABLE `users` CHANGE `created_at` `created_at` timestamp NOT NULL DEFAULT '1970-01-02 00:00:01' ;
- [WARN] Your install is over 24 hours out of date, last update: Tue, 01 Oct 2019 06:51:07 +0000
- [FIX]:
- Make sure your daily.sh cron is running and run ./daily.sh by hand to see if there are any errors.
- [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 /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/.git/index
- /opt/librenms/logs/librenms.log
- /opt/librenms/logg
- /opt/librenms/syslog.php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement