Title: PHP Error with S3
Last modified: February 28, 2022

---

# PHP Error with S3

 *  Resolved [larsvonhierblau](https://wordpress.org/support/users/larsvonhierblau/)
 * (@larsvonhierblau)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-error-with-s3/)
 * Hi I’m getting this error message. PHP event: code E_NOTICE: fwrite(): Write 
   of 5242880 bytes failed with errno=28 No space left on device
 * The File chunk size is 200mb and its a Digital Ocean droplet with more than enough
   power, so it should be an issue. The older version (like t3 versions before) 
   don#t show any such behavior.

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

 *  Plugin Contributor [bcrodua](https://wordpress.org/support/users/bcrodua/)
 * (@bcrodua)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-error-with-s3/#post-15413686)
 * Hi,
 * Please could you try adding the following to your wp-config.php file, near the
   top:
 * define(‘UPDRAFTPLUS_S3_OLDLIB’, true);
 * This will set UpdraftPlus to use a fallback library for accessing S3.
    Does this
   change improve the backup?
 * Best Wishes,
    Bryle
 *  Thread Starter [larsvonhierblau](https://wordpress.org/support/users/larsvonhierblau/)
 * (@larsvonhierblau)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-error-with-s3/#post-15420865)
 * Hi, I tried but it didn’t help. The Upload and execution works now but seems 
   to stuck at following error:
    Amazon S3: upload: all chunks uploaded; will now
   instruct S3 to re-assemble 4324.114 (6) Amazon S3: re-assembly error (others0):
   Error executing “CompleteMultipartUpload”
 * I made a new bucket already. I checked my cron jobs and i also added the litespeed
   noabart tag. However the error seems to persist. I also decreased the split file
   size. The issues didn’t accuse with significantly older versions.
    -  This reply was modified 4 years, 3 months ago by [larsvonhierblau](https://wordpress.org/support/users/larsvonhierblau/).
 *  Plugin Author [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * (@davidanderson)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/php-error-with-s3/#post-15422815)
 * Please include a link to your backup log file (using pastebin.com).
 * David
 *  Thread Starter [larsvonhierblau](https://wordpress.org/support/users/larsvonhierblau/)
 * (@larsvonhierblau)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/php-error-with-s3/#post-15424761)
 * Hi, [@davidanderson](https://wordpress.org/support/users/davidanderson/) the 
   issues seems to be related to /tmp space of ubunutu. Updraft seems to fill it
   up during the upload to S3 and not getting rid of the already uploaded chunks.
   This seems to accumulate until the /tmp is running out of space. This happens
   on all chunk settings (used several). I created a temporary new sized /tmp and
   the backup went through without issues. But this method isn’t sustainable hence
   it causes the ram to fill up. Is there a way to use /tmp directory within wordpress
   which can be defined via wp-config?
    -  This reply was modified 4 years, 2 months ago by [larsvonhierblau](https://wordpress.org/support/users/larsvonhierblau/).
 *  Plugin Author [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * (@davidanderson)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/php-error-with-s3/#post-15426207)
 * Hi,
 * If you’ve used the define above, then temporary file space isn’t being used, 
   so please check that you’ve set it correctly, and the datestamps on the temporary
   files.
 * David
 *  Thread Starter [larsvonhierblau](https://wordpress.org/support/users/larsvonhierblau/)
 * (@larsvonhierblau)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/php-error-with-s3/#post-15428105)
 * Hi [@davidanderson](https://wordpress.org/support/users/davidanderson/) thank
   you very much! I before didn’t add the define (..) on the top. It turns out it
   really works great. Just one more question, is this just a temporary solution
   or will this change, and if so would it be announced? Btw. thanks for the amazing
   support! Really rocks
 *  Plugin Author [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * (@davidanderson)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/php-error-with-s3/#post-15437676)
 * You can remove the define after 6 weeks, since it will be applied automatically
   in future.

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

The topic ‘PHP Error with S3’ is closed to new replies.

 * ![](https://ps.w.org/updraftplus/assets/icon-256x256.jpg?rev=1686200)
 * [UpdraftPlus: WP Backup & Migration Plugin](https://wordpress.org/plugins/updraftplus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/updraftplus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/updraftplus/)
 * [Active Topics](https://wordpress.org/support/plugin/updraftplus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/updraftplus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/updraftplus/reviews/)

## Tags

 * [aws](https://wordpress.org/support/topic-tag/aws/)
 * [php-error](https://wordpress.org/support/topic-tag/php-error/)
 * [s3](https://wordpress.org/support/topic-tag/s3/)

 * 7 replies
 * 3 participants
 * Last reply from: [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/php-error-with-s3/#post-15437676)
 * Status: resolved