Katello 4 - An invalid remote URL was provided. While synching repo

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.

Try http://mirror.centos.org/centos/7/os/x86_64/ instead

There is something wrong with the installation of Katello 4.0. Had issues due to installer earlier and it was due to installer was executed from /root/somefolder. Changed to execute from /tmp and it went thru fine.

Today ,since got the issue mentioned above, tried a fresh install

New VM with same configuration and OS, same exact steps which I followed for the first install. Executed same foreman-installer command without any change,. But now I am getting a different error.

021-05-21 04:14:32 [NOTICE] [root] Loading default values from puppet modules…
2021-05-21 04:14:36 [NOTICE] [root] … finished
2021-05-21 04:14:39 [NOTICE] [root] Running validation checks
2021-05-21 04:18:16 [NOTICE] [configure] Starting system configuration.
The total number of configuration tasks may increase during the run.
Observe logs or specify --verbose-log-level to see individual configuration tasks.
2021-05-21 04:19:32 [NOTICE] [configure] 100 out of 1901 done.
2021-05-21 04:19:46 [NOTICE] [configure] 200 out of 1901 done.
2021-05-21 04:20:22 [ERROR ] [configure] Execution of ‘/bin/yum -d 0 -e 0 -y install katello’ returned 1: Error: Package: tfm-rubygem-qpid_proton-0.33.0-1.el7.x86_64 (katello)
2021-05-21 04:20:22 [ERROR ] [configure] Requires: qpid-proton-c = 0.33.0
2021-05-21 04:20:22 [ERROR ] [configure] Available: qpid-proton-c-0.14.0-2.el7.x86_64 (extras)
2021-05-21 04:20:22 [ERROR ] [configure] qpid-proton-c = 0.14.0-2.el7
2021-05-21 04:20:22 [ERROR ] [configure] Installing: qpid-proton-c-0.34.0-1.el7.x86_64 (epel)
2021-05-21 04:20:22 [ERROR ] [configure] qpid-proton-c = 0.34.0-1.el7
2021-05-21 04:20:22 [ERROR ] [configure] You could try using --skip-broken to work around the problem
2021-05-21 04:20:22 [ERROR ] [configure] You could try running: rpm -Va --nofiles --nodigest
2021-05-21 04:20:22 [ERROR ] [configure] /Stage[main]/Katello/Package[katello]/ensure: change from ‘purged’ to ‘present’ failed: Execution of ‘/bin/yum -d 0 -e 0 -y install katello’ returned 1: Error: Package: tfm-rubygem-qpid_proton-0.33.0-1.el7.x86_64 (katello)
2021-05-21 04:20:22 [ERROR ] [configure] Requires: qpid-proton-c = 0.33.0

clueless…3 days on an installation !!!

That’s a problem of the latest qpid-proton update in EPEL7. See Katello installs for 4.0 and 4.1 are broken due to qpid-proton update in EPEL on EL7