Custom Query (894 matches)


Show under each result:

Results (142 - 144 of 894)

Ticket Owner Reporter Resolution Summary
#1009 desai Michael Laß <[email protected]…> fixed bcfg2-server sends data that is not properly encoded

When trying to deploy files with special chars in it (like german umlauts (ä, ö, ü, ..)) I get tracebacks on the client. I have attached two files containing the output of bcfg2-client.

bcfg2-error-w-lxml.log: Output when python-lxml is installed

bcfg2-error-wo-lxml.log: Output when python-lxml is not installed

The file which should be deployed is UTF-8 encoded. Server and client have set 'encoding = utf-8' in their configurations.

I'm using bcfg2-server 1.1.1 on a Debian lenny machine. On client side I can reproduce the problem with Debian lenny, squeeze and Ubuntu natty without python-lxml installed, but only on Ubuntu natty with python-lxml installed. So versions of python-lxml older than 2.3 seem to avoid this problem somehow...

I have also attached a patch for the client which solves the problem. But I think this is only a workaround and the real problem is on server side because the XML data should be encoded correctly before it is sent to the client.

#1008 solj rcuza fixed Logging Traceback When bcfg2-server, bcfg2-lint, and bcfg2-admin are Run

Trying to reproduce problems people new to Bcfg2 may encounter.

After doing a fresh install of v1.2.0pre2 from the PKG made in the osx directory, I get the following traceback when trying to run bcfg2-server as a regular user or root.

With /etc/bcfg2.conf owned by root but readable by everyone:

Failed to load Base repository
Failed to instantiate plugin Base
Failed to load Bundle repository
Failed to instantiate plugin Bundler
Failed to open directory /var/lib/bcfg2/Cfg/
Unable to add file monitor for groups.xml or clients.xml
Failed to instantiate plugin Metadata
Failed to load /var/lib/bcfg2/Pkgmgr indices
Failed to instantiate plugin Pkgmgr
Failed to load /var/lib/bcfg2/Rules indices
Failed to instantiate plugin Rules
Unexpected instantiation failure for plugin SSHbase
Traceback (most recent call last):
  File "/Library/Python/2.6/site-packages/Bcfg2/Server/", line 165, in init_plugins
    self.plugins[plugin] = plug(self, self.datastore)
  File "/Library/Python/2.6/site-packages/Bcfg2/Server/Plugins/", line 56, in __init__
    ioerr = sys.exc_info()[1]
NameError: global name 'sys' is not defined
No Metadata Plugin loaded; failed to instantiate Core
No Metadata Plugin
Traceback (most recent call last):
  File "/usr/local/bin/bcfg2-server", line 74, in <module>
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/logging/", line 1047, in error
    self._log(ERROR, msg, args, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/logging/", line 1129, in _log
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/logging/", line 1139, in handle
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/logging/", line 1176, in callHandlers
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/logging/", line 662, in handle
  File "/Library/Python/2.6/site-packages/Bcfg2/", line 121, in emit
    if len(record.msg) > 250:
TypeError: object of type 'CoreInitError' has no len()
SunCityComputer:~ raulc$ ls /var/lib/bcfg2/Cfg/
ls: /var/lib/bcfg2/Cfg/: No such file or directory

When bcfg2.conf doesn't exist, I get the following error:

Could not read /etc/bcfg2.conf

Expected results: No traceback errors on command line and helpful error message.

The existing /etc/bcfg2.conf is as follows:

protocol = xmlrpc/ssl
password = babydesaisaysNI
# certificate = /etc/bcfg2.key
# key = /etc/bcfg2.key

bcfg2 = https://localhost:6789
SunCityComputer:~ raulc$ cat /etc/bcfg2-test.conf 
protocol = xmlrpc/ssl
password = foobat
# certificate = /etc/bcfg2.key
# key = /etc/bcfg2.key

bcfg2 = https://localhost:6789

Also, there is no Bcfg2 repository:

$ ls -d /var/lib/bcfg2
ls: /var/lib/bcfg2: No such file or directory

Tested on Mac OS X 10.6.7 (python 2.6.1).

#1007 solj rcuza fixed bcfg2-repo-validate cannot find schema directory on Mac OS X (10.6)

In version 1.2.0.pre1, on Mac OS X (10.6), bcfg2-repo-validate errors out with the following:

  File "/usr/local/bin/bcfg2-repo-validate", line 27, in <module>
OSError: [Errno 2] No such file or directory: '/usr/share/bcfg2/schemas'


schemadir = "%s/share/bcfg2/schemas" % (prefix)


schemadir = "%s/share/bcfg2/schemas" % ("/Library/Frameworks/Python.framework/Versions/Current")

is a workaround, but is not the correct solution.

Note: See TracQuery for help on using queries.