[ckan-dev] ERROR: The authenticate attribute was not provided.

Florian May florian.wendelin.mayer at gmail.com
Mon Nov 24 03:47:44 UTC 2014


Hi Brook,

I had a rogue repoze-1.6 installation in my system-wide python - although
the Apache wsgi config activates the virtualenv (in which I've got a shiny
new repoze.who==2.0 installed), it picked up the system-wide first and
threw:

[Mon Nov 24 11:27:17.778468 2014] [:error] [pid 2160] [remote
10.6.20.100:20380]     val = callable(*args, **kw)
[Mon Nov 24 11:27:17.778476 2014] [:error] [pid 2160] [remote
10.6.20.100:20380]   File
"/mnt/ckan/default/src/ckan/ckan/config/middleware.py", line 145, in
make_app
[Mon Nov 24 11:27:17.778490 2014] [:error] [pid 2160] [remote
10.6.20.100:20380]     who_parser.remote_user_key
[Mon Nov 24 11:27:17.778498 2014] [:error] [pid 2160] [remote
10.6.20.100:20380]   File
"/usr/local/lib/python2.7/dist-packages/repoze/who/middleware.py", line 26,
in __init__
[Mon Nov 24 11:27:17.778512 2014] [:error] [pid 2160] [remote
10.6.20.100:20380]     challengers, mdproviders)
[Mon Nov 24 11:27:17.778525 2014] [:error] [pid 2160] [remote
10.6.20.100:20380]   File
"/usr/local/lib/python2.7/dist-packages/repoze/who/middleware.py", line
447, in make_registries
[Mon Nov 24 11:27:17.778537 2014] [:error] [pid 2160] [remote
10.6.20.100:20380]     raise ValueError(str(name) + ': ' + why)
[Mon Nov 24 11:27:17.778554 2014] [:error] [pid 2160] [remote
10.6.20.100:20380] ValueError: auth_tkt: An object has failed to implement
interface <InterfaceClass repoze.who.interfaces.IAuthenticator>
[Mon Nov 24 11:27:17.778558 2014] [:error] [pid 2160] [remote
10.6.20.100:20380]
[Mon Nov 24 11:27:17.778562 2014] [:error] [pid 2160] [remote
10.6.20.100:20380]         The authenticate attribute was not provided.


It took me a while to see that the error kept coming out of
/usr/local/lib/python2.7/dist-packages/repoze/who/middleware.py (the
system-wide python install)...

Would this system-wide vs. virtualenv pitfall warrant an entry in the
troubleshooting section of the CKAN docs?

Thanks for the follow-up!
Florian

On Fri, Nov 21, 2014 at 5:15 PM, Brook Elgie <brook.elgie at okfn.org> wrote:

> Hi Florian,
>
> Repoze.who was recently upgraded to v2.0. Best to upgrade dependencies
> using:
>
>   pip install -r requirements.txt
>
> This will ensure libraries are at the correct versions. Note that
> repoze.who 2.2 is not supported.
>
> You can see which version of repoze.who your environment is using with:
>
>   pip freeze
>
> Let me know if you continue to have problems.
>
> Thanks,
>
> Brook
>
> On 21 November 2014 08:34, Florian May <florian.wendelin.mayer at gmail.com>
> wrote:
>
>> Hi,
>>
>> I'm stuck with the same problem. repoze.who 2.0 and 2.2 both throw
>> ValueError: auth_tkt: An object has failed to implement interface
>> <InterfaceClass repoze.who.interfaces.IAuthenticator>
>>
>> I'm experiencing this with versions after the repoze.who upgrade on Nov
>> 12.
>> Would anyone have any pointers?
>>
>> Cheers,
>> Florian
>>
>> On Wed, Nov 19, 2014 at 9:55 PM, Denis Zgonjanin <
>> deniszgonjanin at gmail.com> wrote:
>>
>>> There was a change that broke master a couple of days ago. Upgrade
>>> repoze like so:
>>>
>>> pip install --upgrade repoze.who==2.0
>>>
>>> On Wed, Nov 19, 2014 at 8:08 AM, Maurizio "Graffio" Mazzoneschi <
>>> graffio at lynxlab.com> wrote:
>>>
>>>> Hello all,
>>>> I've a CKAN installation sincronized with the branch master of the
>>>> git-hub repository.
>>>> Today I've pulled down the last version, but when I make CKAN run, the
>>>> console show me an error (see below), and CKAN doesn't run.
>>>>
>>>> My CKAN installation worked fine with the head pointing at:
>>>> 16e7e6c44e9e86908122f828e1cd2f298f0ad65a
>>>>
>>>> Someone can help to solve the problem?
>>>>
>>>> Follow the error
>>>>
>>>>
>>>> (default)graffio at michoacan:/usr/lib/ckan/default/src/ckan$ paster serve
>>>> /etc/ckan/default/development.ini
>>>> 2014-11-19 13:56:42,490 DEBUG [ckanext.oaks.plugin] this is
>>>> update_config calling
>>>> 2014-11-19 13:56:42,597 DEBUG [ckanext.spatial.model.package_extent]
>>>> Spatial tables defined in memory
>>>> 2014-11-19 13:56:42,605 DEBUG [ckanext.spatial.model.package_extent]
>>>> Spatial tables already exist
>>>> Traceback (most recent call last):
>>>>   File "/usr/lib/ckan/default/bin/paster", line 9, in <module>
>>>>     load_entry_point('PasteScript==1.7.5', 'console_scripts',
>>>> 'paster')()
>>>>   File
>>>>
>>>> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py",
>>>> line 104, in run
>>>>     invoke(command, command_name, options, args[1:])
>>>>   File
>>>>
>>>> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py",
>>>> line 143, in invoke
>>>>     exit_code = runner.run(args)
>>>>   File
>>>>
>>>> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py",
>>>> line 238, in run
>>>>     result = self.command()
>>>>   File
>>>>
>>>> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/serve.py",
>>>> line 284, in command
>>>>     relative_to=base, global_conf=vars)
>>>>   File
>>>>
>>>> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/serve.py",
>>>> line 321, in loadapp
>>>>     **kw)
>>>>   File
>>>>
>>>> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
>>>> line 247, in loadapp
>>>>     return loadobj(APP, uri, name=name, **kw)
>>>>   File
>>>>
>>>> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
>>>> line 272, in loadobj
>>>>     return context.create()
>>>>   File
>>>>
>>>> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
>>>> line 710, in create
>>>>     return self.object_type.invoke(self)
>>>>   File
>>>>
>>>> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
>>>> line 146, in invoke
>>>>     return fix_call(context.object, context.global_conf,
>>>> **context.local_conf)
>>>>   File
>>>>
>>>> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/deploy/util.py",
>>>> line 56, in fix_call
>>>>     val = callable(*args, **kw)
>>>>   File
>>>>
>>>> "/home/graffio/programmi/ckan/lib/default/src/ckan/ckan/config/middleware.py",
>>>> line 144, in make_app
>>>>     who_parser.remote_user_key,
>>>>   File
>>>>
>>>> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/repoze/who/middleware.py",
>>>> line 26, in __init__
>>>>     challengers, mdproviders)
>>>>   File
>>>>
>>>> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/repoze/who/middleware.py",
>>>> line 447, in make_registries
>>>>     raise ValueError(str(name) + ': ' + why)
>>>> ValueError: auth_tkt: An object has failed to implement interface
>>>> <InterfaceClass repoze.who.interfaces.IAuthenticator>
>>>>
>>>>         The authenticate attribute was not provided.
>>>>
>>>> thanks in advance
>>>>
>>>> --
>>>> maurizio "graffio" mazzoneschi
>>>> Lynx s.r.l.
>>>> http://www.lynxlab.com
>>>> http://www.scoop.it/t/graffio
>>>> skype: graffio_m
>>>>
>>>>
>>>> _______________________________________________
>>>> 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
>>>>
>>>
>>>
>>> _______________________________________________
>>> 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
>>>
>>>
>>
>> _______________________________________________
>> 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
>>
>>
>
> _______________________________________________
> 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/20141124/bf2a0b48/attachment-0003.html>


More information about the ckan-dev mailing list