[ckan-dev] Sever error: An internal server error occurred
Kim Haklae
haklaekim at gmail.com
Tue Oct 9 08:34:05 UTC 2012
The previous error message is from a local server. And I tested a same code
in thedatahub.kr (currently using ip address), and then get a same error.
But the error code is different:
[Tue Oct 09 16:29:19 2012] [error] 2012-10-09 16:29:19,543 ERROR
[ckan.controllers.api] Format incorrect: Only lists of dicts can be placed
against subschema (u'resources',), not <type 'dict'> - {u'license':
u'Creative Commons Attribution Share-Alike', u'maintainer':
u'\\uc758\\uc57d\\ud488\\uc815\\ubcf4\\uc6b4\\uc601\\ubd80', u'name':
u'hira-or-kr-stat-1', u'isopen': True, u'tags': [u'2011',
u'\\uc644\\uc81c\\uc758\\uc57d\\ud488', u'\\uc720\\ud1b5\\uc815\\ubcf4',
u'\\ud1b5\\uacc4\\uc9d1'], u'url': u'
http://www.hira.or.kr/cms/information/05/03/01/1213191_13603.html',
u'title': u'2011 \\uc644\\uc81c\\uc758\\uc57d\\ud488
\\uc720\\ud1b5\\uc815\\ubcf4 \\ud1b5\\uacc4\\uc9d1', u'notes':
u'2011\\uc644\\uc81c\\uc758\\uc57d\\ud488\\uc720\\ud1b5\\uc815\\ubcf4\\ud1b5\\uacc4\\uc9d1\\uc218\\ub85d\\ub0b4\\uc6a9\\uc73c\\ub85c\\ub294\\uc758\\uc57d\\ud488\\uad00\\ub828\\uc77c\\ubc18\\ud604\\ud669\\ubc0f\\uc0dd\\uc0b0\\xb7\\uc218\\uc785\\uc2e4\\uc801\\uacf5\\uae09\\uc2e4\\uc801\\uc9c1\\uac70\\ub798\\ud604\\ud669\\ud488\\ubaa9\\ubcc4\\ud604\\ud669\\ub4f1\\ucd1d5\\uac1c\\ubd84\\uc57c\\ub85c\\uad6c\\ubd84\\ud558\\uc5ec\\ub0b4\\uc6a9\\uc744\\uc218\\ub85d\\ud558\\uc600\\uc2b5\\ub2c8\\ub2e4.\\ub9ce\\uc740\\uc774\\uc6a9\\ubc14\\ub78d\\ub2c8\\ub2e4.\\uae30\\ud0c0\\uad81\\uae08\\ud558\\uc2e0\\uc810\\uc740\\uc758\\uc57d\\ud488\\uad00\\ub9ac\\uc885\\ud569\\uc815\\ubcf4\\uc13c\\ud130\\uc758\\uc57d\\ud488\\uc815\\ubcf4\\uc6b4\\uc601\\ubd80(0221821604)\\ub85c\\uc5f0\\ub77d\\uc8fc\\uc2dc\\uae30\\ubc14\\ub78d\\ub2c8\\ub2e4',
u'author':
u'\\uac74\\uac15\\ubcf4\\ud5d8\\uc2ec\\uc0ac\\ud3c9\\uac00\\uc6d0',
u'extras': {u'\\uc6d0\\ubcf8\\ucd9c\\ucc98\\uc2dc\\uc2a4\\ud15c': u'
http://www.hira.or.kr', u'\\uacf5\\uac1c\\uc77c\\uc790': u'2012-09-12',
u'\\uc81c\\uacf5\\uae30\\uad00 URL': u'http://www.hira.or.kr',
u'\\ub2f4\\ub2f9\\ubd80\\uc11c':
u'\\uc758\\uc57d\\ud488\\uc815\\ubcf4\\uc6b4\\uc601\\ubd80',
u'\\ubd84\\ub958': u'\\ud1b5\\uacc4\\uc790\\ub8cc', u'\\uacf5\\uac1c
\\uc0c1\\ud0dc': u'\\uacf5\\uac1c', u'\\uc804\\ud654\\ubc88\\ud638':
u'\\uc815\\ucc45\\uc9c0\\uc6d0\\uc2e4
\\ud1b5\\uacc4\\uc815\\ubcf4\\uacf5\\uac1c\\ubd80(02-2182-2513),
\\uc758\\ub8cc\\uc790\\uc6d0\\uc2e4
\\uc790\\uc6d0\\uad00\\ub9ac\\ubd80(02-705-6951),
\\uc2ec\\uc0ac\\uae30\\ud68d\\uc2e4
\\uc758\\ub8cc\\uae09\\uc5ec\\uae30\\uc900\\ubd80(02-705-6508)',
u'\\uc81c\\uacf5\\uae30\\uad00':
u'\\uac74\\uac15\\ubcf4\\ud5d8\\uc2ec\\uc0ac\\ud3c9\\uac00\\uc6d0'},
u'licence_id': u'cc-by-sa', u'licence_url': u'
http://www.opendefinition.org/licenses/cc-by-sa', u'licence_title':
u'Creative Commons Attribution Share-Alike', u'resources': {u'url': u'
http://www.hira.or.kr/cms/information/05/03/01/__icsFiles/afieldfile/2012/09/12/drug_2011.pdf',
u'description':
u'2011\\uc644\\uc81c\\uc758\\uc57d\\ud488\\uc720\\ud1b5\\uc815\\ubcf4\\ud1b5\\uacc4\\uc9d1\\uc218\\ub85d\\ub0b4\\uc6a9\\uc73c\\ub85c\\ub294\\uc758\\uc57d\\ud488\\uad00\\ub828\\uc77c\\ubc18\\ud604\\ud669\\ubc0f\\uc0dd\\uc0b0\\xb7\\uc218\\uc785\\uc2e4\\uc801\\uacf5\\uae09\\uc2e4\\uc801\\uc9c1\\uac70\\ub798\\ud604\\ud669\\ud488\\ubaa9\\ubcc4\\ud604\\ud669\\ub4f1\\ucd1d5\\uac1c\\ubd84\\uc57c\\ub85c\\uad6c\\ubd84\\ud558\\uc5ec\\ub0b4\\uc6a9\\uc744\\uc218\\ub85d\\ud558\\uc600\\uc2b5\\ub2c8\\ub2e4.\\ub9ce\\uc740\\uc774\\uc6a9\\ubc14\\ub78d\\ub2c8\\ub2e4.\\uae30\\ud0c0\\uad81\\uae08\\ud558\\uc2e0\\uc810\\uc740\\uc758\\uc57d\\ud488\\uad00\\ub9ac\\uc885\\ud569\\uc815\\ubcf4\\uc13c\\ud130\\uc758\\uc57d\\ud488\\uc815\\ubcf4\\uc6b4\\uc601\\ubd80(0221821604)\\ub85c\\uc5f0\\ub77d\\uc8fc\\uc2dc\\uae30\\ubc14\\ub78d\\ub2c8\\ub2e4',
u'name': u'2011_\\uc644\\uc81c\\uc758\\uc57d\\ud488
\\uc720\\ud1b5\\uc815\\ubcf4 \\ud1b5\\uacc4\\uc9d1', u'format': u'xls, hwp,
pdf'}}
[Tue Oct 09 16:29:46 2012] [error] 2012-10-09 16:29:46,930 ERROR
[ckan.controllers.api] Format incorrect: Only lists of dicts can be placed
against subschema (u'resources',), not <type 'dict'> - {u'license':
u'Creative Commons Attribution Share-Alike', u'maintainer':
u'\\uc5f0\\uad6c\\uae30\\ud68d\\ud1b5\\uacc4\\ubd80', u'name':
u'hira-or-kr-stat-12', u'isopen': True, u'tags': [u'2011\\ub144',
u'14\\ubd84\\uae30', u'\\uc9c4\\ub8cc\\ube44\\ud1b5\\uacc4\\uc9c0\\ud45c'],
u'url': u'http://www.hira.or.kr/cms/information/05/03/01/1206225_13603.html',
u'title': u'2011\\ub144 1/4\\ubd84\\uae30
\\uc9c4\\ub8cc\\ube44\\ud1b5\\uacc4\\uc9c0\\ud45c', u'notes':
u'2011\\ub14414\\ubd84\\uae30(2011\\ub1441\\uc6d43\\uc6d4\\ub204\\uc801\\uc2ec\\uc0ac\\uacb0\\uc815\\uae30\\uc900)\\uac74\\uac15\\ubcf4\\ud5d8\\ubc0f\\uc758\\ub8cc\\uae09\\uc5ec\\uc5d0\\ub300\\ud55c\\uc694\\uc591\\uae09\\uc5ec\\uc2e4\\uc801\\uc744\\uc218\\ub85d\\ud55c\\uc9c4\\ub8cc\\ube44\\ud1b5\\uacc4\\uc9c0\\ud45c\\uc785\\ub2c8\\ub2e4.\\uc790\\ub8cc\\uad6c\\uc131\\ubc0f\\ubb38\\uc758\\uc548\\ub0b4\\uc77c\\ubc18\\ud604\\ud669\\uac1c\\uc694(\\ud55c\\uae00\\ud30c\\uc77c):\\uc5f0\\uad6c\\uc870\\uc815\\uc2e4\\uc5f0\\uad6c\\uae30\\ud68d\\ud1b5\\uacc4\\ubd80(0221822516)\\uc694\\uc591\\uae30\\uad00\\ud604\\ud669:\\uc790\\uc6d0\\ud3c9\\uac00\\uc2e4\\uc790\\uc6d0\\uad00\\ub9ac\\ubd80(0221828604)\\uc694\\uc591\\uae30\\uad00\\uc885\\ubcc4\\uc778\\ub825\\ud604\\ud669\\ub4f1:\\uc758\\ub8cc\\uc790\\uc6d0\\uc2e4\\uc790\\uc6d0\\uad00\\ub9ac\\ubd80(0221828604)\\uc2ec\\uc0ac\\uc2e4\\uc801\\uac74\\uac15\\ubcf4\\ud5d8:\\uc5f0\\uad6c\\uc870\\uc815\\uc2e4\\uc5f0\\uad6c\\uae30\\ud68d\\ud1b5\\uacc4\\ubd80(0221822516)\\uc758\\ub8cc\\uae09\\uc5ec:\\uc2ec\\uc0ac2\\uc2e4\\uc758\\ub8cc\\uae09\\uc5ec\\uad00\\ub9ac\\ubd80(027056508)\\ub9ce\\uc740\\uc774\\uc6a9\\ubc14\\ub78d\\ub2c8\\ub2e4.\\uae30\\ud0c0\\uad81\\uae08\\ud558\\uc2e0\\uc810\\uc740\\uc5f0\\uad6c\\uc870\\uc815\\uc2e4\\uc5f0\\uad6c\\uae30\\ud68d\\ud1b5\\uacc4\\ubd80(0221822516)\\uc73c\\ub85c\\uc5f0\\ub77d\\uc8fc\\uc2dc\\uae30\\ubc14\\ub78d\\ub2c8\\ub2e4.',
u'author':
u'\\uac74\\uac15\\ubcf4\\ud5d8\\uc2ec\\uc0ac\\ud3c9\\uac00\\uc6d0',
u'extras': {u'\\uc6d0\\ubcf8\\ucd9c\\ucc98\\uc2dc\\uc2a4\\ud15c': u'
http://www.hira.or.kr', u'\\uacf5\\uac1c\\uc77c\\uc790': u'2011-06-09',
u'\\uc81c\\uacf5\\uae30\\uad00 URL': u'http://www.hira.or.kr',
u'\\ub2f4\\ub2f9\\ubd80\\uc11c':
u'\\uc5f0\\uad6c\\uae30\\ud68d\\ud1b5\\uacc4\\ubd80', u'\\ubd84\\ub958':
u'\\ud1b5\\uacc4\\uc790\\ub8cc', u'\\uacf5\\uac1c \\uc0c1\\ud0dc':
u'\\uacf5\\uac1c', u'\\uc804\\ud654\\ubc88\\ud638':
u'\\uc815\\ucc45\\uc9c0\\uc6d0\\uc2e4
\\ud1b5\\uacc4\\uc815\\ubcf4\\uacf5\\uac1c\\ubd80(02-2182-2513),
\\uc758\\ub8cc\\uc790\\uc6d0\\uc2e4
\\uc790\\uc6d0\\uad00\\ub9ac\\ubd80(02-705-6951),
\\uc2ec\\uc0ac\\uae30\\ud68d\\uc2e4
\\uc758\\ub8cc\\uae09\\uc5ec\\uae30\\uc900\\ubd80(02-705-6508)',
u'\\uc81c\\uacf5\\uae30\\uad00':
u'\\uac74\\uac15\\ubcf4\\ud5d8\\uc2ec\\uc0ac\\ud3c9\\uac00\\uc6d0'},
u'licence_id': u'cc-by-sa', u'licence_url': u'
http://www.opendefinition.org/licenses/cc-by-sa', u'licence_title':
u'Creative Commons Attribution Share-Alike', u'resources': {u'url': u'
http://www.hira.or.kr/cms/information/05/03/01/__icsFiles/afieldfile/2011/07/05/1_data_201141.xls',
u'description':
u'2011\\ub14414\\ubd84\\uae30(2011\\ub1441\\uc6d43\\uc6d4\\ub204\\uc801\\uc2ec\\uc0ac\\uacb0\\uc815\\uae30\\uc900)\\uac74\\uac15\\ubcf4\\ud5d8\\ubc0f\\uc758\\ub8cc\\uae09\\uc5ec\\uc5d0\\ub300\\ud55c\\uc694\\uc591\\uae09\\uc5ec\\uc2e4\\uc801\\uc744\\uc218\\ub85d\\ud55c\\uc9c4\\ub8cc\\ube44\\ud1b5\\uacc4\\uc9c0\\ud45c\\uc785\\ub2c8\\ub2e4.\\uc790\\ub8cc\\uad6c\\uc131\\ubc0f\\ubb38\\uc758\\uc548\\ub0b4\\uc77c\\ubc18\\ud604\\ud669\\uac1c\\uc694(\\ud55c\\uae00\\ud30c\\uc77c):\\uc5f0\\uad6c\\uc870\\uc815\\uc2e4\\uc5f0\\uad6c\\uae30\\ud68d\\ud1b5\\uacc4\\ubd80(0221822516)\\uc694\\uc591\\uae30\\uad00\\ud604\\ud669:\\uc790\\uc6d0\\ud3c9\\uac00\\uc2e4\\uc790\\uc6d0\\uad00\\ub9ac\\ubd80(0221828604)\\uc694\\uc591\\uae30\\uad00\\uc885\\ubcc4\\uc778\\ub825\\ud604\\ud669\\ub4f1:\\uc758\\ub8cc\\uc790\\uc6d0\\uc2e4\\uc790\\uc6d0\\uad00\\ub9ac\\ubd80(0221828604)\\uc2ec\\uc0ac\\uc2e4\\uc801\\uac74\\uac15\\ubcf4\\ud5d8:\\uc5f0\\uad6c\\uc870\\uc815\\uc2e4\\uc5f0\\uad6c\\uae30\\ud68d\\ud1b5\\uacc4\\ubd80(0221822516)\\uc758\\ub8cc\\uae09\\uc5ec:\\uc2ec\\uc0ac2\\uc2e4\\uc758\\ub8cc\\uae09\\uc5ec\\uad00\\ub9ac\\ubd80(027056508)\\ub9ce\\uc740\\uc774\\uc6a9\\ubc14\\ub78d\\ub2c8\\ub2e4.\\uae30\\ud0c0\\uad81\\uae08\\ud558\\uc2e0\\uc810\\uc740\\uc5f0\\uad6c\\uc870\\uc815\\uc2e4\\uc5f0\\uad6c\\uae30\\ud68d\\ud1b5\\uacc4\\ubd80(0221822516)\\uc73c\\ub85c\\uc5f0\\ub77d\\uc8fc\\uc2dc\\uae30\\ubc14\\ub78d\\ub2c8\\ub2e4.',
u'name': u'\\ud1b5\\uacc4\\ud45c_201141', u'format': u'xls, hwp, pdf'}}
[Tue Oct 09 16:39:49 2012] [error]
/usr/lib/pymodules/python2.6/ckan/controllers/group.py:221:
DeprecationWarning: pylons.c is deprecated. Your project should import
pylons.tmpl_context as cinstead:
[Tue Oct 09 16:39:49 2012] [error]
[Tue Oct 09 16:39:49 2012] [error] Before:
[Tue Oct 09 16:39:49 2012] [error] from pylons import c
[Tue Oct 09 16:39:49 2012] [error]
[Tue Oct 09 16:39:49 2012] [error] After:
[Tue Oct 09 16:39:49 2012] [error] from pylons import tmpl_context as c
[Tue Oct 09 16:39:49 2012] [error]
[Tue Oct 09 16:39:49 2012] [error] 'user': c.user or c.author,
'extras_as_string': True,
[Tue Oct 09 16:39:49 2012] [error]
/usr/lib/pymodules/python2.6/ckan/controllers/group.py:296:
DeprecationWarning: pylons.c is deprecated. Your project should import
pylons.tmpl_context as cinstead:
[Tue Oct 09 16:39:49 2012] [error]
[Tue Oct 09 16:39:49 2012] [error] Before:
[Tue Oct 09 16:39:49 2012] [error] from pylons import c
[Tue Oct 09 16:39:49 2012] [error]
[Tue Oct 09 16:39:49 2012] [error] After:
[Tue Oct 09 16:39:49 2012] [error] from pylons import tmpl_context as c
[Tue Oct 09 16:39:49 2012] [error]
[Tue Oct 09 16:39:49 2012] [error] data_dict['users'] = [{'name': c.user,
'capacity': 'admin'}]
Best,
Haklae
On Tue, Oct 9, 2012 at 5:22 PM, Kim Haklae <haklaekim at gmail.com> wrote:
> Hi,
>
> When I try to upload datasets using API (java), an error is occurred -"An
> internal server error occurred".
> This is a part of error message from Apache.
> .....
> [Thu Oct 04 17:32:56 2012] [error]
> /usr/lib/pymodules/python2.6/formalchemy/forms.py:49: SADeprecationWarning:
> compile_mappers() is renamed to configure_mappers()
> [Thu Oct 04 17:32:56 2012] [error] compile_mappers() # initializes
> InstrumentedAttributes
> [Thu Oct 04 17:32:56 2012] [error]
> /usr/lib/pymodules/python2.6/ckan/lib/base.py:202: DeprecationWarning:
> pylons.c is deprecated. Your project should import pylons.tmpl_context as
> cinstead:
> [Thu Oct 04 17:32:56 2012] [error]
> [Thu Oct 04 17:32:56 2012] [error] Before:
> [Thu Oct 04 17:32:56 2012] [error] from pylons import c
> [Thu Oct 04 17:32:56 2012] [error]
> [Thu Oct 04 17:32:56 2012] [error] After:
> [Thu Oct 04 17:32:56 2012] [error] from pylons import tmpl_context as c
> [Thu Oct 04 17:32:56 2012] [error]
> [Thu Oct 04 17:32:56 2012] [error] c.userobj =
> self._get_user_for_apikey()
> [Thu Oct 04 17:32:56 2012] [error]
> /usr/lib/pymodules/python2.6/ckan/lib/base.py:203: DeprecationWarning:
> pylons.c is deprecated. Your project should import pylons.tmpl_context as
> cinstead:
> [Thu Oct 04 17:32:56 2012] [error]
> [Thu Oct 04 17:32:56 2012] [error] Before:
> [Thu Oct 04 17:32:56 2012] [error] from pylons import c
> [Thu Oct 04 17:32:56 2012] [error]
> [Thu Oct 04 17:32:56 2012] [error] After:
> [Thu Oct 04 17:32:56 2012] [error] from pylons import tmpl_context as c
> [Thu Oct 04 17:32:56 2012] [error]
> [Thu Oct 04 17:32:56 2012] [error] if c.userobj is not None:
> [Thu Oct 04 17:32:56 2012] [error]
> /usr/lib/pymodules/python2.6/ckan/lib/base.py:204: DeprecationWarning:
> pylons.c is deprecated. Your project should import pylons.tmpl_context as
> cinstead:
> [Thu Oct 04 17:32:56 2012] [error]
> [Thu Oct 04 17:32:56 2012] [error] Before:
> [Thu Oct 04 17:32:56 2012] [error] from pylons import c
> [Thu Oct 04 17:32:56 2012] [error]
> [Thu Oct 04 17:32:56 2012] [error] After:
> [Thu Oct 04 17:32:56 2012] [error] from pylons import tmpl_context as c
> [Thu Oct 04 17:32:56 2012] [error]
> [Thu Oct 04 17:32:56 2012] [error] c.user = c.userobj.name
> [Thu Oct 04 17:32:56 2012] [error]
> /usr/lib/pymodules/python2.6/ckan/controllers/api.py:53:
> DeprecationWarning: pylons.c is deprecated. Your project should import
> pylons.tmpl_context as cinstead:
> [Thu Oct 04 17:32:56 2012] [error]
> [Thu Oct 04 17:32:56 2012] [error] Before:
> [Thu Oct 04 17:32:56 2012] [error] from pylons import c
> [Thu Oct 04 17:32:56 2012] [error]
> [Thu Oct 04 17:32:56 2012] [error] After:
> [Thu Oct 04 17:32:56 2012] [error] from pylons import tmpl_context as c
> [Thu Oct 04 17:32:56 2012] [error]
> [Thu Oct 04 17:32:56 2012] [error] context = {'model':model,'user':
> c.user or c.author}
> [Thu Oct 04 17:32:56 2012] [error]
> /usr/lib/pymodules/python2.6/ckan/controllers/api.py:305:
> DeprecationWarning: pylons.c is deprecated. Your project should import
> pylons.tmpl_context as cinstead:
> [Thu Oct 04 17:32:56 2012] [error]
> [Thu Oct 04 17:32:56 2012] [error] Before:
> [Thu Oct 04 17:32:56 2012] [error] from pylons import c
> [Thu Oct 04 17:32:56 2012] [error]
> [Thu Oct 04 17:32:56 2012] [error] After:
> [Thu Oct 04 17:32:56 2012] [error] from pylons import tmpl_context as c
> [Thu Oct 04 17:32:56 2012] [error]
> [Thu Oct 04 17:32:56 2012] [error] context = {'model': model, 'session':
> model.Session, 'user': c.user,
>
> With thanks,
> Haklae
>
>
> --
> Dr.Dr. Haklae Kim
> Semantic Web and Open Data Hacker
> http://thedatahub.kr
> http://getthedata.kr
> http://blogweb.co.kr
> Tel: +82-(0)10-3201-0714
> Who's Who in the World's 27th Edition - 2010
> IBC 2000 Outstanding Scientists - 2010
>
>
--
Dr.Dr. Haklae Kim
Semantic Web and Open Data Hacker
http://thedatahub.kr
http://getthedata.kr
http://blogweb.co.kr
Tel: +82-(0)10-3201-0714
Who's Who in the World's 27th Edition - 2010
IBC 2000 Outstanding Scientists - 2010
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20121009/47880dcd/attachment-0001.html>
More information about the ckan-dev
mailing list