[ckan-dev] Issue Setting Up Datastore

Gerace, Christian [ITSUS] cgerace at ITS.JNJ.com
Fri Mar 6 17:43:36 UTC 2015


Hey Community,

Earlier in the week I set up a CKAN v2.3 instance, running on RHEL 6 and using Postgresql 9.4. I'm attempting to set up up the Datastore, which I have done successfully in the past, but I am running into issues doing it now. I'm testing the instructions to test the setup, so I'm running

curl -X POST http://127.0.0.1:5000/api/3/action/datastore_create -H "Authorization: {YOUR-API-KEY}" -d '{"resource": {"package_id": "{PACKAGE-ID}"}, "fields": [ {"id": "a"}, {"id": "b"} ], "records": [ { "a": 1, "b": "xyz"}, {"a": 2, "b": "zzz"} ]}'

with my respective IP, API-KEY and PACKAGE-ID, but I'm getting an error stating

"success": false, "error": {"message": "Access denied: <function datastore_create at 0x7fd67f330398> requires an authenticated user", "__type": "Authorization Error"}}

I have created 3 users however, and tried with all 3 and I'm getting the same error. I'm not sure if this issue is related to permissions I need to set up for the Datastore, but if anyone has any advice it would be greatly appreciated.

Thanks,
Christian Gerace
Associate Analyst - Enterprise Architect
+1.908.655.4147 | cgerace at its.jnj.com<mailto:cgerace at its.jnj.com>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20150306/f2aee73c/attachment-0002.html>


More information about the ckan-dev mailing list