MemoryError

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

MemoryError

Shaun@UMB
I am trying to migrate to 3.1 and I'm getting a memory error.  Migration :: 3.0.2 to 3.1.0 (3.0.2 → 3.1.0) and I'm getting an error during the process
       
Exception Type   MemoryError


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 846, in manage_doUpgrades
  Module Products.GenericSetup.upgrade, line 112, in doStep
  Module Products.eduCommons.upgrades.v3_0_2_to_3_1_0, line 26, in migrate
  Module Products.eduCommons.upgrades.v3_0_2_to_3_1_0, line 224, in updateCourses
  Module Products.IMSTransport.utilities.utils, line 65, in exportZipfile
  Module Products.IMSTransport.Manifest, line 137, in writeManifest
  Module Products.IMSTransport.Manifest, line 311, in getOutput
MemoryError


I've checked Google and the forums. Does anyone have any idea on this one?

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

Re: MemoryError

Shaun@UMB
To recreate-

ZMI -> educommons -> upgrades -> portal_setup -> Upgrades tab -> Default -> Choose Profile -> Upgrade
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: MemoryError

David Ray
Administrator
A MemoryError indicates that you've utilized all of the available RAM on the server, which effectively kills the process.

I would suggest the following, especially if you are going to migrate all the way to 3.2.1

Comment out the following lines:
        if zip_exists == 1:
            file_id = course.id + '.zip'

            ims_util = getUtility(IIMSTransportUtility)
            data, file_id = ims_util.exportZipfile(course, file_id)

            course.invokeFactory("FSSFile",id=file_id, title="Download this Course")
            fileobj = getattr(course,file_id)
            publishObject(fileobj)
            fileobj.setTitle("Download This Course")

            fileobj.setExcludeFromNav(True)
            fileobj.setFile(data)
            appendObjPosition(fileobj)

            course.portal_catalog.reindexObject(fileobj)

This will prevent the migration from repacking the zip file downloads.  This can be done fairly easily after both migrations are done, with an external method. It will also speed up the migration itself.

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: MemoryError

Shaun@UMB
Thanks David- I apologize for the delay. I just now saw this. Thanks so much for your help!
Loading...