Subscription-manager and yum commands are failing with error ValueError: Error parsing proxy

Solution Verified - Updated -

Issue

  • Subscription-manager and yum commands are failing with error ValueError: Error parsing "proxy = 'PROXY:PORT'": URL must be http, ftp, https, socks4, socks4a, socks5 or socks5h not ""

    # cat /var/log/rhsm/rhsm.log
    2023-10-30 15:30:45,368 [ERROR] subscription-manager:30664:MainThread @cache.py:181 - Error updating system data on the server
    2023-10-30 15:30:45,368 [ERROR] subscription-manager:30664:MainThread @cache.py:182 - Error parsing "proxy = 'PROXY:PORT'": URL must be http, ftp, https, socks4, socks4a, socks5 or socks5h not ""
    
    # yum repolist
    Loaded plugins: product-id, search-disabled-repos, subscription-manager
    Options error: Error parsing "proxy = 'PROXY:PORT'": URL must be http, ftp, https, socks4, socks4a, socks5 or socks5h not ""
    

Environment

  • Red Hat Enterprise Linux
  • Red Hat Subscription Management (RHSM)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content