[Spacewalk-list] sync_repos.py in crontab

Jan Hutař jhutar at redhat.com
Tue Aug 28 11:10:55 UTC 2012


On Fri, 24 Aug 2012 06:47:58 +0000 Jakl Stefan
<Stefan.Jakl at wuerth-itensis.com> wrote:

> Dear List
> 
> I've insert the script sync_repos.py
> (https://fedorahosted.org/spacewalk/wiki/UploadFedoraContent#no1)
> into root's crontab. Unfortunally, it seems that the script
> doesn't download the latest packages. This here is written in
> the logs :
> 
> Sync started: Fri Aug 24 06:04:20 2012
> ['/usr/bin/spacewalk-repo-sync', '--type=yum',
> '--url=http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=updates',
> '--channel=centos6-x86_64-updates']
> 
> No further errormessages or something else ...?
> 
> 
> If I run the script from the CLI, it works as expected, and
> it's downloading the latest packages. Output from the log:
> spacewalk-repo-sync --type=yum
> --url='http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=updates'
> --channel='centos6-x86_64-updates' Repo URL:
> http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=updates
> Packages in repo:               473 Packages already
> synced:        460 Packages to sync:                13 1/13 :
> libvirt-client-0.9.10-21.el6_3.4-0.x86_64 2/13 :
> openssl-1.0.0-25.el6_3.1-0.x86_64 3/13 :
> openssl-devel-1.0.0-25.el6_3.1-0.x86_64 4/13 :
> openssl-static-1.0.0-25.el6_3.1-0.x86_64 5/13 :
> libvirt-devel-0.9.10-21.el6_3.4-0.i686 6/13 :
> openssl-1.0.0-25.el6_3.1-0.i686 7/13 :
> libvirt-client-0.9.10-21.el6_3.4-0.i686 8/13 :
> libvirt-lock-sanlock-0.9.10-21.el6_3.4-0.x86_64 9/13 :
> libvirt-python-0.9.10-21.el6_3.4-0.x86_64 10/13 :
> openssl-devel-1.0.0-25.el6_3.1-0.i686 11/13 :
> openssl-perl-1.0.0-25.el6_3.1-0.x86_64 12/13 :
> libvirt-0.9.10-21.el6_3.4-0.x86_64 13/13 :
> libvirt-devel-0.9.10-21.el6_3.4-0.x86_64 Repo
> http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=updates
> has 0 errata. Sync completed. Total time: 0:00:42
> 
> Do you have any hint for me what I might have to
> change/adjust ?
> 
> Kind regards
> Stefan

Please ask script author.

Anyway, try to run spacewalk-repo-sync directly from your cron.
It should work.

Regards,
Jan



-- 
Jan Hutar     Systems Management QA
jhutar at redhat.com     Red Hat, Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20120828/59fb05e7/attachment.sig>


More information about the Spacewalk-list mailing list