Hi Steven, your /home/data/elasticsearch and /home/log/elasticsearch folder should be owned by elasticsearch and should have write permissions. Could you confirm that for me.. pls..
Thanks and Regards Sri On Friday, June 27, 2014 3:32:10 PM UTC-4, Steven Yue wrote: > > Hi, Sri > > I tried to change logging level to TRACE in logging.yml file, but still it > just did not create any logs. > > I noticed it only read settings inside "/etc/default/elasticsearch", but > never read settings inside "/etc/elasticsearch/elasticsearch.yml", even > though I have 'CONF_FILE=/etc/elasticsearch/elasticsearch.yml' > > So if I set 'LOG_DIR=/home/log/elasticsearch', > 'DATA_DIR=/home/data/elasticsearch' > inside "/etc/default/elasticsearch", it will at least create those > directories accordingly when starting, but it will not if I set those > variables inside 'elasticsearch.yml' file using path.data, path.logs. > > This also makes me believe the logging.yml file is never read. > > On Friday, June 27, 2014 11:38:06 AM UTC-4, sri wrote: >> >> Hi Steven, >> >> Change the logging level to TRACE or DEBUG and check the logs , you >> should be able to identify the problem. >> Hope that helps >> >> Thanks and Regards >> Sri >> >> On Friday, June 27, 2014 10:51:36 AM UTC-4, Steven Yue wrote: >>> >>> Hi, everyone >>> >>> I'm trying to install elasticsearch 1.2.1 on a ubuntu 14.04 server. >>> >>> I used the dpkg -i to install >>> >>> When I run 'sudo /etc/init.d/elasticsearch start', it says: "Starting >>> Elasticsearch Server [ OK ]", but actually no process is ever started, and >>> I couldn't find any errors or any logs in the log folder( >>> /var/log/elasticsearch). >>> >>> I tried to run 'sudo /usr/share/elasticsearch/bin/elasticsearch start' >>> directly, and it is able to start and i can get response when using curl, >>> although it gives me the following warnning: >>> >>> log4j:WARN No appenders could be found for logger (node). >>> log4j:WARN Please initialize the log4j system properly. >>> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig >>> for more info. >>> >>> >>> I tried to edit settings in /etc/default/elasticsearch, uncommented the >>> following lines: >>> >>> ES_HEAP_SIZE=2g >>> >>> MAX_LOCKED_MEMORY=unlimited >>> >>> # Elasticsearch log directory >>> LOG_DIR=/var/log/elasticsearch >>> >>> # Elasticsearch data directory >>> DATA_DIR=/home/data/elasticsearch >>> >>> # Elasticsearch work directory >>> WORK_DIR=/home/tmp/elasticsearch >>> >>> # Elasticsearch configuration directory >>> CONF_DIR=/etc/elasticsearch >>> >>> # Elasticsearch configuration file (elasticsearch.yml) >>> CONF_FILE=/etc/elasticsearch/elasticsearch.yml >>> >>> When restart the service, I did see it created the folder, but still >>> failed to run, even thought it says 'OK' >>> >>> >>> Could anyone help me to figure out why and how to run it? Thanks >>> >>> >>> -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/c2d6da45-aa36-4294-81a1-52ca908e5c2e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
