2015-05-15 49 views
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。

+0

你能通過瀏覽器訪問Solr實例嗎? –

+0

@HendrikBunke是的。輸入端口爲8983的IP打開Solr主頁。 – Hrishikesh

回答

0

(只是瘋狂的猜測)RHEL系統常見的缺陷是默認的SELinux配置可能不允許內部http連接。所以請嘗試

/usr/sbin/setsebool httpd_can_network_connect 1 

(或者簡單地禁用SELinux)。

而且,當然,如果您確實擁有Solr服務器的正確地址和端口,請檢查您的配置ini。 ;-)