Posted by joostvdl on July 30, 2010 at 9:55am
I have followed the description on: Step-by-step: Installing Project Mercury 1.1 (Beta) on Centos 5.5
When the bcfg2-server should be starting it fails. I tried running the server manually and it gives then this error:
Failed to read file probed.xml
Traceback (most recent call last):
File "/usr/sbin/bcfg2-server", line 69, in ?
ca=setup['ca'],
File "/usr/lib/python2.4/site-packages/Bcfg2/Component.py", line 62, in run_component
component = component_cls(cfile=cfile, **cls_kwargs)
File "/usr/lib/python2.4/site-packages/Bcfg2/Server/Core.py", line 71, in __init__
self.init_plugins(plugin)
File "/usr/lib/python2.4/site-packages/Bcfg2/Server/Core.py", line 135, in init_plugins
mod = getattr(__import__("Bcfg2.Server.Plugins.%s" %
File "/usr/lib/python2.4/site-packages/Bcfg2/Server/Plugins/TGenshi.py", line 17
raise Bcfg2.Server.Plugin.PluginInitError
^
IndentationError: unindent does not match any outer indentation levelHow to solve this problem?
Comments
There is a problem in the
There is a problem in the stock BCFG2 package (1.1.0-0.0rc4r5983)
The solution is in: Changeset 5985 of the BCFG2 software.
link not working
Hi
The link you provided is not working at the moment. i had checked this same link two days earlier on friday also. Could you please tell us what you did to solve this issue as the link is not up and running
Regards
Sreyas
The file
The file /usr/lib/python2.4/site-packages/Bcfg2/Server/Plugins/TGenshi.py has to be changed.
At line 16 logger.error("TGenshi: Failed to import Genshi. Is it installed?") the line starts with a tab. This tab needs to be replaces with whitespaces.
That's it.
Great that works
Thank you for that note joostvdl. I jsut edited the line and was able to start bcfg2-server successfully.
There is also a prblem with
There is also a prblem with the YUM replace plugin. When Yum plugin Replace is activated the BCFG2-Server gives an error en stops working. This has to be disabled via: /etc/yum/pluginconf.d/replace.conf
BCFG2 client dont start
Yes thats true joostvdl, unless you set enabled=0, "bcfg2 -vqed" stops abruptly with an error message.
The issue with the
The issue with the yum-replace-plugin has been resolved upstream. Newly deployed servers should not have this problem.
On existing servers you can update the 'yum-plugin-replace' and 'ius-release' packages.
update: yum update yum-plugin-replace ius-release
(optional) remove: yum remove yum-plugin-replace
The yum-plugin-replace package was originally set as a requirement of the ius-release package, but is no longer (and is optional - but sometimes helpful).
The bug fix for the BCFG2 TGenshi plugin should also be released very soon.