[Silva-general] upgrade error

Kit BLAKE kitblake at infrae.com
Thu Apr 30 11:04:29 CEST 2009


There's now an issue for that point (thanks Andy):
https://bugs.launchpad.net/bugs/369420

On 29 Apr 2009, at 13:24, Jonathan Bowlas wrote:

> Ok  I'll pass this onto David thanks.
>
> Would appreciate the problematic object's being listed in the log
> though - we have a lot of trouble with upgrade scripts particularly as
> we're using Silva with Extfile - out of sync assets and their
> associated files on the filesystem are always causing problems.
>
> J
>
> 2009/4/29 Kit BLAKE <kitblake at infrae.com>:
>> Try doing partial upgrades and see which container fails. This is
>> possible in:
>> /[yoursilva]/service_extensions/manage_partialUpgradeForm
>>
>> Then look for any obvious candidates. You can see in the log that
>> there's a unicode problem, which shouldn't be any 'normal' Silva
>> object, but who knows.
>>
>> It becomes detective work, which is less than fun. I'm not sure why  
>> we
>> don't or can't list the problematic object in the log, we'll look at
>> that.
>>
>> Kit
>>
>> On 29 Apr 2009, at 12:14, Jonathan Bowlas wrote:
>>
>>> Hi Kit,
>>>
>>> The traceback David included was taken from the log. So no - there's
>>> no mention of the object with the problem.
>>>
>>> Jon
>>>
>>> 2009/4/29 Kit BLAKE <kitblake at infrae.com>:
>>>> David, I assume you checked the log? No mention of the object with
>>>> the
>>>> problem?
>>>>
>>>> Kit
>>>>
>>>> On 26 Apr 2009, at 00:40, David Gillies wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> We are trying to upgrade from Silva 1.5.9 to Silva 1.6.3 but  
>>>>> when we
>>>>> do
>>>>> the content upgrade we get the following error:
>>>>>
>>>>> 2009-04-25T17:53:04 ERROR Zope.SiteErrorLog
>>>>> http://wwwcm-d.ucl.ac.uk:8121/silva/service_extensions/upgrade_all
>>>>> Traceback (most recent call last):
>>>>>   File "/usr/local/zope-2.8.8/lib/python/ZPublisher/Publish.py",
>>>>> line
>>>>> 114, in publish
>>>>>     request, bind=1)
>>>>>   File "/usr/local/zope-2.8.8/lib/python/ZPublisher/mapply.py",  
>>>>> line
>>>>> 88, in mapply
>>>>>     if debug is not None: return debug(object,args,context)
>>>>>   File "/usr/local/zope-2.8.8/lib/python/ZPublisher/Publish.py",
>>>>> line
>>>>> 40, in call_object
>>>>>     result=apply(object,args) # Type s<cr> to step into published
>>>>> object.
>>>>>   File "/data/Zope/instance9a/Products/Silva/ExtensionService.py",
>>>>> line 105, in upgrade_all
>>>>>     self.get_root().upgrade_silva()
>>>>>   File "/data/Zope/instance9a/Products/Silva/Root.py", line 214,  
>>>>> in
>>>>> upgrade_silva
>>>>>     upgrade.registry.upgrade(self, from_version, to_version)
>>>>>   File "/data/Zope/instance9a/Products/Silva/upgrade.py", line  
>>>>> 172,
>>>>> in upgrade
>>>>>     self.upgradeTree(root, version)
>>>>>   File "/data/Zope/instance9a/Products/Silva/upgrade.py", line  
>>>>> 115,
>>>>> in upgradeTree
>>>>>     o = self.upgradeObject(o, version)
>>>>>   File "/data/Zope/instance9a/Products/Silva/upgrade.py", line 93,
>>>>> in
>>>>> upgradeObject
>>>>>     obj = upgrader.upgrade(obj)
>>>>>   File "/data/Zope/instance9a/Products/Silva/upgrade_160.py", line
>>>>> 106, in upgrade
>>>>>     obj.index_object()
>>>>>   File "/usr/local/zope-2.8.8/lib/python/Products/ZCatalog/
>>>>> CatalogPathAwareness.py", line 99, in index_object
>>>>>     self.default_catalog).catalog_object(self, self.getPath())
>>>>>   File "/usr/local/zope-2.8.8/lib/python/Products/ZCatalog/
>>>>> ZCatalog.py", line 567, in catalog_object
>>>>>     update_metadata=update_metadata)
>>>>>   File "/usr/local/zope-2.8.8/lib/python/Products/ZCatalog/
>>>>> Catalog.py", line 360, in catalogObject
>>>>>     blah = x.index_object(index, object, threshold)
>>>>>   File "/data/Zope/instance9b/Products/ProxyIndex/ProxyIndex.py",
>>>>> line 156, in index_object
>>>>>     return index_object(documentId, wrapper, threshold)
>>>>>   File "/usr/local/zope-2.8.8/lib/python/Products/PluginIndexes/
>>>>> TextIndex/TextIndex.py", line 313, in index_object
>>>>>     for word in list(splitter(source,encoding=encoding)):
>>>>>   File "/usr/local/zope-2.8.8/lib/python/Products/PluginIndexes/
>>>>> TextIndex/Lexicon.py", line 167, in Splitter
>>>>>     return self.SplitterFunc(astring, words)
>>>>> UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019'
>>>>> in
>>>>> position 91: ordinal not in range(128)
>>>>>
>>>>> I'm not sure which object is causing it.  Any ideas how we can  
>>>>> find
>>>>> it?
>>>>>
>>>>> david
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> =========
>>>>> David Gillies
>>>>> Web Support Officer
>>>>> Web Services
>>>>> =========
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> silva-general mailing list
>>>>> silva-general at lists.infrae.com
>>>>> https://lists.infrae.com/mailman/listinfo/silva-general
>>>>
>>>> --
>>>> Kit BLAKE · Infrae · http://infrae.com/ + 31 10 243 7051
>>>>
>>>>
>>>> _______________________________________________
>>>> silva-general mailing list
>>>> silva-general at lists.infrae.com
>>>> https://lists.infrae.com/mailman/listinfo/silva-general
>>>>
>>>>
>>>
>>> _______________________________________________
>>> silva-general mailing list
>>> silva-general at lists.infrae.com
>>> https://lists.infrae.com/mailman/listinfo/silva-general
>>
>> --
>> Kit BLAKE · Infrae · http://infrae.com/ + 31 10 243 7051
>>
>>
>> _______________________________________________
>> silva-general mailing list
>> silva-general at lists.infrae.com
>> https://lists.infrae.com/mailman/listinfo/silva-general
>>
>>




More information about the silva-general mailing list