[ERROR] subscription-manager:9632:MainThread @managercli.py:217 - [Errno 104] Connection reset by peer

Latest response

Good afternoon, I'm trying to install docker, or rather add the repository where docker is and I get the following error:

[dockermd@TVPRDMIDDW01 ~]$ sudo dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
[sudo] password for dockermd:
Sorry, try again.
[sudo] password for dockermd:
Sorry, try again.
[sudo] password for dockermd:
Updating Subscription Management repositories.
Adding repo from: https://download.docker.com/linux/centos/docker-ce.repo
Curl error (56): Failure when receiving data from the peer for https://download.docker.com/linux/centos/docker-ce.repo [Recv failure: Connection reset by peer]
Error: Configuration of repo failed

I try to register the subscription and it gives me an error:

[dockermd@TVPRDMIDDW01 ~]$ sudo subscription-manager register --force
Unregistering from: subscription.rhsm.redhat.com:443/subscription
Network error, unable to connect to server. Please see /var/log/rhsm/rhsm.log for more information.
[dockermd@TVPRDMIDDW01 ~]$

I see the logs to see what could be:

2020-08-17 20:21:52,361 [ERROR] subscription-manager:9749:MainThread @managercli.py:216 - Unregister failed
2020-08-17 20:21:52,361 [ERROR] subscription-manager:9749:MainThread @managercli.py:217 - [Errno 104] Connection reset by peer
Traceback (most recent call last):
File "/usr/lib64/python3.6/site-packages/subscription_manager/managercli.py", line 1321, in _do_command
unregister.UnregisterService(self.cp).unregister()
File "/usr/lib64/python3.6/site-packages/rhsmlib/services/unregister.py", line 54, in unregister
self.uep.unregisterConsumer(self.identity.uuid)
File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 1283, in unregisterConsumer
return self.conn.request_delete(method)
File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 738, in request_delete
return self._request("DELETE", method, params, headers=headers)
File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 752, in _request
info=info, headers=headers)
File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 583, in _request
conn.request(request_type, handler, body=body, headers=final_headers)
File "/usr/lib64/python3.6/http/client.py", line 1254, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1300, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1249, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1036, in _send_output
self.send(msg)
File "/usr/lib64/python3.6/http/client.py", line 974, in send
self.connect()
File "/usr/lib64/python3.6/http/client.py", line 1414, in connect
super().connect()
File "/usr/lib64/python3.6/http/client.py", line 950, in connect
self._tunnel()
File "/usr/lib64/python3.6/http/client.py", line 924, in _tunnel
(version, code, message) = response._read_status()
File "/usr/lib64/python3.6/http/client.py", line 268, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/lib64/python3.6/socket.py", line 586, in readinto
return self._sock.recv_into(b)
ConnectionResetError: [Errno 104] Connection reset by peer

What could this be?
How could I solve it?

Responses