[ckan-dev] ckan scheming extension : PluginNotFoundException

Hong Jing jenny.jing at nyu.edu
Fri May 20 17:55:46 UTC 2016


Hi, Carl:



Yes, I did this in the production.ini file:



scheming.dataset_schemas =
https://gist.githubusercontent.com/happyrainb/3b21cbdc7e64a1a2311ed54abc4ed5dd/raw/15f44d4f0fc755217f736b7d8e287ade5e3b0ba7/ckan-cusp-schema.json



Then I changed back to the default scheme which used to work well.

scheming.dataset_schemas =
https://raw.githubusercontent.com/ckan/ckanext-scheming/master/ckanext/scheming/ckan_dataset.json





But now the error message changed to:



tail -20 /var/log/apache2/ckan_default.error.log

[Fri May 20 16:34:07.753186 2016] [:error] [pid 22907:tid 139844006164224]
[remote 127.0.0.1:45317]     return loadobj(APP, uri, name=name, **kw)

[Fri May 20 16:34:07.753194 2016] [:error] [pid 22907:tid 139844006164224]
[remote 127.0.0.1:45317]   File
"/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
line 272, in loadobj

[Fri May 20 16:34:07.753206 2016] [:error] [pid 22907:tid 139844006164224]
[remote 127.0.0.1:45317]     return context.create()

[Fri May 20 16:34:07.753213 2016] [:error] [pid 22907:tid 139844006164224]
[remote 127.0.0.1:45317]   File
"/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
line 710, in create

[Fri May 20 16:34:07.753225 2016] [:error] [pid 22907:tid 139844006164224]
[remote 127.0.0.1:45317]     return self.object_type.invoke(self)

[Fri May 20 16:34:07.753246 2016] [:error] [pid 22907:tid 139844006164224]
[remote 127.0.0.1:45317]   File
"/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
line 146, in invoke

[Fri May 20 16:34:07.753257 2016] [:error] [pid 22907:tid 139844006164224]
[remote 127.0.0.1:45317]     return fix_call(context.object,
context.global_conf, **context.local_conf)

[Fri May 20 16:34:07.753264 2016] [:error] [pid 22907:tid 139844006164224]
[remote 127.0.0.1:45317]   File
"/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/util.py",
line 55, in fix_call

[Fri May 20 16:34:07.753275 2016] [:error] [pid 22907:tid 139844006164224]
[remote 127.0.0.1:45317]     val = callable(*args, **kw)

[Fri May 20 16:34:07.753290 2016] [:error] [pid 22907:tid 139844006164224]
[remote 127.0.0.1:45317]   File
"/usr/lib/ckan/default/src/ckan/ckan/config/middleware.py", line 58, in
make_app

[Fri May 20 16:34:07.753302 2016] [:error] [pid 22907:tid 139844006164224]
[remote 127.0.0.1:45317]     load_environment(conf, app_conf)

[Fri May 20 16:34:07.753309 2016] [:error] [pid 22907:tid 139844006164224]
[remote 127.0.0.1:45317]   File
"/usr/lib/ckan/default/src/ckan/ckan/config/environment.py", line 232, in
load_environment

[Fri May 20 16:34:07.753320 2016] [:error] [pid 22907:tid 139844006164224]
[remote 127.0.0.1:45317]     p.load_all(config)

[Fri May 20 16:34:07.753327 2016] [:error] [pid 22907:tid 139844006164224]
[remote 127.0.0.1:45317]   File
"/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 134, in load_all

[Fri May 20 16:34:07.753352 2016] [:error] [pid 22907:tid 139844006164224]
[remote 127.0.0.1:45317]     load(*plugins)

[Fri May 20 16:34:07.753358 2016] [:error] [pid 22907:tid 139844006164224]
[remote 127.0.0.1:45317]   File
"/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 148, in load

[Fri May 20 16:34:07.753369 2016] [:error] [pid 22907:tid 139844006164224]
[remote 127.0.0.1:45317]     service = _get_service(plugin)

[Fri May 20 16:34:07.753375 2016] [:error] [pid 22907:tid 139844006164224]
[remote 127.0.0.1:45317]   File
"/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 255, in
_get_service

[Fri May 20 16:34:07.753385 2016] [:error] [pid 22907:tid 139844006164224]
[remote 127.0.0.1:45317]     raise PluginNotFoundException(plugin_name)

[Fri May 20 16:34:07.753412 2016] [:error] [pid 22907:tid 139844006164224]
[remote 127.0.0.1:45317] PluginNotFoundException:

And here is my testing site:



http://52.38.14.163/



Any suggestion?



Thanks a lot!



Jenny



*From:* ckan-dev [mailto:ckan-dev-bounces at lists.okfn.org] *On Behalf Of *Carl
Lange
*Sent:* Friday, May 20, 2016 1:13 PM
*To:* CKAN Development Discussions
*Subject:* Re: [ckan-dev] ckan scheming extension : PluginNotFoundException



Hi Jenny,



Did you enable the plugin on the ckan.plugins line in your production.ini?



Cheers,

Carl



On 20 May 2016 at 17:27, Hong Jing <jenny.jing at nyu.edu> wrote:



Hi, All:



I tried to use the ckanext-scheming extension and I got the error message
below.



I added the http path of my schema in the /etc/ckan/default/production.ini.



here is the schema:

https://gist.githubusercontent.com/happyrainb/3b21cbdc7e64a1a2311ed54abc4ed5dd/raw/15f44d4f0fc755217f736b7d8e287ade5e3b0ba7/ckan-cusp-schema.json



Does anyone have any suggestion?



Thanks.



Jenny

/var/log/apache2/ckan_default.error.log

[Fri May 20 16:21:27.357909 2016] [:error] [pid 22455:tid 140394051131136]
[remote 127.0.0.1:60687]     load_environment(conf, app_conf)

[Fri May 20 16:21:27.357917 2016] [:error] [pid 22455:tid 140394051131136]
[remote 127.0.0.1:60687]   File
"/usr/lib/ckan/default/src/ckan/ckan/config/environment.py", line 232, in
load_environment

[Fri May 20 16:21:27.357929 2016] [:error] [pid 22455:tid 140394051131136]
[remote 127.0.0.1:60687]     p.load_all(config)

[Fri May 20 16:21:27.357950 2016] [:error] [pid 22455:tid 140394051131136]
[remote 127.0.0.1:60687]   File
"/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 134, in load_all

[Fri May 20 16:21:27.357963 2016] [:error] [pid 22455:tid 140394051131136]
[remote 127.0.0.1:60687]     load(*plugins)

[Fri May 20 16:21:27.357971 2016] [:error] [pid 22455:tid 140394051131136]
[remote 127.0.0.1:60687]   File
"/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 148, in load

[Fri May 20 16:21:27.357982 2016] [:error] [pid 22455:tid 140394051131136]
[remote 127.0.0.1:60687]     service = _get_service(plugin)

[Fri May 20 16:21:27.357990 2016] [:error] [pid 22455:tid 140394051131136]
[remote 127.0.0.1:60687]   File
"/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 255, in
_get_service

[Fri May 20 16:21:27.358001 2016] [:error] [pid 22455:tid 140394051131136]
[remote 127.0.0.1:60687]     raise PluginNotFoundException(plugin_name)

[Fri May 20 16:21:27.358015 2016] [:error] [pid 22455:tid 140394051131136]
[remote 127.0.0.1:60687] PluginNotFoundException: scheming.dataset_schemas=



-- 

Research Information Scientist,

Center for Urban Science + Progress, NYU

https://datahub.cusp.nyu.edu/



646-997-0519


_______________________________________________
ckan-dev mailing list
ckan-dev at lists.okfn.org
https://lists.okfn.org/mailman/listinfo/ckan-dev
Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20160520/d10e889d/attachment-0003.html>


More information about the ckan-dev mailing list