专栏首页首富手记cobbler相关报错

cobbler相关报错

//错误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的客户端内存给小了,所以提示没有可用的空间,然后把客户端内存给大一点即可

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

我来说两句

0 条评论
登录 后参与评论

相关文章

  • 容器数据卷:

    相当于redis里面的RDB和AOF持久化,挂载本地的一个目录到container里面,用来存放需要永久保存的数据

    张琳兮
  • 每日一题--2-求一个文件里面指定字符出现的次数

    张琳兮
  • 配置 prometheus-operator 报警规则

    我们安装好 prometheus-operator 之后,打开 prometheus 页面Alerts页面能看到好多报警规则,目前有的还处于报警状态

    张琳兮
  • python错误:distutils.e

    [root@host73 python]# python setup.py install

    py3study
  • Sublime text无法自动通过package control安装插件的研究

    版权声明:署名,允许他人基于本文进行创作,且必须基于与原先许可协议相同的许可协议分发本文 (Creative Commons)

    Jerry Wang
  • OSError: [Errno 2] No such file or directory

    ['mkdir -p /tmp/gluster_volume_files.can.not.delete']

    党志强
  • uwsgi日志中文问题

    开发项目,使用uwsgi,遇到个头痛的问题,如果指定了uwsgi打印日志,当日志中写入中文时,直接会导致报错

    fanspring
  • Python 用smtplib库发邮件报错:[WinError 10061] 由于目标计算机积极拒绝,无法连接。解决办法

    看了菜鸟的教程,有这段代码: mail = smtplib.SMTP("localhost") 然后就报错了。菜鸟的教程太老了,Python迭代这么快,根本...

    小蓝枣
  • Python之Dijango的“坑” hostname, aliases, ipaddrs = gethostbyaddr(name) UnicodeDecodeError: 'utf-8' cod

    错误代码提示: hostname, aliases, ipaddrs = gethostbyaddr(name) UnicodeDecodeError: 'ut...

    用户1214487
  • cobbler MOD_PYTHON E

        这个问题是因为cobbler的web程序在调用时区的时候找不到这样一个模块,去查看/usr/share/cobbler/web/setting.py这个...

    py3study

扫码关注云+社区

领取腾讯云代金券