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

Error 401 while pulling/pushing images #21288

Open
maurochss opened this issue Dec 5, 2024 · 2 comments
Open

Error 401 while pulling/pushing images #21288

maurochss opened this issue Dec 5, 2024 · 2 comments

Comments

@maurochss
Copy link

Hi all,

I'm facing an error on harbor Version v2.11.1-6b7ecba1

My setup:

I have an HTTPs NGINX at DMZ that forwards the traffic to a non https harbor running on my internal network on port 82.

image

I'm struggling to identify the possible issue, assistance on this would be very nice.

PS: I can access the web interface without any issues.

--
Regards,
Mauro Chan Son Suleimane

@Vad1mo
Copy link
Member

Vad1mo commented Dec 6, 2024

Very difficult to tell:

  1. Make sure you have set the external url right -> https://github.com/container-registry/harbor-helm?tab=readme-ov-file#configure-the-external-url

  2. you LB, make sure you configure it similar to the recommendations for running harbor on nginx ingress.

                  nginx.ingress.kubernetes.io/proxy-body-size: "0"
                  nginx.ingress.kubernetes.io/ssl-redirect: "true"
                  nginx.ingress.kubernetes.io/proxy-buffering: "off"
                  nginx.ingress.kubernetes.io/proxy-request-buffering: "off"

@stonezdj
Copy link
Contributor

stonezdj commented Dec 9, 2024

You need to check the token service URL is accessible through the nginx.

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

3 participants