Repository navigation
Description
Before you start
- I searched the forum and open/closed issues and pull requests for this problem.
- I reproduced this with the latest stable release, v1.74.4.
- This is a reproducible bug, not a usage question.
Associated forum post URL
None.
What is the problem you are having with rclone?
The S3 backend does not retry an HTTP/2 GOAWAY received after successful response headers while reading a ListObjectsV2 response body. A transient connection retirement therefore aborts a large rclone check, even with the default low-level retries.
The observed error was:
operation error S3: ListObjectsV2,
https response error StatusCode: 200, RequestID: , HostID: ,
deserialization failed, failed to decode response body,
http2: server sent GOAWAY and closed the connection;
LastStreamID=19999, ErrCode=NO_ERROR, debug=""
This happened during a large size-only, one-way check against an S3-compatible endpoint. The interrupted listing also caused the check to report destination objects as missing before exiting unsuccessfully.
The failure path appears to be:
- The S3 listing page is already wrapped in
f.pacer.Call. - AWS SDK v2 wraps the interrupted successful response body as a Smithy deserialization error.
s3.shouldRetrydelegates tofserrors.ShouldRetrybecause the HTTP status is200.fserrors.ShouldRetryrecognizesEOF,unexpected EOF, and"stream error:", but not Go's"server sent GOAWAY and closed the connection"error.- The error is not a public
net.ErrorwithTimeout/Temporary, so the low-level retry classifier returns false. rclone checkdisables whole-command high-level retries, so the command fails immediately.
I found #7787 while checking for duplicates. It mentions the same GOAWAY text, but only as one symptom of a PikPak upload problem; its backend-specific fix was increased pacing. It does not cover S3 response-body retry classification.
rclone version
rclone v1.74.4
- os/type: linux
- os/arch: amd64
This was the official v1.74.4 Linux package running in an ephemeral VM.
Operating system
Linux
Which cloud storage system are you using?
S3-compatible object storage using the s3 backend with provider = Other.
Output of rclone config redacted
[source]
type = s3
provider = Other
access_key_id = XXX
secret_access_key = XXX
endpoint = https://source.example
region = us-east-1
[destination]
type = s3
provider = Other
access_key_id = XXX
secret_access_key = XXX
endpoint = https://destination.example
region = us-east-1The command you were trying to run
rclone check source:bucket destination:bucket \
--size-only \
--one-way \
--checkers 128 \
--s3-list-version 2 \
--stats 30s \
--stats-log-level NOTICE \
--stats-one-lineA log from the command with the -vv flag
The relevant sanitized error is:
ERROR : S3 bucket destination: error reading destination root directory: operation error S3: ListObjectsV2, https response error StatusCode: 200, RequestID: , HostID: , deserialization failed, failed to decode response body, http2: server sent GOAWAY and closed the connection; LastStreamID=19999, ErrCode=NO_ERROR, debug=""
Anything else?
Expected behavior: this transport interruption should consume a low-level retry and repeat the idempotent listing page. Complete-but-malformed XML should remain non-retryable.
A narrow fix could extend fserrors.ShouldRetry (or the S3 backend's classifier) to recognize the GOAWAY-close transport error. Go's concrete http2GoAwayError is internal, so matching through the wrapped error/cause or its stable message may be necessary.
The upstream AWS SDK v2 has the same classification gap; its earlier related report aws/aws-sdk-go-v2#1717 was closed without a fix after going stale. The exact GOAWAY evidence is tracked in aws/aws-sdk-go-v2#3494.
Activity
fserrors: make http2 "server sent GOAWAY" a retriable error - fixes #…
fserrors: make http2 "server sent GOAWAY" a retriable error - fixes r…