Ticket #1041 (closed defect: worksforme)

Opened 12 years ago

Last modified 12 years ago

Error in Ubuntu example

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


# cat /var/lib/bcfg2/Packages/config.xml

Gives the following with bcfg2-repo-validate:

Failed to open directory /var/lib/bcfg2/Base/
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'

When renamed to Packages/sources.xml the error changes to:

ERROR: /var/lib/bcfg2/Packages/sources.xml fails to verify:
  /var/lib/bcfg2/Packages/sources.xml:2: element APTSource: Schemas validity error : Element 'APTSource': This element is not expected. Expected is one of (
  Group, Client, Source, Sources ).
  /var/lib/bcfg2/Packages/sources.xml fails to validate
Serverless plugins encountered errors, skipping server plugins
1 errors


Change History

comment:1 Changed 12 years ago by solj

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

The documentation for the 1.2 series release is at The behavior of the Packages plugin has changed in this version as noted at You need to convert your old Packages/config.xml using browser:tools/

comment:2 Changed 12 years ago by solj

  • Milestone changed from Bcfg2 1.3.0 Release to Bcfg2 1.2.0 Release

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.