On Tue, Aug 14, 2012 at 8:32 PM, James Cammarata <jimi(a)sngx.net> wrote:
On Tue, Aug 14, 2012 at 7:11 AM, Shake Chen
<shake.chen(a)gmail.com> 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.
if I manual run reposync
would return
[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
have no error.
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.
I confirm it is same. just because I copy from cobbler reposync.
I found the strange problem
Now I remove all the package and try to download again.
I found the permission and group owner is different.
in centos 6.3
[root@cobbler epel6-x86_64]# ll
total 12144
-rw-r--r-- 1 root root 349000 Mar 28 08:04 389-admin-1.1.29-1.el6.i686.rpm
-rw-r--r-- 1 root root 352148 Mar 28 08:04
389-admin-1.1.29-1.el6.x86_64.rpm
but in centos 6.2
[root@node11 epel6-x86_64]# ll
total 7194700
-rwxr-xr-x 1 root apache 349000 Mar 28 08:04
389-admin-1.1.29-1.el6.i686.rpm
-rwxr-xr-x 1 root apache 352148 Mar 28 08:04
389-admin-1.1.29-1.el6.x86_64.rpm
is it a problem?
_______________________________________________
--
Shake Chen