[ckan-dev] spatial - csw server error

Ryan Maine balrogmi at msn.com
Thu Jul 18 16:07:27 UTC 2013


Hi all,

I've just set up spatial extension in CKAN 2.0. It seems that works
perfectly, congratulations to the CKAN community. You're doing a great
job guys!! But I'm having problems with CSW server.

GetCapabilities query works fine
csw?request=GetCapabilities&service=CSW

GetRecord query returns a "Server Error. An internal server error occurred"
csw?request=GetCapabilities&service=CSW

The log shows:

[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1] Error - <type
'exceptions.KeyError'>: 'elementSetName'
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1] URL:
http://127.0.0.1.eu-west-1.compute.amazonaws.com/csw?request=GetRecords&service=CSW
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1] File
'/usr/lib/ckan/default/lib/python2.7/site-packages/weberror/errormiddleware.py',
line 162 in __call__
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1]   app_iter =
self.application(environ, sr_checker)
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1] File
'/usr/lib/ckan/default/lib/python2.7/site-packages/webob/dec.py', line
147 in __call__
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1]   resp =
self.call_func(req, *args, **self.kwargs)
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1] File
'/usr/lib/ckan/default/lib/python2.7/site-packages/webob/dec.py', line
208 in call_func
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1]   return
self.func(req, *args, **kwargs)
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1] File
'/usr/lib/ckan/default/lib/python2.7/site-packages/fanstatic/publisher.py',
line 234 in __call__
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1]   return
request.get_response(self.app)
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1] File
'/usr/lib/ckan/default/lib/python2.7/site-packages/webob/request.py',
line 1053 in get_response
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1]   application,
catch_exc_info=False)
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1] File
'/usr/lib/ckan/default/lib/python2.7/site-packages/webob/request.py',
line 1022 in call_application
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1]   app_iter =
application(self.environ, start_response)
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1] File
'/usr/lib/ckan/default/lib/python2.7/site-packages/webob/dec.py', line
147 in __call__
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1]   resp =
self.call_func(req, *args, **self.kwargs)
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1] File
'/usr/lib/ckan/default/lib/python2.7/site-packages/webob/dec.py', line
208 in call_func
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1]   return
self.func(req, *args, **kwargs)
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1] File
'/usr/lib/ckan/default/lib/python2.7/site-packages/fanstatic/injector.py',
line 54 in __call__
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1]   response =
request.get_response(self.app)
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1] File
'/usr/lib/ckan/default/lib/python2.7/site-packages/webob/request.py',
line 1053 in get_response
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1]   application,
catch_exc_info=False)
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1] File
'/usr/lib/ckan/default/lib/python2.7/site-packages/webob/request.py',
line 1022 in call_application
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1]   app_iter =
application(self.environ, start_response)
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1] File
'/usr/lib/ckan/default/lib/python2.7/site-packages/beaker/middleware.py',
line 73 in __call__
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1]   return
self.app(environ, start_response)
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1] File
'/usr/lib/ckan/default/lib/python2.7/site-packages/beaker/middleware.py',
line 155 in __call__
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1]   return
self.wrap_app(environ, session_start_response)
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1] File
'/usr/lib/ckan/default/lib/python2.7/site-packages/routes/middleware.py',
line 131 in __call__
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1]   response =
self.app(environ, start_response)
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1] File
'/usr/lib/ckan/default/lib/python2.7/site-packages/pylons/wsgiapp.py',
line 125 in __call__
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1]   response =
self.dispatch(controller, environ, start_response)
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1] File
'/usr/lib/ckan/default/lib/python2.7/site-packages/pylons/wsgiapp.py',
line 324 in dispatch
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1]   return
controller(environ, start_response)
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1] File
'/usr/lib/ckan/default/src/ckan/ckan/lib/base.py', line 289 in
__call__
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1]   res =
WSGIController.__call__(self, environ, start_response)
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1] File
'/usr/lib/ckan/default/lib/python2.7/site-packages/pylons/controllers/core.py',
line 221 in __call__
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1]   response =
self._dispatch_call()
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1] File
'/usr/lib/ckan/default/lib/python2.7/site-packages/pylons/controllers/core.py',
line 172 in _dispatch_call
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1]   response =
self._inspect_call(func)
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1] File
'/usr/lib/ckan/default/lib/python2.7/site-packages/pylons/controllers/core.py',
line 107 in _inspect_call
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1]   result =
self._perform_call(func, args)
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1] File
'/usr/lib/ckan/default/lib/python2.7/site-packages/pylons/controllers/core.py',
line 60 in _perform_call
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1]   return func(**args)
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1] File
'/usr/lib/ckan/default/src/ckanext-spatial/ckanext/spatial/controllers/csw.py',
line 92 in dispatch_get
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1]   return
ops[req["request"]](req)
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1] File
'/usr/lib/ckan/default/src/ckanext-spatial/ckanext/spatial/controllers/csw.py',
line 381 in GetRecords
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1]   "elementSet":
req["elementSetName"], # we lie here. it's always really "full"
[Thu Jul 18 15:46:20 2013] [error] [client 127.0.0.1] KeyError: 'elementSetName'

What's "elementSetName"?

Thanks in advance
Regards




More information about the ckan-dev mailing list