Have been recently working to get a new instance of Icinga2 working, and added InfluxDB/grafana modules.
All (including grafana) has been working since mid-last week (when I got it all working correctly).
Ubuntu 16.04 LTS
This morning, did a reboot of the server (first full reboot since getting it all working), and now grafana does not start on boot.
First noticed when the pages within IcingaWeb said it could connect to the server:port for the graphs.
Tried manually connecting to grafana web interface at servername:port, but no luck
Other services on machine appear OK.
Output of $ sudo service grafana status and $ sudo systemctl status grafana.service result in same:
ā grafana.service - LSB: Start grafana at boot time
Loaded: loaded (/etc/init.d/grafana; bad; vendor preset: enabled)
Active: failed (Result: resources) since Thu 2017-09-14 14:04:15 CDT; 36min ago
Docs: man:systemd-sysv-generator(8)
Process: 13546 ExecStart=/etc/init.d/grafana start (code=exited, status=0/SUCCESS)
Sep 14 14:04:15 systemd[1]: Starting LSB: Start grafana at boot timeā¦
Sep 14 14:04:15 systemd[1]: grafana.service: PID file /var/run/grafana.pid not readable (yet?) after start: No suc
Sep 14 14:04:15 systemd[1]: Failed to start LSB: Start grafana at boot time.
Sep 14 14:04:15 systemd[1]: grafana.service: Unit entered failed state.
Sep 14 14:04:15 systemd[1]: grafana.service: Failed with result āresourcesā.
Iām not a *nix expert by any means, but I can follow directionsā¦most of the topics searching online so far about the ānot readable (yet?)ā message are several years old and appear to be related to when systemd as first coming out and had timing issues about creating .pid file for backwards compatibility.
Suggestions on where I go from here to troubleshoot?
Appears to be the āgrafana-serverā service and not the āgrafanaā service. When showing a service status, it shows enabled, but not running. If I manually start the grafana-server service, then the site is back up and functioning again.
I have also the same issue. Right now Iām not able to set āgrafana-serverā to start at boot-time.
Hardware, OS: RPi3, Raspian
Try1: sudo update-rc.d grafana-server defaults
No error, but grafana is not starting after a reboot.
Try2: --> I do not realy understand the error
sudo systemctl enable grafana-server.service
Synchronizing state of grafana-server.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable grafana-server
Failed to enable unit: Unit /run/systemd/generator.late/grafana.service is transient or generated.