Search code examples
datasetckan

This resource can not be previewed at the moment. - CKAN


I’m running CKAN 2.2 on Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64).

I have uploaded a dataset to the CKAN instance. It has been uploaded successfully and can be downloaded as well. But when I try to preview the database I end up with below error.

This resource can not be previewed at the moment.

When I click on the “Click here for more information”, It says

Could not load preview: DataProxy returned an error (Request Error: Backend did not respond after 10 seconds)

How can I fix this error?


Solution

  • The problem is that the data proxy (which is used to transform csv to something that the data preview can understand) is a server on the internet. Consequently the files you want to preview have to publicly accessible from the internet as well. localhost is your own computer which means that the dataproxy cannot access it. To solve this, wither put the file in the datastore using the datastorer or put the file on a server and provide the correct url.

    .

    This happens because the data proxy which is used to transform the data into something we can preview with recline needs the files to be accessible from the internet. The best solution is to store the data in the datastore and then the preview will work.

    Extracted from here & here