Skip to content

S3: retry HTTP/2 GOAWAY while decoding successful ListObjectsV2 responses #9664

Closed

Description

@Hades32

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:

  1. The S3 listing page is already wrapped in f.pacer.Call.
  2. AWS SDK v2 wraps the interrupted successful response body as a Smithy deserialization error.
  3. s3.shouldRetry delegates to fserrors.ShouldRetry because the HTTP status is 200.
  4. fserrors.ShouldRetry recognizes EOF, unexpected EOF, and "stream error:", but not Go's "server sent GOAWAY and closed the connection" error.
  5. The error is not a public net.Error with Timeout/Temporary, so the low-level retry classifier returns false.
  6. rclone check disables 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-1

The 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-line

A 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

  1. added a commit that references this issue on Jul 29, 2026
    ab93058
  2. added a commit that references this issue on Oct 6, 2026
    9feadfd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions