-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
bugThis issue is a bug.This issue is a bug.closing-soonThis issue will automatically close in 4 days unless further comments are made.This issue will automatically close in 4 days unless further comments are made.p2This is a standard priority issueThis is a standard priority issueresponse-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 7 days.Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.service-apiThis issue is due to a problem in a service API, not the SDK implementation.This issue is due to a problem in a service API, not the SDK implementation.
Description
Describe the bug
Using the aws-php-sdk transfer function to upload a directory of files always fails at some point during the process.
Expected Behavior
I would expect these operations would be retried by the SDK or these sort of error would be very rare.
Current Behavior
Uploading a batch of 73 files, ranging in size from 58MB to 2MB consistently fails sometime in the middle of the batch with one of the following errors...
AWS HTTP error: cURL error 55: Connection died, tried 5 times before giving upAWS HTTP error: cURL error 52: Empty reply from serverRequestTimeout (client): Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.
Reproduction Steps
The following php script runs in a debian12 docker container using php82.
<?php
require __DIR__ . '/vendor/autoload.php';
use Aws\S3\S3Client;
$bucket = 'redacted';
# setup client
$connection = S3Client::factory();
$options = array(
'debug' => true,
'concurrency' => 40,
'mup_threshold' => 16777216
);
$manager = new \Aws\S3\Transfer(
$connection,
"/tmp/input/",
"s3://$bucket/php-upload-test",
$options
);
$manager->transfer();Possible Solution
No response
Additional Information/Context
- Possibly related to: S3 client falling over after 4-5 hours of processing 200 files per minute aws-sdk-go-v2#2657
- The description above is from a setup used to re-created the issue locally on a development laptop. The issue occurs in a production system running in AWS Fargate.
- No problems have occured when doing similar operations using the AWS-CLI or python AWS SDK
- All files being uploaded are
FLACaudio files
SDK version used
3.321.0
Environment details (Version of PHP (php -v)? OS name and version, etc.)
php 8.2.22 ; OpenSSL 3.0.13 ; curl 7.88.1 ; debian12 (docker container)
Metadata
Metadata
Assignees
Labels
bugThis issue is a bug.This issue is a bug.closing-soonThis issue will automatically close in 4 days unless further comments are made.This issue will automatically close in 4 days unless further comments are made.p2This is a standard priority issueThis is a standard priority issueresponse-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 7 days.Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.service-apiThis issue is due to a problem in a service API, not the SDK implementation.This issue is due to a problem in a service API, not the SDK implementation.