Custom Query (894 matches)


Show under each result:

Results (97 - 99 of 894)

Ticket Owner Reporter Resolution Summary
#983 rcuza rcuza fixed Build Failing For osx Package

While trying to build the bcfg2 package for OS X I ran into the following error:

chown: $PATH/$FILE: Operation not permitted

A workaround is to run make as root (sudo make), but this is not desirable if it can be avoided.

To reproduce this error run the following:

$ git clone git://
$ git checkout v1.1.1
$ make

More detailed snippet of error log:

running install_egg_info
Writing osx/bcfg2pkg/Library/Python/2.6/site-packages/Bcfg2-1.1.1-py2.6.egg-info
/usr/sbin/chown -R root:admin "bcfg2pkg"
chown: bcfg2pkg/Library/Frameworks/Python.framework/Versions/Current/share/bcfg2/Hostbase/repo/batchadd.tmpl: Operation not permitted
chown: bcfg2pkg/Library/Frameworks/Python.framework/Versions/Current/share/bcfg2/Hostbase/repo/dhcpd.conf.head: Operation not permitted
chown: bcfg2pkg/Library/Frameworks/Python.framework/Versions/Current/share/bcfg2/Hostbase/repo/dhcpd.tmpl: Operation not permitted

I've attached the full output of make to this ticket.

#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.

#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).

Note: See TracQuery for help on using queries.