[ckan-dev] problems upgrading to CKAN 2.2

Hildegard Gerlach hildegard.gerlach at jrc.ec.europa.eu
Wed Jan 29 18:36:54 UTC 2014


Yes, I wrote it in the beginning of the message but forgot to wrote it in the commands below. But yes, I have run it.

Hilde


On 29.01.2014, at 19:31, David Raznick <david.raznick at okfn.org> wrote:

Hello

Did you run

paster db upgrade

I would run it after python setup.py develop

David

On 29 January 2014 17:56, Hildegard Gerlach
<hildegard.gerlach at jrc.ec.europa.eu> wrote:
> Hello,
> 
> I started to upgrade a CKAN 2.1.1 version to 2.2. I did the paster db
> upgrade command.
> When I want to rebuild the search index I get the following error:
> 
> File
> "/usr/local/mtester.ies.jrc.it/pyenv/src/ckan/ckan/lib/dictization/model_dictize.py",
> line 329, in package_dictize
>    result_dict['metadata_modified'] = pkg.metadata_modified.isoformat()
> 
> I cannot see any data anymore on the CKAN Web site as the index is empty but
> the data is still in the database.
> It seems that there are 2 new fields in the table package: metadata_modified
> and creator_user_id
> 
> The value of metadata_modified  seems to be mostly empty in the database
> records which, I think, causes the error.
> 
> I tried as well to clean the database and reimport it (paster db clean,
> paster db load) and I get the same error again with the import. The database
> is already with the new fields as after the upgrade.
> 
> I had done the commands in the following order:
> 
> git checkout release-v2.2
> git pull
> paster db dump -c development.ini  ckantest_dump_28Jan14.sql
> pip install --upgrade -r requirements.txt
> python setup.py develop
> restart Tomcat and httpd
> paster search-index rebuild -r -c development.ini
> 
> Luckily this is a test version and I can restart with an empty database and
> reharvest data. But in production it seems difficult to dare upgrading.
> 
> Thanks
> 
> Hilde
> 
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
> 
_______________________________________________
ckan-dev mailing list
ckan-dev at lists.okfn.org
https://lists.okfn.org/mailman/listinfo/ckan-dev
Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev




More information about the ckan-dev mailing list