[ckan-dev] DataStore config questions

Jim Craner jim at codeforamerica.org
Sun May 27 15:45:07 UTC 2012


Thanks for the help, David.  Notes inline below...

On Sun, May 27, 2012 at 7:46 AM, David Raznick <kindly at gmail.com> wrote:

> The common error here is when uploading the file you are looking at the
> nginx instance on 80 not ckan-apache on 8080.

Can you clarify this for me?  My (admittedly limited) understanding is
that nginx passes everything non-ES to ckan-apache.  Once I switched
the CKAN apache instance to run on 8080 and set nginx to 80, I thought
that was it.

> Also make sure you add a new
> resource we currently do not reload when a resource changes.

I've been deleting and re-adding the same test.csv as a new resource.
I also tried a new Dataset altogether but I keep getting the same
results.  I had celeryd running in a console during these tests and
nothing appeared there (not sure if something was supposed to).

>
> You could also try a simple test of the datastore with something like.
>
> curl -XPUT <site>/api/data/<resource_id>/1 -d '{"test":"data"}' -H
> 'Authorization: your-api-key'

This returned:

{"ok":true,"_index":"ckan-data","_type":"351d8e3f-f4cd-462d-8664-fe7c027ae21e","_id":"1","_version":1}

> This will make a new record of id 1 against that resource.  The search above
> and preview should work now, returning '{"test":"data"}'.

Success!  There's a preview grid with column "test" and value "data"
in the resource.

> If that does works then could you give me the output of celeryd as it should
> error if something has gone wrong with the upload.

I was running celery via paster and nothing ever appeared on the
console after the startup message:

[2012-05-27 08:00:18,806: WARNING/MainProcess] celery at dataserver has started.

I uploaded several .csv resources during that time, as well as the
curl test mentioned above, but nothing ever showed up until I finally
terminated it with Ctrl-C.  Is there a way to make celery generate
more info or is it storing logs somewhere else?

Thanks again for your help!  Happy to see the {test:data} preview progress :-)
Jim

>
> Thanks
>
> David
>
>
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
>



-- 
-----
Jim Craner, 2012 Fellow
Code for America
jim at codeforamerica.org
(+1) 773-809-4546
http://codeforamerica.org




More information about the ckan-dev mailing list