执行 cobbler get-loaders报错
在配置cobbler安装时执行 cobbler get-loaders报错
- [root@110:~]# cobbler get-loaders
- Traceback (most recent call last):
- File "/usr/lib/python2.7/site-packages/cobbler/utils.py", line 2100, in local_get_cobbler_api_url
- data = yaml.safe_load(fh.read())
- File "/usr/lib64/python2.7/site-packages/yaml/__init__.py", line 93, in safe_load
- return load(stream, SafeLoader)
- File "/usr/lib64/python2.7/site-packages/yaml/__init__.py", line 71, in load
- return loader.get_single_data()
- File "/usr/lib64/python2.7/site-packages/yaml/constructor.py", line 37, in get_single_data
- node = self.get_single_node()
- File "/usr/lib64/python2.7/site-packages/yaml/composer.py", line 36, in get_single_node
- document = self.compose_document()
- File "/usr/lib64/python2.7/site-packages/yaml/composer.py", line 55, in compose_document
- node = self.compose_node(None, None)
- File "/usr/lib64/python2.7/site-packages/yaml/composer.py", line 84, in compose_node
- node = self.compose_mapping_node(anchor)
- File "/usr/lib64/python2.7/site-packages/yaml/composer.py", line 127, in compose_mapping_node
- while not self.check_event(MappingEndEvent):
- File "/usr/lib64/python2.7/site-packages/yaml/parser.py", line 98, in check_event
- self.current_event = self.state()
- File "/usr/lib64/python2.7/site-packages/yaml/parser.py", line 428, in parse_block_mapping_key
- if self.check_token(KeyToken):
- File "/usr/lib64/python2.7/site-packages/yaml/scanner.py", line 115, in check_token
- while self.need_more_tokens():
- File "/usr/lib64/python2.7/site-packages/yaml/scanner.py", line 149, in need_more_tokens
- self.stale_possible_simple_keys()
- File "/usr/lib64/python2.7/site-packages/yaml/scanner.py", line 289, in stale_possible_simple_keys
- "could not found expected ':'", self.get_mark())
- ScannerError: while scanning a simple key
- in "<string>", line 384, column 1:
- server:192.168.0.110
- ^
- could not found expected ':'
- in "<string>", line 386, column 1:
- # If set to 1, all commands will ...
- ^
- Traceback (most recent call last):
- File "/usr/bin/cobbler", line 36, in <module>
- sys.exit(app.main())
- File "/usr/lib/python2.7/site-packages/cobbler/cli.py", line 660, in main
- cli = BootCLI()
- File "/usr/lib/python2.7/site-packages/cobbler/cli.py", line 187, in __init__
- self.url_cobbler_api = utils.local_get_cobbler_api_url()
- File "/usr/lib/python2.7/site-packages/cobbler/utils.py", line 2104, in local_get_cobbler_api_url
- raise CX("/etc/cobbler/settings is not a valid YAML file")
- cobbler.cexceptions.CX: '/etc/cobbler/settings is not a valid YAML file'
然后百度按照网友的方法操作还是不行
service cobblerd restart
cobbler get-loaders
后来检查/etc/cobbler/settings刚才配置的几个地方,发现有一个IP少了一个空格
修改后然后重启http和cobbler服务后,再cobbler get-loaders正常
执行 cobbler get-loaders报错的更多相关文章
- 【mybatis】mybatis执行一个update方法,返回值为1,但是数据库中数据并未更新,粘贴sql语句直接在数据库执行,等待好久报错:Lock wait timeout exceeded; try restarting transaction
今天使用mybatis和jpa的过程中,发现这样一个问题: mybatis执行一个update方法,返回值为1,但是数据库中数据并未更新,粘贴sql语句直接在数据库执行,等待好久报错:Lock wai ...
- vue-electron 使用sqlite3数据库,执行npm run build 报错 .NET Framework 2.0 SDK,Microsoft Visual Studio 2005[C:\temp\wechat\node_modules\sqlite3\build\binding.sln]
问题描述 vue-electron 使用sqlite3数据库,执行npm run build 报错如下: .NET Framework 2.0 SDK,Microsoft Visual Studio ...
- 执行命令npm publish报错:403 Forbidden - PUT https://registry.npmjs.org/kunmomotest2 - You cannot publish over the previously published versions: 0.0.1.
前言 执行命令npm publish报错:403 Forbidden - PUT https://registry.npmjs.org/kunmomotest2 - You cannot publis ...
- Django中修改DATABASES后,执行python manage.py ****报错!UnicodeEncodeError
Django中修改DATABASES后,执行python manage.py ****报错!UnicodeEncodeError: 'latin-1' codec can't encode chara ...
- k8s 执行 ingress yaml 文件报错: error when creating "ingress-myapp.yaml": Internal error occurred: failed calling webhook
k8s 执行 ingress yaml 文件报错:错误如下: [root@k8s-master01 baremetal]# kubectl apply -f ingress-test.yaml Err ...
- Oracle存储过程执行update语句不报错不生效问题
转载链接:http://lin49940.iteye.com/blog/466626 今天一个同事写oracle 的存储过程遇到了一个问题, 他在里面update 操作不能完成更新的操作, 但是又不会 ...
- 在package.json中配置Script执行npm run tslint报错问题
今天在学习tslint的时候,按照git clone下angular2-webpack-starter的代码执行npm run lint时,虽然代码进行了检测,但检测完成后npm始终报错, //pac ...
- 【Python】【BugList12】python自带IDLE执行print(req.text)报错:UnicodeEncodeError: 'UCS-2' codec can't encode characters in position 93204-93204
[代码] # -*- coding:UTF-8 -*- import requests if __name__ == '__main__': target = 'https://unsplash.co ...
- maven打包可执行jar文件运行报错
起因 项目中同时依赖了Spring和MyBatis,并使用mybatis-spring集成MyBatis和Spring. 使用maven打包为可执行jar文件运行,打包插件为:maven-shade- ...
- Mac Mojave(10.14.1)执行Matlab的mex报错
先装了matlab2018b,发现很频繁的crash,同时考虑到要跑的代码在>=2017a时就计算错误,于是转战matlab2016b matlab2016b安装后,执行mex -setup报错 ...
随机推荐
- 【4】Django 创建第一个模块应用
大成若缺,其用不弊.大盈若冲,其用不穷.大直若屈.大巧若拙.大辩若讷.静胜躁,寒胜热.清静为天下正 --老子<道德经> 本章内容 创建应用(app) 开发第一个视图(View) URL访问 ...
- win7的目录和vbox的共享,linux中没有权限打开
来自于 http://www.cnblogs.com/usegear/p/5120427.html win7的目录由vbox共享是个老话题.稳拿网上很多介绍. 在linux中通过文件夹不能打开,说没有 ...
- Rails 异常处理 && 性能
Rails 异常处理 的多种处理方法 1. routes match '*path', via: :all, to: 'controller#action' 2. application.rb 的 ...
- Android利用Intent与其它应用交互
前言: 上一篇博客给大家聊了Intent的定义.分类.属性和功能,相信大家对于Intent在Android中的作用已经清楚,这一篇博客将会给大家聊Intent的使用方法. Android系统的一个重要 ...
- oc19--继承1
// // Phone.h // day13 #import <Foundation/Foundation.h> // 被继承的这个类我们称之为父类/ 超类 @interface Phon ...
- 车牌识别(end-to-end-for-chinese-plate-recognition)项目搭建基于Mxnet(Python 3.5)
最近看到geihub上有个车牌识别的项目,感觉很有意思,从上面fork了一下弄到本地自己跑了下.在安装过程中遇到了一些问题,记录如下. 项目github连接:https://github.com/sz ...
- Android常用的一些make命令【转】
本文转载自:http://blog.csdn.net/liuxd3000/article/details/39181377 1.make -jX X表示数字,这个命令将编译Android系统并生成镜 ...
- nyoj--491--幸运三角形(dfs)
幸运三角形 时间限制:1000 ms | 内存限制:65535 KB 难度:3 描述 话说有这么一个图形,只有两种符号组成('+'或者'-'),图形的最上层有n个符号,往下个数依次减一,形成倒置的 ...
- hdoj--2767--Proving Equivalences (scc+缩点)
Proving Equivalences Time Limit : 4000/2000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other ...
- 【TYVJ1936】【Clover杯NOIP模拟赛IV】太空战队
[问题描述] 在社会经济高速发展的今天,借助高科技手段,组建太空战队的愿望就快实现了. 战队属下有N个航天员.作为空军选拔上来的佼佼者,每个航天员都有与生俱来的骄傲——他们每个人都认为自己是最强的或者 ...