[Spacewalk-list] spacewalk-repo-sync incorrectly creating links for file:// repo

john miller johnmille1 at gmail.com
Mon Jan 30 21:10:17 UTC 2012


914 of the 2804 packages fail with the same error when I run
spacewalk-repo-sync --channel rhel6-dev-base-i386  --url
file:///var/www/mrepo/rhel-server-6.2-i386/RPMS.os/
....
415/914 : libreport-plugin-mailx-2.0.5-20.el6-0.i686
(50, "Package upload failed: [Errno 2] No such file or directory:
'/var/satellite/redhat/1/35b/libreport-plugin-mailx/2.0.5-20.el6/i686/35b77f7e28f3df740c59099898d35f87c90714e1aa56540c22af1a92274ad2ce/libreport-plugin-mailx-2.0.5-20.el6.i686.rpm'",
'Invalid information uploaded to the server')
....

When I examine the file it appears that the symbolic link is wrong:
1586680 lrwxrwxrwx. 1 root root 62 Jan 30 13:41
libreport-plugin-mailx-2.0.5-20.el6.i686.rpm ->
../disc1/Packages/libreport-plugin-mailx-2.0.5-20.el6.i686.rpm

Am I interpreting this correctly? I'm guessing the 1890 rpms that worked
successfully were already loaded from 6.1

My workaround is:
spacewalk-repo-sync --channel rhel6-dev-base-i386  --url
http://spacewalk.example.com/mrepo/rhel-server-6.2-i386/RPMS.os/

The downside is I now have two copies of the rpm on the server. One in
/var/www/mrepo/rhel-server-6.2-i386/RPMS.os/ and another in
/var/satellite/. Hard drive space is cheap so I'm not too worried about
getting a fix just wanted to get the workaround out there.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20120130/75d5d166/attachment.htm>


More information about the Spacewalk-list mailing list