damalaga / ckanext-malaga

Málaga city council CKAN Extension
4 stars 2 forks source link

Ckan no arranca después de instalar y configurar el plugin #3

Closed jcballesteros closed 10 years ago

jcballesteros commented 10 years ago

Buenos días,

he seguido todos los pasos, y después de reiniciar apache2, ckan no arranca.

He mirado en los logs y aparece todo esto:

[Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] mod_wsgi (pid=3312): Target WSGI script '/etc/ckan/default/apache.wsgi' cannot be loaded as Python module. [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] mod_wsgi (pid=3312): Exception occurred processing WSGI script '/etc/ckan/default/apache.wsgi'. [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] Traceback (most recent call last): [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] File "/etc/ckan/default/apache.wsgi", line 10, in [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] application = loadapp('config:%s' % config_filepath) [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] return loadobj(APP, uri, name=name, _kw) [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 272, in loadobj [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] return context.create() [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] return self.object_type.invoke(self) [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 146, in invoke [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] return fix_call(context.object, context.global_conf, _context.local_conf) [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/util.py", line 56, in fix_call [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] val = callable(_args, _kw) [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/src/ckan/ckan/config/middleware.py", line 57, in make_app [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] load_environment(conf, app_conf) [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/src/ckan/ckan/config/environment.py", line 232, in load_environment [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] p.load_all(config) [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 134, in load_all [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] load(_plugins) [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 167, in load [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] plugins_update() [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 116, in plugins_update [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] environment.update_config() [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/src/ckan/ckan/config/environment.py", line 272, in update_config [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] routes_map = routing.make_map() [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/src/ckan/ckan/config/routing.py", line 98, in make_map [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] map = plugin.before_map(map) [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/src/ckanext-malaga/ckanext/malaga/plugin.py", line 120, in before_map [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] federador_response_config = config['ckan_mlg.federador_htmlresponse'] #loading htlm file response (include path) [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/registry.py", line 146, in getitem [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] return self._current_obj()[key] [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] KeyError: 'ckan_mlg.federador_htmlresponse' [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] mod_wsgi (pid=3312): Target WSGI script '/etc/ckan/default/apache.wsgi' cannot be loaded as Python module. [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] mod_wsgi (pid=3312): Exception occurred processing WSGI script '/etc/ckan/default/apache.wsgi'. [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] Traceback (most recent call last): [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] File "/etc/ckan/default/apache.wsgi", line 10, in [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] application = loadapp('config:%s' % config_filepath) [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] return loadobj(APP, uri, name=name, _kw) [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 272, in loadobj [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] return context.create() [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] return self.object_type.invoke(self) [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 146, in invoke [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] return fix_call(context.object, context.global_conf, _context.local_conf) [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/util.py", line 56, in fix_call [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] val = callable(_args, _kw) [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/src/ckan/ckan/config/middleware.py", line 57, in make_app [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] load_environment(conf, app_conf) [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/src/ckan/ckan/config/environment.py", line 232, in load_environment [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] p.load_all(config) [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 134, in load_all [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] load(_plugins) [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 167, in load [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] plugins_update() [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 116, in plugins_update [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] environment.update_config() [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/src/ckan/ckan/config/environment.py", line 272, in update_config [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] routes_map = routing.make_map() [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/src/ckan/ckan/config/routing.py", line 98, in make_map [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] map = plugin.before_map(map) [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/src/ckanext-malaga/ckanext/malaga/plugin.py", line 120, in before_map [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] federador_response_config = config['ckan_mlg.federador_htmlresponse'] #loading htlm file response (include path) [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/registry.py", line 146, in getitem [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] return self._current_obj()[key] [Thu Oct 30 09:47:25 2014] [error] [client 127.0.0.1] KeyError: 'ckan_mlg.federador_htmlresponse' [Thu Oct 30 09:47:26 2014] [error] [client 127.0.0.1] mod_wsgi (pid=3313): Target WSGI script '/etc/ckan/default/apache.wsgi' cannot be loaded as Python module. [Thu Oct 30 09:47:26 2014] [error] [client 127.0.0.1] mod_wsgi (pid=3313): Exception occurred processing WSGI script '/etc/ckan/default/apache.wsgi'. [Thu Oct 30 09:47:26 2014] [error] [client 127.0.0.1] Traceback (most recent call last): [Thu Oct 30 09:47:26 2014] [error] [client 127.0.0.1] File "/etc/ckan/default/apache.wsgi", line 10, in [Thu Oct 30 09:47:26 2014] [error] [client 127.0.0.1] application = loadapp('config:%s' % config_filepath) [Thu Oct 30 09:47:26 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp [Thu Oct 30 09:47:26 2014] [error] [client 127.0.0.1] return loadobj(APP, uri, name=name, _kw) [Thu Oct 30 09:47:26 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 272, in loadobj [Thu Oct 30 09:47:26 2014] [error] [client 127.0.0.1] return context.create() [Thu Oct 30 09:47:26 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create [Thu Oct 30 09:47:26 2014] [error] [client 127.0.0.1] return self.object_type.invoke(self) [Thu Oct 30 09:47:26 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 146, in invoke [Thu Oct 30 09:47:26 2014] [error] [client 127.0.0.1] return fix_call(context.object, context.global_conf, _context.local_conf) [Thu Oct 30 09:47:26 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/util.py", line 56, in fix_call [Thu Oct 30 09:47:26 2014] [error] [client 127.0.0.1] val = callable(_args, _kw) [Thu Oct 30 09:47:26 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/src/ckan/ckan/config/middleware.py", line 57, in make_app [Thu Oct 30 09:47:26 2014] [error] [client 127.0.0.1] load_environment(conf, app_conf) [Thu Oct 30 09:47:26 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/src/ckan/ckan/config/environment.py", line 232, in load_environment [Thu Oct 30 09:47:26 2014] [error] [client 127.0.0.1] p.load_all(config) [Thu Oct 30 09:47:26 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 134, in load_all [Thu Oct 30 09:47:26 2014] [error] [client 127.0.0.1] load(plugins) [Thu Oct 30 09:47:26 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 167, in load [Thu Oct 30 09:47:26 2014] [error] [client 127.0.0.1] plugins_update() [Thu Oct 30 09:47:26 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 116, in plugins_update [Thu Oct 30 09:47:26 2014] [error] [client 127.0.0.1] environment.update_config() [Thu Oct 30 09:47:26 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/src/ckan/ckan/config/environment.py", line 272, in update_config [Thu Oct 30 09:47:26 2014] [error] [client 127.0.0.1] routes_map = routing.make_map() [Thu Oct 30 09:47:26 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/src/ckan/ckan/config/routing.py", line 98, in make_map [Thu Oct 30 09:47:26 2014] [error] [client 127.0.0.1] map = plugin.before_map(map) [Thu Oct 30 09:47:26 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/src/ckanext-malaga/ckanext/malaga/plugin.py", line 120, in before_map [Thu Oct 30 09:47:26 2014] [error] [client 127.0.0.1] federador_response_config = config['ckan_mlg.federador_htmlresponse'] #loading htlm file response (include path) [Thu Oct 30 09:47:26 2014] [error] [client 127.0.0.1] File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/registry.py", line 146, in getitem [Thu Oct 30 09:47:26 2014] [error] [client 127.0.0.1] return self._current_obj()[key] [Thu Oct 30 09:47:26 2014] [error] [client 127.0.0.1] KeyError: 'ckan_mlg.federador_htmlresponse'

¿Sabéis por qué puede ser?

PD: si deshabilito el plugin CKAN funciona perfectamente.

damalaga commented 10 years ago

Añade esta línea en el fichero .ini ckan_mlg.federador_htmlresponse = #dejar vacío, desaparece en la siguiente version

y reinicia apache2

jcballesteros commented 10 years ago

Después de este cambio CKAN arranca y funciona correctamente.