发布网友 发布时间:2022-04-25 16:38
共2个回答
热心网友 时间:2023-10-18 22:31
我也遇到这个问题了,不知道怎么解决:
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 231, in runner
self.logger
File "/usr/lib/python2.6/site-packages/cobbler/api.py", line 2, in import_tree
utils.run_this(rsync_cmd, (spacer, mirror_url, path), self.logger)
File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 917, in run_this
die(logger,"Command failed")
File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 134, in die
raise CX(msg)
热心网友 时间:2023-10-18 22:32
我遇到的问题是:
Tue Aug 14 16:38:23 2018 - INFO | Exception occured: <class 'cobbler.cexceptions.CX'>
Tue Aug 14 16:38:23 2018 - INFO | Exception value: 'Command failed'
Tue Aug 14 16:38:23 2018 - INFO | Exception Info:
File "/usr/lib/python2.7/site-packages/cobbler/remote.py", line 82, in run
rc = self._run(self)
File "/usr/lib/python2.7/site-packages/cobbler/remote.py", line 227, in runner
self.logger
File "/usr/lib/python2.7/site-packages/cobbler/api.py", line 876, in import_tree
utils.run_this(rsync_cmd, (spacer, mirror_url, path), self.logger)
File "/usr/lib/python2.7/site-packages/cobbler/utils.py", line 9, in run_this
die(logger,"Command failed")
File "/usr/lib/python2.7/site-packages/cobbler/utils.py", line 114, in die
raise CX(msg)
Tue Aug 14 16:38:23 2018 - ERROR | ### TASK FAILED ###
查找错误原因,发现,原来是在创建Prefix时,名称中有空格所致。例如:Centos 7。后来换成了Centos-7就可用了!所以断定是cobbler对空格解析的问题造成的此错误。希望我的回答可以帮助到更多人!