Elasticsearch service start failed

Hi All,

I tried to start the elasticsearch service on command line(service start) which returned below error in log file-
[2016-06-09 15:46:04] [error] [ 6328] Failed to start 'elasticsearch-service-x64' service
[2016-06-09 15:46:04] [error] [ 6328] The data area passed to a system call is too small.
[2016-06-09 15:46:04] [info] [ 6328] Start service finished.
[2016-06-09 15:46:04] [error] [ 6328] Commons Daemon procrun failed with exit value: 5 (Failed to start service)
[2016-06-09 15:46:04] [error] [ 6328] The data area passed to a system call is too small.

I have gone through some of the previous topics created with same subject line suggesting to delete & reinstall elasticsearch again but I have indexed data which might get lost if I perform the activity.

Please suggest.

Regards,
Prateek Divya

I found out in the event log -
The Elasticsearch 2.1.0 (elasticsearch-service-x64) service terminated with service-specific error Incorrect function.

2016-06-09 16:05:37 Commons Daemon procrun stderr initialized
Java HotSpot(TM) 64-Bit Server VM warning: Using the ParNew young collector with the Serial old collector is deprecated and will likely be removed in a future release
Exception in thread "main" iptor.properties
at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(Unknown Source)
at java.nio.file.Files.newByteChannel(Unknown Source)
at java.nio.file.Files.newByteChannel(Unknown Source)
at java.nio.file.spi.FileSystemProvider.newInputStream(Unknown Source)
at java.nio.file.Files.newInputStream(Unknown Source)
at org.elasticsearch.plugins.PluginInfo.readFromProperties(PluginInfo.java:86)
at org.elasticsearch.plugins.PluginsService.getPluginBundles(PluginsService.java:302)
at org.elasticsearch.plugins.PluginsService.(PluginsService.java:108)
at org.elasticsearch.node.Node.(Node.java:148)
at org.elasticsearch.node.Node.(Node.java:129)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:145)
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:178)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:285)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)
Refer to the log for complete error details.
The data area passed to a system call is too small.

Failed to start service

It looks like you've changed the GC settings? The serial old collector is not a good collector for use with a server application like Elasticsearch.

This is truncated. Can you share the entire exception?

It looks like you're encountering some sort of I/O exception while attempting to read a plugin descriptor file, but it's hard to say without seeing the part of the exception that was truncated exactly what happened.

There was a java auto update happened on system which I suppose had impacted the GC setting.[quote="jasontedor, post:3, topic:52314"]
This is truncated. Can you share the entire exception?

It looks like you're encountering some sort of I/O exception while attempting to read a plugin descriptor file, but it's hard to say without seeing the part of the exception that was truncated exactly what happened.
[/quote]

Thanks for the help.
I just checked out the ELASTICSEARCH.log which is having entry for -

[2016-06-09 17:05:12,361][ERROR][bootstrap ] Exception
java.lang.IllegalStateException: Unable to initialize plugins
at org.elasticsearch.plugins.PluginsService.(PluginsService.java:111)
at org.elasticsearch.node.Node.(Node.java:148)
at org.elasticsearch.node.Node.(Node.java:129)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:145)
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:178)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:285)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)
Caused by: java.nio.file.NoSuchFileException: ELK\Elasticsearch\elasticsearch-2.1.0\plugins\graph-2.3.3.zip\plugin-descriptor.properties
at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(Unknown Source)
at java.nio.file.Files.newByteChannel(Unknown Source)
at java.nio.file.Files.newByteChannel(Unknown Source)
at java.nio.file.spi.FileSystemProvider.newInputStream(Unknown Source)
at java.nio.file.Files.newInputStream(Unknown Source)
at org.elasticsearch.plugins.PluginInfo.readFromProperties(PluginInfo.java:86)
at org.elasticsearch.plugins.PluginsService.getPluginBundles(PluginsService.java:302)
at org.elasticsearch.plugins.PluginsService.(PluginsService.java:108)
... 6 more

Regards,
Prateek

That can't be, Elasticsearch specifies its own GC settings in the startup scripts / service definition.

Your problem is this, you appear to have a botched plugin installation. I suggest removing that plugin and trying again. Also, I note that you appear to be running version 2.1.0 of Elasticsearch with version 2.3.3 of a plugin? If that's the official graph plugin, that will not work.

I am sure I have not touched even a letter here :slight_smile:

yes that's completely official graph :slight_smile: ) Also it was not working with 2.1.0 but kibana was working well before alongside.
I had planned an upgrade using Rolling Restarts | Elasticsearch: The Definitive Guide [2.x] | Elastic
but it went down completely.
It worked when I removed Graph.

Thank you for the help.
Regards,
Prateek