[ckan-dev] How to display register .

David Read david.read at hackneyworkshop.com
Tue Aug 11 08:55:00 UTC 2015


Reznov,

> Am afraid sir not understanding you, you said " configuring logging to 'debug' level, i did that by switching debug=false to debug=true

Ah no, that is for when an exception is raised and not caught. You are
getting a redirect instead.

> the problem is the site won't working, it gives me 502 error.

Well that is curious - I thought you were getting a redirect? I've
never seen CKAN give a 502 error - could it be something else in your
web stack which is giving that?

The log level is defined by the section at the end of the config file.
For more info on this, see:
http://pylons-webframework.readthedocs.org/en/latest/logging.html#basic-logging-configuration

> Also about the breakpoint, how can i do that, do you mean sir by pdb ??

Yes, you got it.

I hope that helps! Let us know when you have some more info from these.
Dave


On 10 August 2015 at 20:00, Reznov Ammar <reznov110 at gmail.com> wrote:
> Am afraid sir not understanding you, you said " configuring logging to
> 'debug' level, i did that by switching debug=false to debug=true, the
> problem is the site won't working, it gives me 502 error.
>
> Also about the breakpoint, how can i do that, do you mean sir by pdb ??
>
>
> Message: 2
> Date: Wed, 5 Aug 2015 17:06:58 +0100
> From: David Read <david.read at hackneyworkshop.com>
> To: CKAN Development Discussions <ckan-dev at lists.okfn.org>
> Subject: Re: [ckan-dev] How to display register .
> Message-ID:
>         <CAOY41VWK5USeKvKdgDch_OYu+73C++AB-eFO7013MfrqETDrjg at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> Reznov,
>
> Please configure your logging to 'debug' level and then provide the
> ckan log you get when you click /user/register. It should help a bit.
>
> But it sounds like the user_create auth function is what is denying
> you. However I understand you've set in the config:
> ckan.create_user_via_web = True
> and that's all it should need. I suggest you put a break-point in
> ckan/logic/auth/create.py:user_create and see why it might be
> returning {'success': False}.
>
> David
>
>
>
>
> Dave
>
> On 5 August 2015 at 16:44, Reznov Ammar <reznov110 at gmail.com> wrote:
>> Hi guys, i have a problem with the registration , i can't see register
>> beside login in the main page it disappeared,
>>
>> and if i want to access the /user/register page, it redirects me to this
>> url
>> www.example.com/user/login?came_from=http://www.example.com
>> /user/register with a flash the says " Unauthorized  to create user ".
>>
>> What should i do to overcome this problem ???
>> --
>>
>>
>>
>>
>> All respect, Reznov
>> Know more about me here at:
>>
>> Blog: http://xakepu.blogspot.com/
>> Aboutme: http://about.me/ReznovAmmar
>> Twitter: https://www.twitter.com/pentester11
>> Linkedin: https://www.linkedin.com/in/reznov
>> GitHub: https://github.com/reznov11
>>
>> _______________________________________________
>> 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
>



More information about the ckan-dev mailing list