dagwieers/mrepo

Too many levels of symbolic links during generate process

Opened this issue · 1 comments

After many years of successfully using mrepo we've now hit a bit of an issue. I'm not sure if this is due to growth in repos of other issues but we are now getting the following error message when running a generate for rhel6s x86_64.

mrepo -g rhel6s-x86_64
rhel6s-x86_64: Generating Red Hat Enterprise Server 6 (x86_64) meta-data
Traceback (most recent call last):
File "/usr/bin/mrepo", line 1894, in
main()
File "/usr/bin/mrepo", line 1861, in main
dist.genmetadata()
File "/usr/bin/mrepo", line 493, in genmetadata
self.linksync(Repo('all', '', self, cf), allsrcdirs)
File "/usr/bin/mrepo", line 516, in linksync
destfiles = listrpmlinks(destdir)
File "/usr/bin/mrepo", line 1717, in listrpmlinks
for f in os.listdir(dir):
OSError: [Errno 40] Too many levels of symbolic links: '/var/www/mrepo/rhel6s-x86_64/RPMS.all'

This really shouldn't happen since at most I would think there would only be 3 levels. I would check your data directory for mrepo and make sure there aren't any symbolic link loops.

http://serverfault.com/questions/265598/how-do-i-find-circular-symbolic-links