2013-12-11 1 views
6

Я запускаю CKAN 2.2 на Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64).Этот ресурс не может быть просмотрен в настоящий момент. - CKAN

Я загрузил набор данных в экземпляр CKAN. Он был загружен успешно и может быть загружен также. Но когда я пытаюсь просмотреть базу данных, я получаю ошибку ниже.

This resource can not be previewed at the moment.

Когда я нажимаю на «Нажмите здесь для получения дополнительной информации», он говорит

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

Как я могу исправить эту ошибку?

ответ

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.

Выдержки из here & here

1

Иногда вы получаете то же самое сообщение, как в заголовке вопрос:

This resource can not be previewed at the moment.

Но когда вы нажмете на «Нажмите здесь для получения дополнительной информации», он говорит, :

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)

В этом c ase, возможно, datapusher плагин не работает. Сначала следуйте инструкциям для datapusher в руководстве CKAN. Если вы уже это сделали или вы установили CKAN из пакета, проверьте конфигурацию CKAN в файле production.ini (development.ini). Небольшой список проверки, чтобы решить эту проблему:

  • добавить datapusher в "ckan.plugins"
  • набор "ckan.site_url"
  • набор "ckan.datapusher.url"
  • проверить Apache/Nginx серверные журналы (/var/log/apache2/datapusher.*.log, /var/log/apache2/ckan_default*.log)