Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

CF10 Solr Search RHEL

Explorer ,
May 22, 2012 May 22, 2012

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

4.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 22, 2012 May 22, 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 22, 2012 May 22, 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>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 22, 2012 May 22, 2012

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 01, 2012 Oct 01, 2012

Thanks Simon,

I ran into the same issue ("cfjetty start" fails due to botched runuser command line). The info you posted helped be solve it.

By the way, have you filed this as a bug at https://bugbase.adobe.com ?

Br,

Jan

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 01, 2012 Oct 01, 2012

Hi Jan,

Glad it helped

Thanks for the link to the bugbase. I have submitted the bug to Adobe. I also saw a bug that had been closed in the public beta that is a duplicate

https://bugbase.adobe.com/index.cfm?event=bug&id=3123145

Cheers,

Simon

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 04, 2014 Aug 04, 2014
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources