Skip to content

Images created by Jib occasionally causes 400 BAD REQUEST (BLOB_UPLOAD_INVALID) in Red Hat Quay #2013

@hbjastad

Description

@hbjastad

Environment:

  • Jib version: 1.6.1
  • Build tool: Maven 3.5.0
  • OS: Linux

Description of the issue:
Images created by Jib occasionally causes 400 Bad request in Red Hat Quay. It happens so rarely, it can hardly be categorized as reproducible, and if run again after failing then it works.

We have only seen this occur when running with -Djib.serialize=true

Expected behavior:
Upload success.

Steps to reproduce:

  1. Get our project that uses Jib to upload to QUAY-REGISTRY
  2. Run mvn compile jib:build

jib-maven-plugin Configuration:

<configuration>
    <to>
        <image>QUAY-REGISTRY/image-built-with-jib</image>
    </to>
</configuration>

Log output:

[2019-09-20T09:05:45.888Z] [ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:1.6.1:build (build_docker_image) on project app-backend: Tried to push BLOB for QUAY-REGISTRY/group/app with digest sha256:1eebb6432678ad971dfd2f732c51595050482f3d7aad8059ed5549f789cd273c but failed because: other: blob upload invalid | If this is a bug, please file an issue at https://github.com/GoogleContainerTools/jib/issues/new: 400 BAD REQUEST
[2019-09-20T09:05:45.888Z] [ERROR] {"errors":[{"code":"BLOB_UPLOAD_INVALID","detail":{},"message":"blob upload invalid"}]}
[2019-09-20T09:05:45.888Z] [ERROR] -> [Help 1]

Additional Information:
Please see #1986, which is also an error with the Jib/Quay combo, and has the first mention of this error. We have not seen this error with the hello world app, but with another app we're developing this has now happened twice this week (out of maybe 100 runs) - so it's time to bring it up as an issue on its own.

@kurtismullins, can you please have a look at this one also?

When Quay says the blob upload is invalid, is it more likely that Jib created an invalid blob or that Quay incorrectly finds it to be invalid?

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