collective / collective.hostout

zc.buildout deployment and remote control
22 stars 7 forks source link

Deployed instance doesn't start up #20

Closed jean closed 12 years ago

jean commented 12 years ago

./bin/hostout deploy plone completes successfully, but starting up the deployed clients fail. Traceback below. Starting up ./bin/zeoserver start is successful.

vagrant@natty:~/plone$ ./bin/client1 fg
Traceback (most recent call last):
  File "./bin/client1", line 252, in <module>
    + sys.argv[1:])
  File "/home/vagrant/plone/buildout-cache/vagrant/eggs/plone.recipe.zope2instance-3.6-py2.6.egg/plone/recipe/zope2instance/ctl.py", line 321, in main
    options.realize(args, doc=__doc__)
  File "/home/vagrant/plone/parts/zope2/lib/python/Zope2/Startup/zopectl.py", line 95, in realize
    ZDOptions.realize(self, *args, **kw)
  File "/home/vagrant/plone/parts/zope2/lib/python/zdaemon/zdoptions.py", line 273, in realize
    self.load_schema()
  File "/home/vagrant/plone/parts/zope2/lib/python/zdaemon/zdoptions.py", line 321, in load_schema
    self.schema = ZConfig.loadSchema(self.schemafile)
  File "/home/vagrant/plone/parts/zope2/lib/python/ZConfig/loader.py", line 31, in loadSchema
    return SchemaLoader().loadURL(url)
  File "/home/vagrant/plone/parts/zope2/lib/python/ZConfig/loader.py", line 65, in loadURL
    return self.loadResource(r)
  File "/home/vagrant/plone/parts/zope2/lib/python/ZConfig/loader.py", line 159, in loadResource
    schema = ZConfig.schema.parseResource(resource, self)
  File "/home/vagrant/plone/parts/zope2/lib/python/ZConfig/schema.py", line 27, in parseResource
    xml.sax.parse(resource.file, parser)
  File "/usr/lib/python2.6/xml/sax/__init__.py", line 33, in parse
    parser.parse(source)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer) 
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 301, in start_element
    self._cont_handler.startElement(name, AttributesImpl(attrs))
  File "/home/vagrant/plone/parts/zope2/lib/python/ZConfig/schema.py", line 99, in startElement
    getattr(self, "start_" + name)(attrs)
  File "/home/vagrant/plone/parts/zope2/lib/python/ZConfig/schema.py", line 475, in start_schema
    keytype, valuetype, datatype = self.get_sect_typeinfo(attrs)
  File "/home/vagrant/plone/parts/zope2/lib/python/ZConfig/schema.py", line 201, in get_sect_typeinfo 
    datatype = self.get_datatype(attrs, "datatype", "null", base)
  File "/home/vagrant/plone/parts/zope2/lib/python/ZConfig/schema.py", line 194, in get_datatype
    return self._registry.get(dtname)
  File "/home/vagrant/plone/parts/zope2/lib/python/ZConfig/datatypes.py", line 398, in get
    t = self.search(name)
  File "/home/vagrant/plone/parts/zope2/lib/python/ZConfig/datatypes.py", line 423, in search
    package = __import__(n, g, g, component)
  File "/home/vagrant/plone/parts/zope2/lib/python/Zope2/Startup/datatypes.py", line 21, in <module>  
    import OFS.Uninstalled
  File "/home/vagrant/plone/parts/zope2/lib/python/OFS/Uninstalled.py", line 16, in <module>
    import  SimpleItem, Globals, Acquisition
  File "/home/vagrant/plone/parts/zope2/lib/python/OFS/SimpleItem.py", line 26, in <module>
    import AccessControl.Role, AccessControl.Owned, App.Common
  File "/home/vagrant/plone/parts/zope2/lib/python/AccessControl/__init__.py", line 17, in <module>   
    from Implementation import setImplementation
  File "/home/vagrant/plone/parts/zope2/lib/python/AccessControl/Implementation.py", line 98, in <module>
    setImplementation("C")
  File "/home/vagrant/plone/parts/zope2/lib/python/AccessControl/Implementation.py", line 51, in setImplementation
    from AccessControl import ImplC as impl
  File "/home/vagrant/plone/parts/zope2/lib/python/AccessControl/ImplC.py", line 18, in <module>
    from cAccessControl import rolesForPermissionOn, \
  File "/home/vagrant/plone/parts/zope2/lib/python/AccessControl/SimpleObjectPolicies.py", line 82, in <module>
    from DocumentTemplate.DT_Util import TemplateDict
  File "/home/vagrant/plone/parts/zope2/lib/python/DocumentTemplate/__init__.py", line 21, in <module>
    from DocumentTemplate import String, File, HTML, HTMLDefault, HTMLFile
  File "/home/vagrant/plone/parts/zope2/lib/python/DocumentTemplate/DocumentTemplate.py", line 112, in <module>
    from DT_String import String, File
  File "/home/vagrant/plone/parts/zope2/lib/python/DocumentTemplate/DT_String.py", line 19, in <module>
    from DT_Util import ParseError, InstanceDict, TemplateDict, render_blocks, str
  File "/home/vagrant/plone/parts/zope2/lib/python/DocumentTemplate/DT_Util.py", line 19, in <module> 
    from html_quote import html_quote, ustr # for import by other modules, dont remove!
  File "/home/vagrant/plone/parts/zope2/lib/python/DocumentTemplate/html_quote.py", line 4, in <module>
    from ustr import ustr
  File "/home/vagrant/plone/parts/zope2/lib/python/DocumentTemplate/ustr.py", line 18, in <module>
    nasty_exception_str = Exception.__str__.im_func
AttributeError: 'wrapper_descriptor' object has no attribute 'im_func'
jean commented 12 years ago

Oh. Wrong Python version. I specified the wrong Python version.

(Compiling the right Python version on this VM dies with a buffer overflow :-p )