Fist of all, English is not my language, sorry for the mistakes I will probably make.
I’m setting up librenms on a Fedora Server and until last friday, I could access the WebUI.
Now, I just have a blank page. on librenms.mydomain.tld/install.php I have the “access denied” message.
I put die "test’; at the beginning of the ./index.php page and the text “test” is displayed on librenms.mydomain.tld:80.
I corrected the ownership of the files in the folder librenms.
Right now, firewalld and selinux are disabled for testing purpose.
Here’s the validate.php result.
====================================
Component | Version
--------- | -------
LibreNMS | 1.49-89-g62113ebde
DB Schema | 2019_02_10_220000_add_dates_to_fdb (132)
PHP | 7.2.16
MySQL | 10.3.12-MariaDB
RRDTool | 1.7.1
SNMP | NET-SNMP 5.8
====================================
[OK] Composer Version: 1.8.4
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[FAIL] The poller (monitoring) has not completed within the last 5 minutes, check the cron job.
[WARN] Some devices have not been polled in the last 5 minutes. You may have performance issues.
[FIX]:
Check your poll log and see: http://docs.librenms.org/Support/Performance/
Devices:
localhost
<REDACTED>
and 57 more...
[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
I’m using PHP 7.2.16. I installed it two weeks ago while doing the installation of librenms.
It’s still the same version.
It tried to connect to librenms.domain.tld/login
That’s the error message I’ve got.
Error while loading this URI : Could not load the source for http://librenms.<REDACTED>/login.
[Exception... "Component returned failure code: 0x80470002 (NS_BASE_STREAM_CLOSED) [nsIInputStream.available]" nsresult: "0x80470002 (NS_BASE_STREAM_CLOSED)" location: "JS frame :: resource://devtools/shared/DevToolsUtils.js :: onResponse :: line 607" data: no]
Stack: onResponse@resource://devtools/shared/DevToolsUtils.js:607:25
onStopRequest@resource://gre/modules/NetUtil.jsm:123:17
Line: 607, column: 0
Still the same issue. I can’t access the web interface.
I have no idea what is wrong with this install.
I disabled selinux and firewalld, I have the librenms icon on the tab and I can connect to the port with telnet but the page is deseperately blank.
git checkout – html/index.php ./daily.sh ./validate.php
No output after the command. I don’t know if something should have happened.
I don’t get it, everything is fine, error_log is telling me I can access my apache server, if I add echo ‘test’; at the begining of index.php, it display the text. But I there’s nothing from librenms.
I even tried http:///api/v0 and it displays test.
./validate.php
====================================
Component | Version
--------- | -------
LibreNMS | 1.50-33-g36e709eba
DB Schema | 2019_02_10_220000_add_dates_to_fdb (132)
PHP | 7.2.16
MySQL | 10.3.12-MariaDB
RRDTool | 1.7.1
SNMP | NET-SNMP 5.8
====================================
[OK] Composer Version: 1.8.5
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[FAIL] The poller (monitoring) has not completed within the last 5 minutes, check the cron job.
[WARN] Some devices have not been polled in the last 5 minutes. You may have performance issues.
[FIX]:
Check your poll log and see: http://docs.librenms.org/Support/Performance/
Devices:
localhost
and 57 more...
[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
[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX]:
You can fix this with ./scripts/github-remove
Modified Files:
bootstrap/cache/.gitignore
html/index.php
storage/app/.gitignore
storage/app/public/.gitignore
storage/debugbar/.gitignore
storage/framework/cache/.gitignore
storage/framework/cache/data/.gitignore
storage/framework/sessions/.gitignore
storage/framework/testing/.gitignore
storage/framework/views/.gitignore
storage/logs/.gitignore
I’m not very confident in doing ./scripts/github-remove.
Re-running /opt/librenms/daily.sh as librenms user
Updating to latest codebase OK
Updating Composer packages OK
Updated from 36e709eba to 54c7ed3d0 OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
./validate.php
====================================
Component | Version
--------- | -------
LibreNMS | 1.50-34-g54c7ed3d0
DB Schema | 2019_02_10_220000_add_dates_to_fdb (132)
PHP | 7.2.16
MySQL | 10.3.12-MariaDB
RRDTool | 1.7.1
SNMP | NET-SNMP 5.8
====================================
[OK] Composer Version: 1.8.5
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[FAIL] The poller (monitoring) has not completed within the last 5 minutes, check the cron job.
[WARN] Some devices have not been polled in the last 5 minutes. You may have performance issues.
[FIX]:
Check your poll log and see: http://docs.librenms.org/Support/Performance/
Devices:
localhost
and 57 more...
[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
git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
curl
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Test Page for the Apache HTTP Server on Fedora</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style type="text/css">
[...]
</html>
Wait, either way, I still get the apache default page.
Il checked and the /etc/httpd/conf.d/librenms.conf is correct but it doesn’t seem to point to /opt/librenms/html/index.php.
That’s new.
tail on access_log give me error 500. I need to check the man pages.