Fresh Install - Went South Quick

Fresh Install on CentOS7, everything was working GUI polling i added devices etc. I ran a validate to clean up any last errors PHP timezone etc…

Followed the suggestions in validate
[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/config.php
/opt/librenms/composer.phar

After the changes suggested (above) site is not reachable and the DB appears disconnected

PHP Parse error: syntax error, unexpected ‘?’ in /opt/librenms/bootstrap/app.php on line 15

Component Version
LibreNMS 1.48.1-3-g431b645
DB Schema Not Connected (0)
PHP 5.6.40
MySQL ?
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2

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

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

Parse error: syntax error, unexpected ‘?’ in /opt/librenms/bootstrap/app.php on line 15

I suspect this is a permissions / ACL issue, i just not sure how to resolve and or what to set the permissions to…

Any help would be super appreciated!

LibreNMS does not support PHP 5.6. What install docs are you following? The official docs tell you to install PHP 7.2

Just followed this, says 5.6.4

https://docs.librenms.org/Installation/Installation-CentOS-7-Apache/

Installed 7.2 got things running again but still a lot of errors in validate

[[email protected] librenms]# ./validate.php

Component Version
LibreNMS 1.48.1-3-g431b645
DB Schema 2019_01_16_195644_add_vrf_id_and_bgpLocalAs (131)
PHP 7.2.15
MySQL 5.5.60-MariaDB
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2

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

[OK] Composer Version: 1.8.4
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] Your install is over 24 hours out of date, last update: Thu, 31 Jan 2019 16:40:20 +0000
[FIX]:
Make sure your daily.sh cron is running and run ./daily.sh by hand to see if there are any errors.
[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX]:
You can fix this with ./scripts/github-remove
Modified Files:
.editorconfig
.gitignore
.travis.yml
LibreNMS/Alert/Transport/Alertmanager.php
LibreNMS/Alert/Transport/Canopsis.php
LibreNMS/Alert/Transport/Elasticsearch.php
LibreNMS/Alert/Transport/Mattermost.php
LibreNMS/Alert/Transport/Msteams.php
LibreNMS/DB/Schema.php
LibreNMS/OS.php
LibreNMS/Util/Laravel.php
LibreNMS/Util/ModuleTestHelper.php
LibreNMS/Validations/Database.php
LibreNMS/Validations/Updates.php
app/Console/Kernel.php
and 103 more…
[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/vendor/psr/simple-cache
/opt/librenms/vendor/psr/simple-cache/.editorconfig
/opt/librenms/vendor/psr/simple-cache/LICENSE.md
/opt/librenms/vendor/psr/simple-cache/README.md
/opt/librenms/vendor/psr/simple-cache/composer.json
/opt/librenms/vendor/psr/simple-cache/src
/opt/librenms/vendor/psr/simple-cache/src/CacheException.php
/opt/librenms/vendor/psr/simple-cache/src/CacheInterface.php
/opt/librenms/vendor/psr/simple-cache/src/InvalidArgumentException.php
/opt/librenms/vendor/psr/container
/opt/librenms/vendor/psr/container/.gitignore
/opt/librenms/vendor/psr/container/LICENSE
/opt/librenms/vendor/psr/container/README.md
/opt/librenms/vendor/psr/container/composer.json
/opt/librenms/vendor/psr/container/src
and 5110 more…

Run the fixes as suggested. Also the docs hand feed you commands to install PHP 7.2. We’ll get that one message updated…