ColdFusion Failed to create Solr collection error

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

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

Unable to create usaf assembly.

Unable to create Solr data collector.

An error occurred while creating the collection: org.apache.solr.common.SolrException. Browse Solr magazines for more information.

Does anyone know what happened? I read that the update for CF 9.0.1 is causing some problems with Solr - I tried to install this update and it failed several times. Could this be a problem?

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

+4
source share
5 answers

I know this is a little outdated, but here is what I did to solve the same problem. The Solr service in CF Administrator did not show the main collection, and this did not allow me to create a new collection (as indicated above).

Using Win7, CF9.0.1

  • Stopped the search service and the Solr service through the Windows Service Manager.

  • I edited the ColdFusion9 \ solr \ multicore \ solr.xml file and deleted the entries for the collections that I was working on at a time when all this stopped working. This is a step that seems to have changed the situation. First back up the file.

  • For the entries that I deleted from the solr.xml file, I also completely deleted the folders and collection files from the file system using the Windows file manager.

  • Restart the search service and the Solr service. Now the base collection appears in CF Administrator. Now my CF pages create and index collections as they should. Phew!

Cheers, Murray

+4
source

You can check CFAdmin under Data and Services> ColdFusion Collections to launch Solr. The default collection must be enabled. If not, the search is performed as separate services in Windows. Verify that the ColdFusion 9 Search Server and Solr service are up and running.

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

Upgrading to 9.0.1 and fixes ruined my Solr installation. You have to reinstall CF from scratch.

+1
source

It is also possible that the ColdFusion Solr Search Service is running, although Solr is not running. This can happen, for example, if there are errors in the schema.xml file of the collection. I believe that there are other conditions under which this can happen. Anyway, as the poster explained above, if you look at CF Admin in the "ColdFusion Collections" section, you should see at least the default Solr collection (core0). If you do not see this collection, Solr does not work properly, even if Windows tells you that the service is running.

Alternatively, you can see if you can get to the Solr web service (default port 8983): http: // localhost: 8983 / solr /

+1
source

There can be 3 reasons for this: 1. Solr does not work. 2. Solr is running, and if you work on Unix, Solr / CF works as a user without privileges. 3. Solr is installed after CF. In this case, go to CF Admin Data & Services-> Solr Server (CF10) and provide the original solr path.

0
source

It seems that the solr service is shutting down or not working properly for some reason.

First, make sure you can go to the Solr Admin user interface on the same host. Try http: // hostname: 8983 / solr / or http: // localhost: 8983 / solr / from RDP. If it does not work, you will get the exact error or the reason why you get the error when adding the CF collection. Most likely, there should be a CF assembly that is not configured properly, and you can remove it from "ColdFusion9 \ solr \ multicore \ solr.xml".

"TAKE BACKUP IF YOU ATTEMPT TO CHANGE ANYTHING"

0
source

Source: https://habr.com/ru/post/1396754/


All Articles