2013-12-11 23 views
6

Tôi đang chạy CKAN 2.2 trên Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64).Tài nguyên này không thể xem trước tại thời điểm này. - CKAN

Tôi đã tải lên tập dữ liệu vào dụ CKAN. Nó đã được tải lên thành công và cũng có thể được tải xuống. Nhưng khi tôi cố gắng để xem trước cơ sở dữ liệu tôi kết thúc với lỗi dưới đây.

This resource can not be previewed at the moment.

Khi tôi bấm vào “Bấm vào đây để biết thêm thông tin”, Nó nói

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

Làm thế nào tôi có thể sửa chữa lỗi này?

Trả lời

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.

Trích từ here & here

1

Đôi khi bạn nhận được thông báo tương tự như tiêu đề câu hỏi:

This resource can not be previewed at the moment.

Nhưng khi bạn nhấp vào “Bấm vào đây để biết thêm thông tin”, Nó nói :

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)

Trong c này ase, có lẽ là datapusher plugin không hoạt động. Trước tiên hãy làm theo hướng dẫn cho datapusher trong hướng dẫn sử dụng CKAN. Nếu bạn đã làm điều này hoặc bạn đã cài đặt CKAN từ một gói, hãy kiểm tra cấu hình CKAN trong tệp production.ini (development.ini). Một danh sách kiểm tra nhỏ để giải quyết vấn đề:

  • thêm datapusher trong "ckan.plugins"
  • set "ckan.site_url"
  • set "ckan.datapusher.url"
  • kiểm tra Apache/nginx nhật ký máy chủ (/var/log/apache2/datapusher.*.log, /var/log/apache2/ckan_default*.log)
Các vấn đề liên quan