• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Unable to start elasticsearch

MattW

Well-known member
#1
Installing onto VPS with CentOS 5.7, following the guide here: = http://xenforo.com/community/threads/how-to-basic-elasticsearch-installation-rhel-suse.26160/

Code:
rpm -ivh jre-7u4-linux-x64.rpm
 
[root@vps2 elasticsearch]#java -version                  
java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b20)
Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)
 
 
 
curl -L -O -k https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.18.7.zip
unzip elasticsearch-0.18.7.zip
 
curl -L -k http://github.com/elasticsearch/elasticsearch-servicewrapper/tarball/master | tar -xz
mv *servicewrapper*/service elasticsearch/bin/
elasticsearch/bin/service/elasticsearch install 
 
#/elasticsearch/bin/service/elasticsearch install
Detected RHEL or Fedora:
Installing the ElasticSearch daemon..
 
ln -s `readlink -f elasticsearch/bin/service/elasticsearch` /usr/local/bin/rcelasticsearch
rcelasticsearch start


Code:
[root@vps2 elasticsearch]#rcelasticsearch start
Starting ElasticSearch...
Waiting for ElasticSearch................................
WARNING: ElasticSearch may have failed to start.
It spits an error into /var/log/messages

Code:
May  5 13:31:25 vps2 elasticsearch[29061]: Unable to write to the configured log file: /elasticsearch/logs/service.log (No such file or directory)   Falling back to the default file in the current working directory: wrapper.log


These are the errors being written into wrapper.log

Code:
WARN   | wrapper  | 2012/05/05 13:31:25 | Unable to write to the configured log directory: /elasticsearch/logs (No such file or directory)
WARN   | wrapper  | 2012/05/05 13:31:25 |   The directory does not exist.
WARN   | wrapper  | 2012/05/05 13:31:25 | Unable to write to the configured log file: /elasticsearch/logs/service.log (No such file or directory)
WARN   | wrapper  | 2012/05/05 13:31:25 |   Falling back to the default file in the current working directory: wrapper.log
STATUS | wrapper  | 2012/05/05 13:31:25 | --> Wrapper Started as Daemon
STATUS | wrapper  | 2012/05/05 13:31:25 | Java Service Wrapper Community Edition 64-bit 3.5.14
STATUS | wrapper  | 2012/05/05 13:31:25 |   Copyright (C) 1999-2011 Tanuki Software, Ltd. All Rights Reserved.
STATUS | wrapper  | 2012/05/05 13:31:25 |     http://wrapper.tanukisoftware.com
STATUS | wrapper  | 2012/05/05 13:31:25 | 
STATUS | wrapper  | 2012/05/05 13:31:25 | Launching a JVM...
INFO   | jvm 1    | 2012/05/05 13:31:25 | WrapperManager: Initializing...
INFO   | jvm 1    | 2012/05/05 13:31:25 | WrapperSimpleApp Error: Unable to locate the class org.elasticsearch.bootstrap.ElasticSearchF : java.lang.ClassNotFoundException: org.elasticsearch.bootstrap.ElasticSearchF
INFO   | jvm 1    | 2012/05/05 13:31:25 | 
INFO   | jvm 1    | 2012/05/05 13:31:25 | WrapperSimpleApp Usage:
INFO   | jvm 1    | 2012/05/05 13:31:25 |   java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class{/app_method}} [app_arguments]
INFO   | jvm 1    | 2012/05/05 13:31:25 | 
INFO   | jvm 1    | 2012/05/05 13:31:25 | Where:
INFO   | jvm 1    | 2012/05/05 13:31:25 |   app_class:      The fully qualified class name of the application to run.
INFO   | jvm 1    | 2012/05/05 13:31:25 |   app_arguments:  The arguments that would normally be passed to the
INFO   | jvm 1    | 2012/05/05 13:31:25 |                   application.
ERROR  | wrapper  | 2012/05/05 13:31:27 | JVM exited while loading the application.
STATUS | wrapper  | 2012/05/05 13:31:32 | Launching a JVM...
INFO   | jvm 2    | 2012/05/05 13:31:32 | WrapperManager: Initializing...
INFO   | jvm 2    | 2012/05/05 13:31:32 | WrapperSimpleApp Error: Unable to locate the class org.elasticsearch.bootstrap.ElasticSearchF : java.lang.ClassNotFoundException: org.elasticsearch.bootstrap.ElasticSearchF
INFO   | jvm 2    | 2012/05/05 13:31:32 | 
INFO   | jvm 2    | 2012/05/05 13:31:32 | WrapperSimpleApp Usage:
INFO   | jvm 2    | 2012/05/05 13:31:32 |   java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class{/app_method}} [app_arguments]
INFO   | jvm 2    | 2012/05/05 13:31:32 | 
INFO   | jvm 2    | 2012/05/05 13:31:32 | Where:
INFO   | jvm 2    | 2012/05/05 13:31:32 |   app_class:      The fully qualified class name of the application to run.
INFO   | jvm 2    | 2012/05/05 13:31:32 |   app_arguments:  The arguments that would normally be passed to the
INFO   | jvm 2    | 2012/05/05 13:31:32 |                   application.
ERROR  | wrapper  | 2012/05/05 13:31:34 | JVM exited while loading the application.
STATUS | wrapper  | 2012/05/05 13:31:38 | Launching a JVM...
INFO   | jvm 3    | 2012/05/05 13:31:38 | WrapperManager: Initializing...
INFO   | jvm 3    | 2012/05/05 13:31:39 | WrapperSimpleApp Error: Unable to locate the class org.elasticsearch.bootstrap.ElasticSearchF : java.lang.ClassNotFoundException: org.elasticsearch.bootstrap.ElasticSearchF
INFO   | jvm 3    | 2012/05/05 13:31:39 | 
INFO   | jvm 3    | 2012/05/05 13:31:39 | WrapperSimpleApp Usage:
INFO   | jvm 3    | 2012/05/05 13:31:39 |   java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class{/app_method}} [app_arguments]
INFO   | jvm 3    | 2012/05/05 13:31:39 | 
INFO   | jvm 3    | 2012/05/05 13:31:39 | Where:
INFO   | jvm 3    | 2012/05/05 13:31:39 |   app_class:      The fully qualified class name of the application to run.
INFO   | jvm 3    | 2012/05/05 13:31:39 |   app_arguments:  The arguments that would normally be passed to the
INFO   | jvm 3    | 2012/05/05 13:31:39 |                   application.
ERROR  | wrapper  | 2012/05/05 13:31:40 | JVM exited while loading the application.
STATUS | wrapper  | 2012/05/05 13:31:45 | Launching a JVM...
INFO   | jvm 4    | 2012/05/05 13:31:45 | WrapperManager: Initializing...
INFO   | jvm 4    | 2012/05/05 13:31:45 | WrapperSimpleApp Error: Unable to locate the class org.elasticsearch.bootstrap.ElasticSearchF : java.lang.ClassNotFoundException: org.elasticsearch.bootstrap.ElasticSearchF
INFO   | jvm 4    | 2012/05/05 13:31:45 | 
INFO   | jvm 4    | 2012/05/05 13:31:45 | WrapperSimpleApp Usage:
INFO   | jvm 4    | 2012/05/05 13:31:45 |   java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class{/app_method}} [app_arguments]
INFO   | jvm 4    | 2012/05/05 13:31:45 | 
INFO   | jvm 4    | 2012/05/05 13:31:45 | Where:
INFO   | jvm 4    | 2012/05/05 13:31:45 |   app_class:      The fully qualified class name of the application to run.
INFO   | jvm 4    | 2012/05/05 13:31:45 |   app_arguments:  The arguments that would normally be passed to the
INFO   | jvm 4    | 2012/05/05 13:31:45 |                   application.
ERROR  | wrapper  | 2012/05/05 13:31:47 | JVM exited while loading the application.
STATUS | wrapper  | 2012/05/05 13:31:52 | Launching a JVM...
INFO   | jvm 5    | 2012/05/05 13:31:52 | WrapperManager: Initializing...
INFO   | jvm 5    | 2012/05/05 13:31:52 | WrapperSimpleApp Error: Unable to locate the class org.elasticsearch.bootstrap.ElasticSearchF : java.lang.ClassNotFoundException: org.elasticsearch.bootstrap.ElasticSearchF
INFO   | jvm 5    | 2012/05/05 13:31:52 | 
INFO   | jvm 5    | 2012/05/05 13:31:52 | WrapperSimpleApp Usage:
INFO   | jvm 5    | 2012/05/05 13:31:52 |   java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class{/app_method}} [app_arguments]
INFO   | jvm 5    | 2012/05/05 13:31:52 | 
INFO   | jvm 5    | 2012/05/05 13:31:52 | Where:
INFO   | jvm 5    | 2012/05/05 13:31:52 |   app_class:      The fully qualified class name of the application to run.
INFO   | jvm 5    | 2012/05/05 13:31:52 |   app_arguments:  The arguments that would normally be passed to the
INFO   | jvm 5    | 2012/05/05 13:31:52 |                   application.
ERROR  | wrapper  | 2012/05/05 13:31:54 | JVM exited while loading the application.
FATAL  | wrapper  | 2012/05/05 13:31:54 | There were 5 failed launches in a row, each lasting less than 300 seconds.  Giving up.
FATAL  | wrapper  | 2012/05/05 13:31:54 |   There may be a configuration problem: please check the logs.
STATUS | wrapper  | 2012/05/05 13:31:54 | <-- Wrapper Stopped
Any suggestions as to what to look at to try and get this working?

Thanks
 
#5
I've come across the same problem almost exactly. Although I started off with ES version 0.19.0 so I attempted to do the same thing and see if I could use 0.19.3 to no such luck.

I'm much more of a newbie however because I would never have found the message file nor know anything about the wrapper output if it weren't for MattW