#29 — Attribute error from PlonePAS when upgrading site from 2.1.3 to 2.5.2.
by
Tom Hallam
—
last modified
Aug 22, 2009 07:33 PM
| State | Unconfirmed |
|---|---|
| Version: | 2.2 |
| Area | Plone Integration |
| Issue type | Bug |
| Severity | Medium |
| Submitted by | Tom Hallam |
| Submitted on | Feb 09, 2007 |
| Responsible |
—
|
| Target release: |
—
|
I'm getting an attribute error from PlonePAS when upgrading my site from 2.1.3 to 2.5.2. I think that this might be due to ether a group member that no longer exists or (not) finding members using LDAP user folder.
# Attempting to upgrade from: 2.5-alpha1
# Upgrade aborted
# Error type: exceptions.AttributeError
# Error value: 'NoneType' object has no attribute 'addMember'
# File "/localhost/docs/zope/dev/Products/CMFPlone/MigrationTool.py", line 307, in upgrade
# File "/localhost/docs/zope/dev/Products/CMFPlone/MigrationTool.py", line 404, in _upgrade
# File "/localhost/docs/zope/dev/Products/CMFPlone/migrations/v2_5/alphas.py", line 24, in alpha1_alpha2
# File "/localhost/docs/zope/dev/Products/CMFPlone/migrations/v2_5/alphas.py", line 43, in installPlonePAS
# File "/localhost/docs/zope/dev/Products/CMFPlone/migrations/migration_util.py", line 82, in installOrReinstallProduct
# File "/localhost/docs/zope/dev/Products/CMFQuickInstallerTool/QuickInstallerTool.py", line 322, in installProduct
# File "//usr/local/daemon/zope29/lib/python/Products/ExternalMethod/ExternalMethod.py", line 225, in __call__ try: return f(*args, **kw)
# File "/localhost/docs/plone/student/zope/Products/PlonePAS/Extensions/Install.py", line 844, in install restoreGroupData(portal, out, groupdata, memberships)
# File "/localhost/docs/plone/student/zope/Products/PlonePAS/Extensions/Install.py", line 388, in restoreGroupData group.addMember(mid)
# End of upgrade path, migration has finished
# The upgrade path did NOT reach current version
# Migration has failed
- Steps to reproduce:
- Get 2.1.3 version of plone with LDAPUserFolder. Groups and users exists both locally and in LDAP
Upgrade all products including LDAPUserFolder to latest supported by 2.1.3 (check it all still works...)
Move database to similar 2.5.2 instance of Plone (same version of products where possible). LDAPUserFolder and LDAPMultiPlugins installed.
Try dry run upgrade.
Added by
Tom Hallam
on
Feb 09, 2007 06:21 AM
It looks like this might be caused by a group that has no members.
Added by
Tom Hallam
on
Feb 09, 2007 06:45 AM
Put in some print statements to trace this
# restore group memberships
gid = g[0]
print "Group ID:", gid
group = gtool.getGroupById(gid)
for mid in groupmemberships[gid]:
print "\tMember:", mid
group.addMember(mid)
print >> out, "%s " % mid
All goes well until it hits a group (staff) that has a group as a member (acad-staff)
Added by
Tom Hallam
on
Feb 09, 2007 07:19 AM
For some reason
group = gtool.getGroupById(gid)
is returning None
whilst
for mid in groupmemberships[gid]:
is giving a valid list of members.
I've no idea why this is happening
So I can do the upgrade I've changed the iteration over the members so it is conditional on a valid group being returned.
Extensions/Install.py", in restoreGroupData
# restore group memberships
gid = g[0]
group = gtool.getGroupById(gid)
if group is not None :
for mid in groupmemberships[gid]:
group.addMember(mid)
print >> out, "%s " % mid
Added by
Tim Tisdall
on
Apr 13, 2007 02:59 PM
I've received the very same error... Not sure how to properly solve this, but a work-around is to delete the acl_users in that plone instance and then run the portal migration. The migration will create a new acl_users with PAS.
Added by
Tim Tisdall
on
Apr 13, 2007 03:57 PM
... I've managed to get around this by erasing all of the groups before doing a migration.
Added by
(anonymous)
on
Aug 19, 2009 03:10 PM
IWBniP <a href="http://qxazjcbvzezw.com/">qxazjcbvzezw</a>, [url=http://lisuwrrqxcma.com/]lisuwrrqxcma[/url], [link=http://yhfnmwpkppif.com/]yhfnmwpkppif[/link], http://ezuflcmbryhi.com/
Added by
(anonymous)
on
Aug 22, 2009 07:33 PM
online racing.tv http://yingwavajud.host-ed.net/www.telenor.com.pk.html www.telenor.com.pkeee.epost.ca http://yingwavajud.host-ed.net/online-drummer.com.html online drummer.comonline i.q. test take http://yingwavajud.host-ed.net/online-dr.mario.html online dr.mariotrade link.com http://yingwavajud.host-ed.net/epost.jonkoping.se.html epost.jonkoping.sereggaeton online.net http://yingwavajud.host-ed.net/word-link-www.91080.com.html word link www.91080.com1 rosaline online.net http://yingwavajud.host-ed.net/zamkovaya-epost.dp.ua.html zamkovaya epost.dp.uaget rich online all4homebusiness.com http://yingwavajud.host-ed.net/2.4-usb-antenna-d-link.html 2.4 usb antenna d linke post.telenor.no http://yingwavajud.host-ed.[…]ates.reg-online.comcom.html www.rebates.reg online.comcomfree online games.com http://yingwavajud.host-ed.net/postel.ca-www.epost.ca.html postel.ca www.epost.cafree online games.com play 1742 http://yingwavajud.host-ed.net/telenor.s.html telenor.s
No responses can be added.
If you can, please log in before submitting a reaction.
