[ckan-dev] Installing CKAN, can't reach solr instance

Rory giannichan at gmail.com
Fri Aug 15 18:30:36 UTC 2014


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]$ curl http://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

> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140815/3ab43c8a/attachment-0002.html>


More information about the ckan-dev mailing list