August 3, 2021, 9:30am
I am facing an error while adding a new repository of type “container images” which I am trying to discover it from dockerhub. After adding I am facing endless spinning wheel which later redirecting to “Discovery failed. Error: Timed out connecting to server” Can anyone please guide me? There is no issue when I try to discover the yum repositories. Please find the screenshot attached.
Thanks in advance
August 4, 2021, 4:13am
@tbrisker Could you please take a look?
This is probably a question for
@katello team, I’m not sure who worked on the repo discovery for containers
@almond - which version of Katello are you running?
August 5, 2021, 9:05am
I have katello-126.96.36.199
August 5, 2021, 11:13am
Is there any chance you’ve configured an HTTP proxy in your environment?
August 6, 2021, 5:11am
@Jonathon_Turel @katello yes, there is. And the connection is successful too. Here’s the screenshot
August 9, 2021, 8:43am
@Jonathon_Turel @katello I would really appreciate if someone checks this issue. I am in edge of my timeline to complete this task. Happy to join a call if need. firstname.lastname@example.org is my ID.
It looks like this was fixed in Katello 4.1 =>
Bug #32036: "Failed to discover docker repositories because 'Content Default HTTP Proxy' is not used to connect to the registry." - Katello - Foreman. If upgrading isn’t an option for you, you might try:
disabling the HTTP proxy in your environment (ie not using it) temporarily to use repo discovery
creating the products and repos manually (not using discovery)
August 9, 2021, 7:23pm
@Jonathon_Turel @katello Thanks for the reply Jonathan. I tried adding the repo manually and when I click sync now I’m getting this error
Katello::Errors::Pulp3Error: 429, message=‘Too Many Requests’, url=URL(‘ https://registry-1.docker.io/v2/library/alpine/manifests/sha256:41ba0806c6113064dd4cff12212eea3088f40ae23f182763ccc07f430b3a52f8 1’)
Any idea why this is showing like this?
If I add sync tags to a specific one, that works fine. But I’m not able to add all the tags.
Ok, right - ‘Too Many Requests’. I don’t think this is HTTP proxy related then since you’ve clearly made contact to the upstream server which is rate-limiting you.
I found a similar issue reported against pulp →
Story #3421: As a plugin writer I have HTTPDownloaders which provide exponential backoff for HTTP 429 errors - Pulp however I think that should be fixed in your version of Katello. Can you share the output of
rpm -qa | grep pulp | sort from your server?
Unfortunately I’m not feeling optimistic about getting further with this issue on such an old version of Katello
August 11, 2021, 5:48am
@Jonathon_Turel @katello This is the output for rpm -qa | grep pulp | sort
Those versions look correct to me. My advice is to upgrade to Katello 4.0+ as soon as you can as I don’t think we can get any further with Katello 3.15
August 16, 2021, 6:12am
Sounds good. I’ll keep you posted