Symptoms
-
Advanced Monitoring shows the following error in Plesk on Ubuntu 18/Debian 9:
The tab content cannot be loaded because the Grafana service is stopped
-
The error appears on restart the service in the Plesk UI:
An error occured while starting the Grafana service: Execution extension has failed with exit code 1, stdout: , stderr: [2021-10-08 12:00:00.345] 20651:615feb31a720a ERR [extension/grafana] Synchronous restart of the Grafana service failed: Grafana service failed to start Grafana service failed to start
-
In attempts to start a service via CLI, an error is shown under
/var/log/syslog
andjournalctl -u grafana-server
:systemd[1]: /usr/lib/systemd/system/grafana-server.service:34: Unknown lvalue 'ProtectHostname' in section 'Service'
systemd[1]: /usr/lib/systemd/system/grafana-server.service:35: Unknown lvalue 'ProtectKernelLogs' in section 'Service'
systemd[1]: /usr/lib/systemd/system/grafana-server.service:38: Unknown lvalue 'ProtectProc' in section 'Service'
Cause
The issue is caused by the Grafana bug in the new package version 8.2.0: https://github.com/grafana/grafana/issues/40162.
It has been fixed in the version 8.2.1.
Resolution
Update Grafana packages to fix the issue:
-
Go to Tools & Settings > Server Management section > System Updates and click Recheck Now.
-
Once updates are detected, click Update all.
Note: if no available updates are detected, check the grafana version package in Tools & Settings > Server Management section > System Updates > All Packages. If Grafana version is 8.2.1 - no additional actions are required.
Solution via SSH
-
Connect to the server via SSH.
-
Execute the command below to update grafana to the latest version:
# apt-get update && apt-get install grafana