Modify ↓
Ticket #707 (closed defect: fixed)
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: |
Description
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 updating http://ftp.freenet.de/debian/dists/testing/main/binary-i386/Packages.gz Unexpected instantiation failure for plugin Packages Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/Bcfg2/Server/Core.py", line 129, in init_plugins self.plugins[plugin] = plug(self, self.datastore) File "/usr/lib/python2.5/site-packages/Bcfg2/Server/Plugins/Packages.py", line 432, in __init__ source.setup_data() File "/usr/lib/python2.5/site-packages/Bcfg2/Server/Plugins/Packages.py", line 60, in setup_data self.update() File "/usr/lib/python2.5/site-packages/Bcfg2/Server/Plugins/Packages.py", line 84, in update data = urllib2.urlopen(url).read() File "/usr/lib/python2.5/urllib2.py", line 124, in urlopen return _opener.open(url, data) File "/usr/lib/python2.5/urllib2.py", line 387, in open response = meth(req, response) File "/usr/lib/python2.5/urllib2.py", line 498, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.5/urllib2.py", line 425, in error return self._call_chain(*args) File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain result = func(*args) File "/usr/lib/python2.5/urllib2.py", 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:
<APTSource> <Group>debian-testing</Group> <URL>http://ftp.freenet.de/debian</URL> <Version>testing</Version> <Component>main</Component> <Component>contrib</Component> <Component>non-free</Component> <Arch>i386</Arch> </APTSource>
Despite the confusing hostname, this is a valid HTTP repo (see http://www.debian.org/mirror/list).
Attachments
Change History
comment:1 Changed 14 years ago by m4z <[email protected]…>
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)
Note: See
TracTickets for help on using
tickets.
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.