首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >cobbler reposync错误到下游cobbler服务器

cobbler reposync错误到下游cobbler服务器
EN

Stack Overflow用户
提问于 2013-06-07 03:13:47
回答 1查看 1.2K关注 0票数 1

下面是在一个下游的cobbler服务器上做一个cobbler reposync的问题-

cobbler-server2 ->> cobbler-server3

代码语言:javascript
复制
[cobbler@cobbler-server3 ~]# cobbler reposync --only=anaplan-el6-x86_64
task started: 2013-06-06_181850_reposync
task started (id=Reposync, time=Thu Jun  6 18:18:50 2013)
hello, reposync
run, reposync, run!
creating: /var/www/cobbler/repo_mirror/anaplan-el6-x86_64/.origin/*******-el6-x86_64.repo
running: /usr/bin/reposync -l -d --config=/var/www/cobbler/repo_mirror/*******-el6-x86_64/.origin/*******-el6-x86_64.repo --repoid=*******-el6-x86_64 --download_path=/var/www/cobbler/repo_mirror -a x86_64
2.6 kB     00:00

[anaplan-el6-x86_64: 38    of 146   ] Downloading *******-glue-1.4.0.1-1.x86_64.rpm
Could not retrieve package *******-glue-1.4.0.1-1.x86_64. Error was failure: anaplan-glue-1.4.0.1-1.x86_64.rpm from *******-el6-x86_64: [Errno 256] No more mirrors to try.
[anaplan-el6-x86_64: 41    of 146   ] Skipping existing ......
[anaplan-el6-x86_64: 46    of 146   ] Downloading *******-launchpad-1.3.9.1-1.x86_64.rpm
Could not retrieve package *******-launchpad-1.3.9.1-1.x86_64. Error was failure: *******-launchpad-1.3.9.1-1.x86_64.rpm from *******-el6-x86_64: [Errno 256] No more mirrors to try.

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 132, 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 140, in die
    raise CX(msg)

reposync failed, tries left: 0
reposync failed, retry limit reached, skipping
running: chown -R root:apache /var/www/cobbler/repo_mirror/*******-el6-x86_64
received on stdout:
received on stderr:
running: chmod -R 755 /var/www/cobbler/repo_mirror/*******-el6-x86_64
received on stdout:
received on stderr:
Exception occured: <class 'cobbler.cexceptions.CX'>
Exception value: 'overall reposync failed, at least one repo failed to synchronize'
Exception Info:
  File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 132, in die
    raise CX(msg)

Exception occured: <class 'cobbler.cexceptions.CX'>
Exception value: 'overall reposync failed, at least one repo failed to synchronize'
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 248, in runner
    3), name=name, nofail=nofail, logger=self.logger)
   File "/usr/lib/python2.6/site-packages/cobbler/api.py", line 799, in reposync
    return reposync.run(name)
   File "/usr/lib/python2.6/site-packages/cobbler/action_reposync.py", line 154, in run
    utils.die(self.logger,"overall reposync failed, at least one repo failed to synchronize")
   File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 140, in die
    raise CX(msg)

!!! TASK FAILED !!!
EN

回答 1

Stack Overflow用户

发布于 2013-06-07 03:13:47

要解决此问题,请执行以下操作

删除产生错误的包-

代码语言:javascript
复制
    [anaplan-el6-x86_64: 38    of 146   ] Downloading *******-glue-1.4.0.1-1.x86_64.rpm
    Could not retrieve package *******-glue-1.4.0.1-1.x86_64. Error was failure: anaplan-glue-1.4.0.1-1.x86_64.rpm from
*******-el6-x86_64: [Errno 256] No more mirrors to try.
    [anaplan-el6-x86_64: 41    of 146   ] Skipping existing ......
    [anaplan-el6-x86_64: 46    of 146   ] Downloading *******-launchpad-1.3.9.1-1.x86_64.rpm
    Could not retrieve package *******-launchpad-1.3.9.1-1.x86_64. Error was failure: *******-launchpad-1.3.9.1-1.x86_64.rpm from
*******-el6-x86_64: [Errno 256] No more mirrors to try.

例如。

代码语言:javascript
复制
 rm -rf /var/www/cobbler/repo_mirror/anaplan-el6-x86_64/anaplan-launchpad-1.3.9.1-1.x86_64.rpm
 rm -rf /var/www/cobbler/repo_mirror/anaplan-el6-x86_64/anaplan-launchpad-1.3.9.1-1.x86_64.rpm

然后再次运行cobbler reposync命令。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/16970323

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档