3.1.1-3.2.1 migration problem, AttributeError: eduCommons

classic Classic list List threaded Threaded
18 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

3.1.1-3.2.1 migration problem, AttributeError: eduCommons

Juan Herrera
Hi. After premigrate, when I follow the updated instructions and choose the Migration::3.1.1 to 3.2.1 option, I get the error trace:

Traceback (innermost last):
  Module ZPublisher.Publish, line 119, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 42, in call_object
  Module Products.GenericSetup.tool, line 964, in manage_doUpgrades
  Module Products.GenericSetup.upgrade, line 112, in doStep
  Module enpraxis.educommons.upgrades.v3_1_1_to_3_2_1, line 44, in migrate
AttributeError: eduCommons

Additionally, the debug output shows a few errors like

2009-12-24 10:24:50 INFO ZPublisher.Conflict ConflictError at /eduCommons321/por
tal_css/Left Skin/base-cachekey3466.css: database conflict error (oid 0x0293f6,
class BTrees._OOBTree.OOBTree, serial this txn started with 0x0382f5908b020c44 2
009-12-24 15:12:32.580000, serial currently committed 0x0382f59cbf4cde44 2009-12
-24 15:24:44.836000) (3 conflicts (0 unresolved) since startup at Thu Dec 24 10:
23:04 2009)

Any ideas of what is happening?

Thanks

Juan Herrera
Universidad EAFIT
Colombia
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: 3.1.1-3.2.1 migration problem, AttributeError: eduCommons

Juan Herrera
Additionally, when entering the old site in the new eduCommons 3.2.1 install, I obtain the same error mentioned in this post:

http://n2.nabble.com/Migration-to-3-2-1-problem-td3595815.html

Site Error
An error was encountered while publishing this resource.
Error Type: AttributeError
Error Value: type object 'IZipFileTransportUtility' has no attribute '__iro__'

No solution was posted for that issue either.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: 3.1.1-3.2.1 migration problem, AttributeError: eduCommons

Juan Herrera
In reply to this post by Juan Herrera
Additionally, when entering the old site in the new eduCommons 3.2.1 install, I obtain the same error mentioned in this post:

http://n2.nabble.com/Migration-to-3-2-1-problem-td3595815.html

Site Error
An error was encountered while publishing this resource.
Error Type: AttributeError
Error Value: type object 'IZipFileTransportUtility' has no attribute '__iro__'

No solution was posted for that issue either.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: 3.1.1-3.2.1 migration problem, AttributeError: eduCommons

Juan Herrera
Maybe this is a related ticket for Plone?

http://dev.plone4artists.org/pm/p/plone4artists/ticket/168

Error Type: AttributeError Error Value: type object 'ICalendarSupport' has no attribute '__iro__'

I don't understand much about that ticket. Could you see if it may be related?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: 3.1.1-3.2.1 migration problem, AttributeError: eduCommons

Juan Herrera
And here's someone who got a similar error when migrating an (unrelated) plone site.

http://markmail.org/message/juueqryumznsoicl

Someone suggests it may appear because the products on the destination machine did not match the ones on the source machine.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: 3.1.1-3.2.1 migration problem, AttributeError: eduCommons

Juan Herrera
I thought I might remove IZipFileTransportUtility from the old site. What would be the side effects of this? Could it be added in the new instance later?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: 3.1.1-3.2.1 migration problem, AttributeError: eduCommons

Juan Herrera
I think I'll try it. Could someone tell me how to remove IZipFileTransportUtility?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: 3.1.1-3.2.1 migration problem, AttributeError: eduCommons

Juan Herrera
This may be a solution:

http://blog.fourdigits.nl/removing-a-persistent-local-utility

How could it be adapted to educommons?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: 3.1.1-3.2.1 migration problem, AttributeError: eduCommons

Juan Herrera
If you look at the full trace, and do a google search for error attribute '__iro__', you can see it's the same traceback all over the net. What varies is the package (I've found it for ICurrencyManager, IQueue, ICalendarSupport, ISalt, ILDapConfiguration, IRole)... I think it's a legitimate error, not a misstep thing. Wherever I find it, it's not about some n00b forgetting something :-)

I'm sorry about posting so much, I have a lot of heat on me because of this migration.

Traceback (innermost last):
  Module ZPublisher.Publish, line 110, in publish
  Module ZPublisher.BaseRequest, line 424, in traverse
  Module ZPublisher.BeforeTraverse, line 99, in __call__
  Module Products.CMFCore.PortalObject, line 94, in __before_publishing_traverse
__
  Module zope.event, line 23, in notify
  Module zope.component.event, line 26, in dispatch
  Module zope.component._api, line 130, in subscribers
  Module zope.component.registry, line 290, in subscribers
  Module zope.interface.adapter, line 535, in subscribers
  Module zope.component.event, line 33, in objectEventNotify
  Module zope.component._api, line 130, in subscribers
  Module zope.component.registry, line 290, in subscribers
  Module zope.interface.adapter, line 535, in subscribers
  Module zope.app.component.site, line 375, in threadSiteSubscriber
  Module zope.app.component.hooks, line 61, in setSite
  Module Products.CMFCore.PortalObject, line 75, in getSiteManager
  Module ZODB.Connection, line 761, in setstate
  Module ZODB.Connection, line 819, in _setstate
  Module ZODB.serialize, line 605, in setGhostState
  Module zope.component.persistentregistry, line 42, in __setstate__
  Module zope.interface.adapter, line 80, in _createLookup
  Module zope.interface.adapter, line 389, in __init__
  Module zope.interface.adapter, line 426, in init_extendors
  Module zope.interface.adapter, line 430, in add_extendor
AttributeError: type object 'IZipFileTransportUtility' has no attribute '__iro__
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: 3.1.1-3.2.1 migration problem, AttributeError: eduCommons

Tom Caswell
Hi Juan,

I just wanted to post a response, but unfortunately I don't have the technical skills to help you with a solution. Those involved with eduCommons migration development in the USA are probably not available because of the holidays this week. Hopefully they can give some suggestions on Monday, but for now I can only point you to the latest migration documentation (which you have probably already seen): http://educommons.com/documentation/how-to/migrate-between-educommons-versions

Best regards,

Tom
Tom Caswell
http://tomcaswell.com
Open Education Consultant
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: 3.1.1-3.2.1 migration problem, AttributeError: eduCommons

Juan Herrera
In reply to this post by Juan Herrera
Please bear with me.

Digging back into a failed migration back in September, the error was

Error Type: AttributeError
Error Value: type object 'IContentLicensingUtility' has no attribute '__iro__'

So, this generic kind of error could refer to what?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: 3.1.1-3.2.1 migration problem, AttributeError: eduCommons

David Ray
Administrator
The initial error:

AttributeError: eduCommons

Suggests that your old instance id (the 3.1.1. site) is something other than eduCommons.

If you modify line 48 in educommons/upgrades/v3_1_1_to_3_2_1.py:

    oldsite = getattr(portal.aq_parent, 'eduCommons')

and change eduCommons to the id of your old site, you should get past your current error.  

With regard to your other findings: yes, you are on the right track, and had we discovered that information earlier on we could have created a different migration strategy. But, the current strategy should work for you, with the above tweaks.

david
---------------------
David Ray
Applications Analyst
Lineberger Comprehsensive Cancer Center
University of North Carolina at Chapel Hill
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: 3.1.1-3.2.1 migration problem, AttributeError: eduCommons

Juan Herrera
Thank you for your patience :) I got this error now:

AttributeError: is_lp_installed

clpinst = str(old_site_props.is_lp_installed)
    if clpinst == 'True':
        course.setLanguage(cobj.Language())

In v3_1_1_to_3_2_1.py

Can I get away with setting True or False manually? Our whole site is in Spanish.

Trace follows:

    * Module ZPublisher.Publish, line 119, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 42, in call_object
    * Module Products.GenericSetup.tool, line 964, in manage_doUpgrades
    * Module Products.GenericSetup.upgrade, line 112, in doStep
    * Module enpraxis.educommons.upgrades.v3_1_1_to_3_2_1, line 52, in migrate
    * Module enpraxis.educommons.upgrades.v3_1_1_to_3_2_1, line 115, in copyFolders
    * Module enpraxis.educommons.upgrades.v3_1_1_to_3_2_1, line 312, in migrateDivision
AttributeError: is_lp_installed
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: 3.1.1-3.2.1 migration problem, AttributeError: eduCommons

Juan Herrera
I suppose is_lp_installed refers to linguaplone. So I modified the code as if this were true. Below, in course.setLanguage(cobj.Language()), python complained course is a non-initialized variable, and indeed, I didn't find any previous references to it, so I commented out that line. Now the error I'm getting is a KeyError around line 388,
    course.setLocation(cobj.__annotations__['course.location'])

Trace follows
    * Module ZPublisher.Publish, line 119, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 42, in call_object
    * Module Products.GenericSetup.tool, line 964, in manage_doUpgrades
    * Module Products.GenericSetup.upgrade, line 112, in doStep
    * Module enpraxis.educommons.upgrades.v3_1_1_to_3_2_1, line 52, in migrate
    * Module enpraxis.educommons.upgrades.v3_1_1_to_3_2_1, line 115, in copyFolders
    * Module enpraxis.educommons.upgrades.v3_1_1_to_3_2_1, line 340, in migrateDivision
    * Module enpraxis.educommons.upgrades.v3_1_1_to_3_2_1, line 388, in migrateCourse

KeyError: 'course.location'
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: 3.1.1-3.2.1 migration problem, AttributeError: eduCommons

Juan Herrera
Oops, treating lp_installed as true didn't work. I did as if it were false. Now the migration process ran for 12 minutes. It managed to run migrateTheme. It almost completed migrateProperties, but it failed at
     portal.portal_properties.site_properties.manage_changeProperties(webstats_js=old_site_props.webstats_js)  
print >> out, '  <li>Migrated Site properties</li>\n'

AttributeError: webstats_js

I'll comment that out and tell how it goes.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: 3.1.1-3.2.1 migration problem, AttributeError: eduCommons

Juan Herrera
It ran again for 12 minutes. These were the messages at the end
    enpraxis.educommons:default profile saved.
    The profile "enpraxis.educommons:default" is currently upgraded to version 3.1.1.
    The filesystem version for the "enpraxis.educommons:default" profile is currently 3.1.1.

I thought I should have seen other html messages?

Anyway, now I'll try the next steps.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: 3.1.1-3.2.1 migration problem, AttributeError: eduCommons

Juan Herrera
BTW, I got these other messages
2009-12-28 10:44:43 WARNING OFS.Uninstalled Could not import class 'Feedback' fr
om module 'Products.eduCommons.content.feedback'
2009-12-28 10:44:43 WARNING OFS.Uninstalled Could not import class 'FSSTool' fro
m module 'Products.FileSystemStorage.FSSTool'
2009-12-28 10:44:43 WARNING OFS.Uninstalled Could not import class 'CoursesTopic
' from module 'Products.eduCommons.content.courses'
2009-12-28 10:56:53 INFO GenericSetup Ran upgrade step Migration :: 3.1.1 to 3.2
.1 for profile enpraxis.educommons:default
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: 3.1.1-3.2.1 migration problem, AttributeError: eduCommons

Juan Herrera
It worked! Images don't appear, but the folder is there. Is this the css problem mentioned? How could I fix it?

Thanks for following,

Juan
Loading...