[ckan-dev] PluginNotFoundException

Prashant Gupta p.gupta at auckland.ac.nz
Mon Jul 30 03:37:18 UTC 2018


Hi All,

I had a dev instance of CKAN 2.7 running on Ubuntu 12, where it is all working fine.

I have been building a prod version on Ubuntu 16, where I am facing this issue. I found some more information if that may help us to sort out this issue:
I can run the CKAN default python console and can import the plugin, so it means the virtual env knows about the plugin. It is also registered in easy-install.pth. CKAN also have appropriate access to storage resources, as someone previously mentioned that could sort it, but it didn’t.

Thanks
Prashant


From: Prashant Gupta <p.gupta at auckland.ac.nz>
Date: Friday, 27 July 2018 at 1:54 PM
To: "ckan-dev at lists.okfn.org" <ckan-dev at lists.okfn.org>
Subject: PluginNotFoundException

Hi,

I am building a new instance for CKAN 2.8 and I am not able to get any plugin working. Any plugin I install, I get the following error log:

[Fri Jul 27 13:40:06.814481 2018] [wsgi:error] [pid 647:tid 139774062102272] [remote 130.216.44.170:20651] Traceback (most recent call last):
[Fri Jul 27 13:40:06.814495 2018] [wsgi:error] [pid 647:tid 139774062102272] [remote 130.216.44.170:20651]   File "/etc/ckan/default/apache.wsgi", line 10, in <module>
[Fri Jul 27 13:40:06.814522 2018] [wsgi:error] [pid 647:tid 139774062102272] [remote 130.216.44.170:20651]     application = loadapp('config:%s' % config_filepath)
[Fri Jul 27 13:40:06.814536 2018] [wsgi:error] [pid 647:tid 139774062102272] [remote 130.216.44.170:20651]   File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
[Fri Jul 27 13:40:06.814555 2018] [wsgi:error] [pid 647:tid 139774062102272] [remote 130.216.44.170:20651]     return loadobj(APP, uri, name=name, **kw)
[Fri Jul 27 13:40:06.814566 2018] [wsgi:error] [pid 647:tid 139774062102272] [remote 130.216.44.170:20651]   File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
[Fri Jul 27 13:40:06.814576 2018] [wsgi:error] [pid 647:tid 139774062102272] [remote 130.216.44.170:20651]     return context.create()
[Fri Jul 27 13:40:06.814585 2018] [wsgi:error] [pid 647:tid 139774062102272] [remote 130.216.44.170:20651]   File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
[Fri Jul 27 13:40:06.814594 2018] [wsgi:error] [pid 647:tid 139774062102272] [remote 130.216.44.170:20651]     return self.object_type.invoke(self)
[Fri Jul 27 13:40:06.814615 2018] [wsgi:error] [pid 647:tid 139774062102272] [remote 130.216.44.170:20651]   File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 146, in invoke
[Fri Jul 27 13:40:06.814626 2018] [wsgi:error] [pid 647:tid 139774062102272] [remote 130.216.44.170:20651]     return fix_call(context.object, context.global_conf, **context.local_conf)
[Fri Jul 27 13:40:06.814636 2018] [wsgi:error] [pid 647:tid 139774062102272] [remote 130.216.44.170:20651]   File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/util.py", line 55, in fix_call
[Fri Jul 27 13:40:06.814645 2018] [wsgi:error] [pid 647:tid 139774062102272] [remote 130.216.44.170:20651]     val = callable(*args, **kw)
[Fri Jul 27 13:40:06.814656 2018] [wsgi:error] [pid 647:tid 139774062102272] [remote 130.216.44.170:20651]   File "/usr/lib/ckan/default/src/ckan/ckan/config/middleware/__init__.py", line 55, in make_app
[Fri Jul 27 13:40:06.814667 2018] [wsgi:error] [pid 647:tid 139774062102272] [remote 130.216.44.170:20651]     load_environment(conf, app_conf)
[Fri Jul 27 13:40:06.814673 2018] [wsgi:error] [pid 647:tid 139774062102272] [remote 130.216.44.170:20651]   File "/usr/lib/ckan/default/src/ckan/ckan/config/environment.py", line 112, in load_environment
[Fri Jul 27 13:40:06.814686 2018] [wsgi:error] [pid 647:tid 139774062102272] [remote 130.216.44.170:20651]     p.load_all()
[Fri Jul 27 13:40:06.814694 2018] [wsgi:error] [pid 647:tid 139774062102272] [remote 130.216.44.170:20651]   File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 140, in load_all
[Fri Jul 27 13:40:06.814716 2018] [wsgi:error] [pid 647:tid 139774062102272] [remote 130.216.44.170:20651]     load(*plugins)
[Fri Jul 27 13:40:06.814723 2018] [wsgi:error] [pid 647:tid 139774062102272] [remote 130.216.44.170:20651]   File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 154, in load
[Fri Jul 27 13:40:06.814735 2018] [wsgi:error] [pid 647:tid 139774062102272] [remote 130.216.44.170:20651]     service = _get_service(plugin)
[Fri Jul 27 13:40:06.814743 2018] [wsgi:error] [pid 647:tid 139774062102272] [remote 130.216.44.170:20651]   File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 257, in _get_service
[Fri Jul 27 13:40:06.814760 2018] [wsgi:error] [pid 647:tid 139774062102272] [remote 130.216.44.170:20651]     raise PluginNotFoundException(plugin_name)
[Fri Jul 27 13:40:06.814778 2018] [wsgi:error] [pid 647:tid 139774062102272] [remote 130.216.44.170:20651] PluginNotFoundException: external_id


I have been following the set process:

- Activate the virtual environment
- Install the plugin (git clone and python setup.py develop)
- Add the plugin name to the CKAN config file
- Restart CKAN

The error log doesn’t provide much information. Any help would be appreciated.

Thanks
Prashant
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20180730/ceecfd66/attachment-0002.html>


More information about the ckan-dev mailing list