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

Cannot ping endpoint not on port 443 when creating a new Registry Endpoint #21389

Open
h2cone opened this issue Jan 8, 2025 · 3 comments
Open
Assignees

Comments

@h2cone
Copy link

h2cone commented Jan 8, 2025

Hello,

I have deployed two Harbor instances, for example https://harbor.foo.com and https://harbor.bar.com:65345, and both instances can reach each other on their respective networks. When I log in as admin to https://harbor.foo.com, go to "Registries" to create a new endpoint, and set the URL to https://harbor.bar.com:65345, after submitting the form I receive a "Failed to ping endpoint" error.

My Harbor version is 2.9.5. The error logs are:

2025-01-08T01:30:16Z [ERROR] [/pkg/reg/adapter/native/adapter.go:126]: failed to ping registry https://harbor.bar.com:65345: Get "https://harbor.bar.com/service/token?service=harbor-registry": dial tcp 112.11.77.146:443: i/o timeout

Did I miss something?

Thank you!

@wy65701436
Copy link
Contributor

how did you deploy the harbor instances? through docker compose or helm chart? Did you validate the connection between harbor-core of https://harbor.foo.com and the harbor-core of https://harbor.bar.com:65345?

@h2cone
Copy link
Author

h2cone commented Jan 16, 2025

how did you deploy the harbor instances? through docker compose or helm chart? Did you validate the connection between harbor-core of https://harbor.foo.com and the harbor-core of https://harbor.bar.com:65345?

Thank you for your comment. We deployed using Docker Compose, and within the container harbor-core at https://harbor.foo.com, we can successfully access https://harbor.bar.com:65345 using curl.

@chlins
Copy link
Member

chlins commented Jan 16, 2025

@h2cone Please check the value of the field externalURL in the harbor.yml for the instance of https://harbor.bar.com:65345.

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

3 participants