Title: Error while updating plugins
Last modified: October 7, 2024

---

# Error while updating plugins

 *  [spiwee](https://wordpress.org/support/users/spiwee/)
 * (@spiwee)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/error-while-updating-plugins-2/)
 * Hi
   I have two completely independent servers, each with around 30 sites installed.
   I work with Docker containers and a Cloudflare tunnel.Since last week, when I
   try to update plugins via the WordPress interface, after successfully updating
   about 5 or 6 plugins, it starts to fail randomly on any plugin. I get different
   error messages, but often it says that it was unable to write to the upgrade 
   directories. In fact, it even deletes the folder with the plugin files.There’s
   nothing in the logs, no permission issues. It happens on both servers.I was able
   to work around the issue by using MainWP, with which all updates work fine.I 
   have no idea where the problem is coming from.Thanks

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

 *  [Zartab Farooquee](https://wordpress.org/support/users/zartabwp/)
 * (@zartabwp)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/error-while-updating-plugins-2/#post-18058177)
 * Increase the memory limit
 * define(‘WP_MEMORY_LIMIT’, ‘256M’);
 *  Thread Starter [spiwee](https://wordpress.org/support/users/spiwee/)
 * (@spiwee)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/error-while-updating-plugins-2/#post-18058667)
 * Thanks
   I will tryRegards
 *  Thread Starter [spiwee](https://wordpress.org/support/users/spiwee/)
 * (@spiwee)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/error-while-updating-plugins-2/#post-18062712)
 * Hi
   I try :define(‘WP_MEMORY_LIMIT’, ‘256M’); : plugins update faildefine(‘WP_TEMP_DIR’,
   ABSPATH . ‘wp-content/temp’); and create wp-content/temp directory : plugins 
   update failUpdate the stack : plugins update failI don’t have any other ideas…
 *  [drusso](https://wordpress.org/support/users/drusso/)
 * (@drusso)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/error-while-updating-plugins-2/#post-18065816)
 * We had similar issues with various plugin update errors that seemed random but
   only occured when attempting an update using the admin interface. In Cloudflare
   go to Speed > Optimization > Content Optimization. Check to see if Speed Brain
   is enabled. Disable Speed Brain and try your plugin updates again. For plugins
   that have already failed to update you might need to delete them and reinstall
   them even Speed Brain is the problem. We discovered the failure caused some plugin
   folders to be empty or had several missing files.
 *  Thread Starter [spiwee](https://wordpress.org/support/users/spiwee/)
 * (@spiwee)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/error-while-updating-plugins-2/#post-18067189)
 * Hi [@drusso](https://wordpress.org/support/users/drusso/) 
   Thank you very much
   for your response.This morning, I disabled Speed Brain on several domains, and
   I was able to perform about 30 updates without any issues!I still checked my 
   domains with pings and had almost no packet loss (even before disabling Speed
   Brain), whereas in the past few days, the packet loss was significant.So, I will
   keep an eye on this parameter before restarting updates next week.Thanks again
   for helping me resolve this situation, especially since restoring the plugins
   after crashes takes a lot of time.Have a good weekendBest regardsNathalie

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

The topic ‘Error while updating plugins’ is closed to new replies.

## Tags

 * [plugin update error](https://wordpress.org/support/topic-tag/plugin-update-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [spiwee](https://wordpress.org/support/users/spiwee/)
 * Last activity: [1 year, 7 months ago](https://wordpress.org/support/topic/error-while-updating-plugins-2/#post-18067189)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
