1. 程式人生 > >cobbler相關報錯

cobbler相關報錯

compile value bfc ner appear tab true The byte

//錯誤1,報錯信息如下

[root@manager-61 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的字符集編碼不一致造成的
//解決辦法如下
[root@manager-61 /]# cat >> /usr/lib/python2.7/site-packages/sitecustomize.py  <<EOF
# encoding=utf8 
import sys
reload(sys)
sys.setdefaultencoding(‘utf8‘)
EOF
//然後重啟服務器

錯誤2,報錯信息如下

[root@manager-61 ~]#  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相關報錯