[ECODP-dev] Fwd: Ckan management scripts

John Glover john.glover at okfn.org
Tue Dec 18 16:26:51 UTC 2012


Hi,

Just to follow up on the Skype session about this that I had with Dimitrios:

- When we saw the CKAN output for the member_create API call we noticed
that the API key that Dimitrios had used in his example was invalid, so
CKAN was returning an authentication error.
- Running the script with a valid API key worked as expected.
- Dimitrios will now provide an updated version of the script so that we
can see if similar errors are happening on the production server.

Thanks,
John


On 18 December 2012 16:17, John Glover <john.glover at okfn.org> wrote:

> Hi Dimitrios,
>
> I have sent you a contact request on Skype, it might be easier to chat
> about this briefly if you have a minute.
>
> From your output above it does not look like you have changed the script
> to output the response from CKAN for the member_create API call, which is
> the important one for us to see. There will always be some response from
> CKAN (or at least the web server if something is misconfigured on the
> machine).
>
> Can you also confirm what that IP address refers to? It is not reachable
> for me. The test server that I can reach is at odp.tenforce.com.
>
> Thanks,
> John
>
>
> On 18 December 2012 15:43, Dimitrios Mexis <dimitrios.mexis at tenforce.com>wrote:
>
>>  Just managed to replicate an issue with the datasets and usernames [
>> ODP-178 ]
>> I created a CNECTusr :
>> *[root at ecodp-perf4 management_scripts]# ./ckan_create_publ_user.sh
>> CNECTusr cnect 9efa49f6-f9d5-4a42-9274-d0ef1f5738f1 http://localhost
>> Password:
>> Confirm password:
>> Creating user: 'CNECTusr'
>> 2012-12-18 15:34:54,037 INFO  [ckan.new_authz] Using auth profile at
>> ckan.logic.auth.publisher
>> {'about': None,
>>  'apikey': u'51373f10-02e1-465b-8f5f-01f7206a7170',
>>  'created': '2012-12-18T15:34:54.053627',
>>  'display_name': u'CNECTusr',
>>  'email': u'',
>>  'email_hash': 'd41d8cd98f00b204e9800998ecf8427e',
>>  'fullname': None,
>>  'id': u'391101b7-3646-4c00-9b6c-498696a3babc',
>>  'name': u'CNECTusr',
>>  'number_administered_packages': 0L,
>>  'number_of_edits': 0L,
>>  'openid': None,
>>  'reset_key': None}
>>   % Total    % Received % Xferd  Average Speed   Time    Time     Time
>> Current
>>                                  Dload  Upload   Total   Spent    Left
>> Speed
>> 114   807  100   807    0   110  49864   6796 --:--:-- --:--:-- --:--:--
>> 46466*
>>
>> Then I opened the cnect dataset which is uploaded with as "manual
>> dataset", and really data can not be updated.
>>
>> From the script doesn't seem any error to be produced by the CKAN.
>>
>> BUT, if I add the user "kurt", in the dataset cnect, then this user* can
>> "*add dataset".
>> to the cnect.
>>
>> The relevant IP perhaps for help I remind, is the: 192.168.33.128, there
>> I have backend and frontend on the same machine.
>>
>> Regards,
>>
>> Dimitrios
>>
>> On 18/12/12 11:00, Darwin Peltan wrote:
>>
>>
>> Darwin Peltan
>> Project Manager
>>
>>  The Open Knowledge Foundation
>> http://www.okfn.org
>>
>>  Skype: darwinp
>> Twitter: @darwin
>>
>>
>>
>> ---------- Forwarded message ----------
>> From: Dimitrios Mexis <dimitrios.mexis at tenforce.com>
>> Date: 17 December 2012 16:06
>> Subject: Ckan management scripts
>> To: Darwin Peltan <darwin.peltan at okfn.org>
>> Cc: Bert Van Nuffelen <bert.van.nuffelen at tenforce.com>
>>
>>
>> Hello,
>>
>>  this is the scripts about ckan management from terminal.
>>
>>  Fyi as requested,
>>
>>  Best regards,
>> Dimitrios
>>
>>
>>
>> _______________________________________________
>> Ecodp-dev mailing listEcodp-dev at lists.okfn.orghttp://lists.okfn.org/mailman/listinfo/ecodp-dev
>>
>>
>>
>> _______________________________________________
>> Ecodp-dev mailing list
>> Ecodp-dev at lists.okfn.org
>> http://lists.okfn.org/mailman/listinfo/ecodp-dev
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.okfn.org/mailman/private/ecodp-dev/attachments/20121218/ec87c847/attachment.html>


More information about the ecodp-dev mailing list