GPText fails to start with error "Failed to start Solr"
search cancel

GPText fails to start with error "Failed to start Solr"

book

Article ID: 295810

calendar_today

Updated On:

Products

VMware Tanzu Greenplum

Issue/Introduction

Symptoms:

gptext-start fails with below error message:

20140618:16:48:33:082971 gptext-start:mdw:gpadmin-[ERROR]:-Some of the GPText instances failed to start.

/usr/bin/java -server -Xms1024M -Xmx1809M -Dlog4j.configuration=file:/data2/primary/gpseg29/solr/lib/log4j.properties -Djetty.home=/usr/local/greenplum-text-1.2.2.0/greenplum-solr -Dsolr.solr.home=/data2/primary/gpseg29/solr -Djetty.port=1130 -jar /usr/local/greenplum-text-1.2.2.0/greenplum-solr/start.jar
Failed to start Solr. 

Note: gptext-state shows most of the Solr processes are not started.

Environment


Cause

Check if the time interval between Starting primary Solr instances and Starting mirror Solr instances is about 3 minutes. If it is, then the timeout value was reached when starting the Solr processes. For example:

20140618:16:41:55:082971 gptext-start:mdw:gpadmin-[INFO]:-Starting primary Solr instances...
20140618:16:45:14:082971 gptext-start:mdw:gpadmin-[INFO]:-Starting mirror Solr instances...
20140618:16:48:33:082971 gptext-start:mdw:gpadmin-[ERROR]:-Some of the GPText instances failed to start.

Note: Some clusters may need more time to start the Solr processes.

Resolution

To resolve this issue, follow the below steps: 

1. Increase the timeout value in $GPTXTHOME/greenplum-solr/bin/solr_ctl.


For example:


From:

WAIT_TIME=180 [Or WAIT_TIME=120 in GPTEXT 1.3]

To:

WAIT_TIME=1800

2. Copy this solr_ctl to all servers.


3. Attempt to start GPText again using the following command: 

gptext-startb