Skip to main content
Inspiring
April 22, 2015
Answered

ColdFusion 11 and Solr

  • April 22, 2015
  • 8 replies
  • 10186 views

I just installed ColdFusion 11. I am pretty sure I selected the option to install the addons like Solr, but when I am in the coldfusion administrator under Data & Services, I click ColdFusion Collections and I get nothing. It won't go to the page at all. If I click on Solr Services a page will come up. If I click on ColdFusion collections and then restart the coldfusion addons I get a page that comes up saying

"Unable to retrieve collections from the Search Services.Ensure that you have installed ColdFusion Search Service and it is running."

I am assuming it means it isn't installed.

So I went to Adobe - ColdFusion Support Center : More Downloads and downloaded/installed the Windows Add-on Services Standalone Installer. I didn't change any of the settings or folders and installed it. I restarted the server. I logged back into the coldfusion administrator and I see the same thing. Nothing changed. When I go to view the file folders I have c:coldfuion11 and a c:coldfusionAdd-onServices. Should the coldfusionAdd-onServices folder been within the coldfusion11 folder?

I read you can create your collection through the administrator or through coding a page. I thought maybe I need to try it this way. So I created a page to create the collection and it did not work either.

What am I missing? Did I miss a step or something to make this work?

Any help I can get, I would appreciate.

I have a windows 2008 server.

    This topic has been closed for replies.
    Correct answer dagreen29

    We looked at the ports. It didn't fix our issue. I asked a senior system engineer to work on it for several days to no avail. We had installed on a physical machine. He tested it on a virtual server and it worked just fine. So we decided to just use the virtual machine. The engineer decided it probably had to do with the number of cpu's/cores on the physical machine. I wish you luck.

    8 replies

    BKBK
    Community Expert
    March 8, 2023

    I, too, have just encountered a similar error ("Unable to connect to Solr server")

     

    when trying to create a Solr collection on a ColdFusion 2021 Update 5 installation on Windows 10. I wish to share my finding.

     

    I was at first surprised by the error. Then I found out that, by default, the Solr server is not started on ColdFusion. 

     

    The solution was simple: double-click on C:\ColdFusion2021\cfusion\jetty\start.jar 

    Community Expert
    March 8, 2023

    You shouldn't have to do that on Windows. Look for the add-on service and see if you can start that. If you can't, move it down the startup order by using the DependOnService key. I have no guarantee that'll work, it's just a guess based on old Windows service startup issues, but it's worth a try.

     

    https://serverfault.com/questions/24821/how-to-add-dependency-on-a-windows-service-after-the-service-is-installed

     

    Dave Watts, Eidolon LLC

    Dave Watts, Eidolon LLC
    BKBK
    Community Expert
    March 9, 2023

    Thanks, Dave. I had checked the (stand-alone) Add-On service, and confirmed it was in "Running" state. However, it appears that ColdFusion does not start the Solr server by default. I expected it to.

    New Participant
    March 22, 2016

    Have you heard back from Adobe? We have exactly the same problem on our physical server (Windows 2008 R2 Server cluster).

    Solr works fine on our development virtual server. Thanks in advance!

    Inspiring
    October 20, 2015

    I encountered the same problem on a linux VM - here are the missing pieces I filled in to make it work - no alternate IPs or port updates required.

    1) the startup script for the Solr service is somewhat hidden - and not in the same place as it was with CF10 - the new location for CF11 is

         /opt/coldfusion11/jetty/cfjetty

    this script takes a single argument, which can be one of 'start', 'stop', or 'restart' - I suggest building a 'cfstart' script which will (re)start both CF and the Solr service

    2) the cfjetty script pointed to a missing JRE directory - no obvious errors displayed anywhere, only discovered the problem by searching for logs

          - edit this script and make sure that the 'SOLR_JVM' setting (around line 9) points to something real

    New Participant
    June 30, 2015

    Same problem here. ColdFusion 11 / Windows 2012 R2 / IIS 8.5

    ColdFusion 11 add-on service is running, but coldfusion collections link on admin page report an error

    Unable to retrieve collections from the Search Services.
    Ensure that you have installed ColdFusion Search Service and it is running.


    definitely something is messed up in settings, but I could not pinpoint what is it, there is no obvious error in start-up logs or anything else, and I tried running Solr server using different host names 127.0.0.1/localhost/ and an external IP to no avail.

    Total showstopper

    New Participant
    July 2, 2015

    Finally, after almost a month of trial and error some sort of a solution has been found.

    SOLR must be run on a separate IP address, not just a separate port #.

    Not sure if it is a IIS8.5 + ColdFusion 11 "feature", but in this environment this is the only way to make it work.

    Within an IIS define a website, bake sure it is binded to some separate IP address, external or internal, and assign some folder, say, d:/empty - this folder may contain nothing; it will be just an empty container for solr engine. Make sure you have ColdFusion configured for this website.

    Next, within COLDFUSION admin set SOLR to run off that IP address, restart ColdFusion services and voila, solr collections are there.

    What is disappointing is a complete lack of support from Adobe team; months of work wasted to solve this rather trivial problem.

    New Participant
    October 26, 2016

    Hi.

    Could you support me like you made exactly your configuration.

    Apparently for you and it was a solution, but it is not entirely clear what the different ip as well as Coldfusion link to another website, different from Default Web Site

    Tanks a lot

    Phil_Lepanto_693
    New Participant
    June 10, 2015

    I found that by examining the ports that were in use (netstat -a), I saw that the default port of 8988 was not actually being used, but 8987 was the port being used. When I modifed that setting in CF Administrator, the Collections showed up.

    If anyone can help me, this is my problem:

    I have CF 11 running on Windows Server 2012. I've have the Solr service being managed by Coldfusion on that box. I have CF 9 running in Windows 2008 Datacenter. I want to do one of the following:

    A) Have the CF9 machine use the CF11 Solr Server as a "remote solr server". Ideally, this would allow me to use cfcollection, cfindex, and cfsearch locally on the CF9 box, but have the indexing and querying being done on the CF 11 box.

    B) On the sites that are running on CF9, rewrite my query logic to run the queries using cfhttp calls to the SOLR server and get results via JSON.

    The problem is, I can only seem to interact with the Solr server on the CF 11 box via localhost. I can't seem to figure out how to get my webserver to respond on the Solr port with any other hosts.

    dagreen29AuthorCorrect answer
    Inspiring
    June 10, 2015

    We looked at the ports. It didn't fix our issue. I asked a senior system engineer to work on it for several days to no avail. We had installed on a physical machine. He tested it on a virtual server and it worked just fine. So we decided to just use the virtual machine. The engineer decided it probably had to do with the number of cpu's/cores on the physical machine. I wish you luck.

    New Participant
    June 30, 2015

    I am running CF 11 on virtual machine, and problem persists no matter what.

    dagreen29Author
    Inspiring
    May 14, 2015

    I am looking at the ColdFusion11_Installing.pdf document. https://wikidocs.adobe.com/wiki/download/attachments/142314172/ColdFusion11_Installing.pdf

    On page 84 it talks about configuring Apache for ColdFusion in Windows. #4 says to specify a path to the directory that contains the httpd.conf file. I can't find this file. I have done a search on the server and I am not finding it. Can anyone give me any help on why I am not finding it?

    Thanks in advance.


    Inspiring
    May 14, 2015

    Are you actually running apache? Most people with a windows server run IIS. If you are running IIS you wont find the file.

    dagreen29Author
    Inspiring
    May 14, 2015

    No I am not running Apache. I am running IIS. Thanks for the info.

    I am still trying to figure out why it isn't working and I am grasping for anything.

    The install I ran was ColdFusion_11_WWEJ_win64.exe Is this the correct one for a windows server 2008 r2 standard with service pack 1 64 bit server?

    dagreen29Author
    Inspiring
    April 23, 2015

    When I go to C:\ColdFusion11\cfusion\jetty\multicore\solr.xml

    This file doesn't contain any collections in it. Isn't supposed to have a core0? This is all that is in the file

    <?xml version='1.0' encoding='UTF-8'?><solr persistent="true">
    <cores adminPath="/admin/cores">

    </cores>
    </solr>

    Am I looking at the wrong file?

    Do I need to uninstall coldfusion 11 and try again? I really don't want to have to do this.

    Any ideas or suggestions are appreciated.

    Inspiring
    April 24, 2015

    Rather then trying to fix something that could cause issues later on, if you are able to do uninstall and re install it, I would suggest doing that.

    dagreen29Author
    Inspiring
    April 24, 2015

    I really don't want to have to uninstall and reinstall. Any other suggestions?

    Inspiring
    April 23, 2015

    Did you check that the "Coldfusion Add On Service" service is actually running? You make not mention that you have.

    dagreen29Author
    Inspiring
    April 23, 2015

    I have checked it and as far as I can tell it is running. I have even restarted it a few times. It appears to me that it is running. Is there another place to check?

    Is there something I am supposed to do first to use Solr?

    In the coldfusion administrator under data & services, I see this.

    Nothing happens if I click on coldfusion collections. It doesn't change pages.


    Inspiring
    April 23, 2015

    Is it a fresh installation of CF11? Are you logged in as the admin account setup when install CF?