Satellite: Encountering a java exception when trying to view kickstart profiles, and python error "ReaderError: 'utf8' codec can't decode byte #xd7" when starting the cobbler service

Solution Verified - Updated -

Issue

When trying to view kickstart profiles the following traceback email is being received:

The following exception occurred while executing this request:  
GET /rhn/kickstart/Kickstarts.do  

Date:8/23/11 12:32:01 PM MDT  
Headers:  
host: satellite.example.com  
...  

Exception:  
javax.servlet.ServletException: XmlRpcException calling cobbler.  
...  
Caused by: java.lang.RuntimeException: XmlRpcException calling cobbler.  
     at com.redhat.rhn.manager.kickstart.cobbler.CobblerXMLRPCHelper.invokeMethod(CobblerXMLRPCHelper.java:72)  
     at com.redhat.rhn.manager.kickstart.cobbler.CobblerLoginCommand.login(CobblerLoginCommand.java:52)  
     at com.redhat.rhn.frontend.integration.IntegrationService.authorize(IntegrationService.java:114)  
     at com.redhat.rhn.frontend.integration.IntegrationService.getAuthToken(IntegrationService.java:67)  
     at com.redhat.rhn.manager.kickstart.cobbler.CobblerXMLRPCHelper.getConnection(CobblerXMLRPCHelper.java:92)  
     at com.redhat.rhn.manager.kickstart.cobbler.CobblerXMLRPCHelper.getConnection(CobblerXMLRPCHelper.java:83)  
     at com.redhat.rhn.manager.kickstart.KickstartLister.listCobblerProfiles(KickstartLister.java:391)  
     at com.redhat.rhn.frontend.action.kickstart.KickstartsSetupAction.execute(KickstartsSetupAction.java:62)  
     at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)  
...

Restarting the rhn-satellite service produces the following python traceback when the cobbler service is started:

# rhn-satellite restart  
Shutting down spacewalk services...  
Stopping RHN Taskomatic...  
Stopped RHN Taskomatic.  
Stopping cobbler daemon:                                   [FAILED]  
...  
Starting cobbler daemon: Traceback (most recent call last):  
  File "/usr/bin/cobblerd", line 76, in main  
    api = cobbler_api.BootAPI(is_cobblerd=True)  
  File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 128, in __init__  
    self.deserialize()  
  File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 689, in deserialize  
    return self._config.deserialize()  
  File "/usr/lib/python2.4/site-packages/cobbler/config.py", line 210, in deserialize  
    serializer.deserialize(self._systems)  
  File "/usr/lib/python2.4/site-packages/cobbler/serializer.py", line 122, in deserialize  
    rc = storage_module.deserialize(obj,topological)  
  File "/usr/lib/python2.4/site-packages/cobbler/modules/serializer_catalog.py", line 186, in deserialize  
    datastruct = deserialize_raw(obj.collection_type())  
  File "/usr/lib/python2.4/site-packages/cobbler/modules/serializer_catalog.py", line 158, in deserialize_raw  
    datastruct = yaml.load(ydata)  
  File "/usr/lib/python2.4/site-packages/yaml/__init__.py", line 57, in load  
    loader = Loader(stream)  
  File "/usr/lib/python2.4/site-packages/yaml/loader.py", line 34, in __init__  
    Reader.__init__(self, stream)  
  File "/usr/lib/python2.4/site-packages/yaml/reader.py", line 114, in __init__  
    self.determine_encoding()  
  File "/usr/lib/python2.4/site-packages/yaml/reader.py", line 170, in determine_encoding  
    self.update(1)  
  File "/usr/lib/python2.4/site-packages/yaml/reader.py", line 200, in update  
    exc.encoding, exc.reason)  
ReaderError: 'utf8' codec can't decode byte #xd7: invalid data  
  in "<string>", position 32849  
                                                           [  OK  ]  
Starting RHN Taskomatic...  
Done.

Environment

  • RHN Satellite 5.4
  • Red Hat Enterprise Linux 5.7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In