Symptoms
-
When opening Monitoring in Plesk, it shows one of the following error messsages:
The tab content cannot be loaded because the Grafana service is stopped. Start the service?
Execution extension has failed with exit code 1, stdout: It seems that the extension installation is still in progress, so the "fix" command cannot be performed., stderr: .
TThe Grafana service is not installed. Fix it?
Could not check if Monitoring was installed correctly: the Grafana service seems to be broken.
-
When clicking Fix installation, the procedure fails with:
Failed to copy files storage to destination path. stderr: filemng: Cannot open destination file '/etc/grafana/grafana.ini.dWXbAd' System error 2: No such file or directory stdout: filemng: Cannot open destination file '/etc/grafana/grafana.ini.dWXbAd' System error 2: No such file or directory
Cause
Grafana has been installed from grafana-enterprise
package, which does not come with Plesk installation:
# rpm -qa | grep grafana
grafana-enterprise-7.0.0-1.x86_64
Resolution
-
Connect to the Plesk server via SSH.
-
Remove the Grafana package:
# rpm -e --nodeps grafana-enterprise
-
Uninstall the Grafana extension:
# plesk bin extension --uninstall grafana
-
Install it back:
# plesk bin extension --install grafana
-
Log in to Plesk and go to Monitoring. If Grafana shows this message:
The plesk-json-backend-datasource plugin is not installed.
click Fix installation.