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

前端 未结 2 1557
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-18 09:46

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 c

相关标签:
2条回答
  • 2021-01-18 09:56

    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

    0 讨论(0)
  • 2021-01-18 10:14

    Sometimes you get the same message as the title question:

    This resource can not be previewed at the moment.

    But when you click on the “Click here for more information”, It says:

    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:///dataset/c3ce226b-73bd-4b06-9d1b-ffea13d5f770/resource/580fb05f-6d86-4748-aac7-560b904a208f/download/foo.csv)

    In this case, probably the datapusher plugin is not working. First follow the instructions for datapusher in CKAN manual. If you already did this or you installed CKAN from a package, check the CKAN configuration in production.ini (development.ini) file. A small check list to solve the problem:

    • add datapusher in "ckan.plugins"
    • set "ckan.site_url"
    • set "ckan.datapusher.url"
    • check Apache/nginx server logs (/var/log/apache2/datapusher.*.log, /var/log/apache2/ckan_default*.log)
    0 讨论(0)
提交回复
热议问题