[ckan-dev] Settings up FileStore/Datastore on CKAN 2.1

Nigel Babu nigel.babu at okfn.org
Fri Jan 24 07:04:52 UTC 2014


There's two problems here:

* The DNS is duplicated. Can you take a look at your site_url in your
configuration.
* The resource is not accessible publically. To preview a resource that's
not in the datastore, CKAN uses dataproxy which is a public service that
will fetch a csv file and return JSON. If the dataproxy can't "see" the
file, you can't preview it.

Nigel Babu

Developer  |  @nigelbabu <https://twitter.com/nigelbabu>

The Open Knowledge Foundation <http://okfn.org/>

Empowering through Open Knowledge

http://okfn.org/  |  @okfn <http://twitter.com/OKFN>  |  OKF on
Facebook<https://www.facebook.com/OKFNetwork> |
Blog <http://blog.okfn.org/>  |  Newsletter<http://okfn.org/about/newsletter>

 CKAN | http://ckan.org/ | @CKANproject
<http://twitter.com/CKANproject> |the world’s leading open-source data
portal platform


On 22 January 2014 08:16, Michael Speth <spethm at landcareresearch.co.nz>wrote:

>  Greetings,
>   I am trying to setup <https://github.com/Conzar/ckan-puppet/> both
> FileStore and DataStore on the deb CKAN 2.1 package.  After uploading a csv
> and clicking on the preview button, the following error is displayed:
>
>   This resource can not be previewed at the moment. Click here for more
> information.<http://test.ckan.zen.landcareresearch.co.nz/dataset/test2/resource/f7038c5b-307a-485d-8c5c-cbb202157037#>
>
> Could not load preview: DataProxy returned an error (Data transformation
> failed. error: An error occured while connecting to the server: DNS lookup
> failed for URL:
> http://test.ckan.zen.landcareresearch.co.nz/test.ckan.zen.landcareresearch.co.nz/storage/f/2014-01-22T02%3A37%3A27.715Z/test.csv
> )
>
> *Problem*
>
> The DNS for the host has been replicated twice (
> http://test.ckan.zen.landcareresearch.co.nz/test.ckan.zen.landcareresearch.co.nz).
>  If I use this URL, my browser can download the file without issue.
>
>
> http://test.ckan.zen.landcareresearch.co.nz/storage/f/2014-01-22T02%3A37%3A27.715Z/test.csv
> )
>
>
>  Anyone know why the DNS is duplicated?
>
> Thanks
>
>  --
> Michael Speth
> DevOps Computer Engineer
> Landcare Research Consultant
>
> ------------------------------
>
> Please consider the environment before printing this email
> Warning: This electronic message together with any attachments is
> confidential. If you receive it in error: (i) you must not read, use,
> disclose, copy or retain it; (ii) please contact the sender immediately by
> reply email and then delete the emails.
> The views expressed in this email may not be those of Landcare Research
> New Zealand Limited. http://www.landcareresearch.co.nz
>
> _______________________________________________
> 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/20140124/176c73a8/attachment-0003.html>


More information about the ckan-dev mailing list