ColdFusion 无法创建 Solr 集合错误

发布于 2025-01-05 20:56:07 字数 437 浏览 0 评论 0原文

我正在尝试在 ColdFusion 9 中创建 Solr 集合。我以前从未使用过 Solr,但我正在按照 Forta 的 Web 应用程序构建工具包中的说明进行操作。

每次我去创建集合时,都会收到以下错误:

无法创建美国空军集合。

无法创建美国空军的 Solr 集合。

创建集合时发生错误:org.apache.solr.common.SolrException。检查 Solr 日志以获取更多详细信息。

有人知道出了什么问题吗?我读到 CF 9.0.1 的更新导致 Solr 出现一些问题——我尝试安装该更新,但多次失败。这可能是问题所在吗?

如果是的话如何解决?这是在生产 Windows Server 2008 上,之前的卸载和重新安装尝试迫使我们从映像恢复服务器,因为这是一场灾难。

I'm trying to create a Solr collection in ColdFusion 9. I have never used Solr before, but I am following the directions in Forta's Web Application Construction Kit.

Every time I go to create the collection, I get the following error:

Unable to create collection usaf.

Unable to create Solr collection usaf.

An error occurred while creating the collection: org.apache.solr.common.SolrException. Check the Solr logs for more detail.

Anyone have a clue what's wrong? I have read that the update to CF 9.0.1 causes some issues with Solr -- I tried installing that update and it failed several times. Could that be the problem?

If so, how to solve it? This is on a production Windows Server 2008 and a previous attempt to uninstall and reinstall forced us to restore the server from an image because it was such a disaster.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

沫离伤花 2025-01-12 20:56:07

我知道这有点旧,但这是我为解决同样的问题所做的事情。 CF Administrator 中的 Solr 服务没有显示核心集合,也不允许我创建新集合(如上所述)。

使用Win7、CF9.0.1

  1. 通过windows服务管理器停止Search服务和Solr服务。

  2. 编辑了文件 ColdFusion9\solr\multicore\solr.xml 并删除了我在全部停止工作时正在处理的集合的条目。这一步似乎起到了作用。 首先备份文件!!!

  3. 我从 solr.xml 中删除的条目,我还使用 Windows 文件管理器从文件系统中完全删除了集合文件夹和文件。

  4. 重新启动搜索服务和 Solr 服务。核心合集现在出现在 CF Administrator 中。我的 CF 页面现在可以按照应有的方式创建集合并为其建立索引。唷!

干杯,
穆雷

I know this is a bit old but here is what I did to fix the same problem. Solr service in CF Administrator wasnt showing the core collection and it wouldnt let me create a new collection (as per above).

Using Win7, CF9.0.1

  1. Stopped the Search service and the Solr service via the windows service manager.

  2. Edited the file ColdFusion9\solr\multicore\solr.xml and removed the entries for the collections I was working on at the time it all stopped working. This is the step that seems to have made the difference. Backup the file first!!!

  3. For the entries I removed from solr.xml I also removed the collection folders and files completely from the file system using windows file manager.

  4. Restarted the Search service and Solr service. Core collection now appears in CF Administrator. My CF pages now create and index collections as they should. Phew!

Cheers,
Murray

森林散布 2025-01-12 20:56:07

您可以在“数据和”下查看CFAdmin;服务> ColdFusion Collections 使 Solr 运行起来。应该是列出的默认集合。如果没有,搜索将在 Windows 上作为单独的服务运行。检查 ColdFusion 9 搜索服务器和 Solr 服务是否存在并已启动。

Adobe 有一个独立的 Solr 安装。 http://www.adobe.com/support/coldfusion/downloads.html

更新到 9.0.1 和修补程序损坏了我的 Solr 安装。不得不从头开始重新安装CF。

You can check CFAdmin under Data & Services > ColdFusion Collections to make Solr is running. Should be a default collection listed. If not, search runs as seperate services on Windows. Check that ColdFusion 9 Search Server and Solr Service are there and started.

Adobe has a standalone Solr install. http://www.adobe.com/support/coldfusion/downloads.html

Updating to 9.0.1 and hotfixes corrupted my Solr install. Had to reinstall CF from scratch.

梦途 2025-01-12 20:56:07

即使 Solr 未运行,ColdFusion Solr 搜索服务也可能正在运行。例如,当集合的 schema.xml 文件中存在错误时,就会发生这种情况。我想在其他条件下也可能发生这种情况。无论如何,正如上面海报所解释的,如果您在“ColdFusion Collections”下查看 CF Admin,您至少应该看到默认的 Solr 集合 (core0)。如果您没有看到该集合,则即使 Windows 告诉您该服务正在运行,Solr 也无法正常运行。

另外,您可能想看看是否可以访问 Solr Web 服务(默认端口 8983): http://localhost: 8983/solr/

It's also possible for the ColdFusion Solr Search Service to be running even though Solr is not. This can happen, for example, when there are errors in a collection's schema.xml file. I imagine there are other conditions under which this can happen. At any rate, as the poster above explained, if you look on CF Admin under "ColdFusion Collections" you should see at least the default Solr collection (core0). If you don't see that collection then Solr isn't running properly even if Windows tells you that the service is running.

Also, you may want to see if you can reach the Solr web service (port 8983 by default): http://localhost:8983/solr/

鱼忆七猫命九 2025-01-12 20:56:07

造成这种情况的原因可能有 3 个:
1.Solr没有运行。
2. Solr 正在运行,如果您使用的是 Unix,Solr/CF 将以非特权用户身份运行。
3. Solr是在CF之后安装的。在这种情况下,请转到 CF 管理数据&服务->Solr Server(CF10)并提供solr home路径。

There could be 3 reasons for this:
1. Solr is not running.
2. Solr is running and if you are on Unix, Solr/CF is running as a non privileged user.
3. Solr is installed after CF. In that case go to CF Admin Data& Services->Solr Server(CF10) and provide solr home path.

倚栏听风 2025-01-12 20:56:07

似乎 solr 服务由于某种原因超时或无法正常工作。

首先确保您可以访问一台主机上的 Solr 管理 UI。尝试 http://hostname:8983/solr/http://localhost:8983/solr/ 来自 RDP。如果它不起作用,那么您将获得确切的错误或添加 CF 集合时出现错误的原因。很可能应该存在未正确配置的 CF 集合,您可以从“ColdFusion9\solr\multicore\solr.xml”中删除它们。

“如果您尝试修改任何内容,请进行备份”

It seems like solr service is timing out or not working properly for some reason.

First make sure that you can go to the Solr Admin UI on one host. Try http://hostname:8983/solr/ or http://localhost:8983/solr/ from RDP. If it is not working, then you will get the exact error or reason for why you are getting an error while adding CF collection. Most probably there should be CF collection which is not configured properly and you may remove those from 'ColdFusion9\solr\multicore\solr.xml'.

"TAKE A BACKUP IF YOU ARE TRYING TO MODIFY ANYTHING"

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文