During a recent system update that I started using Spacewalk I stumbled upon the following error message:
Fatal error in Python code occurred []
After some troubleshooting I came up that I upgraded my spacewalk server to the most recenet release a couple of days ago. During this update I forgot to update also the Spacewalk client repository.
The solution was quite simple:
- Deleting the existing packages in the Spacewalk client repository
- Customizing the software channel URL: http://yum.spacewalkproject.org/2.1/RHEL/6/x86_64/
- Updating the software channel content
In another blog article I demonstrated how automatically update software channel contents using a cronjob – of course this script also needs to be altered:
# cat /etc/cron.daily/spacewalk_sync.cron ... /usr/bin/spacewalk-repo-sync --channel spacewalk-client-x86_64 --url http://yum.spacewalkproject.org/2.1-client/RHEL/6/x86_64/ --type yum -c spacewalk-client-x86_64 >/dev/null ESC ZZ
After a update of the appropriate Spacewalk client applications the next remote update worked like a charm.