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

原文地址:http://blog.51cto.com/13447608/2288116

时间: 2024-10-17 09:27:20

cobbler相关报错的相关文章

Linux下安装Nrpe软件相关报错

Linux下面安装nrpe软件时,如果进行配置时(./configure)  报错: 并且执行make all命令进行编译时候也报错: 解决办法:    在报错的服务器上执行yum -y install openssl-devel   命令安装ssl的库 之后再次执行./configure命令进行配置,如果配置成功应该显示如下信息: 再次使用make all 命令就不会报错了.make all完毕显示如下信息: Linux下安装Nrpe软件相关报错,布布扣,bubuko.com

Cobbler安装报错--dhcpd -t failed Exception occured: &lt;class &#39;cobbler.cexceptions.CX&#39;&gt;

最近想玩一下自动化安装,就研究了一下cobbler,测试环境本来是想用CentOS6.X的,但是后来一想,还是想用CentOS7.X.然后就碰到坑了. 在同步cobbler配置的时候,发现了以下错误: cobbler  sync dhcpd -t failedException occured: <class 'cobbler.cexceptions.CX'>Exception value: 'cobbler trigger failed: cobbler.modules.sync_post_

Python - celery 相关报错 - AttributeError: type object &#39;_multiprocessing.win32&#39; has no attribute &#39;WAIT_OBJECT_0&#39;

报错场景 执行   celery worker -A tasks -l INFO  打开 worker 的时候报错无法进行 报错解决 Celery 的版本过高, 进行降级处理即可 pip install celery==3.1.25 降级后再次执行会触发 另一报错 此报错原因是 redis 的版本过高导致 对 redis 进行降级即可  pip install redis==2.10.6 Python - celery 相关报错 - AttributeError: type object '_m

ALERT日志中常见监听相关报错之一:ORA-609错误的排查

参考MOS文档有: Troubleshooting Guide ORA-609 : Opiodr aborting process unknown ospid (文档 ID 1121357.1) Alert.log shows ORA-609 with TNS-12537: TNS:connection closed (文档 ID 1538717.1) Fatal NI Connect 12560' And 'ORA-609 Opiodr Aborting Process' Errors In

ALERT日志中常见监听相关报错之二:ORA-3136错误的排查

近期在多个大型系统中遇到此问题,一般来说如果客户端未反映异常的话可以忽略的. 如果是客户端登陆时遇到ORA-12170: TNS:Connect timeout occurred,可以参考 http://blog.csdn.net/haibusuanyun/article/details/14517211#t12 ############### 参考MOS文档有: Troubleshooting Guide for TNS-12535 or ORA-12535 or ORA-12170 Erro

ALERT日志中常见监听相关报错之三:ORA-609 TNS-12537 and TNS-12547 or TNS-12170 TNS-12535错误的排查

1.11G中ALERT日志中有报错ORA-609 TNS-12537 and TNS-12547 or TNS-12170  12170, 'TNS-12535等问题的解决方法: Troubleshooting Guide for TNS-12535 or ORA-12535 or ORA-12170 Errors (文档 ID 119706.1) TNS-12535 / ORA-12535 on Connection to Database (文档 ID 214122.1) 11g: ORA-

C#文件处理File.Create(FilePath)相关报错

C#使用File.Create(FilePath)创建文件后,再次处理该文件报错.怎么解决?  报错xxxxxxxx...because it is being used by another process. 解决方法: File.Create(FilePath).Close();创建完后关闭文件即可.

json_decode()相关报错

错误描述 PHP Warning:  json_decode() expects parameter 1 to be string, array given in xxx.php on line 299 原因分析 json_decode函数是用来解码json_encode编码后的函数,他的参数是必须是一个json字符串,上面的错误就是给json_decode传入的参数是一个数组导致的报错 解决方法 根据错误行号找到代码段,检查是否给json_decode传入的不是一个json字符串. 原文地址:

Linux---MySQL主从配置相关报错合集

mysql 数据同步 出现Slave_IO_Running:No或者Slave_Sql_Running:No问题的解决方法小结 mysql主从复制经常会遇到错误而导致slave端复制中断这个时候一般就需要人工干预跳过错误才能继续. 如果是slave_io_running no了那么就我个人看有三种情况一个是网络有问题连接不上第二个是有可能my.cnf有问题配置文件怎么写就不说了网上太多了最后一个是授权的问题slave上没有权限读master上的数据replication slave和file权限