On Tue, Aug 14, 2012 at 7:11 AM, Shake Chen <[email protected]> wrote:
> Hi
>
> I run cobbler 2.2.3 in centos 6.2 , the cobbler reposync seem have no
> problem. but in centos 6.3,
>
>
>
> cobbler reposync
>
> [epel6-x86_64: 7684  of 7685  ] Skipping existing
> zvbi-devel-0.2.33-6.el6.x86_64.rpm
> [epel6-x86_64: 7685  of 7685  ] Skipping existing
> zvbi-fonts-0.2.33-6.el6.noarch.rpm
>
> received on stderr:
> Exception occured: <class 'cobbler.cexceptions.CX'>
> Exception value: 'cobbler reposync failed'
> Exception Info:
>   File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 126, in die
>     raise CX(msg)
>
> Exception occured: <class 'cobbler.cexceptions.CX'>
> Exception value: 'cobbler reposync failed'
> Exception Info:
>   File "/usr/lib/python2.6/site-packages/cobbler/action_reposync.py", line
> 125, in run
>     self.sync(repo)
>    File "/usr/lib/python2.6/site-packages/cobbler/action_reposync.py", line
> 169, in sync
>     return self.yum_sync(repo)
>    File "/usr/lib/python2.6/site-packages/cobbler/action_reposync.py", line
> 402, in yum_sync
>     utils.die(self.logger,"cobbler reposync failed")
>    File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 134, in
> die
>     raise CX(msg)
>
> reposync failed, tries left: 0
> Exception occured: <class 'cobbler.cexceptions.CX'>
> Exception value: 'reposync failed, retry limit reached, aborting'
> Exception Info:
>   File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 126, in die
>     raise CX(msg)
>
> Exception occured: <class 'cobbler.cexceptions.CX'>
> Exception value: 'reposync failed, retry limit reached, aborting'
> Exception Info:
>   File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 89, in run
>     rc = self._run(self)
>    File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 251, in
> runner
>     name=None, nofail=nofail, logger=self.logger)
>    File "/usr/lib/python2.6/site-packages/cobbler/api.py", line 758, in
> reposync
>     return reposync.run(name)
>    File "/usr/lib/python2.6/site-packages/cobbler/action_reposync.py", line
> 147, in run
>     utils.die(self.logger,"reposync failed, retry limit reached, aborting")
>    File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 134, in
> die
>     raise CX(msg)
>
> !!! TASK FAILED !!!
>
> but when I run
>
> /usr/bin/reposync -l -m -d
> --config=/var/www/cobbler/repo_mirror/epel6-x86_64/.origin/epel6-x86_64.repo
> --repoid=epel6-x86_64 --download_path=/var/www/cobbler/repo_mirror -a x86_64
>
> seem no problem.

What is the return value when you run reposync manually? It is
possible reposync is returning a non-zero value, making cobbler think
the command failed.

Also, could you confirm the options you've specified above are the
same as those in your settings for reposync_flags? Those are the
defaults, I just want to make sure.
_______________________________________________
cobbler mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/cobbler
  • [cobble... Shake Chen
    • Re... James Cammarata
      • ... Newman, Stuart J. (GSFC-444.0)[HONEYWELL TECHNOLOGY SOLUTIONS INC]
      • ... Shake Chen

Reply via email to