Articles in this section

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

Plesk for Linux kb: technical ext: advanced monitoring

Applicable to:

  • Plesk for Linux

Symptoms

  • Advanced Monitoring shows the following error in Plesk on Ubuntu 18/Debian 9:

    PLESK_ERROR: The tab content cannot be loaded because the Grafana service is stopped

  • The error appears on restart the service in the Plesk UI:

    PLESK_ERROR: 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 and journalctl -u grafana-server:

    CONFIG_TEXT: 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:

  1. Log into Plesk.

  2. Go to Tools & Settings > Server Management section > System Updates and click Recheck Now.

  3. 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
  1. Connect to the server via SSH.

  2. Execute the command below to update grafana to the latest version:

    # apt-get update && apt-get install grafana

Workaround that was used before the fix was released:

  1. Connect to the server via SSH

  2. Replace the parameters in the configuration:

    # sed -i '/^ProtectHostname/d;/^ProtectKernelLogs/d;/^ProtectProc/d;/^ProcSubset/d;/^ProtectClock/d;/@system-service$/d' /usr/lib/systemd/system/grafana-server.service

  3. Apply the configuration:

    # systemctl daemon-reload

  4. Reinstall the extension:

    # plesk bin extension -u grafana
    # plesk bin extension -i grafana

  5. Restart the service:

    # systemctl restart grafana-server

Was this article helpful?

Comments

2 comments
Date Votes
  • Your solution does not work as my grafana is updated and the error still shows up:

    [/usr/lib/systemd/system/grafana-server.service:41] Unknown lvalue 'RestrictSUIDSGID' in section 'Service'
    2023-05-25 12:13:44 WARNING
    systemd [1]
    System daemons [3]
    [/usr/lib/systemd/system/grafana-server.service:40] Unknown lvalue 'RestrictRealtime' in section 'Service'
    2023-05-25 12:13:44 WARNING
    systemd [1]
    System daemons [3]
    [/usr/lib/systemd/system/grafana-server.service:39] Unknown lvalue 'RestrictNamespaces' in section 'Service'
    2023-05-25 12:13:44 WARNING
    systemd [1]
    System daemons [3]
    [/usr/lib/systemd/system/grafana-server.service:37] Unknown lvalue 'RemoveIPC' in section 'Service'
    2023-05-25 12:13:44 WARNING
    systemd [1]
    System daemons [3]
    [/usr/lib/systemd/system/grafana-server.service:35] Unknown lvalue 'ProtectProc' in section 'Service'
    2023-05-25 12:13:44 WARNING
    systemd [1]
    System daemons [3]
    [/usr/lib/systemd/system/grafana-server.service:34] Unknown lvalue 'ProtectKernelTunables' in section 'Service'
    2023-05-25 12:13:44 WARNING
    systemd [1]
    System daemons [3]
    [/usr/lib/systemd/system/grafana-server.service:33] Unknown lvalue 'ProtectKernelModules' in section 'Service'
    2023-05-25 12:13:44 WARNING
    systemd [1]
    System daemons [3]
    [/usr/lib/systemd/system/grafana-server.service:32] Unknown lvalue 'ProtectKernelLogs' in section 'Service'
    2023-05-25 12:13:44 WARNING
    systemd [1]
    System daemons [3]
    [/usr/lib/systemd/system/grafana-server.service:31] Unknown lvalue 'ProtectHostname' in section 'Service'
    2023-05-25 12:13:44 WARNING
    systemd [1]
    System daemons [3]
    [/usr/lib/systemd/system/grafana-server.service:29] Unknown lvalue 'ProtectControlGroups' in section 'Service'
    2023-05-25 12:13:44 WARNING
    systemd [1]
    System daemons [3]
    [/usr/lib/systemd/system/grafana-server.service:28] Unknown lvalue 'ProtectClock' in section 'Service'
    2023-05-25 12:13:44 WARNING
    systemd [1]
    System daemons [3]
    [/usr/lib/systemd/system/grafana-server.service:24] Unknown lvalue 'MemoryDenyWriteExecute' in section 'Service'
    2023-05-25 12:13:44 WARNING
    systemd [1]
    System daemons [3]
    [/usr/lib/systemd/system/grafana-server.service:23] Unknown lvalue 'LockPersonality' in section 'Service'
    0
  • Hello Jeff,
    I re-checked it in a test environment and the issue is not reproduced on Ubuntu 18.04 as the version of the Grafana package is 8.5.24 there.

    Debian 9 reached its End-of-life and is not supported. If you face this issue on a server with Debian 9, consider migrating to a new server with one of the supported OSes or performing a dist-upgrade.

    0

Please sign in to leave a comment.