A few weeks ago we started testing an upgrade for our monitoring server that uses mostly Icinga2 and Grafana (w/ InfluxDB) to go from Ubuntu 18.04 to Ubuntu 20.04. All appears to be well expect getting grafana-server to run.
systemctl status grafana-server output:
~$ sudo systemctl status grafana-server
● grafana.service - LSB: Start grafana at boot time
Loaded: loaded (/etc/init.d/grafana; generated)
Active: failed (Result: protocol) since Thu 2020-12-31 11:28:06 CST; 1s ago
Docs: man:systemd-sysv-generator(8)
Process: 18292 ExecStart=/etc/init.d/grafana start (code=exited, status=0/SUCCESS)
Dec 31 11:28:06 hostname systemd[1]: Starting LSB: Start grafana at boot time...
Dec 31 11:28:06 hostname systemd[1]: grafana.service: Can't open PID file /run/grafana.pid (yet?) after start: Operation not permitted
Dec 31 11:28:06 hostname systemd[1]: grafana.service: Failed with result 'protocol'.
Dec 31 11:28:06 hostname systemd[1]: Failed to start LSB: Start grafana at boot time.
Output from journalctl -xe
Dec 31 11:29:59 hostname sudo[21006]: admin : TTY=pts/0 ; PWD=/home/admin ; USER=root ; COMMAND=/bin/systemctl start grafana-server
Dec 31 11:29:59 hostname sudo[21006]: pam_unix(sudo:session): session opened for user root by admin(uid=0)
Dec 31 11:29:59 hostname systemd[1]: Starting LSB: Start grafana at boot time...
-- Subject: A start job for unit grafana.service has begun execution
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit grafana.service has begun execution.
--
-- The job identifier is 3052.
Dec 31 11:29:59 hostname systemd[1]: grafana.service: Can't open PID file /run/grafana.pid (yet?) after start: Operation not permitted
Dec 31 11:29:59 hostname sudo[21006]: pam_unix(sudo:session): session closed for user root
Dec 31 11:29:59 hostname systemd[1]: grafana.service: Failed with result 'protocol'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit grafana.service has entered the 'failed' state with result 'protocol'.
Dec 31 11:29:59 hostname systemd[1]: Failed to start LSB: Start grafana at boot time.
-- Subject: A start job for unit grafana.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit grafana.service has finished with a failure.
--
-- The job identifier is 3052 and the job result is failed.
The last entries in /var/log/grafana/grafana.log are form the system shutting down during the Ubuntu upgrade.
Everything appears to be installed/configured according to Grafana Ubuntu install docs
- deb https://packages.grafana.com/enterprise/deb stable main is included in
/etc/apt/sources.list.d/grafana.list - sudo apt update and sudo apt upgrade grafana state it is current versions
- checking current package version says is current:
:~$ sudo apt-cache policy grafana
grafana:
Installed: 7.3.6
Candidate: 7.3.6
Checking config at /etc/grafana/grafana.ini , it appears this file is still in place because it does have items we had set such as hostname. I found 1 other report for the ‘protocol’ error, but it was closed with no resolution. Any thoughts on what to check next?
Thanks in advance!