Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed because: Registry may not support pushing OCI Manifest or Docker Image Manifest Version 2, Schema #3021

Closed
manju-bala opened this issue Jan 29, 2021 · 3 comments

Comments

@manju-bala
Copy link

Hi Team,

we are getting below error intermittently.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':serviceproblem:consumer:jib'.

com.google.cloud.tools.jib.plugins.common.BuildStepsExecutionException: Tried to push image manifest for artifactory/../../ but failed because: Registry may not support pushing OCI Manifest or Docker Image Manifest Version 2, Schema 2 | If this is a bug, please file an issue at https://github.com/GoogleContainerTools/jib/issues/new

@chanseokoh
Copy link
Member

chanseokoh commented Jan 29, 2021

Hi @manju-bala,

The error is due to the server returning MANIFEST_INVALID or TAG_INVALID. The code is the only place where Jib throws that specific error message.

If you are getting the error intermittently, almost certainly it's an issue of the registry (seems Artifactory here). In the past years, we've occasionally got this type of errors where a major registry server (such as Quay.io, Sonatype Nexus, Artifactory, etc) intermittently says a manifest that Jib built is invalid when there's a high level of concurrency. All of such cases that were resolved turned out to be that there was a bug in a server. (For example, #2470 (comment), #2372, and #1986). Jib throws a high level of concurrency, and given the circumstances, I highly suspect it's an issue in Artifactory.

Probably best to file a bug against Artifactory. We can assist you in proving that Jib is working correctly. Go over #2470 carefully and understand how the user provided us with detailed logs, what could be a workaround, and how the issue got resolved eventually. We can help you in the same way.

@chanseokoh chanseokoh added this to the v2.8.0 milestone Feb 4, 2021
@chanseokoh chanseokoh removed this from the v2.8.0 milestone Feb 4, 2021
@chanseokoh
Copy link
Member

@manju-bala any update on this?

@chanseokoh
Copy link
Member

Closing the issue due to long inactivity. But as I explained, I'm leaning toward a bug in Artifactory. Please update here if you need further assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants