None of the standard graphs are showing anymore. For any device. It has been like this for a week or so. I am on the daily updates. No errors in ./validate.php. Screenshot below. It also appears that the font recently increased too at the same time
[OK] Composer Version: 2.10.2
[OK] Dependencies up-to-date.
[OK] Database Connected
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK] Database and column collations are correct
[OK] Database schema correct
[OK] MySQL and PHP time match
[OK] Active pollers found
[OK] Dispatcher Service not detected
[OK] Locks are functional
[OK] Python poller wrapper is polling
[OK] Redis is unavailable
[OK] rrd_dir is writable
[OK] rrdtool version ok
As for font size changes, we need specific reports of where there are issues because we recently fixed an issue with font sizing, but some places had adjusted to the bug. It is hard to find all those places. Discord or github issues is a good place to report those.
I found an issue when the device doesn’t exist it was supposed to show a graphic with a not found message instead of a broken image link. Maybe that was your issue?
I’m on daily and is more or less 1,5 week since this happened. I’ve spinned a new machine since I thought it was an issue with the debian update. The auth error on the logs it’s a flucke to disregard ??
it is definitely interesting, but since I can’t reproduce the issue, it doesn’t end up being that helpful for me to be able to fix it unless you can figure out how I could make the same error happen on my system.
I’m running into the same problem. Reproduction steps:
install fresh librenms (26.7.0 or current master, doesn’t matter, but it needs to be a fresh install as far as I can tell?)
add device
all graphs either trigger 403s, or cause an “Error Failed opening required ‘/opt/librenms/includes/html/graphs//auth.inc.php’ (include_path=‘.:/usr/share/php’) @ /opt/librenms/LibreNMS/Util/Graph.php:186” exception
I wish I could. If I knew what happened, I would probably be able to. I was gone for a long weekend, came back and it was broken. No one has access except me, and it was just running the daily build.
I revisited the error logs and saw this message a lot:
*10 FastCGI sent in stderr: "PHP message: PHP Error(2): Undefined array key “type” in /opt/librenms/LibreNMS/Data/Graphing/GraphParameters.php:287;
Additionally saw error the same Failed opening required message:
[CRITICAL] Exception: Error Failed opening required ‘/opt/librenms/includes/html/graphs//auth.inc.php’ (include_path=‘.:/usr/share/php’) @ /opt/librenms/LibreNMS/Util/Graph.php:188
Undefined array key “type” in /opt/librenms/LibreNMS/Data/Graphing/GraphParameters.php:287; based on that error message, your graph type doesn’t match the regex ^(?P<type>[A-Za-z0-9]+)_(?P<subtype>.+) but your urls you listed earlier do.
Can you try to debug it a bit for me since I still can’t reproduce the issue?
Try adding dd($type); on the line before the regex (on line 286) and visit one of the offending graph images.
Update: that may not debug the right one instead replace the preg_match line with this: