Backups not completing
Over the last several weeks, we have been troubleshooting an issue with Total Upkeep where the backup .zip files were never being created fully. After reviewing the issues, we noticed a majority of the users having the issue were hosting with DreamHost.
When reviewing the logs created by Total Upkeep, we noticed that closing the zip file was not completing.
DreamHost was able to help troubleshoot
We got in touch with the support team at DreamHost, and they were very helpful in troubleshooting. We weren’t able to get a definitive reason for the backups failing. We didn’t have any error messages to actually highlight for us what was going wrong. The BoldGrid team had a strong inclination that the server was killing the backup processes, but we weren’t able to confirm that.
We added System Zip to Total Upkeep!
One thing we did try was to create backups using the server’s zip command (rather than php’s ZipArchive or PclZip). We released a new version of Total Upkeep with this new feature, but after testing, it did not help. On the bright side however, system zip is faster than ZipArchive and PclZip, and so our users now have the ability to create backups even faster!
A possible solution may have been found
After much troubleshooting, DreamHost was able to find a solution that seems to be helping. The main change is to use PHP 7.3 (without FastCGI active). Initial testing shows that this seems to be working, and so if you’re having a problem with backups not completing, please try this approach.
Why may this help?
According to DreamHost, FastCGI has some limitations that CGI does not in their system (such as an idle timeout and a maximum limit of processes that can be opened). They have an article about FastCGI vs CGI here. To test the change, DreamHost says that users can switch between PHP with or without FastCGI at any time, and they have a support article with more info on this.
If you are running Total Upkeep, are having issues with backups completing successfully, and you’re hosting with DreamHost, please try using PHP 7.3 (without FastCGI active) – setup guide. If you’re still having issues, or need help with another item, please feel free to post a question in the WordPress.org forums!
200+ Design Templates + 1 Kick-ass SuperTheme
6 WordPress Plugins + 2 Essential Services
Everything you need to build and manage WordPress websites in one Central place.