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

Michael Speth spethm at landcareresearch.co.nz
Mon Jan 27 21:53:03 UTC 2014


* The DNS is duplicated. Can you take a look at your site_url in your configuration.

>From the production.ini
ckan.site_url = test.ckan.zen.landcareresearch.co.nz<http://test.ckan.zen.landcareresearch.co.nz>

* 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.

curl -X GET "http://127.0.0.1:5000/api/3/action/datastore_search?resource_id=_table_metadata"
output
curl: (7) couldn't connect to host

Would this indicate a permissions problem?





On Fri, Jan 24, 2014 at 8:04 PM, Nigel Babu <nigel.babu at okfn.org<mailto:nigel.babu at okfn.org>> wrote:
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<mailto: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<mailto: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<mailto:ckan-dev at lists.okfn.org>
https://lists.okfn.org/mailman/listinfo/ckan-dev
Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev




--
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140128/adadf49a/attachment-0003.html>


More information about the ckan-dev mailing list