Bug 795765

Summary: Connection reset by peer during a satellite-sync
Product: [Retired] Red Hat Network Reporter: mlessard
Component: RHN/BackendAssignee: rhn-dev-list
Status: CLOSED EOL QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: RHN StableCC: ahuchcha, nbronson, nraghava, nyancey, vlaad
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-21 14:15:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description mlessard 2012-02-21 13:43:46 UTC
Description of problem:
During a satellite-sync process, i get an error : SysCallError: (104, 'Connection reset by peer'), i need to kill the process and restart satellite-sync to complete the operation. It happens very often, and it's not predictable when it will happen.  Satellite-syn worked well since 3 weeks i would say. 

Version-Release number of selected component (if applicable):


How reproducible:
Each time i lunch the satellite-sync command, it happens after few minutes (between 5 and 15 minutes) during the download of a packages. 

Steps to Reproduce:
1.
2.
3.
  
Actual results:
Exception in thread Thread-4:
Traceback (most recent call last):
  File "/usr/lib64/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/share/rhn/satellite_tools/satsync.py", line 2131, in run
    package_id, nvrea, self.sources)
  File "/usr/share/rhn/satellite_tools/satsync.py", line 2072, in _get_package_stream
    stream = rpmServer.getPackageStream(channel, nvrea)
  File "/usr/share/rhn/satellite_tools/xmlWireSource.py", line 480, in getPackageStream
    return self._rpc_call("getPackage", (channel, package_name))
  File "/usr/share/rhn/satellite_tools/xmlWireSource.py", line 447, in _rpc_call
    ret = apply(getattr(get_server_obj, function_name), params)
  File "/usr/lib/python2.6/site-packages/rhn/rpclib.py", line 678, in __call__
    result = self._send(self._name, args)
  File "/usr/lib/python2.6/site-packages/rhn/rpclib.py", line 383, in _request
    self._handler, request, verbose=self._verbose)
  File "/usr/lib/python2.6/site-packages/rhn/transports.py", line 171, in request
    headers, fd = req.send_http(host, handler)
  File "/usr/lib/python2.6/site-packages/rhn/transports.py", line 704, in send_http
    headers=self.headers)
  File "/usr/lib64/python2.6/httplib.py", line 914, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib64/python2.6/httplib.py", line 951, in _send_request
    self.endheaders()
  File "/usr/lib64/python2.6/httplib.py", line 908, in endheaders
    self._send_output()
  File "/usr/lib64/python2.6/httplib.py", line 780, in _send_output
    self.send(msg)
  File "/usr/lib64/python2.6/httplib.py", line 759, in send
    self.sock.sendall(str)
  File "/usr/lib/python2.6/site-packages/rhn/SSL.py", line 217, in write
    sent = self._connection.send(data)
SysCallError: (104, 'Connection reset by peer')


Expected results:
Satellite-sync should be run without that error. 



Additional info:
Network bandwith is very good 3MB/S and 1MB/s upload.  Satellite is virtualized on KVM with 4MB available, with 3 MB reserved.

I did a repo-synch download of a channel and everything went well without any interpution.

Comment 3 Miroslav Suchý 2012-02-22 14:50:12 UTC
This is realy not satellite problem. It is hosted problem.
And note - that hosted has bunch of proxies, each serving different kind of request. So while repo-sync is working, sat-sync may be broken and vice versa.

Comment 5 Amar Huchchanavar 2015-11-09 14:55:33 UTC
This issue seems to be exist, I have one customer who has no restrictions on network for satellite-sync but it still fails.

~~~
+++ sending log as an email +++

SYNC ERROR: unhandled exception occurred:

(Check logs/email for potentially more detail)

SysCallError(104, 'Connection reset by peer')
(104, 'Connection reset by peer')
~~~

Comment 6 Thomas "Shea" DeAntonio 2017-07-05 15:12:24 UTC
As you may already be aware, Red Hat is transitioning from the Red Hat Network (RHN) hosted interface to the Red Hat Subscription Management (RHSM) interface in July 2017. Red Hat has invested in and seen success from RHN for many years, and used that experience to build more robust technologies like RHSM. 
 
If you have not yet migrated your RHN systems to RHSM or you are a Red Hat Satellite customer, please review the information from. https://access.redhat.com/products/red-hat-subscription-management#migration. 
 
Since we are shutting down RHN, no further actions will be taken with this bug or enhancement request.  You can find additional information at RHSM product page (https://access.redhat.com/products/red-hat-subscription-management).  If you have further questions, please contact support (https://access.redhat.com/products/red-hat-subscription-management#support).

Comment 7 Thomas "Shea" DeAntonio 2017-07-05 15:13:15 UTC
As you may already be aware, Red Hat is transitioning from the Red Hat Network (RHN) hosted interface to the Red Hat Subscription Management (RHSM) interface in July 2017. Red Hat has invested in and seen success from RHN for many years, and used that experience to build more robust technologies like RHSM. 
 
If you have not yet migrated your RHN systems to RHSM or you are a Red Hat Satellite customer, please review the information from. https://access.redhat.com/products/red-hat-subscription-management#migration. 
 
Since we are shutting down RHN, no further actions will be taken with this bug or enhancement request.  You can find additional information at RHSM product page (https://access.redhat.com/products/red-hat-subscription-management).  If you have further questions, please contact support (https://access.redhat.com/products/red-hat-subscription-management#support).