[ckan-pt] CKAN internal server error 500

Rodrigo Rafael Varela rodrigorafaelvarela gmail.com
Segunda-Feira, 5 de Outubro de 2015 - 13:22:40 UTC


Olá,

Meu nome é Rodrigo eu instalei o ckan 2.4 no ubuntu 14.04 e quando tento
inserir ou visualizar os dados dá o erro.

Verifiquei e pesquisei os erros no log do ckan e não achei nenhuma solução:

Error - <class 'ckan.lib.search.common.SearchError'>: SOLR returned an
error running query: {'sort': 'score desc, metadata_modified desc', 'fq':
[u'groups:"meu-teste" capacity:"public" +site_id:"default" +state:active'],
'facet.mincount': 1, 'rows': 0, 'facet': u'false', 'facet.limit': '50',
'wt': 'json', 'q': '*:*', 'fl': 'id validated_data_dict'} Error: 'Not Found'
URL: http://150.162.6.39:5000/group
File '/usr/local/lib/python2.7/dist-packages/weberror/errormiddleware.py',
line 162 in __call__
  app_iter = self.application(environ, sr_checker)
File '/usr/local/lib/python2.7/dist-packages/webob/dec.py', line 147 in
__call__
  resp = self.call_func(req, *args, **self.kwargs)
File '/usr/local/lib/python2.7/dist-packages/webob/dec.py', line 208 in
call_func
  return self.func(req, *args, **kwargs)
File '/usr/local/lib/python2.7/dist-packages/fanstatic/publisher.py', line
234 in __call__
  return request.get_response(self.app)
File '/usr/local/lib/python2.7/dist-packages/webob/request.py', line 1053
in get_response
  application, catch_exc_info=False)
File '/usr/local/lib/python2.7/dist-packages/webob/request.py', line 1022
in call_application
  app_iter = application(self.environ, start_response)
File '/usr/local/lib/python2.7/dist-packages/webob/dec.py', line 147 in
__call__
  resp = self.call_func(req, *args, **self.kwargs)
File '/usr/local/lib/python2.7/dist-packages/webob/dec.py', line 208 in
call_func
  return self.func(req, *args, **kwargs)
File '/usr/local/lib/python2.7/dist-packages/fanstatic/injector.py', line
54 in __call__
  response = request.get_response(self.app)
File '/usr/local/lib/python2.7/dist-packages/webob/request.py', line 1053
in get_response
  application, catch_exc_info=False)
File '/usr/local/lib/python2.7/dist-packages/webob/request.py', line 1022
in call_application
  app_iter = application(self.environ, start_response)
File '/usr/lib/ckan/default/src/ckan/ckan/config/middleware.py', line 389
in inner
  result = application(environ, start_response)
File '/usr/local/lib/python2.7/dist-packages/beaker/middleware.py', line 73
in __call__
  return self.app(environ, start_response)
File '/usr/local/lib/python2.7/dist-packages/beaker/middleware.py', line
155 in __call__
  return self.wrap_app(environ, session_start_response)
File '/usr/local/lib/python2.7/dist-packages/routes/middleware.py', line
131 in __call__
  response = self.app(environ, start_response)
File '/usr/local/lib/python2.7/dist-packages/pylons/wsgiapp.py', line 125
in __call__
  response = self.dispatch(controller, environ, start_response)
File '/usr/local/lib/python2.7/dist-packages/pylons/wsgiapp.py', line 324
in dispatch
  return controller(environ, start_response)
File '/usr/lib/ckan/default/src/ckan/ckan/lib/base.py', line 338 in __call__
  res = WSGIController.__call__(self, environ, start_response)
File '/usr/local/lib/python2.7/dist-packages/pylons/controllers/core.py',
line 221 in __call__
  response = self._dispatch_call()
File '/usr/local/lib/python2.7/dist-packages/pylons/controllers/core.py',
line 172 in _dispatch_call
  response = self._inspect_call(func)
File '/usr/local/lib/python2.7/dist-packages/pylons/controllers/core.py',
line 107 in _inspect_call
  result = self._perform_call(func, args)
File '/usr/local/lib/python2.7/dist-packages/pylons/controllers/core.py',
line 60 in _perform_call
  return func(**args)
File '/usr/lib/ckan/default/src/ckan/ckan/controllers/group.py', line 173
in index
  results = self._action('group_list')(context, data_dict)
File '/usr/lib/ckan/default/src/ckan/ckan/logic/__init__.py', line 429 in
wrapped
  result = _action(context, data_dict, **kw)
File '/usr/lib/ckan/default/src/ckan/ckan/logic/action/get.py', line 468 in
group_list
  return _group_or_org_list(context, data_dict)
File '/usr/lib/ckan/default/src/ckan/ckan/logic/action/get.py', line 423 in
_group_or_org_list
  group_list.append(logic.get_action(action)(context, data_dict))
File '/usr/lib/ckan/default/src/ckan/ckan/logic/__init__.py', line 429 in
wrapped
  result = _action(context, data_dict, **kw)
File '/usr/lib/ckan/default/src/ckan/ckan/logic/action/get.py', line 1216
in group_show
  return _group_or_org_show(context, data_dict)
File '/usr/lib/ckan/default/src/ckan/ckan/logic/action/get.py', line 1171
in _group_or_org_show
  packages_field=packages_field)
File
'/usr/lib/ckan/default/src/ckan/ckan/lib/dictization/model_dictize.py',
line 423 in group_dictize
  group, just_the_count=True)
File
'/usr/lib/ckan/default/src/ckan/ckan/lib/dictization/model_dictize.py',
line 414 in get_packages_for_this_group
  q)
File '/usr/lib/ckan/default/src/ckan/ckan/logic/__init__.py', line 429 in
wrapped
  result = _action(context, data_dict, **kw)
File '/usr/lib/ckan/default/src/ckan/ckan/logic/action/get.py', line 1771
in package_search
  query.run(data_dict)
File '/usr/lib/ckan/default/src/ckan/ckan/lib/search/query.py', line 364 in
run
  (query, e.reason))
SearchError: SOLR returned an error running query: {'sort': 'score desc,
metadata_modified desc', 'fq': [u'groups:"meu-teste" capacity:"public"
+site_id:"default" +state:active'], 'facet.mincount': 1, 'rows': 0,
'facet': u'false', 'facet.limit': '50', 'wt': 'json', 'q': '*:*', 'fl': 'id
validated_data_dict'} Error: 'Not Found'


CGI Variables
-------------
  AUTH_TYPE: 'cookie'
  CKAN_CURRENT_URL: '/group'
  CKAN_LANG: 'pt_BR'
  CONTENT_LENGTH: '0'
  CONTENT_TYPE: '; charset=utf-8'
  HTTP_ACCEPT:
'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'
  HTTP_ACCEPT_ENCODING: 'gzip, deflate, sdch'
  HTTP_ACCEPT_LANGUAGE: 'pt-BR,pt;q=0.8,en-US;q=0.6,en;q=0.4'
  HTTP_CONNECTION: 'keep-alive'
  HTTP_COOKIE: 'csrftoken=ttUjUc3VPDffbu4PYOKo94J7JpVsWIky;
sessionid=a346e4a1af00fc5d3bf7dcc2ff0c6c5b;
ckan=685bd3e01d5053e6b4d3b6109c4868bcc0e14291939098d6319d4d4c82b9a09f98c12e2c;
auth_tkt="bad59cfa9a84373ddee41a59b5480475561275b2rodrigo!userid_type:unicode"'
  HTTP_HOST: '150.162.6.39:5000'
  HTTP_REFERER: 'http://150.162.6.39:5000/pt_BR/organization'
  HTTP_UPGRADE_INSECURE_REQUESTS: '1'
  HTTP_USER_AGENT: 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36'
  PATH_INFO: '/group'
  REMOTE_ADDR: '150.162.82.50'
  REMOTE_USER: u'rodrigo'
  REMOTE_USER_DATA: 'userid_type:unicode'
  REMOTE_USER_TOKENS: ['']
  REQUEST_METHOD: 'GET'
  SERVER_NAME: '0.0.0.0'
  SERVER_PORT: '5000'
  SERVER_PROTOCOL: 'HTTP/1.1'


WSGI Variables
--------------
  application: <fanstatic.publisher.Delegator object at 0x7fc692d0f510>
  beaker.cache: <beaker.cache.CacheManager object at 0x7fc696bb4ad0>
  beaker.get_session: <bound method SessionMiddleware._get_session of
<beaker.middleware.SessionMiddleware object at 0x7fc696bede50>>
  beaker.session: {'_accessed_time': 1444050388.01296, '_creation_time':
1444044915.657035}
  fanstatic.needed: <fanstatic.core.NeededResources object at
0x7fc678b3a7d0>
  paste.cookies: (<SimpleCookie:
auth_tkt='bad59cfa9a84373ddee41a59b5480475561275b2rodrigo!userid_type:unicode'
ckan='685bd3e01d5053e6b4d3b6109c4868bcc0e14291939098d6319d4d4c82b9a09f98c12e2c'
csrftoken='ttUjUc3VPDffbu4PYOKo94J7JpVsWIky'
sessionid='a346e4a1af00fc5d3bf7dcc2ff0c6c5b'>,
'csrftoken=ttUjUc3VPDffbu4PYOKo94J7JpVsWIky;
sessionid=a346e4a1af00fc5d3bf7dcc2ff0c6c5b;
ckan=685bd3e01d5053e6b4d3b6109c4868bcc0e14291939098d6319d4d4c82b9a09f98c12e2c;
auth_tkt="bad59cfa9a84373ddee41a59b5480475561275b2rodrigo!userid_type:unicode"')
  paste.httpserver.thread_pool: <paste.httpserver.ThreadPool object at
0x7fc69bcbc690>
  paste.registry: <paste.registry.Registry object at 0x7fc678cb3d90>
  paste.throw_errors: True
  pylons.action_method: <bound method GroupController.index of
<ckan.controllers.group.GroupController object at 0x7fc678b3a4d0>>
  pylons.controller: <ckan.controllers.group.GroupController object at
0x7fc678b3a4d0>
  pylons.environ_config: {'session': 'beaker.session', 'cache':
'beaker.cache'}
  pylons.pylons: <pylons.util.PylonsContext object at 0x7fc678b3a5d0>
  pylons.routes_dict: {'action': u'index', 'controller': u'group'}
  repoze.who.api: <repoze.who.api.API object at 0x7fc678af95d0>
  repoze.who.identity: <repoze.who identity (hidden, dict-like) at
140490407990512>
  repoze.who.logger: <logging.Logger object at 0x7fc696c9c990>
  repoze.who.plugins:
{'ckan.lib.authenticator:UsernamePasswordAuthenticator':
<ckan.lib.authenticator.UsernamePasswordAuthenticator object at
0x7fc696bb4950>, 'friendlyform': <FriendlyFormPlugin 140490909107088>,
'auth_tkt': <CkanAuthTktCookiePlugin 140490909108752>}
  routes.route: <routes.route.Route object at 0x7fc692db06d0>
  routes.url: <routes.util.URLGenerator object at 0x7fc678b3a690>
  webob._parsed_query_vars: (GET([]), '')
  webob.adhoc_attrs: {'response': <Response at 0x7fc678b3a790 200 OK>,
'language': 'en-us'}
  wsgi process: 'Multithreaded'
  wsgiorg.routing_args: (<routes.util.URLGenerator object at
0x7fc678b3a690>, {'action': u'index', 'controller': u'group'})
------------------------------------------------------------
2015-10-05 10:06:28,082 INFO  [ckan.lib.base]  /group render time 0.066
seconds
2015-10-05 10:06:28,257 INFO  [ckan.lib.base]  /api/i18n/pt_BR render time
0.002 seconds
2015-10-05 10:06:32,910 INFO  [ckan.lib.base]  /user/_logout render time
0.007 seconds
2015-10-05 10:06:32,958 INFO  [ckan.lib.base]  /user/logged_out render time
0.007 seconds
2015-10-05 10:06:33,005 INFO  [ckan.lib.base]  /user/logged_out_redirect
render time 0.022 seconds
2015-10-05 10:06:33,193 INFO  [ckan.lib.base]  /api/i18n/pt_BR render time
0.002 seconds
2015-10-05 10:06:34,428 ERROR [ckan.controllers.package] Dataset search
error: ('SOLR returned an error running query: {\'sort\': \'score desc,
metadata_modified desc\', \'fq\': [u\'+dataset_type:dataset
capacity:"public" +state:active +site_id:"default"\'], \'facet.mincount\':
1, \'rows\': 21, \'facet.field\': [\'organization\', \'groups\', \'tags\',
\'res_format\', \'license_id\'], \'facet.limit\': \'50\', \'facet\':
\'true\', \'q\': \'*:*\', \'start\': 0, \'wt\': \'json\', \'fl\': \'id
validated_data_dict\'} Error: \'Not Found\'',)
2015-10-05 10:06:34,459 INFO  [ckan.lib.base]  /dataset render time 0.208
seconds
2015-10-05 10:06:34,656 INFO  [ckan.lib.base]  /api/i18n/pt_BR render time
0.002 seconds

Alguém poderia ajudar?

Atenciosamente.
-------------- próxima parte ----------
Um anexo em HTML foi limpo...
URL: <http://lists.okfn.org/pipermail/ckan-pt/attachments/20151005/db79e348/attachment-0002.html>


Mais informações acerca da lista ckan-pt