[Setup] AttributeError:batchedFolderContents when migrating

Walter Landry walter at geodynamics.org
Fri Jan 4 19:15:27 UTC 2008


Hello,

I am trying to migrate a Plone instance currently running on Debian
sarge (Zope 2.7.5, Plone 2.0.4) to Debian etch (Zope 2.9.6, Plone
2.5.1).  After reading

  https://weblion.psu.edu/trac/weblion/wiki/UpgradePloneTwoZeroToTwoFive

and

  http://plone.org/documentation/manual/upgrade-guide/version/2.0-2.1

I used the following upgrade path.

1) Copy the Data.fs from Zope 2.7.5, Plone 2.0.4 to an instance
   running Zope 2.7.6, Plone 2.1.3.

2) Add a new root user with zopectl because we have lost the passwords
   for the administrative users.

3) Log into ZMI and run portal_migration.  This takes an hour or two
   (Data.fs is 20 GB).

4) Delete all of the users in acl_users except root, because otherwise
   I was getting a has_key error later when migrating PlonePAS.

5) Make sure everything works in the new environment

6) copy the Data.fs to an instance running Zope 2.8.7, Plone 2.1.3.

7) I have to convert some indices now.  I click on "portal_catalog",
  then click on "Indexes".  I get an error about "_length".  I modify
  that URL by replacing "manage_catalogIndexes" with
  "manage_convertIndexes".  That gets rid of the error.

8) There are now extra tabs and items viewed by default.  To fix this,
   log into Plone.  Go to the "preferences" tab on the top left, and
   click on "Navigation Settings".  Uncheck "Automatically generate
   tabs".  Check "Filter on workflow state" and "Published".  Hit
   Save.

9) Make sure everything else works

10) Copy the Data.fs to an instance running Zope 2.9.6, Plone 2.5.1
   (the final destination).

11) For some reason, the "root" user that I created earlier does not
    work.  However, if I try "admin" with the "root"'s password, that
    lets me into ZMI.

12) Migrate the portal (takes a few minutes)

13) Migrate ATContentTypes (very quick)

14) Now I get an error

  Error exceptions.AttributeError on here/portlet_recent/macros/portlet: toPortalTime

  This does not make sense to me, because if I look at the source for
  portlet_recent, it is not using toPortalTime.  In any case, I can
  get rid of this error by removing portlet_recent from the list of
  slots.

With that fixed, it mostly works, but I am getting the error
AttributeError:batchedFolderContents whenever I log into the plone
site and look at the Contents tab.

I am attaching the full version information, installed products, and
traceback.  This error looks a lot like

  http://plone.org/products/atvocabularymanager/issues/13

It might also be related to

  http://rhaptos.org/testing/plone25/tasks/ptf031
  http://dev.plone.org/plone/ticket/2577
  http://dev.plone.org/plone/ticket/3118

For reference, the original website is 

  http://geodynamics.org/cig

The Zope 2.9.6/Plone 2.5.1 instance is running (for now) at 

  http:/s-wave.geodynamics.org:8081/cig

Does anyone have an idea of how to fix this problem?

Thank you,
Walter Landry
walter at geodynamics.org


Version Information
-------------------
Plone version: 2.5.1
Zope version: (Zope 2.9.6-final, python 2.4.4, linux2)
Apache version:
CMF version (if known): CMF-1.6.2
Browser(s) and version(s): Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.11) Gecko/20071128 Iceweasel/2.0.0.11 (Debian-2.0.0.11-1)
Operating system: linux2
Python version: 2.4.4 (#2, Apr  5 2007, 20:11:18) 
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)]
Debug mode: No

Installed Products
------------------
ATContentTypes 1.1.3-final installed 
ATReferenceBrowserWidget 1.5 installed 
Archetypes 1.4.1-final installed 
BTreeFolder2 BTreeFolder2-1.0.2  
CMFActionIcons CMF-1.6.2 installed 
CMFCalendar CMF-1.6.2 installed 
CMFCore CMF-1.6.2  
CMFDefault CMF-1.6.2  
CMFDynamicViewFTI 2.1  
CMFFormController 2.0.5 installed 
CMFForum 0.1beta2  
CMFPhoto 0.5.0  
CMFPhotoAlbum 0.5.0  
CMFPlacefulWorkflow 1.0.2 installed 
CMFPlone 2.5.1  
CMFQuickInstallerTool 1.5.9  
CMFSetup CMF-1.6.2  
CMFSin 0.6.1  
CMFTopic CMF-1.6.2  
CMFUid CMF-1.6.2  
COREBlog COREBlog 1.0  
DCWorkflow CMF-1.6.2  
Epoz 0.8.2  
ExtFile 1.4.2  
ExtendedPathIndex 2.4  
ExternalEditor 0.9.2  
ExternalMethod External Method-1-0-0  
FileSystemSite FileSystemSite 1.3  
Five Five 1.3.8  
Formulator Formulator 1.7.0  
GenericSetup GenericSetup-1.1  
GroupUserFolder 3.54 installed 
Hotfix_20050405 Hotfix_20050405  
I18NFolder 2.02  
I18NLayer 0.5.5  
LDAPUserFolder 2.2  
MIMETools   
MailHost MailHost-1-3-0  
Marshall 0.6.6-final  
MimetypesRegistry 1.4.1-final installed 
OFSP OFSP-1-0-0  
PageTemplates PageTemplates-1-4-0  
PasswordResetTool 0.4.1 installed 
Photo Photo 1.2.3  
PlacelessTranslationService 1.3.3  
PloneArticle 2.05  
PloneErrorReporting 1.0 installed 
PloneLanguageTool 1.4  
PlonePAS 2.1 installed 
PloneTranslations 2.6.0  
PluggableAuthService PluggableAuthService-1.4  
PluginIndexes   
PluginRegistry 1.1.1  
PortalTransforms 1.4.1-final installed 
PythonScripts PythonScripts-2-0-0  
ResourceRegistries 1.3.2 installed 
SecureMailHost 1.0.4  
Sessions   
SiteAccess SiteAccess-2-0-0  
SiteErrorLog   
StandardCacheManagers StandardCacheManagers-1-1-0  
TemporaryFolder   
Transience   
ZAAPlugins 2.21  
ZAttachmentAttribute 2.21  
ZCTextIndex   
ZCatalog ZCatalog-2-2-0  
ZGadflyDA   
ZLDAPConnection   
ZLDAPMethods   
ZODBMountPoint   
ZPsycopgDA   
ZReST 1.1  
ZSQLMethods   
ZopeTutorial Zope Tutorial 1.2  
exUserFolder exUserFolder-0-30-0  
generator 1.3.2-final06  
kupu kupu 1.3.8 installed 
statusmessages 2.0.1  
validation 1.4.1-final  

Traceback
---------
Traceback (innermost last):
  Module ZPublisher.Publish, line 115, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 41, in call_object
  Module Shared.DC.Scripts.Bindings, line 311, in __call__
  Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
  Module Products.PageTemplates.ZopePageTemplate, line 255, in _exec
  Module Products.PageTemplates.PageTemplate, line 104, in pt_render
   - <ZopePageTemplate at /cig/folder_contents>
  Module TAL.TALInterpreter, line 238, in __call__
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 749, in do_useMacro
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 457, in do_optTag_tal
  Module TAL.TALInterpreter, line 442, in do_optTag
  Module TAL.TALInterpreter, line 437, in no_tag
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 780, in do_defineSlot
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 457, in do_optTag_tal
  Module TAL.TALInterpreter, line 442, in do_optTag
  Module TAL.TALInterpreter, line 437, in no_tag
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 728, in do_defineMacro
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 772, in do_defineSlot
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 507, in do_setLocal_tal
  Module Products.PageTemplates.TALES, line 221, in evaluate
   - URL: /cig/folder_contents
   - Line 22, Column 6
   - Expression: <PythonExpr here.batchedFolderContents(suppressHiddenFiles=1)>
   - Names:
      {'container': <PloneSite at /cig>,
       'context': <PloneSite at /cig>,
       'default': <Products.PageTemplates.TALES.Default instance at 0xb7258b6c>,
       'here': <PloneSite at /cig>,
       'loop': <Products.PageTemplates.TALES.SafeMapping object at 0xb2f0deac>,
       'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0xb727bc2c>,
       'nothing': None,
       'options': {'args': ()},
       'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0xb2f0deac>,
       'request': <HTTPRequest, URL=http://s-wave.geodynamics.org:8081/cig/folder_contents>,
       'root': <Application at >,
       'template': <ZopePageTemplate at /cig/folder_contents>,
       'traverse_subpath': [],
       'user': <PloneUser 'WalterLandry'>}
  Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
   - __traceback_info__: here.batchedFolderContents(suppressHiddenFiles=1)
  Module Python expression "here.batchedFolderContents(suppressHiddenFiles=1)", line 1, in <expression>
AttributeError: batchedFolderContents



More information about the Setup mailing list