• Resolved venu247

    (@venu247)


    Hi David,

    I have setup S3 uploads using updraft plus plugin. The S3 connection is working right – doesn’t show any issues when I press the ‘Test connection’ button.

    But while uploading, only a few of zipped files are getting uploaded. I’m getting the following error:

    S3 upload: getting uploadID for multipart upload failed – see log file for more details
    S3 upload: getting uploadID for multipart upload failed – see log file for more details
    S3 upload: getting uploadID for multipart upload failed – see log file for more details

    Here’s some of the error section of the log:

    0671.343 (2) Cloud backup selection: s3
    0671.376 (2) Beginning dispatch of backup to remote (s3)
    0671.482 (2) S3 upload (US): backup_2014-01-18-2103_StudioGenie__Mobile_Business_Ma_d5e81c9ea2d0-plugins.zip (chunks: 4) -> s3://studiogenie-net-website-backup/backup_2014-01-18-2103_StudioGenie__Mobile_Business_Ma_d5e81c9ea2d0-plugins.zip
    0671.731 (2) PHP event: code E_NOTICE: Undefined property: stdClass::$body (line 2169, wp-content/plugins/updraftplus/includes/S3.php)
    0671.747 (2) S3 upload: failed: could not get uploadId for multipart upload (backup_2014-01-18-2103_StudioGenie__Mobile_Business_Ma_d5e81c9ea2d0-plugins.zip)
    0671.758 (2) An error condition has occurred for the first time during this job
    0671.774 (2) S3 upload (US): backup_2014-01-18-2103_StudioGenie__Mobile_Business_Ma_d5e81c9ea2d0-themes.zip (chunks: 2) -> s3://studiogenie-net-website-backup/backup_2014-01-18-2103_StudioGenie__Mobile_Business_Ma_d5e81c9ea2d0-themes.zip
    0672.018 (2) PHP event: code E_NOTICE: Undefined property: stdClass::$body (line 2169, wp-content/plugins/updraftplus/includes/S3.php)
    0672.030 (2) S3 upload: failed: could not get uploadId for multipart upload (backup_2014-01-18-2103_StudioGenie__Mobile_Business_Ma_d5e81c9ea2d0-themes.zip)
    0672.046 (2) S3 upload (US): backup_2014-01-18-2103_StudioGenie__Mobile_Business_Ma_d5e81c9ea2d0-uploads.zip (chunks: 10) -> s3://studiogenie-net-website-backup/backup_2014-01-18-2103_StudioGenie__Mobile_Business_Ma_d5e81c9ea2d0-uploads.zip
    0672.274 (2) PHP event: code E_NOTICE: Undefined property: stdClass::$body (line 2169, wp-content/plugins/updraftplus/includes/S3.php)
    0672.284 (2) S3 upload: failed: could not get uploadId for multipart upload (backup_2014-01-18-2103_StudioGenie__Mobile_Business_Ma_d5e81c9ea2d0-uploads.zip)
    0672.307 (2) Retain: beginning examination of existing backup sets; user setting: retain_files=10, retain_db=10
    0672.322 (2) Number of backup sets in history: 7

    Can you please look into it and let me know what’s going wrong?

    Thanks,
    Venu

    https://www.ads-software.com/plugins/updraftplus/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author David Anderson

    (@davidanderson)

    Hi Venu,

    What version of UpdraftPlus is that?

    David

    Thread Starter venu247

    (@venu247)

    It’s Version 1.8.5

    Thread Starter venu247

    (@venu247)

    I’m using WordPress version 3.7.1 – if that helps.

    Plugin Author David Anderson

    (@davidanderson)

    Hi Venu,

    I think it’s going to be tricky to work out from here what the problem is. I suspect that your website has some outgoing proxy which might be interfering. If you’re happy to send me FTP and WP login credentials (to contact at updraftplus dot com) then I can take a look. Or failing that, ask the people running your webserver to take a closer look, or if they won’t do that, ask them if they have an outgoing proxy.

    Best wishes,
    David

    Was any progress made on this? I have the same issue. (running on WebFaction).

    I also am having the same issue.

    0033.641 (0) PHP event: code E_NOTICE: Undefined property: stdClass::$body (line 2169, wp-content/plugins/updraftplus/includes/S3.php)

    The test connection to S3 is fine. Was working in the past just fine.

    Plugin Author David Anderson

    (@davidanderson)

    Hi,

    As per the WordPress forum guidelines, please don’t post to resolved threads; see: https://codex.www.ads-software.com/Forum_Welcome#Where_To_Post

    If you open a new thread, please indicate what you know, if anything, about any proxies between your web server and the Internet (best is to ask the server admins first).

    Best wishes,
    David

    as per common sense, thread wasn’t resolved.

    There is a bug in the code. Hop to that line 2170 and change

    else
         $this->response->body .= $data;

    to

    else
        if (!isset($this->response->body)) $this->response->body =  $data;
        else $this->response->body .= $data;
    Plugin Author David Anderson

    (@davidanderson)

    Hi allengeer,

    Thanks. By coincedence, someone else had given me a login on a site with the same issue, and I can confirm that this is the fix. I’ve used this for neatness:

    $this->response->body = (empty($this->response->body)) ? $data : $this->response->body.$data;

    I’m not yet sure why this problem only appears to trigger on a tiny fraction of sites using Amazon S3; the function is a callback from Curl, so I suspect there’s some subtle race condition involved. But anyway, this does fix it.

    Like many plugin authors, we automatically close threads that have had no replies for 2 weeks. Experience shows that many posters won’t close the thread even if they found a resolution to their problem.

    David

    @david: I apologize for a response again to a resolved thread. Just wanted to give more input because I was one of the people who were having troubles (coincidentally, not with all my sites)

    This is indeed a callback from Curl, and that was the issue. I recently moved to a new VPS, and was installing a fresh LAMP stack, and updraft alerted me that my Curl installation wasn’t correct. I cleared this and everything seems to work ok.

    So if anyone is having this issue after David applies the fix, make a backup and try to update your Curl installation.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘S3 Upload errors’ is closed to new replies.