Articles in this section

Grafana service fails to start: Error The Grafana service is not running it. Start it?

Plesk for Linux kb: technical

Applicable to:

  • Plesk Obsidian for Linux

Symptoms

  • When opening Monitoring and clicking Fix Installation, the operation fails with:

    PLESK_ERROR: An error occurred while fixing the installation: Execution extension has failed with exit code 4, stdout: , stderr: Hook ApiCli is not implemented in grafana

  • Starting the Grafana service from the Plesk panel and command line fails and returns the following error in the panel logs i.e. /var/log/plesk/panel.log:

    CONFIG_TEXT: [2023-07-05 12:14:52.391] 6929:64a4fc4658702 ERR [extensiongrafana] Execution pleskrc has failed with exit code 1, stdout: INFO: [Wed Jul 5 12:14:47 +07 2023]: Service: grafana-server, Action: start Trying to start service grafana-server... failed Jul 05 12:14:51 systemd[1]: grafana-server.service: main process exited, code=exited, status=1/FAILURE Jul 05 12:14:51 systemd[1]: Failed to start Grafana instance. Jul 05 12:14:51 s88d10.cloudnetwork.vn systemd[1]: Unit grafana-server.service entered failed state. problem report ***** Warning: start service grafana-server failed , stderr: Job for grafana-server.service failed because the control process exited with error code. See "systemctl status grafana-server.service" and "journalctl -xe" for details.

  • Grafana logs /var/log/grafana/grafana.log contain the following error:

    CONFIG_TEXT: logger=plugin.finder t=2023-07-05T12:14:53.08+0700 lvl=warn msg="Skipping finding plugins as directory does not exist" path=/var/lib/grafana/plugins

  • Command journalctl --unit=grafana-server returns the following error:

    CONFIG_TEXT: logger=plugin.finder t=2023-07-05T12:14:53.08+0700 lvl=warn msg="Skipping finding plugins as directory does not exist" path=/var/lib/grafana/plugins

  • Command journalctl -u plesk-ext-monitoring-hcd returns the following error:

    CONFIG_TEXT: ERR [panel] Execution extension has failed with exit code 3
    pm_ApiCli::filterResult(string 'extension', integer '3', string '', string 'Unable to Connect to tcp: ', integer '5')

Cause

Unknown

Resolution

  1. Connect to the server via SSH.

  2. Remove the Grafana extension:

    # plesk bin extension --uninstall grafana

  3. Remove the Advanced Monitoring extension:

    # plesk bin extension --uninstall monitoring

  4. Remove Grafana from the server:

    • For Debian or Ubuntu operating systems:

      # apt purge grafana && rm -rf /usr/share/grafana /etc/grafana /var/lib/grafana

    • For RHEL, CentOS or CloudLinux operating systems:

      # yum remove grafana && rm -rf /usr/share/grafana /etc/grafana /var/lib/grafana

  5. Install the Monitoring and Grafana extensions via Extensions.

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.