Ran into an issue on the latest dev branch today w...
# general
b
Ran into an issue on the latest dev branch today where adding a device would not create the corresponding RRD directory automatically. Environment: - LibreNMS 26.6.1-dev.81 - Commit: c68348777 - RRDTool 1.8.0 - rrdcached enabled (local socket) When a new device was added (tested with localhost), discovery would fail with: LibreNMS\Exceptions\RrdNotFoundException: realpath(localhost/icmp-perf.rrd): No such file or directory The device directory under /opt/librenms/rrd/ was never created automatically, so LibreNMS continually failed trying to write icmp-perf.rrd. Manually creating the device directory
/opt/librenms/rrd/localhost
immediately allowed RRD creation and polling to proceed, which seemed to indicate the failure was in the directory creation path rather than permissions. I verified: - rrdcached configured and connected - SELinux disabled for testing - permissions/ownership looked correct I then switched from the dev branch to the release branch: git checkout release and updated to the current stable release (26.5.1). After that I deleted and re-added the same device, and LibreNMS automatically created the RRD directory as expected. I saw the same behavior on another system after updating from master, so this may be a regression in the current dev branch.