For a large package that already exists on the server, RHN will reply saying that the package already exists, but the client will continue to push the package up. If the upload finishes before the server closes the connection, then the client can read the return code. If not, then the client will get a pipe error or peer closed the connection error. The fix for this is to not do any processing on the package until it is fully uploaded, so we don't return a result until the client is ready.
Testing this is pretty easy: * Find a really big rpm that isn't already in RHN (openoffice.org-base from rawhide is a good choice) * run rhn-pkgupload to upload this package to rhn This should work * now, run it again the rpm should transfer, then you should see a message saying the package already exists. before, the transfer would timeout midway, and you'd get a traceback.
jbowes-- I get a package to upload-- it returns with Ok but when I upload it again the log says it finds it already exists but then just hangs
working now... rhn-pkgupload http://scripts.back-webdev.redhat.com/PKG-UPLOAD /home/aowens/openoffice.org-core-2.4.0-12.8.fc9.i386.rpm 751f60ed0c21ee50527e64bc02fbd7a8: openoffice.org-core-2.4.0-12.8.fc9.i386.rpm already uploaded
verified