Translated message

A translation of this page exists in English.

subscription-manager 命令失败并显示 "NetworkException:Network error code:400"

Solution In Progress - Updated -

Issue

  • subscription-manager 命令失败并显示 Network error code: 400

    [user@system ~]# subscription-manager list --available --all
    Error updating system data on the server, see /var/log/rhsm/rhsm.log for more details.
    [ERROR] rhsmcertd-worker:21003:MainThread @rhsmcertd-worker:148 - 
    Error while updating certificates using daemon
    [ERROR] rhsmcertd-worker:21003:MainThread @rhsmcertd-worker:150 - Network error code: 400
    
  • yum 命令失败并显示错误 Network error code: 400

    # yum repolist
    Loaded plugins:  product-id, security, subscription-manager
    Network error code: 400
    repolist: 0
    
  • subscription-manager 命令失败并显示 HTTP error code 400: Bad Request

    [user@system ~]subscription-manager refresh
    Unknown server reply (HTTP error code 400: Bad Request):
    <html><13>
    <head><title>400 The SSL certificate error</title></head><13>
    <body><13>
    <center><h1>400 Bad Request</h1></center><13>
    <center>The SSL certificate error</center><13>
    <hr><center>openresty</center><13>
    </body><13>
    </html><13>
    
  • /var/log/rhsm/rhsm.log 中包括以下错误。

    rhsm.connection.UnknownContentException: Unknown content error (HTTP 400 - Bad Request, type text/html, len 212)
    2024-10-09 11:55:34,181 [ERROR] rhsmcertd-worker:130542:MainThread @rhsmcertd_worker.py:281 - Error while updating certificates using daemon
    2024-10-09 11:55:34,181 [ERROR] rhsmcertd-worker:130542:MainThread @rhsmcertd_worker.py:283 - [Errno 13] Permission denied
    Traceback (most recent call last):
    

Environment

  • Red Hat Enterprise Linux
  • Red Hat Subscription Management (RHSM)
  • Simple Content Access(简单内容访问)

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