Connection error: Connection reset by peer
Hi, What could be the issue?
[xxx@online ~]$ sudo subscription-manager register
[sudo] password for xxx:
Registering to: subscription.rhsm.redhat.com:443/subscription
Username: yyy
Password:
Connection error: Connection reset by peer (error code 104)
Kindly advise as not able to register
cat rhsm.log
2023-11-22 10:13:15,021 [ERROR] subscription-manager:2610:MainThread @cli.py:70 - Error during registration: [Errno 104] Connection reset by peer
2023-11-22 10:13:15,022 [ERROR] subscription-manager:2610:MainThread @cli.py:71 - [Errno 104] Connection reset by peer
Traceback (most recent call last):
File "/usr/lib64/python3.9/site-packages/subscription_manager/cli_command/register.py", line 347, in do_command
owner_key = service.determine_owner_key(
File "/usr/lib64/python3.9/site-packages/rhsmlib/services/register.py", line 238, in determine_owner_key
owners = self.cp.getOwnerList(username)
File "/usr/lib64/python3.9/site-packages/rhsm/connection.py", line 1782, in getOwnerList
owners = self.conn.request_get(method, description=("Fetching organizations"))
File "/usr/lib64/python3.9/site-packages/rhsm/connection.py", line 1305, in request_get
result: Dict[str, Any] = self.request(
File "/usr/lib64/python3.9/site-packages/rhsm/connection.py", line 1107, in _request
result, response = self._make_request(
File "/usr/lib64/python3.9/site-packages/rhsm/connection.py", line 1043, in _make_request
raise NoValidEntitlement(
File "/usr/lib64/python3.9/site-packages/rhsm/connection.py", line 998, in _make_request
conn = self._create_connection(cert_file=cert_file, key_file=key_file)
File "/usr/lib64/python3.9/site-packages/rhsm/connection.py", line 801, in _create_connection
conn.connect()
File "/usr/lib64/python3.9/http/client.py", line 1454, in connect
self.sock = self._context.wrap_socket(self.sock,
File "/usr/lib64/python3.9/ssl.py", line 501, in wrap_socket
return self.sslsocket_class._create(
File "/usr/lib64/python3.9/ssl.py", line 1041, in _create
self.do_handshake()
File "/usr/lib64/python3.9/ssl.py", line 1310, in do_handshake
self._sslobj.do_handshake()
ConnectionResetError: [Errno 104] Connection reset by peer
2023-11-22 10:15:03,557 [ERROR] subscription-manager:3257:MainThread @cli.py:70 - Error during registration: [Errno 104] Connection reset by peer
2023-11-22 10:15:03,558 [ERROR] subscription-manager:3257:MainThread @cli.py:71 - [Errno 104] Connection reset by peer
Traceback (most recent call last):
File "/usr/lib64/python3.9/site-packages/subscription_manager/cli_command/register.py", line 347, in _do_command
owner_key = service.determine_owner_key(
File "/usr/lib64/python3.9/site-packages/rhsmlib/services/register.py", line 238, in determine_owner_key
owners = self.cp.getOwnerList(username)
File "/usr/lib64/python3.9/site-packages/rhsm/connection.py", line 1782, in getOwnerList
owners = self.conn.request_get(method, description=("Fetching organizations"))
File "/usr/lib64/python3.9/site-packages/rhsm/connection.py", line 1305, in request_get
result: Dict[str, Any] = self.request(
File "/usr/lib64/python3.9/site-packages/rhsm/connection.py", line 1107, in _request
result, response = self._make_request(
File "/usr/lib64/python3.9/site-packages/rhsm/connection.py", line 1043, in _make_request
raise NoValidEntitlement(
File "/usr/lib64/python3.9/site-packages/rhsm/connection.py", line 998, in _make_request
conn = self._create_connection(cert_file=cert_file, key_file=key_file)
File "/usr/lib64/python3.9/site-packages/rhsm/connection.py", line 801, in _create_connection
conn.connect()
File "/usr/lib64/python3.9/http/client.py", line 1454, in connect
self.sock = self._context.wrap_socket(self.sock,
File "/usr/lib64/python3.9/ssl.py", line 501, in wrap_socket
return self.sslsocket_class._create(
File "/usr/lib64/python3.9/ssl.py", line 1041, in _create
self.do_handshake()
File "/usr/lib64/python3.9/ssl.py", line 1310, in do_handshake
self._sslobj.do_handshake()
ConnectionResetError: [Errno 104] Connection reset by peer
2023-11-22 10:16:12,351 [WARNING] dnf:3472:MainThread @logutil.py:175 - logging already initialized
2023-11-22 10:17:31,039 [ERROR] rhsmcertd-worker:15629:MainThread @rhsmcertd_worker.py:193 - Either the consumer is not registered or the certificates are corrupted. Certificate update using daemon failed.
2023-11-22 10:17:38,518 [ERROR] subscription-manager:15632:MainThread @cli.py:70 - Error during registration: [Errno 104] Connection reset by peer
2023-11-22 10:17:38,519 [ERROR] subscription-manager:15632:MainThread @cli.py:71 - [Errno 104] Connection reset by peer
Traceback (most recent call last):
File "/usr/lib64/python3.9/site-packages/subscription_manager/cli_command/register.py", line 347, in _do_command
owner_key = service.determine_owner_key(
File "/usr/lib64/python3.9/site-packages/rhsmlib/services/register.py", line 238, in determine_owner_key
owners = self.cp.getOwnerList(username)
File "/usr/lib64/python3.9/site-packages/rhsm/connection.py", line 1782, in getOwnerList
owners = self.conn.request_get(method, description=("Fetching organizations"))
File "/usr/lib64/python3.9/site-packages/rhsm/connection.py", line 1305, in request_get
result: Dict[str, Any] = self._request(
File "/usr/lib64/python3.9/site-packages/rhsm/connection.py", line 1107, in _request
result, response = self._make_request(
File "/usr/lib64/python3.9/site-packages/rhsm/connection.py", line 1043, in _make_request
raise NoValidEntitlement(
File "/usr/lib64/python3.9/site-packages/rhsm/connection.py", line 998, in _make_request
conn = self._create_connection(cert_file=cert_file, key_file=key_file)
File "/usr/lib64/python3.9/site-packages/rhsm/connection.py", line 801, in _create_connection
conn.connect()
File "/usr/lib64/python3.9/http/client.py", line 1454, in connect
self.sock = self._context.wrap_socket(self.sock,
File "/usr/lib64/python3.9/ssl.py", line 501, in wrap_socket
return self.sslsocket_class._create(
File "/usr/lib64/python3.9/ssl.py", line 1041, in _create
self.do_handshake()
File "/usr/lib64/python3.9/ssl.py", line 1310, in do_handshake
self._sslobj.do_handshake()
ConnectionResetError: [Errno 104] Connection reset by peer
cat rhsmcertd.log
Tue Sep 26 12:38:33 2023 [INFO] Starting rhsmcertd...
Tue Sep 26 12:38:33 2023 [INFO] Auto-attach interval: 1440.0 minutes [86400 seconds]
Tue Sep 26 12:38:33 2023 [INFO] Cert check interval: 240.0 minutes [14400 seconds]
Tue Sep 26 12:38:33 2023 [INFO] Waiting 2.0 minutes plus 50073 splay seconds [50193 seconds total] before performing first auto-attach.
Tue Sep 26 12:38:33 2023 [INFO] Waiting 2.0 minutes plus 1929 splay seconds [2049 seconds total] before performing first cert check.
Wed Nov 22 10:08:28 2023 [INFO] Starting rhsmcertd...
Wed Nov 22 10:08:28 2023 [INFO] Auto-attach interval: 1440.0 minutes [86400 seconds]
Wed Nov 22 10:08:28 2023 [INFO] Cert check interval: 240.0 minutes [14400 seconds]
Wed Nov 22 10:08:28 2023 [INFO] Waiting 2.0 minutes plus 39974 splay seconds [40094 seconds total] before performing first auto-attach.
Wed Nov 22 10:08:28 2023 [INFO] Waiting 2.0 minutes plus 422 splay seconds [542 seconds total] before performing first cert check.
Wed Nov 22 10:17:31 2023 [WARN] (Cert Check) Update failed (255), retry will occur on next run.