"All non-trailing parts must have the same length"

I am struggling to make R2 work with Docker registry due to the following error:

unknown error completing upload: InvalidPart: All non-trailing parts must have the same length.

Related with a previous report: Cloudflare R2 doesn't support ListParts operation

The only subtle difference from @josuegomes’s report is that I am trying to use S3 compatible API from R2 for my Docker registry.

Is anyone else suffering with this or knows how to workaround it?

4 Likes

I ran into the same issue, I don’t have any more info to provide other than to to confirm there are parts of the Docker registry S3 backend that aren’t currently working with R2.

The same error in my setup. I’m using Clickhouse’s S3-compatible exporter.

Same issue when trying to INSERT using Clickhouse’s S3 table support with an R2 target bucket.

Hello. I’m trying to setup docker registry with R2 storage, but facing same problem with

time="2023-09-20T13:18:06.657017333Z" level=error msg="unknown error completing upload: InvalidPart: All non-trailing parts must have the same length.

Looks like currently R2 is not working with docker registry?

I’m also currently setting up a docker registry. I also ran into the

InvalidPart: All non-trailing parts must have the same length.

errors. I managed to fix it by manually setting a chunksize for the registry storage:

storage:
  s3:
    chunksize: 104857600 # 100MiB