[Spacewalk-list] API error for older clients after upgrades

Joshua Roys joshua.roys at gtri.gatech.edu
Fri May 28 15:28:23 UTC 2010


On 05/28/2010 10:49 AM, Will Cladek wrote:
> I'm having an issue with a perl script which uses the Spacewalk API.  Specifically, the "system.listPackages" call gives me an XML error.
> 
> I previously was running Spacewalk 0.8 and had channels set up for CentOS 5.4, and the script worked fine for all subscribed clients.  I then upgraded to Spacewalk 1.0, added a new channel for CentOS 5.5, and changed the subcribed clients' channel to the new 5.5 channel using the web GUI.
> 
> I have the following API call in my perl script:
> 
> my $packages = $client->call('system.listPackages', $session, $system->{"id"});
> 
> Whenever I call this on a client whose channel I changed as previously described, I get the following error causing the script to crash:
> 
> xml declaration not at start of external entity at line 1, column 213, byte 213 at /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/XML/Parser.pm line 187
> 
> However, if I delete the client from the web GUI, and then re-register it to that same channel, that same API call no longer creates the error.
> 
> Any insight on what might be causing this error?  I'd prefer not to have to delete/re-register each system.
> 
> Thanks,
> 
> Will
> 

Hello,

Is there any way you could get a raw dump of the data returned?  Is it
valid XML?

Josh

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3086 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20100528/22396d15/attachment.p7s>


More information about the Spacewalk-list mailing list