[Erp5-dev] Problems with upgrading site from old revision

Łukasz K. Nowak lukasz.nowak at ventis.com.pl
Mon Jun 11 11:56:37 CEST 2007


Hello,

Dnia 11-06-2007, pon o godzinie 11:05 +0200, Łukasz K. Nowak napisał(a):
> I'm trying to do classic upgrade od very old (r10526) site.
> Site is running on mdv2006.0, x86.
> 
> That's what I have done:
>  * upgraded to newest version of products from rpms
>  * upgraded to r14753 of products: CMFActivity, CMFCategory, ERP5,
> ERP5Catalog, ERP5Form, ERP5OOo, ERP5Security, ERP5Subversion,
> ERP5SyncML, ERP5Type, TimerService, ZMySQLDDA, ZSQLCatalog
>  * installed python-memcached
>  * added cache tool, as instructed in r11019
> http://www.erp5.org/UpgradeNote
>  * installed erp5_mysql_innodb_catalog
>  * followed instructions from
> http://thread.gmane.org/gmane.comp.python.zope.erp5.devel/800 (BTW -
> wouldn't it be good to have it in UpgradeNote) to switch to new catalog.
(...)
> While trying to recataloging site:
> 
> Traceback (most recent call last):
>   File "/var/lib/zope/Products/CMFActivity/ActivityTool.py", line 740,
> in invokeGroup
>     result = method(expanded_object_list, **m.kw)
>   File "/var/lib/zope/Products/ZSQLCatalog/ZSQLCatalog.py", line 713, in
> catalogObjectList
>     catalog.catalogObjectList(wrapped_object_list,**kw)
>   File "/var/lib/zope/Products/ZSQLCatalog/SQLCatalog.py", line 1405, in
> catalogObjectList
>     def catalogObjectList(self, object_list, method_id_list=None,
> TypeError: catalogObjectList() got an unexpected keyword argument
> 'priority'

Resolved by upgrading erp5_core *before* reindex.

> I'm not able to upgrade to newer erp5_core or do anything more with
> site, any try of installation of any BT ends up with:
> 2007-06-11T10:53:28 ERROR(200) ActivityBuffer exception during
> tpc_prepare
> Traceback (most recent call last):
>   File "/var/lib/zope/Products/CMFActivity/ActivityBuffer.py", line 165,
> in tpc_prepare
>     activity.prepareQueueMessageList(self._activity_tool, message_list)
>   File "/var/lib/zope/Products/CMFActivity/Activity/SQLDict.py", line
> 95, in prepareQueueMessageList
>     uid_list =
> activity_tool.getPortalObject().portal_ids.generateNewLengthIdList(id_group='portal_activity', id_count=len(r
> egistered_message_list))
>   File "/var/lib/zope/Products/ERP5/Tool/IdTool.py", line 206, in
> generateNewLengthIdList
>     result = query(id_group=id_group, id_count=id_count,
> default=default)
>   File
> "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/ZRDB/DA.py", line 454, in __call__
>   File "/usr/lib/zope/lib/python/Products/ZMySQLDA/db.py", line 331, in
> query
>     db.query(qs)
> OperationalError: (1205, 'Lock wait timeout exceeded; try restarting
> transaction')

Resolved: After 5 times lock haven't timeouted.

Two more problems with solution:
 * attribute error on Base_getFieldDescription

Create dummy Base_getFieldDescription in custom, with *args,**kwargs
which returns '' and upgrade erp5_xhtml, then remove it

 * selections do not works (eg. you are not able to select BT to
download, etc) - upgrade erp5_xhtml by upload and install.

Well, for now all is working fine :)

Thanks,
Luke

-- 
Łukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...''





More information about the Erp5-dev mailing list