I’ll chime in with a script I wrote to update the errata. I have this run out 
of cron once a month - I also have my repos set to sync once a month, creating 
consistency between the errata and what I can apply. This works for CentOS6. 
You can probably remove the XML files related to Cent and just use the RH ones 
if you’re only working with RHEL.

#!/bin/bash
export SPACEWALK_USER=“username_here"
export SPACEWALK_PASS=“password_here”
cd /tmp/
rm -f errata-import.pl
wget -N "http://cefs.steve-meier.de/errata-import.tar";
tar -xf errata-import.tar
wget -N "http://cefs.steve-meier.de/errata.latest.xml";
wget -N "https://www.redhat.com/security/data/oval/com.redhat.rhsa-all.xml";
./errata-import.pl --server 127.0.0.1 --errata errata.latest.xml --publish
./errata-import.pl --server 127.0.0.1 --errata com.redhat.rhsa-all.xml 
--rhsa-oval --publish

> On Oct 31, 2014, at 1:03 PM, Glen Collins <[email protected]> wrote:
> 
> Hey all. I'm having an issue importing the RHN Server6 Errata information. I 
> had to wipe the DB clean and stop over. And now the errata for the server6 
> channel won't update properly. Keeps failing at around 23 errata's and 
> stopping. Not sure what to look at in regards to the logs. No real error over 
> than the one on the screen...
> 
> INFO: Creating errata RHBA-2011:0005:R6-64 for RHBA-2011:0005 (ruby bug fix 
> update) (All 3 packages present in the corresponding channel)
> WARNING: An error occurred while creating the errata RHBA-2011:0005
> WARNING: The error is Fault returned from XML RPC Server, fault code -1: 
> redstone.xmlrpc.XmlRpcFault: unhandled internal exception: java.lang.Integer 
> cannot be cast to java.lang.String
> 
> Anyone seen this at all? I'm stumped!
> 
> Thanks
> 
> Glen Collins
> _______________________________________________
> Spacewalk-list mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/spacewalk-list

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

Reply via email to