Elastic 6.3.2 failing to install custom plugin with java.nio.file.NoSuchFileException Ask

I have a simple custom realm jar which I zipped and the plugin-descriptor.properties file as mentioned in https://www.elastic.co/guide/en/elasticsearch/plugins/current/plugin-authors.html

When I try to do the install with C:\Program Files\elasticsearch-6.3.2\bin> .\elasticsearch-plugin install file:///S:/Sourcecode/ElasticSearch/elastics earch/CustomPlugins/distribution/src/resources/plugin/elasticsearch-main/plugins/x-pack/extensions/auth-6.3.2.0.zip it fails with the below error

[=================================================] 100% Exception in thread "main" java.nio.file.NoSuchFileException: C:\Program Files\elasticsearch-6.3.2\plugins.installing-1 6160103648152251001\plugin-descriptor.properties at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85) at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103) at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108) at java.base/sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:231) at java.base/java.nio.file.Files.newByteChannel(Files.java:369) at java.base/java.nio.file.Files.newByteChannel(Files.java:415) at java.base/java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384) at java.base/java.nio.file.Files.newInputStream(Files.java:154) at org.elasticsearch.plugins.PluginInfo.readFromProperties(PluginInfo.java:163) at org.elasticsearch.plugins.InstallPluginCommand.loadPluginInfo(InstallPluginCommand.java:592) at org.elasticsearch.plugins.InstallPluginCommand.installPlugin(InstallPluginCommand.java:717) at org.elasticsearch.plugins.InstallPluginCommand.install(InstallPluginCommand.java:641) at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:225) at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:210) at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:79) at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) at org.elasticsearch.cli.Command.main(Command.java:90) at org.elasticsearch.plugins.PluginCli.main(PluginCli.java:48) PS C:\Program Files\elasticsearch-6.3.2\bin>

zip
---jar
---plugin-descriptor.properties

I re-organized my packaging, zipped it with maven and made sure the zip is only one root folder with the jar and property files and this helped resolve the issue.

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