Why Your Duplicator Package Build Gets Stuck and How to Fix It
Content
If you've ever tried to create a backup or migration package with the Duplicator plugin only to have it freeze at a specific percentage—like 20%, 30%, or 65%—you're not alone. This is a common frustration reported by many users. This guide will walk you through the most likely causes and the steps you can take to resolve the issue.
What Does "Stuck" Mean?
The "Building Package" process involves two main tasks: creating a database dump and archiving your site's files. When the process gets "stuck," it means the server has stopped processing one of these tasks. This often manifests as the progress bar freezing at a specific point for an extended period, eventually leading to a timeout, a "build interrupted" error, or a white screen. In some cases, the process may even appear to complete but produce a package that is much smaller than expected.
Common Causes and Their Solutions
1. Server Timeouts and Resource Limits
This is the most frequent culprit. Web servers and PHP are configured with default time and resource limits to maintain stability. For larger sites, the Duplicator build process can exceed these limits.
- PHP Limits: Increase the
max_execution_time,memory_limit, andpost_max_sizevalues in your php.ini file. Try setting the execution time to 500 or more and memory to 512MB or higher. - Web Server Limits: Servers like Apache or Nginx may have their own timeout settings (e.g.,
mod_reqtimeoutfor Apache). You may need to contact your hosting provider to adjust these.
2. Database Engine and Large Databases
The process can hang during the database dump phase, especially with large databases (e.g., 1GB+).
- Switch Database Engines: In Duplicator > Settings > Packages, try changing the "Database Engine" from the default "PHP code" to "MySQLDump" if your host supports it. This is often much faster and more reliable for large databases.
- If MySQLDump is Not Available: On some shared hosts, shell access is disabled. If you cannot use mysqldump, try adjusting the "Query Size Limit" and "Chunk Size" settings in the database options to use smaller chunks of data.
3. File Permissions and Server Security Modules
The plugin may be unable to read or write certain files or directories due to permission restrictions.
- Check File Permissions: Ensure the plugin has read access to all WordPress files and write access to the
wp-snapshotsdirectory. - Open-Basedir Restrictions: The PHP
open_basedirdirective can restrict which files PHP can access. If enabled, it may need to be configured to include all necessary paths or disabled. - ModSecurity: Some server security modules can incorrectly flag the build process as malicious. Checking your server's error logs or temporarily disabling ModSecurity (if possible) can help identify if this is the cause.
4. Check the Package Build Log
The most important step for diagnosis is to check the detailed log file Duplicator generates for each package.
- Go to Duplicator > Packages.
- Click the details button for the failed package.
- Review the log for any warnings, errors, or notices that occur near the end of the file. This log often contains the exact reason the build failed, such as a permission denied error or a timeout.
5. Try the DupArchive Engine (For Sites Under 500MB)
For sites under 500MB, the DupArchive engine can be more efficient and less prone to timeouts than the standard ZIP engine.
- In Duplicator > Settings > Packages, change the "Archive Engine" to DupArchive.
6. For Extremely Large Sites: Filter and Split
If your site is very large (e.g., 10GB+), the build process may be too heavy for your server environment.
- Use Filters: Exclude unnecessary large files from the package, such as video files, old backups, or cache directories (e.g.,
wp-content/cache). - Database-Only or Files-Only: Consider creating a database-only package and manually migrating the files via FTP, or vice-versa.
What to Do If Nothing Works
If you have tried all the steps above and are still encountering issues, the problem may be a specific server configuration that is difficult to diagnose publicly. Your next step should be to seek help from your web hosting provider's support team. They can check the server's error logs (e.g., Apache, Nginx, or PHP-FPM logs) for any underlying issues that are interrupting the process.
Remember, a package build getting stuck is almost always a server resource or configuration issue, not necessarily a flaw in the Duplicator plugin itself. Methodically working through these common solutions will most often lead to a successful build.
Related Support Threads Support
-
Building package stuck at 20%https://wordpress.org/support/topic/building-package-stuck-at-20/
-
Building Package stuck at 23.5%https://wordpress.org/support/topic/building-package-stuck-at-23-5/
-
Backup process stays at 20% foreverhttps://wordpress.org/support/topic/backup-process-stays-at-20-forever/
-
Finished and dowloaded Package but shows building package on the Archive 65%https://wordpress.org/support/topic/finished-and-dowloaded-package-but-shows-building-package-on-the-archive-65/
-
duplicator not creating packageshttps://wordpress.org/support/topic/duplicator-not-creating-packages-2/
-
Duplicator hangs at 0% Building Database Onlyhttps://wordpress.org/support/topic/duplicator-hangs-at-0-building-database-only/
-
Package create fail but no errorhttps://wordpress.org/support/topic/package-create-fail-but-no-error/
-
Stuck at 26%https://wordpress.org/support/topic/stuck-at-26/
-
Anything over 300MB never buildshttps://wordpress.org/support/topic/anything-over-300mb-never-builds/
-
Building Package stops at 30%https://wordpress.org/support/topic/building-package-stops-at-30/
-
Stuck at 59%https://wordpress.org/support/topic/stuck-at-59/
-
Duplicator not creating a real packagehttps://wordpress.org/support/topic/duplicator-not-creating-a-real-package/
-
Duplicator extraction extremely slowhttps://wordpress.org/support/topic/duplicator-extraction-extremely-slow/
-
All attempts are abortedhttps://wordpress.org/support/topic/all-attempts-are-aborted/
-
Files not saving in the archivehttps://wordpress.org/support/topic/files-not-saving-in-the-archive/
-
Extracting Archive Files Stuck on 28%https://wordpress.org/support/topic/extracting-archive-files-stuck-on-28/
-
Import Issuehttps://wordpress.org/support/topic/import-issue-20/
-
this sh%%^ just does not work. stuck at 22%https://wordpress.org/support/topic/this-sh-just-does-not-work-stuck-at-22/
-
Problema duplicator in localehttps://wordpress.org/support/topic/problema-duplicator-in-locale/
-
Freezing when Building Packagehttps://wordpress.org/support/topic/freezing-when-building-package/
-
duplicator 60 percent slowlyhttps://wordpress.org/support/topic/duplicator-60-percent-slowly/
-
Stuck in Building Package 20%https://wordpress.org/support/topic/stuck-in-building-package-20/
-
Package gets stuck at 22.9%https://wordpress.org/support/topic/package-gets-stuck-at-22-9/
-
Stuck on 21.6%https://wordpress.org/support/topic/stuck-on-21-6/
-
My duplicator building package process creates large binlogshttps://wordpress.org/support/topic/my-duplicator-building-package-process-creates-large-binlogs/
-
Duplicator seems to stall with “Building Package 65.0%”https://wordpress.org/support/topic/duplicator-seems-to-stall-with-building-package-65-0/
-
duplicator problemhttps://wordpress.org/support/topic/duplicator-problem/
-
Hang on Transferring Packagehttps://wordpress.org/support/topic/hang-on-transferring-package/
-
Building Package at 44 percent after 25 minuteshttps://wordpress.org/support/topic/building-package-at-44-percent-after-25-minutes/
-
Package build incomplete – Database onlyhttps://wordpress.org/support/topic/package-build-incomplete-database-only/
-
Extremely slow local installation!https://wordpress.org/support/topic/extremely-slow-local-installation/
-
download gets stuckhttps://wordpress.org/support/topic/download-gets-stuck/
-
Duplicator resource usagehttps://wordpress.org/support/topic/duplicator-resource-usage/