No success installing ror for ES

I try to upgrade ror for ES 8.5.2 following the appropriate instructions.
When doing sudo bin/elasticsearch-plugin install file:///home/*****/Downloads/readonlyrest-1.45.0_es8.5.2.zip i get errors:

-> Installing file:///home/*****/Downloads/readonlyrest-1.45.0_es8.5.2.zip
-> Downloading file:///home/*****/Downloads/readonlyrest-1.45.0_es8.5.2.zip
-> Failed installing file:///home/*****/Downloads/readonlyrest-1.45.0_es8.5.2.zip
-> Rolling back file:///home/*****/Downloads/readonlyrest-1.45.0_es8.5.2.zip
-> Rolled back file:///home/*****/Downloads/readonlyrest-1.45.0_es8.5.2.zip
Exception in thread "main" java.io.FileNotFoundException: /home/*****/Downloads/readonlyrest-1.45.0_es8.5.2.zip (Datei oder Verzeichnis nicht gefunden)
	at java.base/java.io.FileInputStream.open0(Native Method)
	at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
	at java.base/java.io.FileInputStream.<init>(FileInputStream.java:158)
	at java.base/java.io.FileInputStream.<init>(FileInputStream.java:112)
	at java.base/sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:86)
	at java.base/sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:189)
	at org.elasticsearch.plugins.cli.InstallPluginAction.downloadZip(InstallPluginAction.java:465)
	at org.elasticsearch.plugins.cli.InstallPluginAction.download(InstallPluginAction.java:329)
	at org.elasticsearch.plugins.cli.InstallPluginAction.execute(InstallPluginAction.java:247)
	at org.elasticsearch.plugins.cli.InstallPluginCommand.execute(InstallPluginCommand.java:89)
	at org.elasticsearch.common.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:54)
	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:85)
	at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:94)
	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:85)
	at org.elasticsearch.cli.Command.main(Command.java:50)
	at org.elasticsearch.launcher.CliToolLauncher.main(CliToolLauncher.java:64)

If somebody knows how to resolve, any hint would be very welcome.

I’ve just checked and I was able to install ROR 1.45.0 for ES 8.5.2 on Linux with no issues.

Exception in thread "main" java.io.FileNotFoundException: /home/*****/Downloads/readonlyrest-1.45.0_es8.5.2.zip

this error clearly says that the plugin zip file doesn’t exist.

When I enter the wrong file name I see sth similar:

[email protected]:/usr/share/elasticsearch# bin/elasticsearch-plugin install file:///tmp/readonlyrest-1.45.0_es8.5.2_NOT_EXISTS.zip
-> Installing file:///tmp/readonlyrest-1.45.0_es8.5.2_NOT_EXISTS.zip
-> Downloading file:///tmp/readonlyrest-1.45.0_es8.5.2_NOT_EXISTS.zip
-> Failed installing file:///tmp/readonlyrest-1.45.0_es8.5.2_NOT_EXISTS.zip
-> Rolling back file:///tmp/readonlyrest-1.45.0_es8.5.2_NOT_EXISTS.zip
-> Rolled back file:///tmp/readonlyrest-1.45.0_es8.5.2_NOT_EXISTS.zip
Exception in thread "main" java.io.FileNotFoundException: /tmp/readonlyrest-1.45.0_es8.5.2_NOT_EXISTS.zip (No such file or directory)
	at java.base/java.io.FileInputStream.open0(Native Method)
	at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
	at java.base/java.io.FileInputStream.<init>(FileInputStream.java:158)
	at java.base/java.io.FileInputStream.<init>(FileInputStream.java:112)
	at java.base/sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:86)
	at java.base/sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:189)
	at org.elasticsearch.plugins.cli.InstallPluginAction.downloadZip(InstallPluginAction.java:465)
	at org.elasticsearch.plugins.cli.InstallPluginAction.download(InstallPluginAction.java:329)
	at org.elasticsearch.plugins.cli.InstallPluginAction.execute(InstallPluginAction.java:247)
	at org.elasticsearch.plugins.cli.InstallPluginCommand.execute(InstallPluginCommand.java:89)
	at org.elasticsearch.common.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:54)
	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:85)
	at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:94)
	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:85)
	at org.elasticsearch.cli.Command.main(Command.java:50)
	at org.elasticsearch.launcher.CliToolLauncher.main(CliToolLauncher.java:64)

please verify if your zip file or/and its path is correct.

Sorry for the interruption.
Me stupid :frowning:

Lol don’t say that! Someone in the future will google some part of this stack trace and find the exact solution. This is good and useful!

1 Like