Project

General

Profile

Actions

Incident #10004

closed

ckan-sobigdata2 fails to restart because it cannot find the oaipmh plugin

Added by Andrea Dell'Amico over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Urgent
Category:
System Application
Target version:
Start date:
Oct 22, 2017
Due date:
% Done:

100%

Estimated time:
Infrastructure:
Production

Description

The apache reload after the log rotation failed with the following error:

[Sun Oct 22 06:25:12.451876 2017] [:error] [pid 25301:tid 139879935280896] [remote 127.0.0.1:20573] Traceback (most recent call last):
[Sun Oct 22 06:25:12.451891 2017] [:error] [pid 25301:tid 139879935280896] [remote 127.0.0.1:20573]   File "/etc/ckan/default/apache.wsgi", line 10, in <module>
[Sun Oct 22 06:25:12.451956 2017] [:error] [pid 25301:tid 139879935280896] [remote 127.0.0.1:20573]     _application = loadapp('config:%s' % config_filepath)
[Sun Oct 22 06:25:12.451971 2017] [:error] [pid 25301:tid 139879935280896] [remote 127.0.0.1:20573]   File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
[Sun Oct 22 06:25:12.452206 2017] [:error] [pid 25301:tid 139879935280896] [remote 127.0.0.1:20573]     return loadobj(APP, uri, name=name, **kw)
[Sun Oct 22 06:25:12.452223 2017] [:error] [pid 25301:tid 139879935280896] [remote 127.0.0.1:20573]   File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
[Sun Oct 22 06:25:12.452240 2017] [:error] [pid 25301:tid 139879935280896] [remote 127.0.0.1:20573]     return context.create()
[Sun Oct 22 06:25:12.452247 2017] [:error] [pid 25301:tid 139879935280896] [remote 127.0.0.1:20573]   File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
[Sun Oct 22 06:25:12.452258 2017] [:error] [pid 25301:tid 139879935280896] [remote 127.0.0.1:20573]     return self.object_type.invoke(self)
[Sun Oct 22 06:25:12.452264 2017] [:error] [pid 25301:tid 139879935280896] [remote 127.0.0.1:20573]   File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 146, in invoke
[Sun Oct 22 06:25:12.452274 2017] [:error] [pid 25301:tid 139879935280896] [remote 127.0.0.1:20573]     return fix_call(context.object, context.global_conf, **context.local_conf)
[Sun Oct 22 06:25:12.452288 2017] [:error] [pid 25301:tid 139879935280896] [remote 127.0.0.1:20573]   File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/util.py", line 55, in fix_call
[Sun Oct 22 06:25:12.452343 2017] [:error] [pid 25301:tid 139879935280896] [remote 127.0.0.1:20573]     val = callable(*args, **kw)
[Sun Oct 22 06:25:12.452356 2017] [:error] [pid 25301:tid 139879935280896] [remote 127.0.0.1:20573]   File "/usr/lib/ckan/default/src/ckan/ckan/config/middleware/__init__.py", line 45, in make_app
[Sun Oct 22 06:25:12.452431 2017] [:error] [pid 25301:tid 139879935280896] [remote 127.0.0.1:20573]     load_environment(conf, app_conf)
[Sun Oct 22 06:25:12.452449 2017] [:error] [pid 25301:tid 139879935280896] [remote 127.0.0.1:20573]   File "/usr/lib/ckan/default/src/ckan/ckan/config/environment.py", line 97, in load_environment
[Sun Oct 22 06:25:12.452554 2017] [:error] [pid 25301:tid 139879935280896] [remote 127.0.0.1:20573]     p.load_all()
[Sun Oct 22 06:25:12.452571 2017] [:error] [pid 25301:tid 139879935280896] [remote 127.0.0.1:20573]   File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 139, in load_all
[Sun Oct 22 06:25:12.452653 2017] [:error] [pid 25301:tid 139879935280896] [remote 127.0.0.1:20573]     load(*plugins)
[Sun Oct 22 06:25:12.452661 2017] [:error] [pid 25301:tid 139879935280896] [remote 127.0.0.1:20573]   File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 153, in load
[Sun Oct 22 06:25:12.452675 2017] [:error] [pid 25301:tid 139879935280896] [remote 127.0.0.1:20573]     service = _get_service(plugin)
[Sun Oct 22 06:25:12.452681 2017] [:error] [pid 25301:tid 139879935280896] [remote 127.0.0.1:20573]   File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 256, in _get_service
[Sun Oct 22 06:25:12.452692 2017] [:error] [pid 25301:tid 139879935280896] [remote 127.0.0.1:20573]     raise PluginNotFoundException(plugin_name)
[Sun Oct 22 06:25:12.452707 2017] [:error] [pid 25301:tid 139879935280896] [remote 127.0.0.1:20573] PluginNotFoundException: oaipmh

I had to remove the oaipmh plugin from the CKAN configuration to make the service work again.

Actions #1

Updated by Francesco Mangiacrapa over 7 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 100

I just checked the production.ini and "oaipmh" plugin does not appear.. Andrea, Have you removed it manually?
Now, SBD catalaogue is running.. https://ckan-sobigdata2.d4science.org/

However, about oaipmh plugin at the moment It must be installed/updated (via ansible, so the production.ini must contain it as ckan.plugin) only on ckan-bb2 and ckan-d4s. Thanks

Actions #2

Updated by Francesco Mangiacrapa over 7 years ago

  • Status changed from In Progress to Feedback
Actions #3

Updated by Andrea Dell'Amico over 7 years ago

Francesco Mangiacrapa wrote:

I just checked the production.ini and "oaipmh" plugin does not appear.. Andrea, Have you removed it manually?

Yes, I wrote that in the report :).

The question is now why it got into the configuration, while the plugin code not.

Actions #4

Updated by Francesco Mangiacrapa over 7 years ago

  • Status changed from Feedback to Closed
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 8.91 MB)