Title: Timout error on cloud servers
Last modified: August 21, 2016

---

# Timout error on cloud servers

 *  [jx](https://wordpress.org/support/users/jx/)
 * (@jx)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/timout-error-on-cloud-servers/)
 * Using Duplicator on Cloud servers usually times out because the load-balancing
   does not allow for more than 30 seconds of run time. Adding the following ping
   to keep the tunnel open to the install.php seems to solve the problem for me 
   at least.
 *  $pipe = popen($cmd, ‘r’);
 *  if (empty($pipe)) {
    throw new Exception(“Unable to open pipe for command ‘$
   cmd'”); }
 *  stream_set_blocking($pipe, false);
    echo “\n”;
 *  while (!feof($pipe)) {
    fread($pipe, 1024); sleep(1); echo “.”; flush(); }
 *  echo “\n”;
    pclose($pipe);
 * [http://wordpress.org/plugins/duplicator/](http://wordpress.org/plugins/duplicator/)

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

 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/timout-error-on-cloud-servers/#post-4177350)
 * Hey JX,
 * Thxs for posting that solution! I’m going to try and get the project into github
   soon and hope to start getting more contributions…
 * Cheers~
 *  Thread Starter [jx](https://wordpress.org/support/users/jx/)
 * (@jx)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/timout-error-on-cloud-servers/#post-4177357)
 * Glad to help. Thanks for making the plugin. You may have to play around with 
   exactly where to paste it. The first time I tried it it threw an error. Second
   time, I moved it down in the php and it threw an error but only after it kept
   the pipe open and the install actually worked perfectly despite the message, 
   so I didn’t really get it exactly right enough for production.
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/timout-error-on-cloud-servers/#post-4177443)
 * Thats fine, it can always be tweaked 🙂
 *  [macmonkeymark](https://wordpress.org/support/users/macmonkeymark/)
 * (@macmonkeymark)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/timout-error-on-cloud-servers/#post-4177466)
 * I’m keen to try this. Where exactly should this code be pasted? Which file?
 *  Thread Starter [jx](https://wordpress.org/support/users/jx/)
 * (@jx)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/timout-error-on-cloud-servers/#post-4177467)
 * Stick it somewhere in the installer.php file. Maybe after
    * PREG_REPLACEMENT_QUOTE
   somewhere around line 442.
 * Our fearless leader may be able to tweak the code so it works as it should. Right
   now, it works but you get an error message that says:
    “Please try again an issue
   has occurred.” It’s not really true. – Well, it is true, but the install still
   goes perfectly. The error is that the messages after install do not work, so 
   you have to already know to do things like log in and re-save the permalinks 
   and test the site.
 *  [macmonkeymark](https://wordpress.org/support/users/macmonkeymark/)
 * (@macmonkeymark)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/timout-error-on-cloud-servers/#post-4177469)
 * Tried it – didn’t work. I’ll talk to my hosts about cloud timeouts.
 *  Thread Starter [jx](https://wordpress.org/support/users/jx/)
 * (@jx)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/timout-error-on-cloud-servers/#post-4177470)
 * Let us know what they say. Which host are you using? Did you make sure that you
   pasted it between php tags and not inside some other function? It worked for 
   me on 2 different cloud servers so far.

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

The topic ‘Timout error on cloud servers’ 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/)

## Tags

 * [timeout](https://wordpress.org/support/topic-tag/timeout/)

 * 7 replies
 * 3 participants
 * Last reply from: [jx](https://wordpress.org/support/users/jx/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/timout-error-on-cloud-servers/#post-4177470)
 * Status: not resolved