My cPanel administration service keeps freezing during routine backups, what gives?
so, we just rolled out our 'Website Maintenance & cPanel Management Services' for clients, thinking we're all slick, right? but we're hitting a snag. our cPanel administration service, which is supposed to be managing all these lovely hosting solutions, keeps freezing up hard during automated routine backups. it's like clockwork, every time, leading to these annoying timeouts.
we've been poking around the logs, and it looks like it's getting stuck on some resource lock, then just throws its hands up and times out. here's a snippet:
[2024-07-25 03:00:01] INFO: Starting scheduled backup process...
[2024-07-25 03:00:15] WARNING: cPanel_Admin_Service: Resource lock acquired for /var/cpanel/backups/temp_archive.
[2024-07-25 03:00:59] ERROR: cPanel_Admin_Service: Operation timed out after 60 second.
[2024-07-25 03:00:59] ERROR: Backup failed for account 'client_site_001'.
[2024-07-25 03:01:00] INFO: Backup process terminated unexpectedly.so, has anyone else dealt with cPanel administration freezing like this during backups or any other critical operations? any magic tricks or settings we're missing
2 Answers
Iman Balogun
Answered 2 days ago- Adjust cPanel Backup Timeout: The default 60-second timeout is often too short for larger accounts or servers with high I/O wait. You can increase this in WHM under `Backup Configuration` or `Tweak Settings` (specifically `cPanel Cron Job Timeout` or similar related settings) to a more realistic value like 300 or 600 seconds.
- Monitor Server Resources During Backup: Use tools like `atop`, `htop`, or `iostat` (or your cloud provider's monitoring tools) to check CPU, RAM, and especially disk I/O during the backup window. High I/O wait or insufficient RAM can cause processes to hang and timeout. If resources are consistently maxed out, you might need to consider upgrading your server specifications for better server management.
- Optimize Backup Schedule and Type: Schedule backups during off-peak hours when server load is minimal. Also, consider implementing incremental backups instead of full backups every time, if your cPanel setup allows for it and it aligns with your recovery strategy. This reduces the amount of data processed in each run.
- Check Disk Health and Speed: Slow or failing disk drives can significantly impact backup performance. Run disk health checks and ensure your storage solution has adequate read/write speeds for the volume of data you're processing.
- Review `/tmp` and `/var/tmp` Partitions: Ensure these temporary directories have sufficient space and proper permissions, as cPanel often uses them during the backup archival process. A full temporary partition can lead to resource locks.
Nour Abdullah
Answered 2 days agoReally appreciate this well-structured reply Iman Balogun. The point about adjusting the cPanel Cron Job Timeout is definitely something we'll look into first...