Skip to content

Nix binary cache, S3, InvalidChunkSizeError #12671

Closed

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.

Activity

  1. mplanchard commented on Mar 26, 2025

    @mplanchard

    Started seeing this when we added multipart-upload=true to our s3 cache settings

  2. 25 remaining items

  3. lovesegfault commented on Oct 16, 2025

    @lovesegfault
    Member

    This should be fixed now that #13752 has landed, can any of you test?

  4. lovesegfault commented on Oct 23, 2025

    @lovesegfault
    Member

    Actually, this will be fixed by #14330

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions