Missing plugin-descriptor.properties


#1

hey, i am trying to install x-pack plugin.
Here is my command:
./elasticsearch-plugin install file:///home/admin/Downloads/x-pack-6.2.1.zip

Once i execute i get the following error:

Exception in thread "main" java.nio.file.NoSuchFileException: /usr/share/elasticsearch/plugins/.installing-1923361234913937038/plugin-descriptor.properties
	at sun.nio.fs.UnixException.translateToIOException(Unknown Source)
	at sun.nio.fs.UnixException.rethrowAsIOException(Unknown Source)
	at sun.nio.fs.UnixException.rethrowAsIOException(Unknown Source)
	at sun.nio.fs.UnixFileSystemProvider.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:123) 
	at org.elasticsearch.plugins.InstallPluginCommand.verify(InstallPluginCommand.java:532)
	at org.elasticsearch.plugins.InstallPluginCommand.install(InstallPluginCommand.java:601)
	at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:215)
	at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:204)
	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:75)
	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: the directory .installing-1923361234913937038 is random so on every execution i get a different directory

thank you


(Alexander Reelsen) #2

hey,

which operating system is this? Which link did you download for the 6.2.1 zip file? Are you running with internet enabled/disabled when you install the plugin?

--Alex


#3

internet is disabled i have to simulate an offline installation.
running it on Centos 7
i downloaded the Zip from the x-path install guideline

https://artifacts.elastic.co/downloads/packs/x-pack/x-pack-6.2.1.zip

and thank you for your fast reply.


(Alexander Reelsen) #4

A see some weirdness going on with the above error message (the mentioned line numbers do not match with 6.2.1, as if another/older version of Elasticsearch is installed).

Have you upgraded Elasticsearch as well? If so, which version were you on before? Can you run the following command?

find /usr/share/elasticsearch/ -type f

and paste the output here?

In case you upgraded Elasticsearch, which commands did you run?

Thank you!


#5

here is the result i got. does it mean i am on ES 6.1.3 ?

/usr/share/elasticsearch/lib/lucene-spatial3d-7.1.0.jar
/usr/share/elasticsearch/lib/jopt-simple-5.0.2.jar
/usr/share/elasticsearch/lib/securesm-1.2.jar
/usr/share/elasticsearch/lib/lucene-spatial-extras-7.1.0.jar
/usr/share/elasticsearch/lib/lucene-backward-codecs-7.1.0.jar
/usr/share/elasticsearch/lib/t-digest-3.0.jar
/usr/share/elasticsearch/lib/lucene-queries-7.1.0.jar
/usr/share/elasticsearch/lib/jackson-dataformat-cbor-2.8.10.jar
/usr/share/elasticsearch/lib/elasticsearch-6.1.3.jar
/usr/share/elasticsearch/lib/lucene-spatial-7.1.0.jar
/usr/share/elasticsearch/lib/lucene-queryparser-7.1.0.jar
/usr/share/elasticsearch/lib/lucene-grouping-7.1.0.jar
/usr/share/elasticsearch/lib/snakeyaml-1.17.jar
/usr/share/elasticsearch/lib/lucene-join-7.1.0.jar
/usr/share/elasticsearch/lib/elasticsearch-cli-6.1.3.jar
/usr/share/elasticsearch/lib/lucene-misc-7.1.0.jar
/usr/share/elasticsearch/lib/lucene-sandbox-7.1.0.jar
/usr/share/elasticsearch/lib/log4j-1.2-api-2.9.1.jar
/usr/share/elasticsearch/lib/lucene-suggest-7.1.0.jar
/usr/share/elasticsearch/lib/spatial4j-0.6.jar
/usr/share/elasticsearch/lib/plugin-cli-6.1.3.jar
/usr/share/elasticsearch/lib/log4j-core-2.9.1.jar
/usr/share/elasticsearch/lib/jackson-dataformat-yaml-2.8.10.jar
/usr/share/elasticsearch/lib/jackson-core-2.8.10.jar
/usr/share/elasticsearch/lib/jackson-dataformat-smile-2.8.10.jar
/usr/share/elasticsearch/lib/joda-time-2.9.5.jar
/usr/share/elasticsearch/lib/lucene-core-7.1.0.jar
/usr/share/elasticsearch/lib/lucene-highlighter-7.1.0.jar
/usr/share/elasticsearch/lib/jts-1.13.jar
/usr/share/elasticsearch/lib/lucene-memory-7.1.0.jar
/usr/share/elasticsearch/lib/jna-4.4.0-1.jar
/usr/share/elasticsearch/lib/log4j-api-2.9.1.jar
/usr/share/elasticsearch/lib/lucene-analyzers-common-7.1.0.jar
/usr/share/elasticsearch/lib/java-version-checker-6.1.3.jar
/usr/share/elasticsearch/lib/HdrHistogram-2.1.9.jar
/usr/share/elasticsearch/lib/hppc-0.7.1.jar
/usr/share/elasticsearch/plugins/plugin-descriptor.properties
/usr/share/elasticsearch/plugins/.installing-962109684491818750/plugin-descriptor.properties
/usr/share/elasticsearch/modules/parent-join/plugin-descriptor.properties
/usr/share/elasticsearch/modules/parent-join/parent-join-6.1.3.jar
/usr/share/elasticsearch/modules/lang-expression/lucene-expressions-7.1.0.jar
/usr/share/elasticsearch/modules/lang-expression/asm-tree-5.0.4.jar
/usr/share/elasticsearch/modules/lang-expression/plugin-descriptor.properties
/usr/share/elasticsearch/modules/lang-expression/plugin-security.policy
/usr/share/elasticsearch/modules/lang-expression/asm-commons-5.0.4.jar
/usr/share/elasticsearch/modules/lang-expression/lang-expression-6.1.3.jar
/usr/share/elasticsearch/modules/lang-expression/asm-5.0.4.jar
/usr/share/elasticsearch/modules/lang-expression/antlr4-runtime-4.5.1-1.jar
/usr/share/elasticsearch/modules/lang-mustache/lang-mustache-6.1.3.jar
/usr/share/elasticsearch/modules/lang-mustache/plugin-descriptor.properties
/usr/share/elasticsearch/modules/lang-mustache/plugin-security.policy
/usr/share/elasticsearch/modules/lang-mustache/compiler-0.9.3.jar
/usr/share/elasticsearch/modules/ingest-common/plugin-descriptor.properties
/usr/share/elasticsearch/modules/ingest-common/jcodings-1.0.12.jar
/usr/share/elasticsearch/modules/ingest-common/joni-2.1.6.jar
/usr/share/elasticsearch/modules/ingest-common/ingest-common-6.1.3.jar
/usr/share/elasticsearch/modules/tribe/plugin-descriptor.properties
/usr/share/elasticsearch/modules/tribe/tribe-6.1.3.jar
/usr/share/elasticsearch/modules/aggs-matrix-stats/plugin-descriptor.properties
/usr/share/elasticsearch/modules/aggs-matrix-stats/aggs-matrix-stats-6.1.3.jar
/usr/share/elasticsearch/modules/lang-painless/antlr4-runtime-4.5.3.jar
/usr/share/elasticsearch/modules/lang-painless/plugin-descriptor.properties
/usr/share/elasticsearch/modules/lang-painless/plugin-security.policy
/usr/share/elasticsearch/modules/lang-painless/lang-painless-6.1.3.jar
/usr/share/elasticsearch/modules/lang-painless/asm-debug-all-5.1.jar
/usr/share/elasticsearch/modules/mapper-extras/plugin-descriptor.properties
/usr/share/elasticsearch/modules/mapper-extras/mapper-extras-6.1.3.jar
/usr/share/elasticsearch/modules/percolator/plugin-descriptor.properties
/usr/share/elasticsearch/modules/percolator/percolator-6.1.3.jar
/usr/share/elasticsearch/modules/transport-netty4/netty-codec-http-4.1.13.Final.jar
/usr/share/elasticsearch/modules/transport-netty4/netty-handler-4.1.13.Final.jar
/usr/share/elasticsearch/modules/transport-netty4/plugin-descriptor.properties
/usr/share/elasticsearch/modules/transport-netty4/plugin-security.policy
/usr/share/elasticsearch/modules/transport-netty4/netty-common-4.1.13.Final.jar
/usr/share/elasticsearch/modules/transport-netty4/netty-transport-4.1.13.Final.jar
/usr/share/elasticsearch/modules/transport-netty4/netty-codec-4.1.13.Final.jar
/usr/share/elasticsearch/modules/transport-netty4/transport-netty4-6.1.3.jar
/usr/share/elasticsearch/modules/transport-netty4/netty-buffer-4.1.13.Final.jar
/usr/share/elasticsearch/modules/transport-netty4/netty-resolver-4.1.13.Final.jar
/usr/share/elasticsearch/modules/analysis-common/plugin-descriptor.properties
/usr/share/elasticsearch/modules/analysis-common/analysis-common-6.1.3.jar
/usr/share/elasticsearch/modules/reindex/commons-codec-1.10.jar
/usr/share/elasticsearch/modules/reindex/httpasyncclient-4.1.2.jar
/usr/share/elasticsearch/modules/reindex/plugin-descriptor.properties
/usr/share/elasticsearch/modules/reindex/plugin-security.policy
/usr/share/elasticsearch/modules/reindex/elasticsearch-rest-client-6.1.3.jar
/usr/share/elasticsearch/modules/reindex/httpclient-4.5.2.jar
/usr/share/elasticsearch/modules/reindex/httpcore-4.4.5.jar
/usr/share/elasticsearch/modules/reindex/httpcore-nio-4.4.5.jar
/usr/share/elasticsearch/modules/reindex/commons-logging-1.1.3.jar
/usr/share/elasticsearch/modules/reindex/reindex-6.1.3.jar
/usr/share/elasticsearch/modules/repository-url/plugin-descriptor.properties
/usr/share/elasticsearch/modules/repository-url/plugin-security.policy
/usr/share/elasticsearch/modules/repository-url/repository-url-6.1.3.jar
/usr/share/elasticsearch/bin/elasticsearch-env
/usr/share/elasticsearch/bin/elasticsearch
/usr/share/elasticsearch/bin/elasticsearch-keystore
/usr/share/elasticsearch/bin/elasticsearch-translog
/usr/share/elasticsearch/bin/elasticsearch-plugin
/usr/share/elasticsearch/NOTICE.txt
/usr/share/elasticsearch/LICENSE.txt
/usr/share/elasticsearch/README.textile

(Alexander Reelsen) #6

That looks good.

Can you run

/usr/share/elasticsearch/bin/elasticsearch-plugin install file:///home/admin/Downloads/x-pack-6.2.1.zip

I just want to make sure, the path is the right one (sorry for debugging this kind of simple failures, but I just want to exclude a bunch of things and be sure the right code is called).

What about the other upgrade questions?


#7
Exception in thread "main" java.nio.file.NoSuchFileException: /usr/share/elasticsearch/plugins/.installing-5733003099348288587/plugin-descriptor.properties
	at sun.nio.fs.UnixException.translateToIOException(Unknown Source)
	at sun.nio.fs.UnixException.rethrowAsIOException(Unknown Source)
	at sun.nio.fs.UnixException.rethrowAsIOException(Unknown Source)
	at sun.nio.fs.UnixFileSystemProvider.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:123)
	at org.elasticsearch.plugins.InstallPluginCommand.verify(InstallPluginCommand.java:532)
	at org.elasticsearch.plugins.InstallPluginCommand.install(InstallPluginCommand.java:601)
	at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:215)
	at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:204)
	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:75)
	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)

i get the same message error.

no upgrade was done it was a fresh install.


(Alexander Reelsen) #8

Hey,

so you are on 6.1.3 locally according to the find call, but try to install x-pack 6.2.1 here. What does rpm -q elasticsearch return?

This is the version mismatch, that I was searching for. I didnt correctly read it for the first time.

Can you try to install x-pack 6.1.3 together with elasticsearch 6.1.3 or x-pack 6.2.1 with Elasticsearch 6.2.1 RPM?

--Alex


#9
elasticsearch-6.1.3-1.noarch

that is the return .
so i need to install x-pack 6.1.3 ?


(Alexander Reelsen) #10

yes, each plugin needs to resemble the version of ES, x-pack is no exception.


#11

Thank you for your support.

Keep up the awsome work.


(system) #12

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