2013-12-11 10 views
6

Sto utilizzando CKAN 2.2 su Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64).Al momento non è possibile visualizzare l'anteprima di questa risorsa. - CKAN

Ho caricato un set di dati all'istanza CKAN. È stato caricato con successo e può essere scaricato anche. Ma quando provo ad avere un'anteprima del database, finisco con l'errore di sotto.

This resource can not be previewed at the moment.

Quando clicco sul “Fare clic qui per maggiori informazioni”, Dice

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

Come posso risolvere questo errore?

risposta

4

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.

estratto da here & here

1

A volte si ottiene lo stesso messaggio alla domanda del titolo:

This resource can not be previewed at the moment.

Ma quando si fa clic sul “Fare clic qui per ulteriori informazioni”, dice :

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 questo c ase, probabilmente il plugin datapusher non funziona. Per prima cosa segui le istruzioni per il datapusher nel manuale CKAN. Se l'hai già fatto o hai installato CKAN da un pacchetto, controlla la configurazione di CKAN nel file production.ini (development.ini). Una piccola lista di controllo per risolvere il problema:

  • aggiungere datapusher in "ckan.plugins"
  • set "ckan.site_url"
  • set "ckan.datapusher.url"
  • controllare Apache/nginx log del server (/var/log/apache2/datapusher.*.log, /var/log/apache2/ckan_default*.log)