-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
PATCH /v2/<repo>/<image>/blobs uploads failing #19787
Comments
What is the external URL? https://github.com/goharbor/harbor-helm?tab=readme-ov-file#configure-the-external-url |
Hi @Vad1mo, we haven't set one, as we kind of (i think) need two. Here is the setup we are trying to achieve: I've managed to get pull working like this, it's just the push operations that do not work (particularily the patch requests). I've changed harbor nginx in the way I've described in the ticket to take care of correctly modifying the auth headers and paths for each project given the domain name. Here is a full example of a push using (harbor) NGINX logs:
Dissecting one of the "states" of the PATCH requests:
registry logs:
The PATCH requests are not getting to the harbor registry at all :/ Calling that POST manually i get:
Calling the PATCH:
The output of the docker push:
Pulling from the repository:
PS: I don't know how, but EXT_DOMAIN in harbor-core is set to "http://staging.harbor.local:8080". |
As a sanity test, i've removed all of the Harbor Nginx changes, i can indeed push the image:
BUT, if i add a rewrite directive to NGINX -
NGINX logs:
|
This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days. |
This issue was closed because it has been stalled for 30 days with no activity. If this issue is still relevant, please re-open a new issue. |
Hi !
I'm deploying harbor (2.8.3 at the moment, same behavior with 2.10.0) with a couple of changes as described here -> #8082 (comment). With this setup im aiming at using it like:
docker push staging.harbor.local:8080/myimage/latest
which should push to the staging project.Pulling works.
Pushing is failing due to the PATCH request getting a 401.
If i remove the rewrite directive, i get:
Even if I simply rewrite to the current location, this is failing. What could be happening ? This seems to be on the Nginx side but if someone knows where this is hitting in the harbor, it would help. The traffic doesn't seem to go to harbor-core.
The text was updated successfully, but these errors were encountered: