Windows 10: Crash on ES 5 Startup (NoSuchFileException lang-groovy\plugin-descriptor.properties)


(Michael Sander) #1

I have been experimenting with Elasticsearch 5.0 on my Windows 10 laptop, but I'm having difficulty starting it due to the following error:

java.nio.file.NoSuchFileException: C:\Users\---\Downloads\elasticsearch\5.0.0-beta1\modules\lang-groovy\plugin-descriptor.properties`

Below is the full stack trace:

C:\Users\---\Downloads\elasticsearch\5.0.0-beta1\bin>elasticsearch
[2016-09-28T18:11:43,136][INFO ][o.e.n.Node               ] [] initializing ...
[2016-09-28T18:11:43,202][INFO ][o.e.e.NodeEnvironment    ] [P_nP9R_] using [1] data paths, mounts [[(C:)]], net usable_space [333.9gb], net total_space [459gb], spins? [unknown], types [NTFS]
[2016-09-28T18:11:43,202][INFO ][o.e.e.NodeEnvironment    ] [P_nP9R_] heap size [1.9gb], compressed ordinary object pointers [true]
[2016-09-28T18:11:43,202][INFO ][o.e.n.Node               ] [P_nP9R_] node name [P_nP9R_] derived from node ID; set [node.name] to override
[2016-09-28T18:11:43,218][INFO ][o.e.n.Node               ] [P_nP9R_] version[5.0.0-beta1], pid[7040], build[7eb6260/2016-09-20T23:10:37.942Z], OS[Windows 10/10.0/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_101/25.101-b13]
[2016-09-28T18:11:43,236][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: Unable to initialize modules
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:116)
        at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:103)
        at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54)
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:96)
        at org.elasticsearch.cli.Command.main(Command.java:62)
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:80)
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:73)
Caused by: java.lang.IllegalStateException: Unable to initialize modules
        at org.elasticsearch.plugins.PluginsService.<init>(PluginsService.java:136)
        at org.elasticsearch.node.Node.<init>(Node.java:280)
        at org.elasticsearch.node.Node.<init>(Node.java:218)
        at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:191)
        at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:191)
        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:286)
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:112)
        ... 6 more
Caused by: java.nio.file.NoSuchFileException: C:\Users\---\Downloads\elasticsearch\5.0.0-beta1\modules\lang-groovy\plugin-descriptor.properties
        at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:79) ~[?:?]
        at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97) ~[?:?]
        at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102) ~[?:?]
        at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:230) ~[?:?]
        at java.nio.file.Files.newByteChannel(Files.java:361) ~[?:1.8.0_101]
        at java.nio.file.Files.newByteChannel(Files.java:407) ~[?:1.8.0_101]
        at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384) ~[?:1.8.0_101]
        at java.nio.file.Files.newInputStream(Files.java:152) ~[?:1.8.0_101]
        at org.elasticsearch.plugins.PluginInfo.readFromProperties(PluginInfo.java:86)
        at org.elasticsearch.plugins.PluginsService.getModuleBundles(PluginsService.java:335)
        at org.elasticsearch.plugins.PluginsService.<init>(PluginsService.java:129)
        at org.elasticsearch.node.Node.<init>(Node.java:280)
        at org.elasticsearch.node.Node.<init>(Node.java:218)
        at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:191)
        at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:191)
        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:286)
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:112)
        ... 6 more

I don't have any special ES_ environment variables. Here is JAVA_HOME:

...bin>set |grep JAVA
JAVA_HOME=c:\Program Files\Java\jdk1.8.0_101

(Michael Sander) #2

I got it working by deleting the groovy-lang directory, but this still seems like an issue.


(system) #3