Elastic search not starting please help

● elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2019-07-16 11:10:16 IST; 9s ago
Docs: http://www.elastic.co
Process: 13028 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch.pid --quiet (code=exited, status=1/FAILURE)
Main PID: 13028 (code=exited, status=1/FAILURE)

Jul 16 11:10:11 traderji systemd[1]: Started Elasticsearch.
Jul 16 11:10:13 traderji elasticsearch[13028]: Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Jul 16 11:10:16 traderji systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
Jul 16 11:10:16 traderji systemd[1]: elasticsearch.service: Unit entered failed state.
Jul 16 11:10:16 traderji systemd[1]: elasticsearch.service: Failed with result 'exit-code'.

Welcome!

Please share elasticsearch logs.

Please read this about how to format.

there are no recent logs in /var/log/elasticsearch/elasticsearch.log

But what is the content of this file?

at org.elasticsearch.action.search.AbstractSearchAsyncAction.onFirstPhaseResult(AbstractSearchAsyncAction.java:206)

at org.elasticsearch.action.search.AbstractSearchAsyncAction$1.onFailure(AbstractSearchAsyncAction.java:152)

at org.elasticsearch.action.ActionListenerResponseHandler.handleException(ActionListenerResponseHandler.java:46)

at org.elasticsearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:874)

at org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:852)

at org.elasticsearch.transport.TransportService$4.onFailure(TransportService.java:389)

at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:39)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:748)

Caused by: [maxClauseCount is set to 1024]; nested: TooManyClauses[maxClauseCount is set to 1024];

at org.elasticsearch.ElasticsearchException.guessRootCauses(ElasticsearchException.java:386)

at org.elasticsearch.action.search.SearchPhaseExecutionException.guessRootCauses(SearchPhaseExecutionException.java:152)

at org.elasticsearch.action.search.SearchPhaseExecutionException.getCause(SearchPhaseExecutionException.java:99)

at java.lang.Throwable.printStackTrace(Throwable.java:665)

at java.lang.Throwable.printStackTrace(Throwable.java:721)

at org.apache.log4j.DefaultThrowableRenderer.render(DefaultThrowableRenderer.java:60)

at org.apache.log4j.spi.ThrowableInformation.getThrowableStrRep(ThrowableInformation.java:87)

at org.apache.log4j.spi.LoggingEvent.getThrowableStrRep(LoggingEvent.java:413)

at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:313)

at org.apache.log4j.WriterAppender.append(WriterAppender.java:162)

at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)

at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)

at org.apache.log4j.Category.callAppenders(Category.java:206)

at org.apache.log4j.Category.forcedLog(Category.java:391)

at org.apache.log4j.Category.log(Category.java:856)

at org.elasticsearch.common.logging.log4j.Log4jESLogger.internalWarn(Log4jESLogger.java:135)

at org.elasticsearch.common.logging.support.AbstractESLogger.warn(AbstractESLogger.java:109)

at org.elasticsearch.rest.BytesRestResponse.convert(BytesRestResponse.java:134)

at org.elasticsearch.rest.BytesRestResponse.<init>(BytesRestResponse.java:96)

at org.elasticsearch.rest.BytesRestResponse.<init>(BytesRestResponse.java:87)

at org.elasticsearch.rest.action.support.RestActionListener.onFailure(RestActionListener.java:60)

at org.elasticsearch.action.support.TransportAction$1.onFailure(TransportAction.java:95)

at org.elasticsearch.action.search.AbstractSearchAsyncAction.raiseEarlyFailure(AbstractSearchAsyncAction.java:294)

... 10 more

Caused by: org.apache.lucene.search.BooleanQuery$TooManyClauses: maxClauseCount is set to 1024

at org.apache.lucene.search.BooleanQuery$Builder.add(BooleanQuery.java:137)

at org.apache.lucene.queryparser.simple.SimpleQueryParser.addClause(SimpleQueryParser.java:424)

at org.apache.lucene.queryparser.simple.SimpleQueryParser.buildQueryTree(SimpleQueryParser.java:463)

at org.apache.lucene.queryparser.simple.SimpleQueryParser.consumeToken(SimpleQueryParser.java:413)

at org.apache.lucene.queryparser.simple.SimpleQueryParser.parseSubQuery(SimpleQueryParser.java:211)

at org.apache.lucene.queryparser.simple.SimpleQueryParser.parse(SimpleQueryParser.java:151)

at org.elasticsearch.index.query.SimpleQueryStringParser.parse(SimpleQueryStringParser.java:211)

at org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:250)

at org.elasticsearch.index.query.BoolQueryParser.parse(BoolQueryParser.java:76)

at org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:250)

at org.elasticsearch.index.query.IndexQueryParserService.innerParse(IndexQueryParserService.java:324)

at org.elasticsearch.index.query.IndexQueryParserService.parse(IndexQueryParserService.java:224)

at org.elasticsearch.index.query.IndexQueryParserService.parse(IndexQueryParserService.java:219)

at org.elasticsearch.search.query.QueryParseElement.parse(QueryParseElement.java:33)

at org.elasticsearch.search.SearchService.parseSource(SearchService.java:856)

at org.elasticsearch.search.SearchService.createContext(SearchService.java:667)

at org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:633)

at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:377)

at org.elasticsearch.search.action.SearchServiceTransportAction$SearchQueryTransportHandler.messageReceived(SearchServiceTransportAction.java:368)

at org.elasticsearch.search.action.SearchServiceTransportAction$SearchQueryTransportHandler.messageReceived(SearchServiceTransportAction.java:365)

at org.elasticsearch.transport.TransportRequestHandler.messageReceived(TransportRequestHandler.java:33)

at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:77)

at org.elasticsearch.transport.TransportService$4.doRun(TransportService.java:378)

at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)

... 3 more

Is that the full content of the file?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.