solr - How to set up CKAN in RHEL -
i following steps given here install ckan source in redhat enterprise linux 6 system.
at step 6, following output:
> (default)[hrishi@rd ~]$ cd /usr/lib/ckan/default/src/ckan (default)[hrishi@rd ckan]$ paster db init -c /etc/ckan/default/development.ini 2015-05-15 11:23:35,695 error [ckan.lib.search.common] http code=404, reason=not found 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/python2.6/site-packages/solr/core.py", line 703, in query return self.select(*args, **params) file "/usr/lib/python2.6/site-packages/solr/core.py", line 798, in __call__ xml = self.raw(**params) file "/usr/lib/python2.6/site-packages/solr/core.py", line 823, in raw rsp = conn._post(self.selector, request, conn.form_headers) file "/usr/lib/python2.6/site-packages/solr/core.py", line 639, in _post return check_response_status(self.conn.getresponse()) file "/usr/lib/python2.6/site-packages/solr/core.py", line 1097, in check_response_status raise ex solrexception: http code=404, reason=not found 2015-05-15 11:23:35,697 warni [ckan.lib.search] problems found while connecting solr server 2015-05-15 11:23:35,927 error [ckan.lib.search.common] http code=404, reason=not found 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/python2.6/site-packages/solr/core.py", line 703, in query return self.select(*args, **params) file "/usr/lib/python2.6/site-packages/solr/core.py", line 798, in __call__ xml = self.raw(**params) file "/usr/lib/python2.6/site-packages/solr/core.py", line 823, in raw rsp = conn._post(self.selector, request, conn.form_headers) file "/usr/lib/python2.6/site-packages/solr/core.py", line 639, in _post return check_response_status(self.conn.getresponse()) file "/usr/lib/python2.6/site-packages/solr/core.py", line 1097, in check_response_status raise ex solrexception: http code=404, reason=not found 2015-05-15 11:23:35,928 warni [ckan.lib.search] problems found while connecting solr server initialising db: success
could tell me went wrong?
also, followed these steps setup solr in system.
(just wild guess) common pitfall on rhel systems default selinux configuration might not allow internal http connections. try
/usr/sbin/setsebool httpd_can_network_connect 1
(or disable selinux).
and, of course, check config ini if have correct address , port of solr server. ;-)
Comments
Post a Comment