找到你要的答案

Q:cannot install ckan properly with solr

Q:无法安装CKAN正确使用它

I have installed ckan using source, but could not setup solr properly using jetty as described in the oficcial installation guide, so i installed solr-5.0.0 seperately.

The solr runs ok, and I have set up the development.ini file properly, but when I connect to ckan, I get among others the error:

"ERROR [ckan.lib.search.common] HTTP code=404, reason=Not Found" .

Even when I set "ckan.simple_search = 1" and comment out the solr_url, in the development.ini, the same error appears, and it seems like it's trying to connect with solr.

In both cases the ckan site appears , but it has the error:

Server Error

An internal server error occurred

我已经安装了CKAN使用源代码,但不能设置Solr正确使用码头在oficcial安装指南描述的,所以我solr-5.0.0分别安装。

Solr运行ok,我建立了development.ini文件是正确的,但是当我连接到CKAN,我得到其中的错误:

“错误[ CKAN .lib。搜索。常见的HTTP代码= 404 ],原因:未找到”。

甚至当我设置“ckan.simple_search = 1”和“评论”的solr_url,在development.ini,同样的错误出现,而且看起来是试图连接Solr。

在这两种情况下出现的CKAN网站,但它的错误:

服务器错误

发生内部服务器错误

answer1: 回答1:

I had the same problem. To fix the error, I appended the name of my core to the solr_url variable.

In my case, I named my core ckan.

So my solr_url variable was similar to:

http://127.0.0.1:8983/solr/ckan

This allowed me to initialize the database as per the CKAN installation instructions without getting the 404 error you describe.

我也有同样的问题。改正这个错误,我添加了我的核心名称的solr_url变量。

以我为例,我叫我的核心CKAN。

所以我solr_url变量相似:

HTTP:/ / / / 127.0.0.1:8983 Solr CKAN

这让我初始化数据库按CKAN安装说明没有得到404错误你描述。

solr  ckan