[ckan-dev] Server error with ckanext-usmetadata extension
Nigel Babu
nigel.babu at okfn.org
Tue May 20 03:51:05 UTC 2014
Have you tried talking to the authors of the extension?
Nigel Babu
Developer, Open Knowledge
On 19 May 2014 20:54, Pandya, Pradip <Pradip.Pandya at nist.gov> wrote:
> Hi,
>
> We have installed the usmetadata extension from
> https://github.com/GSA/USMetadata and followed the installation
> instructions on a CKAN 2.2 instance. The new fields in the common core
> metadata from this extension are displayed fine after the Add Datasets is
> selected. But we are getting an internal server error 500 when trying to
> add a dataset. All other functions appear to be working fine except adding
> the dataset. The CKAN2.2, apache2 and postgresql running on the same
> server.
>
> Here is the ckan_default.error.log displaying the error ‘Error - <type
> 'exceptions.AttributeError'>: as below after attempting to add the
> dataset:
>
> [Fri May 16 09:31:41 2014] [error] 2014-05-16 09:31:41,301 DEBUG
> [ckanext.usmetadata.plugin] show_package_schema called
>
> [Fri May 16 09:31:41 2014] [error] 2014-05-16 09:31:41,319 CRITI
> [ckan.logic] Action `user_followee_list` is being called directly all
> action calls should be accessed via logic.get_action
>
> [Fri May 16 09:31:41 2014] [error] 2014-05-16 09:31:41,325 CRITI
> [ckan.logic] Action `dataset_followee_list` is being called directly all
> action calls should be accessed via logic.get_action
>
> [Fri May 16 09:31:41 2014] [error] 2014-05-16 09:31:41,332 CRITI
> [ckan.logic] Action `group_followee_list` is being called directly all
> action calls should be accessed via logic.get_action
>
> [Fri May 16 09:31:41 2014] [error] 2014-05-16 09:31:41,339 CRITI
> [ckan.logic] Action `dashboard_activity_list` is being called directly all
> action calls should be accessed via logic.get_action
>
> [Fri May 16 09:31:41 2014] [error] 2014-05-16 09:31:41,529 INFO
> [ckan.lib.base] /dashboard render time 0.710 seconds
>
> [Fri May 16 09:31:41 2014] [error] 2014-05-16 09:31:41,657 INFO
> [ckan.lib.base] /api/i18n/en render time 0.002 seconds
>
> [Fri May 16 09:31:44 2014] [error] 2014-05-16 09:31:44,790 INFO
> [ckan.lib.base] /dataset render time 0.335 seconds
>
> [Fri May 16 09:31:44 2014] [error] 2014-05-16 09:31:44,929 INFO
> [ckan.lib.base] /api/i18n/en render time 0.002 seconds
>
> [Fri May 16 09:31:49 2014] [error] 2014-05-16 09:31:49,233 DEBUG
> [ckanext.usmetadata.plugin] Expected key ['extras'] not found, attempting
> to move common core keys to subdictionary
>
> [Fri May 16 09:31:49 2014] [error] 2014-05-16 09:31:49,233 DEBUG
> [ckanext.usmetadata.plugin] common core metadata: ['title', 'notes',
> 'public_access_level', 'publisher', 'contact_name', 'contact_email',
> 'unique_id', 'data_dictionary', 'endpoint', 'spatial', 'temporal',
> 'bureau_code', 'program_code', 'access_level_comment', 'modified',
> 'release_date', 'accrual_periodicity', 'language', 'data_quality',
> 'category', 'related_documents', 'homepage_url', 'rss_feed',
> 'system_of_records', 'system_of_records_none_related_to_this_dataset',
> 'primary_it_investment_uii']
>
> [Fri May 16 09:31:49 2014] [error] 2014-05-16 09:31:49,233 DEBUG
> [ckanext.usmetadata.plugin] checking key: labels
>
> [Fri May 16 09:31:49 2014] [error] 2014-05-16 09:31:49,233 DEBUG
> [ckanext.usmetadata.plugin] checking key: group_id
>
> [Fri May 16 09:31:49 2014] [error] 2014-05-16 09:31:49,234 DEBUG
> [ckanext.usmetadata.plugin] checking key: common_core
>
> [Fri May 16 09:31:49 2014] [error] 2014-05-16 09:31:49,436 INFO
> [ckan.lib.base] /dataset/new render time 0.370 seconds
>
> [Fri May 16 09:31:49 2014] [error] 2014-05-16 09:31:49,572 INFO
> [ckan.lib.base] /api/i18n/en render time 0.001 seconds
>
> [Fri May 16 09:32:42 2014] [error] 2014-05-16 09:32:42,282 DEBUG
> [ckanext.usmetadata.plugin] _create_package_schema called
>
> *[Fri May 16 09:32:42 2014] [error] [client 127.0.0.1] Error - <type
> 'exceptions.AttributeError'>: 'Missing' object has no attribute 'strip'*
>
> [Fri May 16 09:32:42 2014] [error] 2014-05-16 09:32:42,488 INFO
> [ckan.lib.base] /dataset/new render time 0.060 seconds
>
> [Fri May 16 09:32:42 2014] [error] 2014-05-16 09:32:42,595 INFO
> [ckan.lib.base] /api/i18n/en render time 0.001 seconds
>
>
>
> There is no issue in adding a dataset if we revert back to the original
> CKAN metadata schema after removing the ‘usmetadata’ from the
> “ckan.plugins” in the .ini file.
>
> Any suggestions?
>
> Thanks,
>
> Pradip
>
>
>
>
>
>
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140520/448302e6/attachment-0003.html>
More information about the ckan-dev
mailing list