0
我按照給定here的步驟在我的Redhat Enterprise Linux 6系統中從源安裝CKAN。如何在RHEL中設置CKAN
在step 6,我得到下面的輸出:
> (default)[[email protected] ~]$ cd /usr/lib/ckan/default/src/ckan
(default)[[email protected] 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 were found while connecting to the 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 were found while connecting to the SOLR server
Initialising DB: SUCCESS
有人能告訴我在哪裏出了錯?
此外,我跟着these steps在我的系統中設置Solr。
你能通過瀏覽器訪問Solr實例嗎? –
@HendrikBunke是的。輸入端口爲8983的IP打開Solr主頁。 – Hrishikesh