Ticket #707 (closed defect: fixed)

Opened 14 years ago

Last modified 13 years ago

Unexpected instantiation failure for plugin Packages

Reported by: m4z <[email protected]…> Owned by: solj
Priority: minor Milestone: Bcfg2 1.0.0 Release
Component: bcfg2-server Version: 1.0
Keywords: Cc:


For one repository, I get an error (all others work fine):

# bcfg2-server -dv | tee -a /var/log/bcfg2-server.log
failed to read file /var/lib/bcfg2/Packages/cache/http:@@[email protected]@[email protected]@[email protected]@Packages.gz
Packages: File read failed; falling back to file download
Unexpected instantiation failure for plugin Packages
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/Bcfg2/Server/", line 129, in init_plugins
    self.plugins[plugin] = plug(self, self.datastore)
  File "/usr/lib/python2.5/site-packages/Bcfg2/Server/Plugins/", line 432, in __init__
  File "/usr/lib/python2.5/site-packages/Bcfg2/Server/Plugins/", line 60, in setup_data
  File "/usr/lib/python2.5/site-packages/Bcfg2/Server/Plugins/", line 84, in update
    data = urllib2.urlopen(url).read()
  File "/usr/lib/python2.5/", line 124, in urlopen
    return, data)
  File "/usr/lib/python2.5/", line 387, in open
    response = meth(req, response)
  File "/usr/lib/python2.5/", line 498, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.5/", line 425, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.5/", line 360, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.5/", line 506, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 406: Not acceptable
service available at https://bcfg2:6789
serving bcfg2 at https://bcfg2:6789
serve_forever() [start]
Failed to find IP address for somehost
Handled 75 events in 0.486s

The corresponding entry from Packages/config.xml:


Despite the confusing hostname, this is a valid HTTP repo (see


Change History

comment:1 Changed 14 years ago by m4z <[email protected]…>

This seems to have serious consequences: I have a bcfg repository that works fine for hosts in group X as long as the package repo from above (also for group X) is commented. Stuffs breaks when I uncomment the repository (and get the above error): Suddenly I get "Failed to bind entry" messages for every Package and Bundle for every host, not only in group X, but in every group.

comment:2 Changed 14 years ago by solj

  • Owner changed from desai to solj
  • Status changed from new to accepted

comment:3 Changed 13 years ago by desai

  • Status changed from accepted to closed
  • Resolution set to fixed

This should be fixed as of [002f89d7f52dd00e995eacb633ce0b36c087f7a5] (SVN r5491)

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.