Skip to content

Nix binary cache, S3, InvalidChunkSizeError #12671

@gmarti

Description

@gmarti

Describe the bug

Updated from nix 2.25.3 2.22.1 to nix 2.26.3

copying path '/nix/store/3k5i8lz9pay0jn76xlm8y841xxa9mz2a-package' to 's3://bucket'...

error: AWS error: failed to upload 's3://bucket/blablabla.nar.zst': 
Unable to parse ExceptionName: 
InvalidChunkSizeError Message: Only the last chunk is allowed to have a size less than 8192 bytes

Steps To Reproduce

Uploading big files to S3 seems to fail randomly because of InvalidChunkSizeError

Expected behavior

The upload should succeed

Metadata

Using docker with custom nix 2.26.3 install

Additional context

It seems I hit this bug : aws/aws-sdk-cpp#3132

If I'm not mistaken 2.26.3 uses aws-sdk-cpp "1.11.336"
But 2.25.3 was using aws-sdk-cpp "1.11.318""

The bug is fixed in >= 1.11.445

Checklist


Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions