Applicable to:
- Plesk for Linux
Symptoms
-
An attempt to start the Resource Controller (Cgroups) service in Plesk > Tools & Settings > Services Management, fails with:
PLESK_ERROR: Error: collectdmng failed: Fail to start sw-collectd!
-
After enabling debug mode, the following can be found in
/var/log/plesk/panel.log
:CONFIG_TEXT: DEBUG [util_exec] [d609e363011b8cd5e276bed9c8e76854-0] Starting: collectdmng user-threshold-stdin
DEBUG [util_exec] [d609e363011b8cd5e276bed9c8e76854-0] Finished in 0.58904s, Error code: 1
ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/collectdmng' 'user-threshold-stdin'] with exit code [1]
ERR [panel] PleskUtilException: '/opt/psa/admin/bin/collectdmng' 'user-threshold-stdin' failed with code 1. -
The system logs for the service
sw-collectd
has several restarts in a row, leading to a failure:# journalctl -u sw-collectd
systemd[1]: Started Startup script for statistics collecting from Plesk Panel Health Monitor.
sw-collectd[26224]: plugin_load: plugin "rrdtool" successfully loaded.
collectd[26224]: plugin_load: plugin "syslog" successfully loaded.
systemd[1]: Stopping Startup script for statistics collecting from Plesk Panel Health Monitor...
systemd[1]: sw-collectd.service: Succeeded.
systemd[1]: Stopped Startup script for statistics collecting from Plesk Panel Health Monitor.
systemd[1]: sw-collectd.service: Start request repeated too quickly.
systemd[1]: sw-collectd.service: Failed with result 'start-limit-hit'.
systemd[1]: Failed to start Startup script for statistics collecting from Plesk Panel Health Monitor.
Cause
The collectd service is failing to start due to systemd rate limiting.
Resolution
As a workaround, disable the rate limiting:
- Connect to a Plesk server via SSH.
- Add the following setting to the
/lib/systemd/system/sw-collectd.service
file:CONFIG_TEXT: [Unit]
StartLimitIntervalSec=0 -
Apply the changes:
# systemctl daemon-reload
- Start sw-collectd service:
# systemctl start sw-collectd
- Go to Tools & Settings > Services Management > and start Resource Controller (Cgroups)
Comments
0 comments
Please sign in to leave a comment.