I’ll say thank you now as there is too much text below to put it at the bottom!
I’m running into an issue where I’m getting ERR_CONNECTION_REFUSED on the web ui of the docker librenms install I pulled down today from https://github.com/librenms/docker. It happens externally, or within the container:
[email protected]:~# docker exec -it --user librenms librenms bash
bash-5.0$ curl "http://localhost"
curl: (7) Failed to connect to localhost port 80: Connection refused
bash-5.0$
I’m not overly familiar with nginx, and the rest of the install seems to be relatively functional after I initialized the DB manually.
[email protected]:~# docker exec -it --user librenms librenms php validate.php
====================================
Component | Version
--------- | -------
LibreNMS | 1.57
DB Schema | 2019_10_03_211702_serialize_config (145)
PHP | 7.3.11
MySQL | 10.2.29-MariaDB-1:10.2.29+maria~bionic
RRDTool | 1.7.2
SNMP | NET-SNMP 5.8
====================================
[OK] Composer Version: 1.9.1
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] You have not added any devices yet.
[FIX]:
You can add a device in the webui or with ./addhost.php
[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: Tue, 29 Oct 2019 00:40:17 +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 branch is not master, this will prevent automatic updates.
[FIX]:
You can switch back to master with git checkout master
[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX]:
You can fix this with ./scripts/github-remove
Modified Files:
snmp-scan.py
[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 /data/rrd /data/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
sudo chmod -R ug=rwX /data/rrd /data/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
Files:
/opt/librenms/bootstrap/cache/packages.php