[ckan-dev] Solr problem when installing latest ckan

Adrià Mercader adria.mercader at okfn.org
Tue May 14 10:48:04 UTC 2013


For some reason Solr allows you to connect from the command line but
is not happy when CKAN tries to connect to it.

That's why it is returning an html error message, which is causing the error:

> SolrException: HTTP code=Unknown XML response from server: <html ..., reason=None

It is hard to know what is going on without seeing the full html response.

Perhaps you can try to run this branch which adds more useful Solr
error messages and tell us what the ckan log says (run paster
search-index rebuild after applying the patch)

https://github.com/okfn/ckan/pull/674


Adrià

On 9 May 2013 13:09, Lasse Vestergaard <ibbernik at gmail.com> wrote:
> Hi Sean.
>
>
> 2013/5/9 Sean Hammond <sean.hammond at okfn.org>
>>
>> > I have set up the instance on an EC2 with Ubuntu 12.04 server edition.
>> > This
>> > means that I can't use the servers browser. If I use curl, then I can
>> > access http://localhost:8983/solr/. I get some html where it says
>> > "Welcome
>> > to Solr!". I can even access the admin page as well.
>> >
>> > I'm not sure what you mean by browsing to the schema.xml. I can see that
>> > /etc/solr/conf/schema.xml holds the ckan 2.0 schematic.
>>
>> If you browse to http://localhost:8983/solr/admin/file/?file=schema.xml
>> you should get an XML file with <schema name="ckan" version="2.0">.
>
>
> Yes, it says version='2.0'
>
>>
>>
>> > Could this problem occur if I, under the installation, forgot to
>> > activate
>> > pyenv under parts of the installation?
>>
>> This doesn't look like a virtualenv issue to me, from the error message
>> it looks like CKAN is saying it didn't understand the response that it
>> got from Solr.
>>
>> You could also double-check that your solr_url is set correctly in your
>> CKAN configuration file, and you could try these commands:
>>
>>     paster search-index clear
>>     paster search-index rebuild
>>     paster search-index check
>
>
>
> When I run the above commands: http://pastebin.com/3cceSfra
>
> Regards
>
> Lasse Vestergaard
>
>>
>>
>> _______________________________________________
>> 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
>




More information about the ckan-dev mailing list