Modify

Ticket #671 (closed defect: fixed)

Opened 14 years ago

Last modified 14 years ago

Unexpected instantiation failure for plugin Packages

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

Description

Chasing tracebacks:

Unexpected instantiation failure for plugin Packages
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/Bcfg2/Server/Core.py", line 127, in init_plugins
    self.plugins[plugin] = plug(self, self.datastore)
  File "/usr/lib/python2.4/site-packages/Bcfg2/Server/Plugins/Packages.py", line 314, in __init__
    os.mkdir(cachepath)
OSError: [Errno 2] No such file or directory: '/var/lib/bcfg2/Packages/cache'

I had not yet created /var/lib/bcfg2/Packages which caused os.mkdir to blow up.

Attachments

Change History

comment:1 Changed 14 years ago by solj

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

comment:2 Changed 14 years ago by solj

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

This should be fixed in [4376e48cd2e346a1726a82b08d6811c6d4ed0608] (SVN r5261).

comment:3 follow-up: ↓ 4 Changed 14 years ago by Jack Neely <[email protected]…>

  • Status changed from closed to reopened
  • Resolution fixed deleted
Unexpected instantiation failure for plugin Packages
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/Bcfg2/Server/Core.py", line 127, in init_plugins
    self.plugins[plugin] = plug(self, self.datastore)
  File "/usr/lib/python2.4/site-packages/Bcfg2/Server/Plugins/Packages.py", line 315, in __init__
    xdata = lxml.etree.parse(self.data + '/config.xml').getroot()
  File "lxml.etree.pyx", line 2528, in lxml.etree.parse (src/lxml/lxml.etree.c:24676)
  File "parser.pxi", line 1314, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:57185)
  File "parser.pxi", line 1343, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:57434)
  File "parser.pxi", line 1251, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:56659)
  File "parser.pxi", line 831, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:54047)
  File "parser.pxi", line 452, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:50830)
  File "parser.pxi", line 536, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:51661)
  File "parser.pxi", line 476, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:51053)
IOError: Error reading file '/var/lib/bcfg2/Packages/config.xml': failed to load external entity "/var/lib/bcfg2/Packages/config.xml"

Check this also

comment:4 in reply to: ↑ 3 Changed 14 years ago by solj

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

Replying to Jack Neely <[email protected]>:

Unexpected instantiation failure for plugin Packages
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/Bcfg2/Server/Core.py", line 127, in init_plugins
    self.plugins[plugin] = plug(self, self.datastore)
  File "/usr/lib/python2.4/site-packages/Bcfg2/Server/Plugins/Packages.py", line 315, in __init__
    xdata = lxml.etree.parse(self.data + '/config.xml').getroot()
  File "lxml.etree.pyx", line 2528, in lxml.etree.parse (src/lxml/lxml.etree.c:24676)
  File "parser.pxi", line 1314, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:57185)
  File "parser.pxi", line 1343, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:57434)
  File "parser.pxi", line 1251, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:56659)
  File "parser.pxi", line 831, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:54047)
  File "parser.pxi", line 452, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:50830)
  File "parser.pxi", line 536, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:51661)
  File "parser.pxi", line 476, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:51053)
IOError: Error reading file '/var/lib/bcfg2/Packages/config.xml': failed to load external entity "/var/lib/bcfg2/Packages/config.xml"

Check this also

Okay, this one should be resolved in [ffff02894d23210fb8d60f85cbdb33ada5b26859] (SVN r5262).

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

View

Add a comment

Modify Ticket

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


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

 
Note: See TracTickets for help on using tickets.