Skip to main content
Inspiring
May 23, 2012
Question

CF10 Solr Search RHEL

  • May 23, 2012
  • 1 reply
  • 4129 views

Hi,

I've been able to get my CF10 server up and running (thanks Rupesh!) and am trying to do some configuration.

I installed the Solr search service during the installation but when I go to the collections screen in the CF Administrator it says "Unable to retrieve collections from the Search Services. Ensure that you have installed ColdFusion Search Service and it is running."

now checking for the process shows it's running

[root@LMCFXD02 /]# ps -ef | grep solr

root     15563  1987  0 11:33 pts/0    00:00:00 grep solr

Can anybody shed some light on why I can't create a new collection?

Cheers,
Simon

This topic has been closed for replies.

1 reply

raZorTTZAuthor
Inspiring
May 23, 2012

Also,

I took a look in the neo-solr.xml file and based on the port number and webapp entry tried navigating to it using the browser

http://127.0.0.1:8985/solr

and got a could not connect error using chrome. My understanding (limited as it is) is that I should get site back.


Cheers,

Simon

raZorTTZAuthor
Inspiring
May 23, 2012

Some more thinking out loud..

Should the Solr Home be /opt/coldfusion10/cfusion/jetty/multicore or /opt/coldfusion10/cfusion/jetty/solr?

Here is the neo-solr.xml file (minus the languages node for brevity sake)

<wddxPacket version='1.0'>

          <header/>

          <data>

                    <struct type='coldfusion.server.ConfigMap'>

                              <var name='httpsenabled'>

                                        <string>FALSE</string>

                              </var>

                              <var name='solrport'>

                                        <number>8985.0</number>

                              </var>

                              <var name='solrhttpsport'>

                                        <number>0.0</number>

                              </var>

                              <var name='solrwebapp'>

                                        <string>solr</string>

                              </var>

                              <var name='solrhost'>

                                        <string>localhost</string>

                              </var>

                              <var name='languages' />

                              <var name='username'>

                                        <string/>

                              </var>

                              <var name='solrbuffersize'>

                                        <number>40.0</number>

                              </var>

                              <var name='solrhome'>

                                        <string>/opt/coldfusion10/cfusion/jetty/multicore</string>

                              </var>

                              <var name='password'>

                                        <string/>

                              </var>

                    </struct>

          </data>

</wddxPacket>

Participant
August 4, 2014

The plot thickens...

I have been trying to manually start the service using the /opt/coldfusion10/cfusion/jetty/cfjetty script and came up with an error.

I had a look at the /opt/coldfusion10/cfusion/jetty/logs/start.log file and found the following

/sbin/runuser: invalid option -- 'X'

Try `/sbin/runuser --help' for more information.

It turns out that when cfjetty is executed the JVM arguments that are included in the command

-XX:+AggressiveOpts -XX:+ScavengeBeforeFullGC -XX:-UseParallelGC -Xmx512m -Dsolr.solr.home=multicore -DSTOP.PORT=8077 -DSTOP.KEY=cfsolrstop

are causing an exception and the service never starts.

If I edit the /opt/coldfusion10/cfusion/jetty/cfjetty script and wrap the command that is being sent through /sbin/runuser with double quotes, the script executes and the service starts.

Around line 77 for my particular change (I went through and updated other references so I could stop and restart later)

Before:

SOLRSTART='cd $SOLR;$SUCMD $SOLR_JVM/bin/java $JVMARGS -jar start.jar >> $SOLR/logs/start.log 2>&1'

After

SOLRSTART='cd $SOLR;$SUCMD "$SOLR_JVM/bin/java $JVMARGS -jar start.jar >> $SOLR/logs/start.log 2>&1"'

Now I can get into the ColdFusion Collections section of the ColdFusion Administrator.

Should the service be started automatically when ColdFusion starts? It doesn't look like it starts automatically.

Cheers,

Simon


Thanks! Still not fixed, and this is still helping.