RHEL8 Yum/Dnf epel http error 400 bad sign on URL "^"

Hi you,

I try to reposync EPEL from Nexus OSS 3.34.0.1

I get this output from reposync on rhel8:

[MIRROR] the_silver_searcher-2.2.0^2020704.5a1c8d8-1.el8.x86_64.rpm: Status code: 400 for my-repo:8081/repository/epel-proxy/8/Everything/x86_64/Packages/t/the_silver_searcher-2.2.0%5e2020704.5a1c8d8-1.el8.x86_64.rpm (IP: x.x.x.x)

Nexus output is:

2021-09-13 17:27:12,536+0000 WARN  [qtp1170909618-102] *UNKNOWN org.sonatype.nexus.repository.yum.orient.internal.proxy.OrientYumProxyFacetImpl - Unable to resolve url. Reason: Illegal character in path at index 56: 8/Everything/x86_64/Packages/t/the_silver_searcher-2.2.0^2020704.5a1c8d8-1.el8.x86_64.rpm
2021-09-13 17:27:12,537+0000 WARN  [qtp1170909618-102] *UNKNOWN org.sonatype.nexus.repository.httpbridge.internal.ViewServlet - Bad request. Reason: Invalid repository path

The package really exist: https://dl.fedoraproject.org/pub/epel/8/Everything/x86_64/Packages/t/the_silver_searcher-2.2.0^2020704.5a1c8d8-1.el8.x86_64.rpm

I think it’s more an encoding problem with the “^”.

I’ve open a case to EPEL here: Issue #10297: the_silver_searcher-2.2.0^2020704.5a1c8d8-1.el8.x86_64.rpm: Status code: 400 - releng - Pagure.io

Whitout Nexus, it works:

[root@8894dce44066 /]# dnf install the_silver_searcher
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

Last metadata expiration check: 0:00:57 ago on Mon Sep 13 17:45:42 2021.
Dependencies resolved.
=======================================================================================================================================================================================================================================================================
 Package                                                              Architecture                                            Version                                                                      Repository                                             Size
=======================================================================================================================================================================================================================================================================
Installing:
 the_silver_searcher                                                  x86_64                                                  2.2.0^2020704.5a1c8d8-1.el8                                                  epel                                                   59 k

Transaction Summary
=======================================================================================================================================================================================================================================================================
Install  1 Package

Total download size: 59 k
Installed size: 129 k
Is this ok [y/N]: y
Downloading Packages:
the_silver_searcher-2.2.0^2020704.5a1c8d8-1.el8.x86_64.rpm                                                                                                                                                                             445 kB/s |  59 kB     00:00
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                                                  131 kB/s |  59 kB     00:00
warning: /var/cache/dnf/epel-fafd94c310c51e1e/packages/the_silver_searcher-2.2.0^2020704.5a1c8d8-1.el8.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 2f86d6a1: NOKEY
Extra Packages for Enterprise Linux 8 - x86_64                                                                                                                                                                                         1.6 MB/s | 1.6 kB     00:00
Importing GPG key 0x2F86D6A1:
 Userid     : "Fedora EPEL (8) <epel@fedoraproject.org>"
 Fingerprint: 94E2 79EB 8D8F 25B2 1810 ADF1 21EA 45AB 2F86 D6A1
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
Is this ok [y/N]: y
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                                                                               1/1
  Installing       : the_silver_searcher-2.2.0^2020704.5a1c8d8-1.el8.x86_64                                                                                                                                                                                        1/1
  Running scriptlet: the_silver_searcher-2.2.0^2020704.5a1c8d8-1.el8.x86_64                                                                                                                                                                                        1/1
  Verifying        : the_silver_searcher-2.2.0^2020704.5a1c8d8-1.el8.x86_64                                                                                                                                                                                        1/1
Installed products updated.

Installed:
  the_silver_searcher-2.2.0^2020704.5a1c8d8-1.el8.x86_64

Complete!

If somebody can help me :smiley:

I believe this is https://issues.sonatype.org/browse/NEXUS-27899

1 Like

Thanks for the link

I use dnf/reposync --exclude="^" hope it will be enought to don’t stop my reposync awaiting a fix from nexus team ;-D