[ckan-dev] problems upgrading to CKAN 2.2

Ivan vanzaj at gmail.com
Mon Feb 10 12:59:01 UTC 2014


Hello,

I'm having similar issues as Hildegard when trying to reload db dump
from 2.1.1 into 2.2a or 2.3a (current master tip).


$ paster db clean -c $inif
$ paster db load  /tmp/20140210_ckan-db-dump.sql -c $inif
...
Loaded CKAN database: /tmp/20140210_ckan-db-dump.sql
Upgrading DB
2014-02-10 06:56:20,731 INFO  [ckan.model] CKAN database version remains as: 71
Rebuilding search index
2014-02-10 06:56:20,784 INFO  [ckan.lib.search] Rebuilding search index...
2014-02-10 06:56:20,788 INFO  [ckan.lib.search] Rebuilding the whole index...
2014-02-10 06:56:20,832 ERROR [ckan.lib.search] Error while indexing
dataset ce2ff6c7-d75d-428c-a765-e0f6c7925848: 'NoneType' object has no
attribute 'isoformat'

<skip to last line>

  File "/srv/ckan-dex/testing/20140210_b377a50/ckan/lib/dictization/model_dictize.py",
line 329, in package_dictize
    result_dict['metadata_modified'] = pkg.metadata_modified.isoformat()
AttributeError: 'NoneType' object has no attribute 'isoformat'


I can do `db load-only` and `db update` and get users and
organizations in the new instance, but 0 datasets.  `search-index
rebuild` fails with the same error message as above.

db version on "2.1.1 ckan instance" is 71.
ckan.plugins = stats text_preview recline_preview datastore (on both
2.1.1 and 2.3a)


Thanks in advance for any help and suggestions.

- Ivan



More information about the ckan-dev mailing list