No graphs in new LibreNMS instance ran by docker

I run LibreNMS from docker, here are the docker-compose and environment variables

librenms:/opt/librenms$ php validate.php
Component | Version
--------- | -------
LibreNMS  | 21.11.0
DB Schema | 2021_25_01_0129_isis_adjacencies_nullable (224)
PHP       | 7.4.25
Python    | 3.9.5
MySQL     | 10.5.13-MariaDB-1:10.5.13+maria~focal
RRDTool   | 1.7.2
SNMP      | NET-SNMP 5.9

[OK]    Installed from package; no Composer required
[OK]    Database connection successful
[OK]    Database schema correct
[WARN]  IPv6 is disabled on your server, you will not be able to add IPv6 devices.
[WARN]  Non-git install, updates are manual or from package

On the host server:

$ id
uid=1001(librenms) gid=1001(librenms) groups=1001(librenms),998(docker)
$ ls -l
total 32
drwxrwxr-x 5 librenms librenms 4096 Nov 23 13:15 data
$ ls -l data
total 12
drwxr-xr-x  5 systemd-coredump root   4096 Nov 23 14:40 db
drwxr-xr-x 10 ubuntu           ubuntu 4096 Nov 23 13:15 librenms
drwxr-xr-x  2 ubuntu           ubuntu 4096 Nov 23 14:40 rrd-journal

Where “data” is where all of the LibreNMS data lives, for an unknown reason to me the ownership always changes to “ubuntu” user, even though I am running docker compose as “librenms”

$ whoami
$ grep librenms /etc/passwd

The only error I’m seeing by running docker-compose logs -f is
rrdcached_1 | daemon.err: Nov 23 14:40:30 rrdcached[652]: journal_replay: /data/journal/rrd.journal.1637677848.881936 : Permission denied (not owned by daemon user)

After changing the ownership of “data” directory to librenms:docker the graphs started to show up

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.