[ckan-dev] CKAN preview problem

p.romain at cg33.fr p.romain at cg33.fr
Thu Dec 5 09:44:07 UTC 2013


Hello,

Thanks David,

I will try that and get back to the list. I have to change my apache 
configuration since I was not using a wsgi module so far.
Although this url is internal it sees the Internet and I never had any 
issues previewing csv files before on a test environnement. 
Maybe that should be stated in the doc ?
When setting up a new environnement one can get a bit confused in the 
different option available for interacting with resources and the content 
available here https://github.com/okfn/ckan/wiki/Viewing-Resource-Data 
should maybe be added to the doc.

Best,
Pascal



De :    David Raznick <david.raznick at okfn.org>
A :     CKAN Development Discussions <ckan-dev at lists.okfn.org>
Cc :    ckan-dev <ckan-dev-bounces at lists.okfn.org>
Date :  04/12/2013 18:22
Objet : Re: [ckan-dev] CKAN preview problem
Envoyé par :    "ckan-dev" <ckan-dev-bounces at lists.okfn.org>



Hello

The link 
http://srvmv-automne:5000/storage/f/2013-12-04T16%3A51%3A33.412Z/liste-sites-viticoles-cdt33.csv


Is not publically accessable so the dataproxy can not see it.  This 
probably is not the case for production.  It is recommended now to use the 
datapusher and datastore to actually get the data locally in the datastore 
so its possible to preview this way.  

Documentation is here:

http://datapusher.readthedocs.org/en/latest/

David




On 4 December 2013 16:57, <p.romain at cg33.fr> wrote:
Hi,

I am currently in the process of upgrading my CKAN instance to version 
2.1.
All ran smoothly following the excellent documentation but...the 
resources's preview doesn't seem to work.

In my configuration file I have activated the following plungins
ckan.plugins = stats text_preview recline_preview datastore resource_proxy

The local filestore is defined in the same file 
# Local file storage:
ofs.impl = pairtree
ofs.storage_dir = /home/opendata/filestore

However when upload a csv resource to a dataset and selecting the preview 
button to preview it, I get the following message

This resource can not be previewed at the moment. Click here for more 
information

The file is accessible at this internal url URL: 
http://srvmv-automne:5000/storage/f/2013-12-04T16%3A51%3A33.412Z/liste-sites-viticoles-cdt33.csv
 and displays on the browser when I click on this link

The error message is
Could not load preview: DataProxy returned an error (Data transformation 
failed. error: An error occured while connecting to the server: Unable to 
fetch URL: 
http://srvmv-automne:5000/storage/f/2013-12-04T16%3A51%3A33.412Z/liste-sites-viticoles-cdt33.csv
) 

I am missing something in the configuration or installation process ?

Thanks in advance for any appreciated help

Best,
Pascal Romain
@datalocale

__________________________________________________________________

Ce message et toutes les pièces jointes sont confidentiels et établis à 
l'intention exclusive de ses destinataires. Ce message ne constitue pas un 
document officiel. Seuls les documents revêtus de la signature du 
Président du Conseil Général ou d'un de ses délégataires sont de nature à 
engager le Département. 
Toute utilisation ou diffusion non autorisée est interdite. Tout message 
électronique est susceptible d'altération et le Département de la Gironde 
décline toute responsabilité au titre de ce message s'il a été altéré, 
déformé, falsifié.

_______________________________________________
ckan-dev mailing list
ckan-dev at lists.okfn.org
http://lists.okfn.org/mailman/listinfo/ckan-dev
Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev

_______________________________________________
ckan-dev mailing list
ckan-dev at lists.okfn.org
http://lists.okfn.org/mailman/listinfo/ckan-dev
Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev



__________________________________________________________________

Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Ce message ne constitue pas un document officiel. Seuls les documents revêtus de la signature du Président du Conseil Général ou d'un de ses délégataires sont de nature à engager le Département. 
Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération et le Département de la Gironde décline toute responsabilité au titre de ce message s'il a été altéré, déformé, falsifié.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20131205/4ec012b1/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 7254 bytes
Desc: not available
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20131205/4ec012b1/attachment-0003.jpe>


More information about the ckan-dev mailing list