Title: Package build fails
Last modified: August 31, 2016

---

# Package build fails

 *  Resolved [randallxski](https://wordpress.org/support/users/randallxski/)
 * (@randallxski)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/package-build-fails/)
 * I’ve been creating a manual backup of a site I created every month or 2, but 
   Duplicator has been failing when building the package recently. Partway through
   the package build process, the screen refreshes to show “Stats” in the upper 
   left corner, and then’ the “Stats” word is replaced by a little bar graph similar
   to what I see at the top of my dashboard page. This is typically displayed within
   a minute or 2 of starting the Build process.
 * My backups are not huge…about 250MB, and even when I exclude the uploads folder
   I still get a failure. I’ve tried this on 2 different web site hosting servers
   and get the same result in both places, so it doesn’t seem to be a new server
   configuration issue with a single hosting company.
 * Any ideas on how to fix this? Duplicator was worked well up until a month or 
   so ago.
 * [https://wordpress.org/plugins/duplicator/](https://wordpress.org/plugins/duplicator/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [derrickmg](https://wordpress.org/support/users/derrickmg/)
 * (@derrickmg)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/package-build-fails/#post-7211034)
 * I had the same issue,
    Interested to see what the answer is.
 * I was given the following answer by my Host, anyone know if it is right?
 * “Package log was not informative and didn’t provided us with any error.
    However,
   we found the following errors in server logs: ===============================
   ========== [Sat Mar 26 14:50:31.113733 2016] [lsapi:error] [pid 899787:tid 140108898977536][
   client 146.198.145.230:55639] [host ……………] Error receiving response: ReceiveResponse:
   receive pkg hdr failed: ReceivePkgHdr: nothing to read from backend socket, referer:
   [http://…………&#8230](http://…………&#8230);?page=duplicator&tab=new3 ============
   ============================= 2016-03-26 14:50:31 292828 [Warning] Aborted connection
   260216 to db: ‘………..’ user: ‘….’ host: ‘localhost’ (Got an error reading communication
   packets) =========================================
 * As you can see, “max_allowed_packet” limit was exceeded.
    This is most likely
   related to a large SQL file that cannot be processed by Apache in shared hosting
   environment, we would also like to notify you that we don’t increase the “max_allowed_packet”
   value on the shared servers for security reason.”
 *  [derrickmg](https://wordpress.org/support/users/derrickmg/)
 * (@derrickmg)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/package-build-fails/#post-7211187)
 * The brilliant guys at Jolt Host persevered and found the solution for me.
 * “–noticed the following error message: “PHP MAX MEMORY: Unabled to set php memory_limit”
   
   We then have accessed your account’s cPanel control panel >> “Software” section
   >> clicked the “Select PHP Version” icon >> chose alternative PHP 5.5 version
   from the drop-down menu >> clicked the “Set as current” button >> clicked the“
   Switch To PHP Options” link >> max_execution_time value was increased from 30
   to 300, max_input_vars value was increased from 1000 to 2000, memory_limit value
   was increased from 128M to 512M, post_max_size value was increased from 8M to
   128M and upload_max_filesize value was increased from 2M to 512M >> clicked the“
   Save” button.”
 * Everything works for me now. Hope this helps others.
 *  Thread Starter [randallxski](https://wordpress.org/support/users/randallxski/)
 * (@randallxski)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/package-build-fails/#post-7211190)
 * Thanks derrickmg. I will check out what version of PHP is running on both web
   hosts and see what options are available. I really appreciate you posting your
   solution. It will be great if it works for my servers as well!
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/package-build-fails/#post-7211212)
 * Thanks for posting your work-a-round Derrick!
 *  Thread Starter [randallxski](https://wordpress.org/support/users/randallxski/)
 * (@randallxski)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/package-build-fails/#post-7211247)
 * Fortunately I’ve been able to reduce my backup size from 240MB down to 210MB,
   and Duplicator seems to be working for now, but not a good long-term fix.
 * I’m already running PHP 5.5 with the following settings:
    upload_max_filesize
   = 10M post_max_size = 105M max_execution_time = 500 max_input_time = 500 memory_limit
   = 256M
 * According to the logs, the Duplicator process halts just before the last “Complete”
   line. Perhaps there will be a fix for whatever the issue is before my backup 
   hits 240MB again.
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/package-build-fails/#post-7211249)
 * On some systems max_execution_time can be overridden by the web server. So even
   though PHP is allows to run for 500 seconds. Apache is only allowed to run for
   30 seconds. In some causes because PHP runs as a process in Apache then it is
   killed. On other setups PHP will continue to run in the background but the web
   page will show a timeout…

Viewing 6 replies - 1 through 6 (of 6 total)

 The topic ‘Package build fails’ is closed to new replies.

 * ![](https://ps.w.org/duplicator/assets/icon-256x256.png?rev=2906985)
 * [Duplicator - Backups & Migration Plugin - Cloud Backups, Scheduled Backups, & More](https://wordpress.org/plugins/duplicator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duplicator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duplicator/)
 * [Active Topics](https://wordpress.org/support/plugin/duplicator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duplicator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duplicator/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/package-build-fails/#post-7211249)
 * Status: resolved