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

--push fails with unexpected status: 404 Not Found #196

Closed
semekh opened this issue Nov 28, 2019 · 14 comments
Closed

--push fails with unexpected status: 404 Not Found #196

semekh opened this issue Nov 28, 2019 · 14 comments

Comments

@semekh
Copy link

semekh commented Nov 28, 2019

Running docker build -t myregistry.jfrog.io/backend/test --push --progress=plain . ends with:

#6 exporting to image
#6 exporting layers done
#6 exporting manifest sha256:5c7409b399a82c9db2ec67cdbd6751bbb3a3744690493d34ba7c533877d25098 0.0s done
#6 exporting config sha256:bed2be5d8b85a79ec121dc603170315afc6582b877e66d8c0053bea8ba6ccce0 done
#6 pushing layers
#6 pushing layers 0.9s done
#6 ERROR: failed commit on ref "config-sha256:bed2be5d8b85a79ec121dc603170315afc6582b877e66d8c0053bea8ba6ccce0": unexpected status: 404 Not Found
------
 > exporting to image:
------
failed to solve: rpc error: code = Unknown desc = failed commit on ref "config-sha256:bed2be5d8b85a79ec121dc603170315afc6582b877e66d8c0053bea8ba6ccce0": unexpected status: 404 Not Found

You can --push the image to DockerHub successfully, but not Artifactory's Docker registry, although docker push is successful on both registries. So, I tried to capture the network requests, and realized that there's a small difference between the way docker push and docker buildx build --push push the image layers.

Apparently, docker push does a sequence of POST, PATCH, and PUT (with no body), while docker buildx build --push does a POST followed by a PUT (with body). The latter PUT results in a 404 BLOB_UNKNOWN on Artifactory.

So, is it possible to change the behavior of docker buildx build --push to match that of docker build so that other registries work as expected? Please note that the same issue happens for --cache-to.

@tonistiigi
Copy link
Member

cc @dmcgowan

@semekh
Copy link
Author

semekh commented Feb 1, 2020

Any updates on this? Should this be followed up from the Artifactory team instead?

@franckOL
Copy link

Same issue. need it.
is there any kind workaround for that ?

@keiyasssss
Copy link

Same issue using latest version of builx and artifactory version 6.16.0

@Legogris
Copy link

Legogris commented May 5, 2020

Same issue here, with a locally hosted repository that has worked previously.

@dpipemazo
Copy link

Perhaps this issue I filed is related: #271

@opsnull
Copy link

opsnull commented Jul 16, 2020

Same issue here, with a locally hosted harbor repository.

@dathdev
Copy link

dathdev commented Jan 25, 2021

I'm running into the same issue in 2021 with Artifactory

@wichert
Copy link

wichert commented Jan 25, 2021

@dathdev I suspect that this is related to https://www.jfrog.com/jira/browse/RTFACT-20814, which should be fixed in releases 6.20.0 and 7.5.0

@kaka-ruto
Copy link

My issue was that I was pushing to an inexistent repository (I had put the wrong url), thus my error. It worked after using the right URL

@wichert
Copy link

wichert commented Feb 5, 2021

FYI I can confirm is that upgrading to a current version of Artifactory makes this problem go away.

@franckOL
Copy link

franckOL commented Feb 5, 2021

Since which Artifactory version it works ?

@dathdev
Copy link

dathdev commented Feb 5, 2021

I can confirm this was fixed when I upgraded Artifactory past 6.20.0.

@wyaopeng
Copy link

same issue

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

No branches or pull requests