Subscription-manager command fails with "NetworkException: Network error code: 400"
Issue
-
Subscription-manager command fails with
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 commands fails with error
Network error code: 400
# yum repolist Loaded plugins: product-id, security, subscription-manager Network error code: 400 repolist: 0
-
Subscription-manager command fails with
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>
-
Below errors in
/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)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.