Bug#328607: [Pkg-zope-developers] Bug#328607: zope-cmfplone: zope can't find cmfplone product

Kornilios Kourtis kkourt at cslab.ece.ntua.gr
Sun Sep 25 20:04:48 UTC 2005


On Tue, Sep 20, 2005 at 06:50:57PM +0200, Fabio Tranchitella wrote:

Hello, 

> Something like:
> 
> # dzhandle -z 2.7 make-instance myinstance -m manual

This does not seem to work:
 | # dzhandle -z 2.7 make-instance default -m manual
 | option --layout not recognized
 | (...)

When edited dzhandle script and commented out the --layout,
--service-user, --service-port options I got another error:
 | # dzhandle -z 2.7 make-instance default -m manual
 |  (...)
 |  Traceback (most recent call last):
 | File "/usr/lib/zope2.7/bin/mkzopeinstance.py", line 206, in ?
 |   main()
 | File "/usr/lib/zope2.7/bin/mkzopeinstance.py", line 145, in main
 |   write_inituser(inituser, user, password, None, gid)
 | File "/usr/lib/zope2.7/bin/mkzopeinstance.py", line 198, in write_inituser
 |   if uid is None: uid = os.fstat(fp.fileno())[4]
 | ValueError: I/O operation on closed file

I added the default user manually
 | # /var/lib/zope2.7/instance/default/bin/zopectl adduser admin xxxxx

And I also added the product links manually at the /var/lib/zope2.7/instance/default/Products dir:
 Archetypes -> /usr/share/zope/Products/Archetypes:1.3
 BTreeFolder2 -> /usr/share/zope/Products/BTreeFolder2
 CMFActionIcons -> /usr/share/zope/Products/CMFActionIcons:1.5
 CMFCalendar -> /usr/share/zope/Products/CMFCalendar:1.5
 CMFCore -> /usr/share/zope/Products/CMFCore:1.5
 CMFDefault -> /usr/share/zope/Products/CMFDefault:1.5
 CMFDynamicViewFTI -> /usr/share/zope/Products/CMFDynamicViewFTI
 CMFFormController -> /usr/share/zope/Products/CMFFormController
 CMFPlone -> /usr/share/zope/Products/CMFPlone
 CMFQuickInstallerTool -> /usr/share/zope/Products/CMFQuickInstallerTool
 CMFTopic -> /usr/share/zope/Products/CMFTopic:1.5
 DCWorkflow -> /usr/share/zope/Products/DCWorkflow:1.5
 GroupUserFolder -> /usr/share/zope/Products/GroupUserFolder
 MimetypesRegistry -> /usr/share/zope/Products/MimetypesRegistry:1.3
 PloneArticle -> /usr/share/zope/Products/PloneArticle
 PortalTransforms -> /usr/share/zope/Products/PortalTransforms:1.3
 SecureMailHost -> /usr/share/zope/Products/SecureMailHost
 generator -> /usr/share/zope/Products/generator:1.3
 validation -> /usr/share/zope/Products/validation:1.3

After the above plone seems to work OK

> # cp /var/lib/zope2.7/instance/oldinstance/var/Data* \
>      /var/lib/zope2.7/instance/myinstance/
> 

Unfortunately I wasn't able to migrate from my older site (2.0.4-3) which used zope2.6:

In the zope manage web page I get :
  - portal_navigation (This object from the CMFPlone product is broken!)
  - portal_form (This object from the CMFPlone product is broken!)
  - mimetypes_registry (This object from the PortalTransforms product is broken!)
  - portal_transforms (This object from the PortalTransforms product is broken!) 

And the  portal_migration fails.

Thanks
-- 
Kornilios Kourtis




More information about the Pkg-zope-developers mailing list