Problem:
Getting An invalid remote URL was provided. while synching repo
Details:
Repo URL : http://mirror.centos.org/centos-7/7/os/x86_64/
Restrict to OS version - Not restriected, since it only shows Redhat (6,7,8)
HTTP proxy was provided since , we have squid proxy, tested URL works fine
Logs shown below
NOTE: Katello was not installed by speficying katello-proxy option, HTTP proxy was configure thru UI.
saw this thread, is this file level tasks to be done for proxy or setting up thru UI is good enough
Expected outcome:
It should synch repo
Foreman and Proxy versions:
2.4
Foreman and Proxy plugin versions:
Distribution and version:
Other relevant data: (from /var/log/messages)
20 20:39:54 katello pulpcore-resource-manager: pulp [None]: rq.worker:INFO: resource-manager: 2e0f1973-6916-4f57-a1dd-870ed22245b0
May 20 20:39:54 katello pulpcore-api: - - [20/May/2021:20:39:54 +0000] “POST /pulp/api/v3/repositories/rpm/rpm/2a5e07cb-4e42-4811-8c43-0241acb679d0/sync/ HTTP/1.1” 202 67 “-” “OpenAPI-Generator/3.10.0/ruby”
May 20 20:39:54 katello pulpcore-api: pulp [None]: django_guid:INFO: Header Correlation-ID
was not found in the incoming request. Generated new GUID: ebd45264fa004e05b53b94c4e6e0807f
May 20 20:39:54 katello pulpcore-worker-3: pulp [None]: rq.worker:INFO: 28315@katello.use1.company-noc.net: d06af9f9-7f94-4cb5-bc36-b5872ef6f3d0
May 20 20:39:54 katello pulpcore-resource-manager: pulp [b6db17c3e51d4c149707f120bb068fdd]: rq.worker:INFO: resource-manager: Job OK (2e0f1973-6916-4f57-a1dd-870ed22245b0)
May 20 20:39:54 katello pulpcore-api: - - [20/May/2021:20:39:54 +0000] “GET /pulp/api/v3/tasks/d06af9f9-7f94-4cb5-bc36-b5872ef6f3d0/ HTTP/1.1” 200 630 “-” “OpenAPI-Generator/3.9.0/ruby”
May 20 20:39:54 katello pulpcore-worker-3: pulp [b6db17c3e51d4c149707f120bb068fdd]: pulp_rpm.app.tasks.synchronizing:INFO: Synchronizing: repository=CentOS-7_OS-117207 remote=CentOS-7_OS-119266
May 20 20:39:55 katello pulpcore-worker-3: pulp [b6db17c3e51d4c149707f120bb068fdd]: rq.worker:ERROR: Traceback (most recent call last):
May 20 20:39:55 katello pulpcore-worker-3: File “/usr/lib/python3.6/site-packages/rq/worker.py”, line 975, in perform_job
May 20 20:39:55 katello pulpcore-worker-3: rv = job.perform()
May 20 20:39:55 katello pulpcore-worker-3: File “/usr/lib/python3.6/site-packages/rq/job.py”, line 696, in perform
May 20 20:39:55 katello pulpcore-worker-3: self._result = self._execute()
May 20 20:39:55 katello pulpcore-worker-3: File “/usr/lib/python3.6/site-packages/rq/job.py”, line 719, in _execute
May 20 20:39:55 katello pulpcore-worker-3: return self.func(*self.args, **self.kwargs)
May 20 20:39:55 katello pulpcore-worker-3: File “/usr/lib/python3.6/site-packages/pulp_rpm/app/tasks/synchronizing.py”, line 219, in synchronize
May 20 20:39:55 katello pulpcore-worker-3: raise ValueError(_(“An invalid remote URL was provided.”))
May 20 20:39:55 katello pulpcore-worker-3: ValueError: An invalid remote URL was provided.
May 20 20:39:55 katello pulpcore-worker-3: Traceback (most recent call last):
May 20 20:39:55 katello pulpcore-worker-3: File “/usr/lib/python3.6/site-packages/rq/worker.py”, line 975, in perform_job
May 20 20:39:55 katello pulpcore-worker-3: rv = job.perform()
May 20 20:39:55 katello pulpcore-worker-3: File “/usr/lib/python3.6/site-packages/rq/job.py”, line 696, in perform
May 20 20:39:55 katello pulpcore-worker-3: self._result = self._execute()
May 20 20:39:55 katello pulpcore-worker-3: File “/usr/lib/python3.6/site-packages/rq/job.py”, line 719, in _execute
May 20 20:39:55 katello pulpcore-worker-3: return self.func(*self.args, **self.kwargs)
May 20 20:39:55 katello pulpcore-worker-3: File “/usr/lib/python3.6/site-packages/pulp_rpm/app/tasks/synchronizing.py”, line 219, in synchronize
May 20 20:39:55 katello pulpcore-worker-3: raise ValueError(_(“An invalid remote URL was provided.”))
May 20 20:39:55 katello pulpcore-worker-3: ValueError: An invalid remote URL was provided.