Hello,<br>While trying to create an Ubuntu 10.04 channel (rhnpush from a Natty client to a nightly Spacewalk), I receive a few hundred exceptions like the one below, and cannot fathom what causes them. Over 9000 files have been imported correctly, and the ones that err seems to be random (akonadi, digikam, e2fsprogs). Exceptions are one of<br>
<div style="margin-left: 40px;">Exception type <class 'psycopg2.IntegrityError'><br>Exception while handling function packages.channelPackageSubscriptionBySession<br>Request object information:<br>URI: /APP<br>
</div>^^ traceback leads to<br><div style="margin-left: 40px;">IntegrityError: duplicate key value violates unique constraint "rhn_cnp_cid_nid_uq"<br>CONTEXT:  SQL statement "insert into rhnChannelNewestPackage ( channel_id, name_id, evr_id, package_id, package_arch_id ) ( select channel_id, name_id, evr_id, package_id, package_arch_id from rhnChannelNewestPackageView where channel_id =  $1  )"<br>
PL/pgSQL function "refresh_newest_package" line 3 at SQL statement<br></div>or<br><div style="margin-left: 40px;">Exception type <type 'exceptions.NameError'> Exception while handling function server.apacheUploadServer._wrapper<br>
Request object information:<br>URI: /PACKAGE-PUSH<br></div> ^^ this one is downright strange, as the traceback is<br><div style="margin-left: 40px;">File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnPackageUpload.py", line 292, in load_package<br>
    raise rhnFault(50, "Unable to load package", explain=0), None, sys.exc_info()[2]<br>NameError: global name 'sys' is not defined<br></div><br>Sample for amarok_2.3.0-0ubuntu4_amd64.deb:<br><br>    SERVER_SOFTWARE: Apache<br>
    User-Agent: rhnpush<br>    X-RHN-Upload-Auth-Session: 10578xfaa41816b0591f404440e08bed4ff3eb<br>    X-RHN-Upload-File-Checksum: d60abc7f457dac4360e1c07ad4641737<br>    X-RHN-Upload-File-Checksum-Type: md5<br>    X-RHN-Upload-File-MD5sum: d60abc7f457dac4360e1c07ad4641737<br>
    X-RHN-Upload-Force: 0<br>    X-RHN-Upload-Package-Arch: amd64-deb<br>    X-RHN-Upload-Package-Name: amarok<br>    X-RHN-Upload-Package-Release: 0ubuntu4<br>    X-RHN-Upload-Package-Version: 2:2.3.0<br>    X-RHN-Upload-Packaging: deb<br>
    mod_wsgi.application_group: spacewalk.kickstart.interoute|/package-push<br>    mod_wsgi.callable_object: application<br>    mod_wsgi.handler_script:<br>    mod_wsgi.input_chunked: 0<br>    mod_wsgi.listener_host:<br>    mod_wsgi.listener_port: 80<br>
    mod_wsgi.process_group:<br>    mod_wsgi.request_handler: wsgi-script<br>    mod_wsgi.script_reloading: 1<br>    mod_wsgi.version: (3, 2)<br>    wsgi.errors: <mod_wsgi.Log object at 0x7f0fb50b0970><br>    wsgi.file_wrapper: <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7f0fb500b288><br>
    wsgi.input: <mod_wsgi.Input object at 0x7f0fb50b0930><br>    wsgi.multiprocess: True<br>    wsgi.multithread: False<br>    wsgi.run_once: False<br>    wsgi.url_scheme: http<br>    wsgi.version: (1, 1)<br><br>Exception Handler Information<br>
Traceback (most recent call last):<br>  File "/usr/lib/python2.6/site-packages/spacewalk/server/apacheUploadServer.py", line 100, in _wrapper<br>    ret = function(req)<br>  File "/usr/share/rhn/upload_server/handlers/package_push/package_push.py", line 114, in handler<br>
    rhnPackageUpload.load_package(temp_stream)<br>  File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnPackageUpload.py", line 292, in load_package<br>    raise rhnFault(50, "Unable to load package", explain=0), None, sys.exc_info()[2]<br>
NameError: global name 'sys' is not defined<br><br><br>