[ckan-dev] CKan Site Down

Jeff Socia JSocia at drcog.org
Mon Jul 28 15:39:09 UTC 2014


Hello Everyone,

Our Ckan site is currently down. There are no recent changes that we are aware of. We've tried restarting Apache and the server without any resolve. Here is the pattern that seems to repeat in the error logs. Any help diagnosing the source of the issue would be greatly appreciated:

[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1] mod_wsgi (pid=1809): Target WSGI script '/etc/ckan/default/apache.wsgi' cannot be loaded as Python module.
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1] mod_wsgi (pid=1809): Exception occurred processing WSGI script '/etc/ckan/default/apache.wsgi'.
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1] Traceback (most recent call last):
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]   File "/etc/ckan/default/apache.wsgi", line 10, in <module>
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     application = loadapp('config:%s' % config_filepath)
[Mon Jul 28 09:28:51 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
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     return loadobj(APP, uri, name=name, **kw)
[Mon Jul 28 09:28:51 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
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     return context.create()
[Mon Jul 28 09:28:51 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
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     return self.object_type.invoke(self)
[Mon Jul 28 09:28:51 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
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     return fix_call(context.object, context.global_conf, **context.local_conf)
[Mon Jul 28 09:28:51 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
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     val = callable(*args, **kw)
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]   File "/usr/lib/ckan/default/src/ckan/ckan/config/middleware.py", line 57, in make_app
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     load_environment(conf, app_conf)
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]   File "/usr/lib/ckan/default/src/ckan/ckan/config/environment.py", line 232, in load_environment
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     p.load_all(config)
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]   File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 134, in load_all
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     load(*plugins)
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]   File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 167, in load
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     plugins_update()
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]   File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 116, in plugins_update
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     environment.update_config()
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]   File "/usr/lib/ckan/default/src/ckan/ckan/config/environment.py", line 357, in update_config
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     plugin.configure(config)
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]   File "/usr/lib/ckan/default/src/ckanext-harvest/ckanext/harvest/plugin.py", line 191, in configure
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     model_setup()
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]   File "/usr/lib/ckan/default/src/ckanext-harvest/ckanext/harvest/model/__init__.py", line 81, in setup
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     migrate_v3_create_datasets(sources_to_migrate)
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]   File "/usr/lib/ckan/default/src/ckanext-harvest/ckanext/harvest/model/__init__.py", line 487, in migrate_v3_create_datasets
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     new_package_id = logic.get_action('package_create')(context, package_dict)
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]   File "/usr/lib/ckan/default/src/ckan/ckan/logic/__init__.py", line 419, in wrapped
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     result = _action(context, data_dict, **kw)
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]   File "/usr/lib/ckan/default/src/ckan/ckan/logic/action/create.py", line 129, in package_create
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     _check_access('package_create', context, data_dict)
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]   File "/usr/lib/ckan/default/src/ckan/ckan/logic/__init__.py", line 290, in check_access
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     raise NotAuthorized(msg)
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1] NotAuthorized
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1] mod_wsgi (pid=1809): Target WSGI script '/etc/ckan/default/apache.wsgi' cannot be loaded as Python module.
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1] mod_wsgi (pid=1809): Exception occurred processing WSGI script '/etc/ckan/default/apache.wsgi'.
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1] Traceback (most recent call last):
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]   File "/etc/ckan/default/apache.wsgi", line 10, in <module>
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     application = loadapp('config:%s' % config_filepath)
[Mon Jul 28 09:28:51 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
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     return loadobj(APP, uri, name=name, **kw)
[Mon Jul 28 09:28:51 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
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     return context.create()
[Mon Jul 28 09:28:51 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
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     return self.object_type.invoke(self)
[Mon Jul 28 09:28:51 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
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     return fix_call(context.object, context.global_conf, **context.local_conf)
[Mon Jul 28 09:28:51 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
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     val = callable(*args, **kw)
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]   File "/usr/lib/ckan/default/src/ckan/ckan/config/middleware.py", line 57, in make_app
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     load_environment(conf, app_conf)
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]   File "/usr/lib/ckan/default/src/ckan/ckan/config/environment.py", line 232, in load_environment
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     p.load_all(config)
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]   File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 134, in load_all
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     load(*plugins)
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]   File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 167, in load
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     plugins_update()
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]   File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 116, in plugins_update
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     environment.update_config()
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]   File "/usr/lib/ckan/default/src/ckan/ckan/config/environment.py", line 357, in update_config
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     plugin.configure(config)
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]   File "/usr/lib/ckan/default/src/ckanext-harvest/ckanext/harvest/plugin.py", line 191, in configure
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     model_setup()
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]   File "/usr/lib/ckan/default/src/ckanext-harvest/ckanext/harvest/model/__init__.py", line 81, in setup
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     migrate_v3_create_datasets(sources_to_migrate)
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]   File "/usr/lib/ckan/default/src/ckanext-harvest/ckanext/harvest/model/__init__.py", line 487, in migrate_v3_create_datasets
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     new_package_id = logic.get_action('package_create')(context, package_dict)
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]   File "/usr/lib/ckan/default/src/ckan/ckan/logic/__init__.py", line 419, in wrapped
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     result = _action(context, data_dict, **kw)
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]   File "/usr/lib/ckan/default/src/ckan/ckan/logic/action/create.py", line 129, in package_create
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     _check_access('package_create', context, data_dict)
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]   File "/usr/lib/ckan/default/src/ckan/ckan/logic/__init__.py", line 290, in check_access
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1]     raise NotAuthorized(msg)
[Mon Jul 28 09:28:51 2014] [error] [client 127.0.0.1] NotAuthorized



More information about the ckan-dev mailing list