php - Amazon S3 upload error: An exception occurred while uploading parts to a multipart upload -


i trying upload 30 gb file amazon s3 using aws php sdk.

require('../vendor/autoload.php');  use aws\s3\multipartuploader; use aws\exception\multipartuploadexception;  $client = new aws\s3\s3client([ 'version' => 'latest', 'region'  => 'us-east-1' ]);  $bucket_name = 'server3-27-sep-2015'; $file_name   = 's3_www_1443369605.zip';  $uploader = new multipartuploader($client, $file_name, [ 'bucket' => $bucket_name, 'key'    => $file_name, 'part_size' => '5368709120' // 5gb ]);  try {     $result = $uploader->upload();     echo "upload complete \n"; } catch (multipartuploadexception $e) {     echo "upload error: " . $e->getmessage() . "\n"; } 

it works files 7gb. when uploading 30 gb file getting following error after script has run 2 hours:


an exception occurred while uploading parts multipart upload. following parts had errors: - part 5: error executing "uploadpart" on "https://s3.amazonaws.com/server3-27-sep-2015/s3_www_1443369605.zip?partnumber=5&uploadid=xe1ohuuvqnulyneu7.to.bsi6.ld9nchwkotdwgts4eyf9reortt3z8sssaogu6a6u_tb4fpl.wdg056xusaiw--"; aws http error: curl error 55: ssl_write() returned syscall, errno = 104 (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) (server): 100 continue - - part 4: error executing "uploadpart" on "https://s3.amazonaws.com/server3-27-sep-2015/s3_www_1443369605.zip?partnumber=4&uploadid=xe1ohuuvqnulyneu7.to.bsi6.ld9nchwkotdwgts4eyf9reortt3z8sssaogu6a6u_tb4fpl.wdg056xusaiw--"; aws http error: curl error 56: ssl read: error:00000000:lib(0):func(0):reason(0), errno 104 (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) (server): 100 continue - - part 2: error executing "uploadpart" on "https://s3.amazonaws.com/server3-27-sep-2015/s3_www_1443369605.zip?partnumber=2&uploadid=xe1ohuuvqnulyneu7.to.bsi6.ld9nchwkotdwgts4eyf9reortt3z8sssaogu6a6u_tb4fpl.wdg056xusaiw--"; aws http error: curl error 56: ssl read: error:00000000:lib(0):func(0):reason(0), errno 104 (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) (server): 100 continue - - part 1: error executing "uploadpart" on "https://s3.amazonaws.com/server3-27-sep-2015/s3_www_1443369605.zip?partnumber=1&uploadid=xe1ohuuvqnulyneu7.to.bsi6.ld9nchwkotdwgts4eyf9reortt3z8sssaogu6a6u_tb4fpl.wdg056xusaiw--"; aws http error: curl error 55: ssl_write() returned syscall, errno = 104 (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) (server): 100 continue -


amazon s3 allows upload large files in multiple parts , must use multipart upload files larger 5 gb. aws sdk php exposes high-level ws\s3\model\multipartupload\uploadbuilder class simplifies multipart uploads. aws\s3\model\multipartupload\uploadbuilder class best used simple multipart upload.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -