[ckan-dev] Installing CKAN, can't reach solr instance
hotz
hotz at informatik.uni-hamburg.de
Sat Aug 16 11:12:03 UTC 2014
Hi Rory,
you could look at the, what is it in your case, tomcat or jetty-server
logs? These
servers run solr.
Also, is there enough space on the file system where the solr stores
data (see solrconfig.xml, perhaps /var/data/solr or simular)? You could
check
the java_options in init.d/jetty and enhance heap space, for tomcat I'm
not sure where they are.
Best,
Lothar
Am 15.08.2014 20:30, schrieb Rory:
> I'm trying to install CKAN on a machine with Centos 6.5
>
> I first followed this guide:
> https://github.com/ckan/ckan/wiki/How-to-Install-CKAN-2.0-on-CentOS-6.3 and
> hit a barrier with solr, then discovered this, newer, guide:
>
> https://github.com/ckan/ckan/wiki/How-to-install-CKAN-2.0-on-CentOS-6.3-%28new%29
>
> I keep hitting a wall when I get to step 6. Create Database Tables.
> When I try to initialize the CKAN database with:
> |paster db init -c /etc/ckan/default/production.ini|
>
> I get the following:
>
> 2014-08-15 18:26:32,477 ERROR [ckan.lib.search.common] HTTP code=400, reason=Bad Request
>
>
> Traceback (most recent call last):
> File "/usr/lib/ckan/default/src/ckan/ckan/lib/search/common.py", line 51, in is_available
> conn.query("*:*", rows=1)
> File "/usr/lib/ckan/default/lib/python2.6/site-packages/solr/core.py", line 703, in query
>
>
> return self.select(*args, **params)
> File "/usr/lib/ckan/default/lib/python2.6/site-packages/solr/core.py", line 798, in __call__
> xml = self.raw(**params)
> File "/usr/lib/ckan/default/lib/python2.6/site-packages/solr/core.py", line 823, in raw
>
>
> rsp = conn._post(self.selector, request, conn.form_headers)
> File "/usr/lib/ckan/default/lib/python2.6/site-packages/solr/core.py", line 639, in _post
> return check_response_status(self.conn.getresponse())
>
>
> File "/usr/lib/ckan/default/lib/python2.6/site-packages/solr/core.py", line 1097, in check_response_status
> raise ex
> SolrException: HTTP code=400, reason=Bad Request
> 2014-08-15 18:26:32,478 WARNI [ckan.lib.search] Problems were found while connecting to the SOLR server
>
>
> 2014-08-15 18:26:32,640 INFO [ckan.model] CKAN database version remains as: 67
> 2014-08-15 18:26:32,688 INFO [ckan.model] Database initialised
> Initialising DB: SUCCESS
>
> It seems as if it can't talk to the solr instance. When I curl the solr url I get:
>
>
>
> (default)[ckan at ckan ckan]$ curlhttp://127.0.0.1:8080/solr/ckan-schema-2.0 -v
> * About to connect() to 127.0.0.1 port 8080 (#0)
> * Trying 127.0.0.1... connected
>
>
> * Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)
> > GET /solr/ckan-schema-2.0 HTTP/1.1
> > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> > Host:127.0.0.1:8080 <http://127.0.0.1:8080>
>
>
> > Accept: */*
> >
> < HTTP/1.1 400 Bad Request
> < Server: Apache-Coyote/1.1
> < Transfer-Encoding: chunked
> < Date: Fri, 15 Aug 2014 18:29:04 GMT
> < Connection: close
> <
> * Closing connection #0
>
>
>
> I've tried repeating the steps in the steps in the guide but no luck. Does any body have any ideas on how to debug?
>
> Thanks,
>
>
> Rory
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
--
Dr. Lothar Hotz
HITeC e.V., University of Hamburg
Vogt-Kölln-Str. 30, 22527 Hamburg
Tel: 040/42883-2605; Fax: 040/42883-2572
E-Mail: hotz at informatik.uni-hamburg.de
WWW: www.hitec-hh.de
Private page: kogs-www.informatik.uni-hamburg.de/~hotz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140816/0336911f/attachment-0003.html>
More information about the ckan-dev
mailing list