[ckan-discuss] CZ-CKAN: QA plugin, Celery issues

Ondřej Vadinský ondrej.vadinsky at vse.cz
Mon Jun 4 13:49:26 BST 2012


Dne Po 4. června 2012 13.10:55 jste napsal(a): 
> Hi,
> 
> I can't really say much without seeing an error log, but is the
> ckan.site_url specified in the config?
> 
> ckan.site_url = <URL to your CKAN instance>
> 
> If so, we'll have to get access to the log to see what's going on.
> 
> 
> Thanks,
> John
> 

Hi,

it is:
ckan.site_url = http://cz.ckan.net/

In /var/log/ckan/cz/cz.log there is just lots of
2012-06-04 12:17:06,687 INFO  [ckan.new_authz] Using auth profile at 
ckan.logic.auth
from all the time and some:
2012-06-03 10:39:58,741 WARNI [ckan.controllers.feed] No authority_name 
available foed generation.  Generated feed will be invalid.
also from before I started to install QA plugin.

In /var/log/apache2/cz.error.log there is something (I haven't looked there 
before)

[Mon Jun 04 12:39:48 2012] [error] Exception KeyError: 
KeyError(140730121463616,) in <module 'threading' from 
'/usr/lib/python2.6/threading.pyc'> ignored
[Mon Jun 04 12:39:48 2012] [error] Exception KeyError: 
KeyError(140730121463616,) in <module 'threading' from 
'/usr/lib/python2.6/threading.pyc'> ignored
[Mon Jun 04 12:39:48 2012] [error] Exception AttributeError: "'NoneType' object 
has no attribute 'clearing'" in 
[Mon Jun 04 12:39:48 2012] [error] Exception AttributeError: "'NoneType' object 
has no attribute 'clearing'" in 
[Mon Jun 04 12:39:51 2012] [error] [client 127.0.0.1] mod_wsgi (pid=7640): 
Target WSGI script '/var/lib/ckan/cz/wsgi.py' cannot be loaded as Python 
module.
[Mon Jun 04 12:39:51 2012] [error] [client 127.0.0.1] mod_wsgi (pid=7640): 
Exception occurred processing WSGI script '/var/lib/ckan/cz/wsgi.py'.
[Mon Jun 04 12:39:51 2012] [error] [client 127.0.0.1] Traceback (most recent 
call last):
[Mon Jun 04 12:39:51 2012] [error] [client 127.0.0.1]   File 
"/var/lib/ckan/cz/wsgi.py", line 16, in <module>
[Mon Jun 04 12:39:51 2012] [error] [client 127.0.0.1]     application = 
loadapp('config:%s' % config_filepath)
[Mon Jun 04 12:39:51 2012] [error] [client 127.0.0.1]   File 
"/var/lib/ckan/cz/pyenv/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", 
line 247, in loadapp
[Mon Jun 04 12:39:51 2012] [error] [client 127.0.0.1]     return loadobj(APP, 
uri, name=name, **kw)
[Mon Jun 04 12:39:51 2012] [error] [client 127.0.0.1]   File 
"/var/lib/ckan/cz/pyenv/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", 
line 272, in loadobj
[Mon Jun 04 12:39:51 2012] [error] [client 127.0.0.1]     return 
context.create()
[Mon Jun 04 12:39:51 2012] [error] [client 127.0.0.1]   File 
"/var/lib/ckan/cz/pyenv/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", 
line 710, in create
[Mon Jun 04 12:39:51 2012] [error] [client 127.0.0.1]     return 
self.object_type.invoke(self)
[Mon Jun 04 12:39:51 2012] [error] [client 127.0.0.1]   File 
"/var/lib/ckan/cz/pyenv/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", 
line 146, in invoke
[Mon Jun 04 12:39:51 2012] [error] [client 127.0.0.1]     return 
fix_call(context.object, context.global_conf, **context.local_conf)
[Mon Jun 04 12:39:51 2012] [error] [client 127.0.0.1]   File 
"/var/lib/ckan/cz/pyenv/lib/python2.6/site-packages/paste/deploy/util.py", 
line 56, in fix_call
[Mon Jun 04 12:39:51 2012] [error] [client 127.0.0.1]     val = 
callable(*args, **kw)
[Mon Jun 04 12:39:51 2012] [error] [client 127.0.0.1]   File 
"/var/lib/ckan/cz/pyenv/src/ckan/ckan/config/middleware.py", line 51, in 
make_app
[Mon Jun 04 12:39:51 2012] [error] [client 127.0.0.1]     
load_environment(global_conf, app_conf)
[Mon Jun 04 12:39:51 2012] [error] [client 127.0.0.1]   File 
"/var/lib/ckan/cz/pyenv/src/ckan/ckan/config/environment.py", line 122, in 
load_environment
[Mon Jun 04 12:39:51 2012] [error] [client 127.0.0.1]     p.load_all(config)
[Mon Jun 04 12:39:51 2012] [error] [client 127.0.0.1]   File 
"/var/lib/ckan/cz/pyenv/src/ckan/ckan/plugins/core.py", line 92, in load_all
[Mon Jun 04 12:39:51 2012] [error] [client 127.0.0.1]     
find_user_plugins(config)
[Mon Jun 04 12:39:51 2012] [error] [client 127.0.0.1]   File 
"/var/lib/ckan/cz/pyenv/src/ckan/ckan/plugins/core.py", line 158, in 
find_user_plugins
[Mon Jun 04 12:39:51 2012] [error] [client 127.0.0.1]     raise 
PluginNotFoundException(name)
[Mon Jun 04 12:39:51 2012] [error] [client 127.0.0.1] PluginNotFoundException: 
qa
[Mon Jun 04 12:39:55 2012] [error] [client 127.0.0.1] mod_wsgi (pid=7640): 
Target WSGI script '/var/lib/ckan/cz/wsgi.py' cannot be loaded as Python 
module.
[Mon Jun 04 12:39:55 2012] [error] [client 127.0.0.1] mod_wsgi (pid=7640): 
Exception occurred processing WSGI script '/var/lib/ckan/cz/wsgi.py'.
[Mon Jun 04 12:39:55 2012] [error] [client 127.0.0.1] Traceback (most recent 
call last):
[Mon Jun 04 12:39:55 2012] [error] [client 127.0.0.1]   File 
"/var/lib/ckan/cz/wsgi.py", line 16, in <module>
[Mon Jun 04 12:39:55 2012] [error] [client 127.0.0.1]     application = 
loadapp('config:%s' % config_filepath)
[Mon Jun 04 12:39:55 2012] [error] [client 127.0.0.1]   File 
"/var/lib/ckan/cz/pyenv/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", 
line 247, in loadapp
[Mon Jun 04 12:39:55 2012] [error] [client 127.0.0.1]     return loadobj(APP, 
uri, name=name, **kw)
[Mon Jun 04 12:39:55 2012] [error] [client 127.0.0.1]   File 
"/var/lib/ckan/cz/pyenv/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", 
line 272, in loadobj
[Mon Jun 04 12:39:55 2012] [error] [client 127.0.0.1]     return 
context.create()
[Mon Jun 04 12:39:55 2012] [error] [client 127.0.0.1]   File 
"/var/lib/ckan/cz/pyenv/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", 
line 710, in create
[Mon Jun 04 12:39:55 2012] [error] [client 127.0.0.1]     return 
self.object_type.invoke(self)
[Mon Jun 04 12:39:55 2012] [error] [client 127.0.0.1]   File 
"/var/lib/ckan/cz/pyenv/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", 
line 146, in invoke
[Mon Jun 04 12:39:55 2012] [error] [client 127.0.0.1]     return 
fix_call(context.object, context.global_conf, **context.local_conf)
[Mon Jun 04 12:39:55 2012] [error] [client 127.0.0.1]   File 
"/var/lib/ckan/cz/pyenv/lib/python2.6/site-packages/paste/deploy/util.py", 
line 56, in fix_call
[Mon Jun 04 12:39:55 2012] [error] [client 127.0.0.1]     val = 
callable(*args, **kw)
[Mon Jun 04 12:39:55 2012] [error] [client 127.0.0.1]   File 
"/var/lib/ckan/cz/pyenv/src/ckan/ckan/config/middleware.py", line 51, in 
make_app
[Mon Jun 04 12:39:55 2012] [error] [client 127.0.0.1]     
load_environment(global_conf, app_conf)
[Mon Jun 04 12:39:55 2012] [error] [client 127.0.0.1]   File 
"/var/lib/ckan/cz/pyenv/src/ckan/ckan/config/environment.py", line 122, in 
load_environment
[Mon Jun 04 12:39:55 2012] [error] [client 127.0.0.1]     p.load_all(config)
[Mon Jun 04 12:39:55 2012] [error] [client 127.0.0.1]   File 
"/var/lib/ckan/cz/pyenv/src/ckan/ckan/plugins/core.py", line 92, in load_all
[Mon Jun 04 12:39:55 2012] [error] [client 127.0.0.1]     
find_user_plugins(config)
[Mon Jun 04 12:39:55 2012] [error] [client 127.0.0.1]   File 
"/var/lib/ckan/cz/pyenv/src/ckan/ckan/plugins/core.py", line 158, in 
find_user_plugins
[Mon Jun 04 12:39:55 2012] [error] [client 127.0.0.1]     raise 
PluginNotFoundException(name)
[Mon Jun 04 12:39:55 2012] [error] [client 127.0.0.1] PluginNotFoundException: 
qa

The log of installation of the qa plugin says it ended with success, so qa 
should be there...

Ondřej Vadinský
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2809 bytes
Desc: not available
URL: <http://lists.okfn.org/pipermail/ckan-discuss/attachments/20120604/811962b1/attachment.bin>


More information about the ckan-discuss mailing list