cobbler相关报错

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了cobbler相关报错相关的知识,希望对你有一定的参考价值。

//错误1,报错信息如下

[[email protected] kickstarts]#  cobbler validateks
task started: 2018-10-01_111540_validateks
task started (id=Kickstart Validation, time=Mon Oct  1 11:15:40 2018)
----------------------------
osversion: rhel7
Exception occured: <type ‘exceptions.UnicodeDecodeError‘>
Exception value: ‘ascii‘ codec can‘t decode byte 0xe8 in position 117: ordinal not in range(128)
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 191, in runner
    return self.remote.api.validateks(logger=self.logger)
   File "/usr/lib/python2.7/site-packages/cobbler/api.py", line 750, in validateks
    return validator.run()
   File "/usr/lib/python2.7/site-packages/cobbler/action_validate.py", line 52, in run
    (result, errors) = self.checkfile(x, True)
   File "/usr/lib/python2.7/site-packages/cobbler/action_validate.py", line 96, in checkfile
    self.kickgen.generate_kickstart_for_profile(obj.name)
   File "/usr/lib/python2.7/site-packages/cobbler/kickgen.py", line 295, in generate_kickstart_for_profile
    return self.generate_kickstart(profile=g)
   File "/usr/lib/python2.7/site-packages/cobbler/kickgen.py", line 277, in generate_kickstart
    data = self.templar.render(raw_data, meta, None, obj)
   File "/usr/lib/python2.7/site-packages/cobbler/templar.py", line 116, in render
    data_out = self.render_cheetah(raw_data, search_table, subject)
   File "/usr/lib/python2.7/site-packages/cobbler/templar.py", line 201, in render_cheetah
    t = Template(source=raw_data, searchList=[search_table], compilerSettings={‘useStackFrame‘:False})
   File "DynamicallyCompiledCheetahTemplate.py", line 58, in __init__
   File "_etc_cobbler_cheetah_macros.py", line 58, in __init__
   File "/usr/lib64/python2.7/site-packages/Cheetah/Template.py", line 1259, in __init__
    self._compile(source, file, compilerSettings=compilerSettings)
   File "/usr/lib64/python2.7/site-packages/Cheetah/Template.py", line 1553, in _compile
    keepRefToGeneratedCode=True)
   File "/usr/lib/python2.7/site-packages/cobbler/template_api.py", line 127, in compile
    return Cheetah.Template.Template.compile(*args, **kwargs)
   File "/usr/lib64/python2.7/site-packages/Cheetah/Template.py", line 740, in compile
    settings=(compilerSettings or {}))
   File "/usr/lib64/python2.7/site-packages/Cheetah/Compiler.py", line 1575, in __init__
    source = unicode(source)

!!! TASK FAILED !!!

//原因是因为python的字符集编码不一致造成的
//解决办法如下
[[email protected] /]# cat >> /usr/lib/python2.7/site-packages/sitecustomize.py  <<EOF
# encoding=utf8 
import sys
reload(sys)
sys.setdefaultencoding(‘utf8‘)
EOF
//然后重启服务器

错误2,报错信息如下

[[email protected] ~]#  cobbler validateks    
httpd does not appear to be running and proxying cobbler, or SELinux is in the way. Original traceback:
Traceback (most recent call last):
这个是因为 http服务没有起来造成的,执行以下上面我们讲过的启动的那些服务即可 

错误3,进入到安装页面,能安装,但是在安装中出现错误提示磁盘没有可用的空间
技术分享图片
原因是因为cobbler的客户端内存给小了,所以提示没有可用的空间,然后把客户端内存给大一点即可

以上是关于cobbler相关报错的主要内容,如果未能解决你的问题,请参考以下文章

Cobbler部署之FAQ处理

Cobbler 登录web界面提示报错“Internal Server Error”

cobbler部署错误总结

cobbler自动化部署

Cobbler自动部署装机

Centos6上安装cobbler及cobbler常见参数详解