An exception occurred while uploading parts to a multipart upload

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 12.0.2): 15.0.4
Operating system and version (eg, Ubuntu 17.04): Debian 9
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.25 (Debian)
PHP version (eg, 7.1): PHP 7.2.14-1

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. An exception occurred while file uploading to S3

The output of your Nextcloud log in Admin > Logging:

Sabre\DAV\Exception: An exception occurred while uploading parts to a multipart upload. The following parts had errors: - Part 1: Error executing "UploadPart" on "http://se.sima-land.local/major/2.jpeg?partNumber=1&uploadId=2~dwxXsjzMdoNy0HcuE3A0ksxG7PZcuXm"; AWS HTTP error: Server error: `PUT http://se.sima-land.local/major/2.jpeg?partNumber=1&uploadId=2~dwxXsjzMdoNy0HcuE3A0ksxG7PZcuXm` resulted in a `500 Internal Server Error` response: <?xml version="1.0" encoding="UTF-8"?><Error><Code>UnknownError</Code><BucketName>major</BucketName><RequestId>tx0000000 (truncated...) UnknownError (server): - <?xml version="1.0" encoding="UTF-8"?><Error><Code>UnknownError</Code><BucketName>major</BucketName><RequestId>tx000000000000000ece8f1-005c5d89e4-68f6ba7-se-k8</RequestId><HostId>68f6ba7-se-k8-se</HostId></Error>

    /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php - line 209:

    OCA\DAV\Connector\Sabre\File->convertToSabreException(Aws\S3\Excep ... {})

    /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php - line 156:

    OCA\DAV\Connector\Sabre\File->put(null)

    /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1096:

    OCA\DAV\Connector\Sabre\Directory->createFile("2.jpeg", null)

    /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 525:

    Sabre\DAV\Server->createFile("Ceph_S3/2.jpeg", null, null)

    <<closure>>

    Sabre\DAV\CorePlugin->httpPut(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})

    /var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105:

    call_user_func_array([ Sabre\DAV\ ... "], [ Sabre\HTTP ... }])

    /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 479:

    Sabre\Event\EventEmitter->emit("method:PUT", [ Sabre\HTTP ... }])

    /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254:

    Sabre\DAV\Server->invokeMethod(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})

    /var/www/nextcloud/apps/dav/appinfo/v1/webdav.php - line 80:

    Sabre\DAV\Server->exec()

    /var/www/nextcloud/remote.php - line 163:

    require_once("/var/www/ne ... p")

ЗапротоколированоAws\S3\Exception\S3MultipartUploadException: An exception occurred while uploading parts to a multipart upload. The following parts had errors: - Part 1: Error executing "UploadPart" on "http://se.sima-land.local/major/2.jpeg?partNumber=1&uploadId=2~dwxXsjzMdoNy0HcuE3A0ksxG7PZcuXm"; AWS HTTP error: Server error: `PUT http://se.sima-land.local/major/2.jpeg?partNumber=1&uploadId=2~dwxXsjzMdoNy0HcuE3A0ksxG7PZcuXm` resulted in a `500 Internal Server Error` response: <?xml version="1.0" encoding="UTF-8"?><Error><Code>UnknownError</Code><BucketName>major</BucketName><RequestId>tx0000000 (truncated...) UnknownError (server): - <?xml version="1.0" encoding="UTF-8"?><Error><Code>UnknownError</Code><BucketName>major</BucketName><RequestId>tx000000000000000ece8f1-005c5d89e4-68f6ba7-se-k8</RequestId><HostId>68f6ba7-se-k8-se</HostId></Error>

    <<closure>>

    Aws\Multipart\AbstractUploadManager->Aws\Multipart\{closure}("*** sensiti ... *")

    /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Coroutine.php - line 122:

    Generator->send(null)

    /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 203:

    GuzzleHttp\Promise\Coroutine->_handleSuccess(null)

    /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 156:

    GuzzleHttp\Promise\Promise::callHandler(1, null, [ GuzzleHttp ... ]])

    /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/TaskQueue.php - line 47:

    GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}("*** sensiti ... *")

    /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php - line 98:

    GuzzleHttp\Promise\TaskQueue->run()

    /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php - line 125:

    GuzzleHttp\Handler\CurlMultiHandler->tick()

    /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 246:

    GuzzleHttp\Handler\CurlMultiHandler->execute("*** sensiti ... *")

    /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 223:

    GuzzleHttp\Promise\Promise->invokeWaitFn()

    /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 267:

    GuzzleHttp\Promise\Promise->waitIfPending()

    /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 225:

    GuzzleHttp\Promise\Promise->invokeWaitList()

    /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 267:

    GuzzleHttp\Promise\Promise->waitIfPending()

    /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 225:

    GuzzleHttp\Promise\Promise->invokeWaitList()

    /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 62:

    GuzzleHttp\Promise\Promise->waitIfPending()

    /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Coroutine.php - line 65:

    GuzzleHttp\Promise\Promise->wait()

    /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 246:

    GuzzleHttp\Promise\Coroutine->GuzzleHttp\Promise\{closure}("*** sensiti ... *")

    /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 223:

    GuzzleHttp\Promise\Promise->invokeWaitFn()

    /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 267:

    GuzzleHttp\Promise\Promise->waitIfPending()

    /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 225:

    GuzzleHttp\Promise\Promise->invokeWaitList()

    /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 62:

    GuzzleHttp\Promise\Promise->waitIfPending()

    /var/www/nextcloud/3rdparty/aws/aws-sdk-php/src/Multipart/AbstractUploadManager.php - line 83:

    GuzzleHttp\Promise\Promise->wait()

    /var/www/nextcloud/lib/private/Files/ObjectStore/S3ObjectTrait.php - line 81:

    Aws\Multipart\AbstractUploadManager->upload()

    /var/www/nextcloud/apps/files_external/lib/Lib/Storage/AmazonS3.php - line 639:

    OCA\Files_External\Lib\Storage\AmazonS3->writeObject("2.jpeg", null)

    /var/www/nextcloud/apps/files_external/lib/Lib/Storage/AmazonS3.php - line 469:

    OCA\Files_External\Lib\Storage\AmazonS3->writeBack("/tmp/oc_tmp_5kCqPz", "2.jpeg")

    <<closure>>

    OCA\Files_External\Lib\Storage\AmazonS3->OCA\Files_External\Lib\Storage\{closure}("*** sensiti ... *")

    /var/www/nextcloud/apps/files_external/3rdparty/icewind/streams/src/CallbackWrapper.php - line 109:

    call_user_func(Closure {})

    <<closure>>

    Icewind\Streams\CallbackWrapper->stream_close()

    /var/www/nextcloud/lib/private/Files/Storage/Common.php - line 829:

    fclose(null)

    /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 630:

    OC\Files\Storage\Common->writeStream("2.jpeg", null, null)

    /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 630:

    OC\Files\Storage\Wrapper\Wrapper->writeStream("2.jpeg", null, null)

    /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 630:

    OC\Files\Storage\Wrapper\Wrapper->writeStream("2.jpeg", null, null)

    /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php - line 169:

    OC\Files\Storage\Wrapper\Wrapper->writeStream("2.jpeg", null)

    /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php - line 156:

    OCA\DAV\Connector\Sabre\File->put(null)

    /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1096:

    OCA\DAV\Connector\Sabre\Directory->createFile("2.jpeg", null)

    /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 525:

    Sabre\DAV\Server->createFile("Ceph_S3/2.jpeg", null, null)

    <<closure>>

    Sabre\DAV\CorePlugin->httpPut(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})

    /var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105:

    call_user_func_array([ Sabre\DAV\ ... "], [ Sabre\HTTP ... }])

    /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 479:

    Sabre\Event\EventEmitter->emit("method:PUT", [ Sabre\HTTP ... }])

    /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254:

    Sabre\DAV\Server->invokeMethod(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})

    /var/www/nextcloud/apps/dav/appinfo/v1/webdav.php - line 80:

    Sabre\DAV\Server->exec()

    /var/www/nextcloud/remote.php - line 163:

    require_once("/var/www/ne ... p")

The output of your Apache/nginx/system log in /var/log/____:

127.0.0.1:80 10.170.1.45 - - [08/Feb/2019:18:52:45 +0500] "PUT /nextcloud/remote.php/webdav/Ceph_S3/2.jpeg HTTP/1.1" 500 1661 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0"
127.0.0.1:80 10.170.1.45 - - [08/Feb/2019:18:52:45 +0500] "GET /nextcloud/index.php/apps/files/ajax/getstoragestats.php?dir=%2FCeph_S3 HTTP/1.1" 200 1168 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0"
127.0.0.1:80 10.170.1.45 - - [08/Feb/2019:18:52:46 +0500] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 1564 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0"
127.0.0.1:80 10.170.1.45 - - [08/Feb/2019:18:52:39 +0500] "GET /nextcloud/index.php/apps/logreader/poll?lastReqId=luXDAYYIPkKKE8vv7yzs HTTP/1.1" 200 24552 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0"

Same here after the Update to Nextcloud 15.0.7