Hey all
Apologies in advance if this is just an absolute idiot question, but I’m having one hell of a hard time getting Grafana working.
So, I’ve properly installed Grafana (or at least I believe I have!) and kicked it off with :
pi@raspberrypi:~ $ sudo systemctl start grafana-server
So far, so good.
However, http://192.168.1.118:3000/ (the local host for this pi) returns nothing, simply a warning saying:
This site can’t be reached
192.168.1.118 refused to connect.
Ok, so I’ve checked the system log to confirm that it’s working:
pi@raspberrypi:~ $ tail /var/log/syslog
Jan 9 17:55:55 raspberrypi systemd[1]: Reloading.
Jan 9 17:56:03 raspberrypi systemd[1]: serial-getty@ttyAMA0.service: Current command vanished from the unit file, execution of the command list won't be resumed.
Jan 9 17:56:30 raspberrypi systemd[1]: Stopping Grafana instance...
Jan 9 17:56:30 raspberrypi systemd[1]: grafana-server.service: Main process exited, code=killed, status=15/TERM
Jan 9 17:56:30 raspberrypi systemd[1]: grafana-server.service: Succeeded.
Jan 9 17:56:30 raspberrypi systemd[1]: Stopped Grafana instance.
Jan 9 17:56:30 raspberrypi systemd[1]: Started Grafana instance.
So it seems to be working. Furthermore, I’ve checked the following:
pi@raspberrypi:~ $ systemctl status grafana-server.service
● grafana-server.service - Grafana instance
Loaded: loaded (/usr/lib/systemd/system/grafana-server.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2020-01-09 17:56:30 GMT; 14min ago
Docs: http://docs.grafana.org
Main PID: 1449 (grafana-server)
Memory: 324.0K
CGroup: /system.slice/grafana-server.service
└─1449 /usr/sbin/grafana-server --config=/etc/grafana/grafana.ini --pidfile=/var/run/grafana/grafana-server.pid --packaging=deb cfg:de
Jan 09 17:56:30 raspberrypi systemd[1]: Started Grafana instance.
lines 1-10/10 (END)
Also so far so good. However still nothing on http://192.168.1.118:3000/
I’ve tried tail -f /var/log/grafana/grafana.log
to check the specific grafana log, but weirdly there doesn’t seem to be a grafana log:
pi@raspberrypi:~ $ tail -f /var/log/grafana/grafana.log
tail: cannot open '/var/log/grafana/grafana.log' for reading: No such file or directory
tail: no files remaining
And sure enough, if I CD into /var/log/grafana/
it’s an entirely empty directory.
I’ve also tried sudo systemctl daemon-reload
and sudo systemctl restart grafana-server
and there have been no change in results. If I check the system log after these two commands, I get the following:
pi@raspberrypi:~ $ tail /var/log/syslog
Jan 9 18:13:22 raspberrypi systemd[1]: Reloading.
Jan 9 18:13:34 raspberrypi systemd[1]: Stopping Grafana instance...
Jan 9 18:13:34 raspberrypi systemd[1]: grafana-server.service: Main process exited, code=killed, status=15/TERM
Jan 9 18:13:34 raspberrypi systemd[1]: grafana-server.service: Succeeded.
Jan 9 18:13:34 raspberrypi systemd[1]: Stopped Grafana instance.
Jan 9 18:13:34 raspberrypi systemd[1]: Started Grafana instance.
Does anyone have any ideas of what I could try next? I’ve also tried rebooting the Pi, no luck there either.
Help me ObiWan Kenobi’s, you’re my only hope!