[ckan-dev] R: R: 404 not found when I preview dataset
Sean Hammond
sean.hammond at okfn.org
Tue Aug 28 10:58:33 UTC 2012
Hi Salvatore,
What version of CKAN are you using? And is it a source install of
package install?
If you've added a dataset and the dataset search page still shows 0
datasets, then I'm guessing that you might be using CKAN 1.7.1 and you
don't have the synchronous_search plugin installed. Make sure the
ckan.plugins line in your ini file says synchronous_search, e.g.
ckan.plugins = stats synchronous_search
About your problem previewing a dataset. CKAN doesn't do previews of
datasets per se, it does previews of the resources that you add to the
datasets. You actually have to add a resource to the dataset, then click
on the resource and go to the resource's page to see the preview.
Assuming you're doing that and still not getting a preview, what type of
resource have you added? e.g. have you uploaded a CSV file? Or added a
link to an Excel file? etc.
>From your URLs it looks like you've uploaded an Excel file. In order for
the preview of uploaded excel files to work, I think you have to install
the ckanext-datastorer extension. See the docs here:
http://docs.ckan.org/en/latest/datastore.html#datastorer-automatically-add-data-to-the-datastore
On Tue, Aug 28, 2012 at 10:13:09AM +0200, Salvatore Altiero wrote:
> Many thanks for your response.
>
>
>
> I haven’t find the file /var/log/celeryd.log in my server and in my
> /etc/ckan/std/std.ini I haven’t find the entry ckan.plugins =
> datastorer synchronous_search. The only entry is this: ckan.plugins =
> stats
>
>
>
> Can I attach my std.ini file to this mail ?
>
>
>
> Thanks,
>
> Salvatore
>
>
>
> Da: ckan-dev-bounces at lists.okfn.org
> [mailto:ckan-dev-bounces at lists.okfn.org] Per conto di Jim Craner
> Inviato: lunedì 27 agosto 2012 23:41 A: CKAN Development Discussions
> Oggetto: Re: [ckan-dev] R: 404 not found when I preview dataset
>
>
>
> Salvatore,
>
> Can you paste your /var/log/celeryd.log into a Pastebin for us,
> removing any passwords or sensitive information?
>
> In your CKAN configuration file (std.ini or development.ini or
> something else), do you have the following ckan.plugins enabled?
>
> ckan.plugins = datastorer synchronous_search
>
> Thanks, Jim
>
>
>
> On Mon, Aug 27, 2012 at 6:02 AM, Salvatore Altiero
> <salvatore.altiero at linksmt.it> wrote:
>
> Hi all, can someone respond to me question ?
>
>
>
> Many thanks.
>
>
>
> Da: Salvatore Altiero [mailto:salvatore.altiero at linksmt.it] Inviato:
> martedì 31 luglio 2012 15:56 A: 'ckan-dev at lists.okfn.org' Oggetto: 404
> not found when I preview dataset
>
>
>
> Many thanks for your answers.
>
>
>
> I've resolved my problem with this steps:
>
> - adding buket and storage_dir in std.ini
>
> - install python-argparse e python-pairtree
>
> - chhown www-data to storage_dir
>
> - restart apache
>
>
>
> But now, I can upoload a dataset but ckan don't give me the
> possibility to preview the dataset. Also ckan home page show always 0
> dataset.
>
>
>
>
>
>
>
> I’ve seen the error “404 Not Found”, when I try to preview dataset,
> calling this url:
>
>
>
> ·
> http://10.0.6.15:8888/api/data/f1d2bc2e-79b3-4fd2-b893-717e03279d61/_mapping?callback=jQuery17107549065738504257_1343127296127
> <http://10.0.6.15:8888/api/data/f1d2bc2e-79b3-4fd2-b893-717e03279d61/_mapping?callback=jQuery17107549065738504257_1343127296127&_=1343127296727>
> &_=1343127296727 à 404 not found
>
>
>
> These urls correctly respond me
>
> · http://10.0.6.15:8888/api/1 à {"version": 1}
>
> ·
> http://10.0.6.15:8888/storage/f/2012-07-02T142955/Organico.xls à
> download the file
>
>
>
> Can you help me ?
>
>
>
> -----Messaggio originale----- Da: seanh [mailto:snhmnd at gmail.com] Per
> conto di Sean Hammond Inviato: lunedì 4 giugno 2012 15:45 A: Salvatore
> Altiero Cc: 'Irina Bolychevsky'; info at ckan.org Oggetto: Re: R: [via
> ckan.org] An internal server error occurred during file upload
>
>
>
> > I've attached my ckan.ini file and pip freeze output.
>
> >
>
> > In pip freeze I don't see python-argparse and python-pairtree.
>
> >
>
> > Is this my problem ?
>
>
>
> Probably. Did you run the `pip install pairtree` command from the
> filestore setup instructions?
>
>
>
> <http://docs.ckan.org/en/latest/filestore.html>
> http://docs.ckan.org/en/latest/filestore.html
>
> -- This email was Virus checked by Astaro Security Gateway.
> http://www.astaro.com
>
>
> _______________________________________________ ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
>
>
>
>
> -- -----
>
> Jim Craner, 2012 Fellow
>
> Code for America
>
> jim at codeforamerica.org
>
> (+1) 773-809-4546
>
> http://codeforamerica.org
>
>
>
>
> -- This email was Virus checked by Astaro Security Gateway.
> http://www.astaro.com
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
More information about the ckan-dev
mailing list