Pivotal Knowledge Base

Follow

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

Environment

Product Version
Pivotal GPText  1.2.x, 1.3.x
OS

RHEL 6.x 

Symptoms

gptext-start failing 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. 

gptext-state shows most of the solr processes are not started.

Root Cause

Check if the time interval between "Starting primary Solr instances" and "Starting mirror Solr instances" is about 3 minutes. If it is, then it's possible that the timeout value 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.

Some clusters may need more time to start Solr processes.

Resolutions

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. Try to start GPText again.

gptext-start

Comments

Powered by Zendesk