[ckan-dev] Problems with OpenID on Czech CKAN
Sean Hammond
sean.hammond at okfn.org
Fri Aug 10 09:12:01 UTC 2012
> since the upgrade to 1.7.1 we encountered on Czech CKAN problems with OpenID
> logins (Google as the OpenID provider, 500 internal server error returned). In
> apache log I found the following:
>
> [Thu Aug 09 16:05:57 2012] [error] [client 127.0.0.1] mod_wsgi (pid=1516):
> Exception occurred processing WSGI script
> '/var/lib/ckan/cz/wsgi.py'.
> [Thu Aug 09 16:05:57 2012] [error] [client 127.0.0.1] Traceback (most recent
> call last):
> [Thu Aug 09 16:05:57 2012] [error] [client 127.0.0.1] File
> "/usr/lib/pymodules/python2.6/apachemiddleware/__init__.
> py", line 37, in __call__
> [Thu Aug 09 16:05:57 2012] [error] [client 127.0.0.1] return
> self.app(environ, start_response)
> [Thu Aug 09 16:05:57 2012] [error] [client 127.0.0.1] File
> "/var/lib/ckan/cz/pyenv/lib/python2.6/site-packages/paste/cascade.py", line
> 130, in __call__
> [Thu Aug 09 16:05:57 2012] [error] [client 127.0.0.1] return self.apps[-1]
> (environ, start_response)
> [Thu Aug 09 16:05:57 2012] [error] [client 127.0.0.1] File
> "/var/lib/ckan/cz/pyenv/src/ckan/ckan/config/middleware.py", line 187, in
> __call__
> [Thu Aug 09 16:05:57 2012] [error] [client 127.0.0.1] return
> self.app(environ, start_response)
> [Thu Aug 09 16:05:57 2012] [error] [client 127.0.0.1] File
> "/var/lib/ckan/cz/pyenv/lib/python2.6/site-packages/paste/registry.py", line
> 379, in __call__
> [Thu Aug 09 16:05:57 2012] [error] [client 127.0.0.1] app_iter =
> self.application(environ, start_response)
> [Thu Aug 09 16:05:57 2012] [error] [client 127.0.0.1] File
> "/usr/lib/pymodules/python2.6/repoze/who/middleware.py", line 126, in __call__
> [Thu Aug 09 16:05:57 2012] [error] [client 127.0.0.1] identity
> [Thu Aug 09 16:05:57 2012] [error] [client 127.0.0.1] File
> "/usr/lib/pymodules/python2.6/repoze/who/middleware.py", line 270, in
> challenge
> [Thu Aug 09 16:05:57 2012] [error] [client 127.0.0.1] forget_headers)
> [Thu Aug 09 16:05:57 2012] [error] [client 127.0.0.1] File
> "/var/lib/ckan/cz/pyenv/src/ckan/ckan/lib/repoze_patch.py", line 169, in
> challenge
> [Thu Aug 09 16:05:57 2012] [error] [client 127.0.0.1] if
> len(self.ax_require.values()) or len(self.ax_optional.values()):
> [Thu Aug 09 16:05:57 2012] [error] [client 127.0.0.1] AttributeError:
> 'OpenIdIdentificationPlugin' object has no attribute 'ax_require'
Looks like the error comes from repoze which means it could be
difficult. This could be a problem with the wrong versions of repoze
packages being installed in cz.ckan.net's virtualenv on the server, in
which case it should get fixed when we migrate it to the new server, so
lets wait and see if this goes away after the migration (which should be
happening very soon)
More information about the ckan-dev
mailing list