Invalid literal for int() when processing a large number of objects
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ZODB |
New
|
Undecided
|
Unassigned |
Bug Description
Hi All,
We have a plone site with ZODB 3.8.3 with large number of objects. Whenever we run a report which processes a large number of objects, we get the following error:
2018-05-04T01:57:12 ERROR ZODB.Connection Couldn’t load state for 0x030c8158
Traceback (most recent call last):
_ File “/usr/local/
_ self.setstate(obj)
_ File “/usr/local/
_ self.reader.
_ File “/usr/local/
_ state = self.getState(
_ File “/usr/local/
_ return unpickler.load()_
_ File “/usr/local/
_ return self.load_
_ File “/usr/local/
_ return self.conn.get(oid)
_ File “/usr/local/
_ p, serial = self.storage.
_ File “/usr/local/
_ return self.loadEx(oid, version)[:2]_
_ File “/usr/local/
_ self.cache.
_ File “/usr/local/
_ return self.func(inst, *args, **kw)_
_ File “/usr/local/
_ nfreebytes = self.makeroom(size)
_ File “/usr/local/
_ size = int(status)_
ValueError: invalid literal for int():
------
2018-05-04T01:57:12 ERROR Zope.SiteErrorLog 1525413432.
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 Shared.
_ Module Shared.
_ Module Products.
_ Module Products.
_ Module zope.pagetempla
_ Module zope.tal.
_ Module zope.tal.
_ Module zope.tal.
_ Module zope.tal.
_ Module zope.tal.
_ Module zope.tal.
_ Module zope.tal.
_ Module zope.tal.
_ Module zope.tal.
_ Module zope.tal.
_ Module zope.tal.
_ Module zope.tal.
_ Module zope.tal.
_ Module zope.tal.
_ Module zope.tal.
_ Module zope.tales.tales, line 696, in evaluate_
_ - URL: report_generator_
_ - Line 27, Column 4_
_ - Expression: <PathExpr standard:
_ - Names:_
_ {‘container’: <PloneSite at /Plone>,_
_ ‘context’: <PloneSite at /Plone>,_
_ ‘default’: <object object at 0x2ad0f9099200>,_
_ ‘here’: <PloneSite at /Plone>,_
_ ‘loop’: {},_
_ ‘nothing’: None,_
_ ‘options’: {‘args’: ()},_
_ ‘repeat’: <Products.
_ ‘request’: <HTTPRequest, URL=https:/
_ ‘root’: ,_
_ ‘template’: <ImplicitAcquir
_ ‘traverse_subpath’: [],_
_ ‘user’: <PloneUser ‘rkumar174’>,_
_ ‘view’: <Products.
_ ‘views’: <zope.app.
_ Module zope.tales.
_ Module Products.
_ Module Products.
_ Module ocw.publishing.
_ Module ocw.publishing.
_ Module ocw.publishing.
_ Module ocw.publishing.
_ Module ZODB.Connection, line 811, in setstate_
_ Module ZODB.Connection, line 870, in setstate
_ Module ZODB.serialize, line 604, in setGhostState_
_ Module ZODB.serialize, line 597, in getState_
_ Module ZODB.serialize, line 471, in persistent_load
_ Module ZODB.serialize, line 537, in load_oid_
_ Module ZODB.Connection, line 244, in get_
_ Module ZEO.ClientStorage, line 712, in load_
_ Module ZEO.ClientStorage, line 740, in loadEx_
_ Module ZEO.cache, line 136, in call_
_ Module ZEO.cache, line 557, in store_
_ Module ZEO.cache, line 370, in makeroom
ValueError: invalid literal for int():
If we segregate the report in 5-6 reports we don’t get this error. We have also noticed that the /temp folder size increases very much. Can someone please suggest a solution for this?
Thanks,
Rahul