Ticket #1043 (closed defect: fixed)

Opened 12 years ago

Last modified 12 years ago

Packages Traceback when plugin is enabled, but no sources.xml is created yet

Reported by: Owned by: desai
Priority: major Milestone: Bcfg2 1.2.0 Release
Component: bcfg2-client Version: 1.0
Keywords: Cc:


$ sudo bcfg2-info
Unexpected instantiation failure for plugin Packages
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/Bcfg2/Server/", line 171, in init_plugins
    self.plugins[plugin] = plug(self, self.datastore)
  File "/usr/lib/pymodules/python2.6/Bcfg2/Server/Plugins/", line 829, in __init__
    self.cachepath, core.fam, self)
  File "/usr/lib/pymodules/python2.6/Bcfg2/Server/Plugins/", line 734, in __init__
    Bcfg2.Server.Plugin.SingleXMLFileBacked.__init__(self, filename, fam)
  File "/usr/lib/pymodules/python2.6/Bcfg2/Server/", line 575, in __init__
    fam.AddMonitor(filename, self)
  File "/usr/lib/pymodules/python2.6/Bcfg2/Server/", line 279, in AddMonitor
    mode = os.stat(path)[stat.ST_MODE]
OSError: [Errno 2] No such file or directory: '/var/lib/bcfg2/Packages/sources.xml'

ISTM that either blank file should be created or more user friendly message is output.


Change History

comment:1 Changed 12 years ago by solj

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

Fixed in 49e51224e3b7637c516ad11391e0e382a158d501. Thanks for the report.

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.