Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On a fresh install using console mode, log folder does not get created by wrapper #37

Open
nellicus opened this issue Jan 9, 2015 · 0 comments

Comments

@nellicus
Copy link

nellicus commented Jan 9, 2015

elk@server /opt/elk/elasticsearch$ tar xzf /opt/elk/downloads/elasticsearch-1.4.1.tar.gz -C .
elk@server /opt/elk/elasticsearch$ unzip elasticsearch-servicewrapper-master.zip -d /tmp/
Archive:  elasticsearch-servicewrapper-master.zip
4943d5a7cc87e4c06a5311c0edac6d8ac96d6025
   creating: /tmp/elasticsearch-servicewrapper-master/
 extracting: /tmp/elasticsearch-servicewrapper-master/.gitignore  
.
.
.
.


elk@server /opt/elk/elasticsearch$ vim /tmp/elasticsearch-servicewrapper-master/service/elasticsearch.conf 
elk@server /opt/elk/elasticsearch$ head -1 /tmp/elasticsearch-servicewrapper-master/service/elasticsearch.conf 
set.default.ES_HOME=/opt/elk/elasticsearch/elasticsearch-1.4.1
elk@server /opt/elk/elasticsearch$ $ cp -r /tmp/elasticsearch-servicewrapper-master/service /opt/elk/elasticsearch/elasticsearch-1.4.1/bin/
elk@server /opt/elk/elasticsearch$ $ cd elasticsearch-1.4.1/bin/service
elk@server /opt/elk/elasticsearch/elasticsearch-1.4.1/bin/service $ ./elasticsearch console
Running Elasticsearch...
wrapper  | Unable to write to the configured log directory: /opt/elk/elasticsearch/elasticsearch-1.4.1/logs (No such file or directory)
wrapper  |   The directory does not exist.
wrapper  | Unable to write to the configured log file: /opt/elk/elasticsearch/elasticsearch-1.4.1/logs/service.log (No such file or directory)
wrapper  |   Falling back to the default file in the current working directory: wrapper.log
wrapper  | --> Wrapper Started as Console
wrapper  | Java Service Wrapper Community Edition 64-bit 3.5.14
wrapper  |   Copyright (C) 1999-2011 Tanuki Software, Ltd. All Rights Reserved.
wrapper  |     http://wrapper.tanukisoftware.com
wrapper  | 
wrapper  | Launching a JVM...
jvm 1    | WrapperManager: Initializing...
jvm 1    | [2015-01-09 10:31:00,497][INFO ][node                     ] [Shocker] version[1.4.1], pid[7183], build[89d3241/2014-11-26T15:49:29Z]
jvm 1    | [2015-01-09 10:31:00,497][INFO ][node                     ] [Shocker] initializing ...
jvm 1    | [2015-01-09 10:31:00,501][INFO ][plugins                  ] [Shocker] loaded [], sites []
jvm 1    | [2015-01-09 10:31:02,385][INFO ][node                     ] [Shocker] initialized
jvm 1    | [2015-01-09 10:31:02,386][INFO ][node                     ] [Shocker] starting ...
jvm 1    | [2015-01-09 10:31:02,470][INFO ][transport                ] [Shocker] bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address {inet[/192.168.0.201:9300]}
jvm 1    | [2015-01-09 10:31:02,489][INFO ][discovery                ] [Shocker] elasticsearch/ho6WPOfZQBepa8_pbt4Lhg
jvm 1    | [2015-01-09 10:31:06,268][INFO ][cluster.service          ] [Shocker] new_master [Shocker][ho6WPOfZQBepa8_pbt4Lhg][w530][inet[/192.168.0.201:9300]], reason: zen-disco-join (elected_as_master)
jvm 1    | [2015-01-09 10:31:06,289][INFO ][http                     ] [Shocker] bound_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish_address {inet[/192.168.0.201:9200]}
jvm 1    | [2015-01-09 10:31:06,290][INFO ][node                     ] [Shocker] started
jvm 1    | [2015-01-09 10:31:06,312][INFO ][gateway                  ] [Shocker] recovered [0] indices into cluster_state
^Cwrapper  | INT trapped.  Shutting down.
jvm 1    | [2015-01-09 10:31:14,999][INFO ][node                     ] [Shocker] stopping ...
jvm 1    | [2015-01-09 10:31:15,029][INFO ][node                     ] [Shocker] stopped
jvm 1    | [2015-01-09 10:31:15,029][INFO ][node                     ] [Shocker] closing ...
jvm 1    | [2015-01-09 10:31:15,036][INFO ][node                     ] [Shocker] closed
wrapper  | <-- Wrapper Stopped

The folder does get created by elasticsearch process starting after the wrapper.
wrapper.log ends up in $ES_HOME

elk@server /opt/elk/elasticsearch/elasticsearch-1.4.1 $ find . -type f -name wrapper*
./wrapper.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant