[ckan-dev] Count of datasets on front page incorrectly reports "0 datasets"?
Haq, Salman
Salman.Haq at neustar.biz
Thu May 24 20:31:51 UTC 2012
On 5/24/12 3:42 PM, "Jim Craner" <jim at codeforamerica.org> wrote:
>W00t! Success after rebuilding the index. And my third dataset
>successfully uploaded and is displayed immediately.
Great.
>
>But now I have two additional questions:
>
>1) Sorry if this is more of a general python or pylons or virtualenv
>question, but I do not have a paster program in
>/var/lib/ckan/data/pyenv/bin... should I?
Good question. Various docs seem to suggest that it should be there.
>
>[The search-index rebuild only worked when I went into my CKAN folder,
>activated virtualenv, and then ran "paster" without a path. I also
>tried, while virtualenv'ed, pip install paster which seemed to
>successfully work but still didn't put a paster app in
>/var/lib/ckan/data/pyenv/bin...]
Try `pip install PasteScript` in your virtualenv environment.
>
>2) When I upload a Resource into a Dataset, such as a csv, I do not
>see a Preview. This is because I have not yet configured DataStore,
>correct? Or is File Preview independent of DataStore?
You will have to enable the 'datastore' and 'archiver' extensions, install
the ElasticSearch debian package (available for download from
elasticsearch.org), install nginx, reconfigure nginx and apache slightly
so that nginx is on port 80 and proxies to apache on an arbitary port like
8088.
Earlier this month, somebody posted a link to a sample nginx configuration
file on the mailing list. It pretty much worked without any modifications
for me I think.
The apache config files will need to be edited to change '80' to '8088'
(or whatever you port you prefer).
Hope this helps.
Salman
>
>Thanks so much for your help, David and everyone else!
>Jim
>
>On Thu, May 24, 2012 at 11:44 AM, David Raznick <kindly at gmail.com> wrote:
>>
>>
>> On Thu, May 24, 2012 at 7:21 PM, Jim Craner <jim at codeforamerica.org>
>>wrote:
>>>
>>> Hi Salman,
>>>
>>> I tried adding 'synchronous_search' to the plugins line with no
>>>success.
>>
>>
>> keep the sycrounous_search line in the plugins. This only comes into
>>effect
>> when creating new datasets.
>>
>> Also run paster search-index rebuild in your virtualenv, so the old ones
>> that you missed are reindexed.
>>
>> Thanks
>>
>> David
>>
>> _______________________________________________
>> 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
>
>_______________________________________________
>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