Yep you found a bug in the code, its a undefined variable. This should fix your issue. I'll make sure it gets into the repo:

--- /root/errata.py.orig    2009-02-10 16:08:29.000000000 -0500
+++ /usr/share/rhn/server/handlers/xmlrpc/errata.py 2009-02-10 16:09:02.000000000 -0500
@@ -187,6 +187,7 @@
        client_caps = rhnCapability.get_client_capabilities()
        log_debug(3,"Client Capabilities", client_caps)
        multiarch = 0
+        cap_info = None
        if client_caps and client_caps.has_key('packages.update'):
            cap_info =  client_caps['packages.update']
        if cap_info and cap_info['version'] > 1:

If you cant wait for the new packages, apply the above patch and restart httpd and re-try.

Thanks,
~ Prad



Joaquin Raventos wrote:
When deploying custom erratas I get the following errors.

Client Side - up2date_client.up2dateErrors.
CommunicationError: Error communicating with server. The message was:
Internal Server Error

Server Side - xWhen deploying custom erratas I get the following errors.

Client Side - up2date_client.up2dateErrors.CommunicationError: Error communicating with server. The message was:
Internal Server Error

Server Side - xception reported from srlinuxpatch1.domaindomain.com <http://srlinuxpatch1.domaindomain.com/>
Time: Mon Feb  9 17:06:07 2009
Exception type exceptions.UnboundLocalError
Exception while handling function errata.getErrataInfo
Request object information:
URI: /XMLRPC
Remote Host: srredhattest2.domain.com <http://srredhattest2.domain.com/>
Server Name: srlinuxpatch1.domain.com:0 <http://srlinuxpatch1.domain.com:0/>
Headers passed in:
        Accept-Encoding: identity
        Content-Length: 2231
        Host: srlinuxpatch1.domain.com <http://srlinuxpatch1.domain.com/>
        content-type: text/xml
user-agent: rhn.rpclib.py/$Revision <http://rhn.rpclib.py/$Revision>: 102540 $
        x-client-version: 1
        x-info: RPC Processor (C) Red Hat, Inc (version 102540)
        x-info: RPC Processor (C) Red Hat, Inc (version 102540)
Exception reported from srlinuxpatch1.domain.com <http://srlinuxpatch1.domain.com/>
Time: Mon Feb  9 17:06:07 2009
Exception type exceptions.UnboundLocalError
Exception while handling function errata.getErrataInfo
Request object information:
URI: /XMLRPC
Remote Host: srredhattest2.domain.com <http://srredhattest2.domain.com/>
Server Name: srlinuxpatch1.domain.com:0 <http://srlinuxpatch1.domain.com:0/>
Headers passed in:
        Accept-Encoding: identity
        Content-Length: 2231
Host: srlinuxpatch1.domaindomain.com <http://srlinuxpatch1.domaindomain.com/>
        content-type: text/xml
user-agent: rhn.rpclib.py/$Revision <http://rhn.rpclib.py/$Revision>: 102540 $
        x-client-version: 1
        x-info: RPC Processor (C) Red Hat, Inc (version 102540)
x-rhn-client-capability: osad.ping(1)=1,packages.verifyAll(1)=1,packages.verify(1)=1,packages.extended_profile(1)=1,osad.rhn_check(1)=1,configfiles.base64_enc(1)=1,reboot.reb
oot(1)=1,configfiles.deploy(1)=1,caneatCheese(1)=1,packages.rollBack(1)=1,configfiles.mtime_upload(1)=1,configfiles.diff(1)=1,script.run(1)=1,configfiles.upload(1)=1,packages.runTran
saction(1)=1
        x-rhn-transport-capability: follow-redirects=2
x-transport-info: Extended Capabilities Transport (C) Red Hat, Inc (version 102540)
        x-up2date-version: 0.4.16-1.el5

Exception Handler Information
Traceback (most recent call last):
File "/usr/share/rhn/server/apacheRequest.py", line 120, in call_function
    response = apply(func, params)
File "/usr/share/rhn/server/handlers/xmlrpc/errata.py", line 192, in getErrataInfo
    if cap_info and cap_info['version'] > 1:
UnboundLocalError: local variable 'cap_info' referenced before assignment

Exception reported from srlinuxpatch1.domaindomain.com <http://srlinuxpatch1.domaindomain.com/>
Time: Mon Feb  9 23:54:03 2009
Exception type exceptions.UnboundLocalError
Exception while handling function errata.getErrataInfo
Request object information:
URI: /XMLRPC
Remote Host: srredhattest2.domain.com <http://srredhattest2.domain.com/>
Server Name: srlinuxpatch1.domain.com:0 <http://srlinuxpatch1.domain.com:0/>
Headers passed in:
        Accept-Encoding: identity
        Content-Length: 2231
        Host: srlinuxpatch1.domain.com <http://srlinuxpatch1.domain.com/>
        content-type: text/xml
user-agent: rhn.rpclib.py/$Revision <http://rhn.rpclib.py/$Revision>: 102540 $
        x-client-version: 1
        x-info: RPC Processor (C) Red Hat, Inc (version 102540)
x-rhn-client-capability: osad.ping(1)=1,packages.verifyAll(1)=1,packages.verify(1)=1,packages.extended_profile(1)=1,osad.rhn_check(1)=1,configfiles.base64_enc(1)=1,reboot.reb
oot(1)=1,configfiles.deploy(1)=1,caneatCheese(1)=1,packages.rollBack(1)=1,configfiles.mtime_upload(1)=1,configfiles.diff(1)=1,script.run(1)=1,configfiles.upload(1)=1,packages.runTran
saction(1)=1
        x-rhn-transport-capability: follow-redirects=2
x-transport-info: Extended Capabilities Transport (C) Red Hat, Inc (version 102540)
        x-up2date-version: 0.4.16-1.el5

Exception Handler Information
Traceback (most recent call last):
  File "/usr/share/rhn/server/apacheRequest.p
(END)

I'm running Centos 5.2, Oracle-XE. I have tried different client (RHEL4, OEL4, RHEL5) same issue. Any suggestions?

Thanks,
------------------------------------------------------------------------

_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list


--
--
Pradeep Kilambi
RHN Satellite Engineering
[email protected]
Phone: +1 919 754 4285
RHCE # 805008680430554


_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to