[Spacewalk-list] ERROR: <type 'exceptions.TypeError'> : 'NoneType' object is unsubscriptable

kcampbell at tgen.org kcampbell at tgen.org
Mon Dec 12 15:26:41 UTC 2011


When trying to build a channel with the following command:
rhnpush --server localhost -u **** -p **** --channel centos-61 /var/distro-trees/CentOS-6.1/Packages/*.rpm

I get the following error at the prompt:
  While running 'packages.channelPackageSubscriptionBySession': caught
<type 'exceptions.TypeError'> : 'NoneType' object is unsubscriptable

The spacewalk server sent me the following email:
Exception reported from hermes
Time: Sat Dec 10 18:55:40 2011
Exception type <type 'exceptions.TypeError'>
Exception while handling function packages.channelPackageSubscriptionBySession
Request object information:
URI: /APP
Remote Host: localhost
Server Name: localhost:80
Headers passed in:
        Accept-Encoding: identity
        CONTENT_LENGTH: 207750
        CONTENT_TYPE: application/binary
        Content-Encoding: x-gzip
        Content-Transfer-Encoding: binary
        DOCUMENT_ROOT: /var/www/html
       GATEWAY_INTERFACE: CGI/1.1
        HTTP_ACCEPT_ENCODING: identity
        HTTP_CONTENT_ENCODING: x-gzip
        HTTP_CONTENT_TRANSFER_ENCODING: binary
        HTTP_HOST: localhost
        HTTP_USER_AGENT: rhn.rpclib.py/$Revision$
        HTTP_X_CLIENT_VERSION: 1
        HTTP_X_INFO: RPC Processor (C) Red Hat, Inc (version $Revision$)
        HTTP_X_RHN_TRANSPORT_CAPABILITY: follow-redirects=3
        HTTP_X_TRANSPORT_INFO: Extended Capabilities Transport (C) Red Hat, Inc (version $Revision$)
        Host: localhost
        PATH_INFO:
        QUERY_STRING:
        REMOTE_ADDR: ::1
        REMOTE_PORT: 55610
        REQUEST_METHOD: POST
        REQUEST_URI: /APP
        SCRIPT_FILENAME: /usr/share/rhn/wsgi/app.py
        SCRIPT_NAME: /APP
        SCRIPT_URI: http://localhost/APP
        SCRIPT_URL: /APP
        SERVER_ADDR: ::1
        SERVER_ADMIN: root at localhost
        SERVER_NAME: localhost
        SERVER_PORT: 80
        SERVER_PROTOCOL: HTTP/1.1
        SERVER_SIGNATURE: <address>Apache Server at localhost Port 80</address>

        SERVER_SOFTWARE: Apache
        User-Agent: rhn.rpclib.py/$Revision$
        X-Client-Version: 1
        X-Info: RPC Processor (C) Red Hat, Inc (version $Revision$)
        X-RHN-Transport-Capability: follow-redirects=3
        X-Transport-Info: Extended Capabilities Transport (C) Red Hat, Inc (version $Revision$)
        mod_wsgi.application_group: 127.0.0.1|/app
        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 0x7f1bed4d7b70>
        wsgi.file_wrapper: <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7f1bed4d0300>
        wsgi.input: <mod_wsgi.Input object at 0x7f1bed4d7b30>
        wsgi.multiprocess: True
        wsgi.multithread: False
        wsgi.run_once: False
        wsgi.url_scheme: http
        wsgi.version: (1, 1)
Extra information about this error:
Response sent back to the caller:
While running 'packages.channelPackageSubscriptionBySession': caught
<type 'exceptions.TypeError'> : 'NoneType' object is unsubscriptable



Exception Handler Information
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/spacewalk/server/apacheRequest.py", line 123, in call_function
    response = apply(func, params)
  File "/usr/share/rhn/server/handlers/app/packages.py", line 311, in channelPackageSubscriptionBySession
    return self._channelPackageSubscription(authobj, info)
  File "/usr/share/rhn/server/handlers/app/packages.py", line 383, in _channelPackageSubscription
    package['checksum_type'] = row['checksum_type']
TypeError: 'NoneType' object is unsubscriptable

Local variables by frame
Frame _channelPackageSubscription in /usr/share/rhn/server/handlers/app/packages.py at line 383
        _checksum_sql_filter = <type 'str'> and c.checksum = :checksum
                                          and c.checksum_type = :checksum_type
                        info = <type 'dict'> <ERROR WHILE PRINTING VALUE: string representation too large>
             checksum_exists = <type 'int'> 1
                     package = <type 'dict'> {'name': 'kdelibs-common', 'checksum': '0082bd86d26dac38c51ee2f34b78d0dac0b24fc99c695dfafbef1d8721cc52cb', 'epoch': 6, 'version': '4.3.4', 'release': '11.el6_0.2', 'checksum_type': 'sha256', 'arch': 'x86_64'}
                           h = <type 'instance'> <spacewalk.server.rhnSQL.driver_postgresql.Cursor instance at 0x7f1bee65fd40>
                           k = <type 'str'> arch
                      org_id = <type 'int'> 1
                       batch = <class 'spacewalk.server.importlib.importLib.Collection'> <ERROR WHILE PRINTING VALUE: string representation too large>
                        self = <type 'instance'> <server.handlers.app.packages.Packages instance at 0x7f1bee255200>
                 packageList = <type 'list'> <ERROR WHILE PRINTING VALUE: string representation too large>
                     authobj = <type 'instance'> <spacewalk.server.importlib.userAuth.UserAuth instance at 0x7f1bee5d43b0>
                package_keys = <type 'list'> ['name', 'version', 'release', 'epoch', 'arch']
                   pkg_epoch = <type 'str'> 6
                 channelList = <type 'list'> [[<spacewalk.server.importlib.importLib.Channel instance; attributes={'export-end-date': None, 'source_packages': None, 'kickstartable_trees': None, 'families': None, 'description': None, 'comps_last_modified': None, 'product_beta': None, 'product_version': None, 'product_name_id': None, 'all-packages': None, 'errata_timestamps': None, 'channel_product_id': None, 'last_modified': None, 'summary': None, 'checksum_type': None, 'receiving_updates': None, 'parent_channel': None, 'export-start-date': None, 'name': None, 'channel_arch': None, 'packages': None, 'gpg_key_url': None, 'basedir': None, 'org_id': None, 'label': 'centos-61', 'dists': None, 'export-type': None, 'release': None, 'product_name': None, 'errata': None}]]
                         row = <type 'NoneType'> None

Frame channelPackageSubscriptionBySession in /usr/share/rhn/server/handlers/app/packages.py at line 311
                        info = <type 'dict'> <ERROR WHILE PRINTING VALUE: string representation too large>
              session_string = <type 'str'> 41x2337f2c59bedcc45e63f6112907d5eba
                        self = <type 'instance'> <server.handlers.app.packages.Packages instance at 0x7f1bee255200>
                     authobj = <type 'instance'> <spacewalk.server.importlib.userAuth.UserAuth instance at 0x7f1bee5d43b0>

Frame call_function in /usr/lib/python2.6/site-packages/spacewalk/server/apacheRequest.py at line 138
                       fault = <type 'int'> 1
                        self = <type 'instance'> <spacewalk.server.apacheRequest.apachePOST instance at 0x7f1bedeb7758>
              force_rollback = <type 'int'> 1
                      method = <type 'str'> packages.channelPackageSubscriptionBySession
                      params = <type 'tuple'> <ERROR WHILE PRINTING VALUE: string representation too large>
                      e_type = <type 'type'> <type 'exceptions.TypeError'>
                        func = <type 'instancemethod'> <bound method Packages.channelPackageSubscriptionBySession of <server.handlers.app.packages.Packages instance at 0x7f1bee255200>>
                     e_value = <type 'exceptions.TypeError'> 'NoneType' object is unsubscriptable
                    response = <class 'xmlrpclib.Fault'> <Fault 1: "While running 'packages.channelPackageSubscriptionBySession': caught\n<type 'exceptions.TypeError'> : 'NoneType' object is unsubscriptable\n">

Frame process in /usr/lib/python2.6/site-packages/spacewalk/server/apacheRequest.py at line 476
                          fd = <type 'instance'> <closed file '<fdopen>', mode 'wb+' at 0x7f1bee273540>
                       _body = <type 'str'> <ERROR WHILE PRINTING VALUE: string representation too large>
                      params = <type 'tuple'> <ERROR WHILE PRINTING VALUE: string representation too large>
                      method = <type 'str'> packages.channelPackageSubscriptionBySession
                        self = <type 'instance'> <spacewalk.server.apacheRequest.apachePOST instance at 0x7f1bedeb7758>

Frame handler in /usr/lib/python2.6/site-packages/spacewalk/server/apacheHandler.py at line 195
                           h = <type 'instance'> <spacewalk.server.rhnSQL.driver_postgresql.Cursor instance at 0x7f1bedeb7950>
                        self = <type 'instance'> <spacewalk.server.apacheHandler.apacheHandler instance at 0x7f1bedf4b0e0>
                         req = <type 'instance'> <wsgi.wsgiRequest.WsgiRequest instance at 0x7f1bedfb7290>
                         ret = <type 'int'> 0
             templateStrings = <type 'dict'> {'email_account_info': '\nAccount Information:\n  Your Spacewalk login:         <login />\n  Your Spacewalk email address: <email-address />', 'email_footer': '--the Spacewalk Team', 'hostname': 'hermes'}
                         row = <type 'NoneType'> None

Frame handle in /usr/share/rhn/wsgi/wsgiHandler.py at line 45
               replacements = <type 'dict'> {'Xml': 'XML', 'Actualuri': 'ActualURI', 'Md5Sum': 'MD5sum', '_': '-', 'Rhn': 'RHN'}
              component_type = <type 'str'> server.app
              start_response = <type 'builtin_function_or_method'> <built-in method start_response of mod_wsgi.Adapter object at 0x7f1bed4d0300>
                           k = <type 'str'> Rhn
                         req = <type 'instance'> <wsgi.wsgiRequest.WsgiRequest instance at 0x7f1bedfb7290>
                   parseServ = <type 'instancemethod'> <bound method apacheHandler.headerParserHandler of <spacewalk.server.apacheHandler.apacheHandler instance at 0x7f1bedf4b0e0>>
                         ret = <type 'int'> 0
                      server = <type 'str'> app
                     environ = <type 'dict'> {'mod_wsgi.listener_port': '80', 'Content-Encoding': 'x-gzip', 'SERVER_SOFTWARE': 'Apache', 'SCRIPT_NAME': '/APP', 'HTTP_X_TRANSPORT_INFO': 'Extended Capabilities Transport (C) Red Hat, Inc (version $Revision$)', 'mod_wsgi.handler_script': '', 'SERVER_SIGNATURE': '<address>Apache Server at localhost Port 80</address>\n', 'REQUEST_METHOD': 'POST', 'PATH_INFO': '', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'X-Info': 'RPC Processor (C) Red Hat, Inc (version $Revision$)', 'CONTENT_LENGTH': '207750', 'HTTP_USER_AGENT': 'rhn.rpclib.py/$Revision$', 'SERVER_NAME': 'localhost', 'REMOTE_ADDR': '::1', 'Content-Transfer-Encoding': 'binary', 'HTTP_CONTENT_TRANSFER_ENCODING': 'binary', 'mod_wsgi.request_handler': 'wsgi-script', 'User-Agent': 'rhn.rpclib.py/$Revision$', 'wsgi.url_scheme': 'http', 'Host': 'localhost', 'X-RHN-Transport-Capability': 'follow-redirects=3', 'mod_wsgi.callable_object': 'application', 'SERVER_PORT': '80', 'wsgi.multipr
ocess': True, 'mod_wsgi.input_chunked': '0', 'SERVER_ADDR': '::1', 'HTTP_CONTENT_ENCODING': 'x-gzip', 'mod_wsgi.process_group': '', 'Accept-Encoding': 'identity', 'SCRIPT_FILENAME': '/usr/share/rhn/wsgi/app.py', 'SERVER_ADMIN': 'root at localhost', 'X-Transport-Info': 'Extended Capabilities Transport (C) Red Hat, Inc (version $Revision$)', 'SCRIPT_URI': 'http://localhost/APP', 'HTTP_X_CLIENT_VERSION': '1', 'wsgi.input': <mod_wsgi.Input object at 0x7f1bed4d7b30>, 'X-Client-Version': '1', 'HTTP_HOST': 'localhost', 'SCRIPT_URL': '/APP', 'wsgi.multithread': False, 'REQUEST_URI': '/APP', 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7f1bed4d0300>, 'wsgi.version': (1, 1), 'GATEWAY_INTERFACE': 'CGI/1.1', 'wsgi.run_once': False, 'wsgi.errors': <mod_wsgi.Log object at 0x7f1bed4d7b70>, 'REMOTE_PORT': '55610', 'mod_wsgi.listener_host': '', 'mod_wsgi.version': (3, 2), 'HTTP_X_RHN_TRANSPORT_CAPABILITY': 'follow-redirects=3', 'CONTENT_TYPE': 'application/
binary', 'mod_wsgi.application_group': '127.0.0.1|/app', 'mod_wsgi.script_reloading': '1', 'DOCUMENT_ROOT': '/var/www/html', 'HTTP_ACCEPT_ENCODING': 'identity', 'HTTP_X_INFO': 'RPC Processor (C) Red Hat, Inc (version $Revision$)'}
                         key = <type 'str'> HTTP_X_INFO
                           v = <type 'str'> RHN
                     new_key = <type 'str'> X-Info
                        type = <type 'str'> spacewalk.server.apacheServer
                     appServ = <type 'instancemethod'> <bound method apacheHandler.handler of <spacewalk.server.apacheHandler.apacheHandler instance at 0x7f1bedf4b0e0>>

Frame application in /usr/share/rhn/wsgi/app.py at line 20
              start_response = <type 'builtin_function_or_method'> <built-in method start_response of mod_wsgi.Adapter object at 0x7f1bed4d0300>
                     environ = <type 'dict'> {'mod_wsgi.listener_port': '80', 'Content-Encoding': 'x-gzip', 'SERVER_SOFTWARE': 'Apache', 'SCRIPT_NAME': '/APP', 'HTTP_X_TRANSPORT_INFO': 'Extended Capabilities Transport (C) Red Hat, Inc (version $Revision$)', 'mod_wsgi.handler_script': '', 'SERVER_SIGNATURE': '<address>Apache Server at localhost Port 80</address>\n', 'REQUEST_METHOD': 'POST', 'PATH_INFO': '', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'X-Info': 'RPC Processor (C) Red Hat, Inc (version $Revision$)', 'CONTENT_LENGTH': '207750', 'HTTP_USER_AGENT': 'rhn.rpclib.py/$Revision$', 'SERVER_NAME': 'localhost', 'REMOTE_ADDR': '::1', 'Content-Transfer-Encoding': 'binary', 'HTTP_CONTENT_TRANSFER_ENCODING': 'binary', 'mod_wsgi.request_handler': 'wsgi-script', 'User-Agent': 'rhn.rpclib.py/$Revision$', 'wsgi.url_scheme': 'http', 'Host': 'localhost', 'X-RHN-Transport-Capability': 'follow-redirects=3', 'mod_wsgi.callable_object': 'application', 'SERVER_PORT': '80', 'wsgi.multipr
ocess': True, 'mod_wsgi.input_chunked': '0', 'SERVER_ADDR': '::1', 'HTTP_CONTENT_ENCODING': 'x-gzip', 'mod_wsgi.process_group': '', 'Accept-Encoding': 'identity', 'SCRIPT_FILENAME': '/usr/share/rhn/wsgi/app.py', 'SERVER_ADMIN': 'root at localhost', 'X-Transport-Info': 'Extended Capabilities Transport (C) Red Hat, Inc (version $Revision$)', 'SCRIPT_URI': 'http://localhost/APP', 'HTTP_X_CLIENT_VERSION': '1', 'wsgi.input': <mod_wsgi.Input object at 0x7f1bed4d7b30>, 'X-Client-Version': '1', 'HTTP_HOST': 'localhost', 'SCRIPT_URL': '/APP', 'wsgi.multithread': False, 'REQUEST_URI': '/APP', 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7f1bed4d0300>, 'wsgi.version': (1, 1), 'GATEWAY_INTERFACE': 'CGI/1.1', 'wsgi.run_once': False, 'wsgi.errors': <mod_wsgi.Log object at 0x7f1bed4d7b70>, 'REMOTE_PORT': '55610', 'mod_wsgi.listener_host': '', 'mod_wsgi.version': (3, 2), 'HTTP_X_RHN_TRANSPORT_CAPABILITY': 'follow-redirects=3', 'CONTENT_TYPE': 'application/
binary', 'mod_wsgi.application_group': '127.0.0.1|/app', 'mod_wsgi.script_reloading': '1', 'DOCUMENT_ROOT': '/var/www/html', 'HTTP_ACCEPT_ENCODING': 'identity', 'HTTP_X_INFO': 'RPC Processor (C) Red Hat, Inc (version $Revision$)'}


Environment for PID=1744 on exception:
LANG = C
PATH = /sbin:/usr/sbin:/bin:/usr/bin
PWD = /
SHLVL = 2
TERM = xterm
_ = /usr/sbin/httpd


Any ideas here? I am running CentOS 6.1 on the server running spacewalk release 1.5.

Thanks
KevinC


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20111212/315d01ff/attachment.htm>


More information about the Spacewalk-list mailing list