Articles in this section

CPU and Memory usage widgets fail to load on Plesk home screen: Request failed with status code 500

Plesk for Linux

Applicable to:

  • Plesk for Linux

Symptoms

  • Both CPU and Memory usage widgets display the following error on the Plesk home page:
  • The following error is logged in the Plesk panel log at /var/log/plesk/panel.log:

CONFIG_TEXT: [2024-12-13 23:36:38.197] 467571:675cb6f6300d0 ERR [extension/monitoring] /usr/local/psa/admin/plib/modules/monitoring/library/RrdLib/RrdHeader.php(92): Empty file.
[2024-12-13 23:36:38.239] 467574:675cb6f63a8b8 ERR [extension/monitoring] /usr/local/psa/admin/plib/modules/monitoring/library/RrdLib/RrdHeader.php(92): Empty file

Cause

The root cause of the issue is unknown.

More information on Jira PPS-17138

Resolution

In order to resolve the issue, fully remove the Monitoring and Grafana extensions and their relative data and then re-install them. That can be achieved by executing the following steps:

  1. Connect to the server via SSH
  2. Uninstall Grafana and Monitoring Extensions:

    # plesk bin extension --uninstall grafana
    # plesk bin extension --uninstall monitoring

  3. Remove Grafana from the server completely by executing one of the following commands (based on the operating system):

    ▪ For Debian-based operating systems:

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

    ▪ For RHEL-based operating systems:

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

  4. Delete the folder /usr/local/psa/var/health/data and its content:

    # rm -rf /usr/local/psa/var/health/data

  5. Reinstall Grafana and Monitoring Extensions:

    # plesk bin extension --install grafana
    # plesk bin extension --install monitoring

  6. Restart sw-collectd to regenerate stat files:

    # systemctl restart sw-collectd

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.