用yum方式安装cobbler时,执行cobbler get-loaders有时会报以下错误
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
[root@cobbler ~]
# cobbler get-loaders
task started: 2017-08-29_155755_get_loaders
task started (
id
=Download Bootloader Content,
time
=Tue Aug 29 15:57:55 2017)
path
/var/lib/cobbler/loaders/README
already exists, not overwriting existing content, use --force
if
you wish to update
path
/var/lib/cobbler/loaders/COPYING
.elilo already exists, not overwriting existing content, use --force
if
you wish to update
path
/var/lib/cobbler/loaders/COPYING
.yaboot already exists, not overwriting existing content, use --force
if
you wish to update
path
/var/lib/cobbler/loaders/COPYING
.syslinux already exists, not overwriting existing content, use --force
if
you wish to update
path
/var/lib/cobbler/loaders/elilo-ia64
.efi already exists, not overwriting existing content, use --force
if
you wish to update
path
/var/lib/cobbler/loaders/yaboot
already exists, not overwriting existing content, use --force
if
you wish to update
path
/var/lib/cobbler/loaders/pxelinux
.0 already exists, not overwriting existing content, use --force
if
you wish to update
path
/var/lib/cobbler/loaders/menu
.c32 already exists, not overwriting existing content, use --force
if
you wish to update
downloading http:
//cobbler
.github.io
/loaders/grub-0
.97-x86.efi to
/var/lib/cobbler/loaders/grub-x86
.efi
Exception occured: <class
'urlgrabber.grabber.URLGrabError'
>
Exception value: [Errno 14] PYCURL ERROR 56 -
"Failure when receiving data from the peer"
Exception Info:
File
"/usr/lib/python2.6/site-packages/cobbler/remote.py"
, line 87,
in
run
rc = self._run(self)
File
"/usr/lib/python2.6/site-packages/cobbler/remote.py"
, line 181,
in
runner
return
self.remote.api.dlcontent(self.options.get(
"force"
,False), self.logger)
File
"/usr/lib/python2.6/site-packages/cobbler/api.py"
, line 751,
in
dlcontent
return
grabber.run(force)
File
"/usr/lib/python2.6/site-packages/cobbler/action_dlcontent.py"
, line 73,
in
run
urlgrabber.grabber.urlgrab(src, filename=dst, proxies=proxies)
File
"/usr/lib/python2.6/site-packages/urlgrabber/grabber.py"
, line 618,
in
urlgrab
return
default_grabber.urlgrab(url, filename, **kwargs)
File
"/usr/lib/python2.6/site-packages/urlgrabber/grabber.py"
, line 985,
in
urlgrab
return
self._retry(opts, retryfunc, url, filename)
File
"/usr/lib/python2.6/site-packages/urlgrabber/grabber.py"
, line 886,
in
_retry
r = apply(func, (opts,) + args, {})
File
"/usr/lib/python2.6/site-packages/urlgrabber/grabber.py"
, line 971,
in
retryfunc
fo = PyCurlFileObject(url, filename, opts)
File
"/usr/lib/python2.6/site-packages/urlgrabber/grabber.py"
, line 1066,
in
__init__
self._do_open()
File
"/usr/lib/python2.6/site-packages/urlgrabber/grabber.py"
, line 1360,
in
_do_open
self._do_grab()
File
"/usr/lib/python2.6/site-packages/urlgrabber/grabber.py"
, line 1490,
in
_do_grab
self._do_perform()
File
"/usr/lib/python2.6/site-packages/urlgrabber/grabber.py"
, line 1347,
in
_do_perform
raise err
!!! TASK FAILED !!!
|
解决办法
1
2
3
4
5
|
[root@cobbler ~]
# yum -y install syslinux
[root@cobbler ~]
# cp/usr/share/syslinux/pxelinux.0 /var/lib/cobbler/loaders/
[root@cobbler ~]
# cp/usr/share/syslinux/menu.c32 /var/lib/cobbler/loaders/
[root@cobbler ~]
# /etc/init.d/cobblerdrestart
[root@cobbler ~]
# cobbler get-loaders #再次执行则成功
|
本文转自 茁壮的小草 51CTO博客,原文链接:http://blog.51cto.com/wn2100/1960856,如需转载请自行联系原作者