[Spacewalk-list] server error while pushing .debs

Razvan Cosma rg at cosma.name
Wed Sep 7 08:50:13 UTC 2011


 Hello,
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
Exception type <class 'psycopg2.IntegrityError'>
Exception while handling function
packages.channelPackageSubscriptionBySession
Request object information:
URI: /APP
^^ traceback leads to
IntegrityError: duplicate key value violates unique constraint
"rhn_cnp_cid_nid_uq"
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  )"
PL/pgSQL function "refresh_newest_package" line 3 at SQL statement
or
Exception type <type 'exceptions.NameError'> Exception while handling
function server.apacheUploadServer._wrapper
Request object information:
URI: /PACKAGE-PUSH
 ^^ this one is downright strange, as the traceback is
File
"/usr/lib/python2.6/site-packages/spacewalk/server/rhnPackageUpload.py",
line 292, in load_package
    raise rhnFault(50, "Unable to load package", explain=0), None,
sys.exc_info()[2]
NameError: global name 'sys' is not defined

Sample for amarok_2.3.0-0ubuntu4_amd64.deb:

    SERVER_SOFTWARE: Apache
    User-Agent: rhnpush
    X-RHN-Upload-Auth-Session: 10578xfaa41816b0591f404440e08bed4ff3eb
    X-RHN-Upload-File-Checksum: d60abc7f457dac4360e1c07ad4641737
    X-RHN-Upload-File-Checksum-Type: md5
    X-RHN-Upload-File-MD5sum: d60abc7f457dac4360e1c07ad4641737
    X-RHN-Upload-Force: 0
    X-RHN-Upload-Package-Arch: amd64-deb
    X-RHN-Upload-Package-Name: amarok
    X-RHN-Upload-Package-Release: 0ubuntu4
    X-RHN-Upload-Package-Version: 2:2.3.0
    X-RHN-Upload-Packaging: deb
    mod_wsgi.application_group: spacewalk.kickstart.interoute|/package-push
    mod_wsgi.callable_object: application
    mod_wsgi.handler_script:
    mod_wsgi.input_chunked: 0
    mod_wsgi.listener_host:
    mod_wsgi.listener_port: 80
    mod_wsgi.process_group:
    mod_wsgi.request_handler: wsgi-script
    mod_wsgi.script_reloading: 1
    mod_wsgi.version: (3, 2)
    wsgi.errors: <mod_wsgi.Log object at 0x7f0fb50b0970>
    wsgi.file_wrapper: <built-in method file_wrapper of mod_wsgi.Adapter
object at 0x7f0fb500b288>
    wsgi.input: <mod_wsgi.Input object at 0x7f0fb50b0930>
    wsgi.multiprocess: True
    wsgi.multithread: False
    wsgi.run_once: False
    wsgi.url_scheme: http
    wsgi.version: (1, 1)

Exception Handler Information
Traceback (most recent call last):
  File
"/usr/lib/python2.6/site-packages/spacewalk/server/apacheUploadServer.py",
line 100, in _wrapper
    ret = function(req)
  File "/usr/share/rhn/upload_server/handlers/package_push/package_push.py",
line 114, in handler
    rhnPackageUpload.load_package(temp_stream)
  File
"/usr/lib/python2.6/site-packages/spacewalk/server/rhnPackageUpload.py",
line 292, in load_package
    raise rhnFault(50, "Unable to load package", explain=0), None,
sys.exc_info()[2]
NameError: global name 'sys' is not defined
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20110907/f09f4e6a/attachment.htm>


More information about the Spacewalk-list mailing list