Failed installing siren-federate-7.3.2-19.0 with ES 7.6.1

Hi, and sorry for my english, I’m a french.

I try to install siren-federate plugin with Docker and ES 7.6.1.
I’ve an error during the plugin installation :

Step 1/7 : FROM elasticsearch:7.6.1
—> 41072cdeebc5
Step 2/7 : RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install file://siren-federate-7.3.2-19.0-proguard-plugin.zip
—> Running in 00c710919d88
-> Installing file://siren-federate-7.3.2-19.0-proguard-plugin.zip
-> Downloading file://siren-federate-7.3.2-19.0-proguard-plugin.zip
-> Failed installing file://siren-federate-7.3.2-19.0-proguard-plugin.zip
-> Rolling back file://siren-federate-7.3.2-19.0-proguard-plugin.zip
-> Rolled back file://siren-federate-7.3.2-19.0-proguard-plugin.zip
Exception in thread “main” java.net.UnknownHostException: siren-federate-7.3.2-19.0-proguard-plugin.zip
at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:567)
at java.base/java.net.Socket.connect(Socket.java:603)
at java.base/sun.net.ftp.impl.FtpClient.doConnect(FtpClient.java:961)
at java.base/sun.net.ftp.impl.FtpClient.tryConnect(FtpClient.java:923)
at java.base/sun.net.ftp.impl.FtpClient.connect(FtpClient.java:1018)
at java.base/sun.net.ftp.impl.FtpClient.connect(FtpClient.java:1004)
at java.base/sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:312)
at java.base/sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:418)
at org.elasticsearch.plugins.InstallPluginCommand.downloadZip(InstallPluginCommand.java:449)
at org.elasticsearch.plugins.InstallPluginCommand.download(InstallPluginCommand.java:329)
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:251)
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:224)
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:125)
at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:91)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:125)
at org.elasticsearch.cli.Command.main(Command.java:90)
at org.elasticsearch.plugins.PluginCli.main(PluginCli.java:47)

The zip fil is found but installation is not terminate. I try with ES 7.3.2, it’s the same problem.

An idea and thank’s you

Hi @Jeremy,

You have to pass an absolute path: something like file://${PWD}/siren-federate-7.3.2-19.0-proguard-plugin.zip.

Cheers,

Hi,

Yes, I found my problem with Docker.
I copy the zip file into my build before install plugin

Dockerfile :

FROM elasticsearch:7.3.2

ADD siren-federate-7.3.2-19.0-proguard-plugin.zip /tmp/siren-federate-7.3.2-19.0-proguard-plugin.zip

RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install file:///tmp/siren-federate-7.3.2-19.0-proguard-plugin.zip

With ES 7.6.1, I have an error but with ES 7.3.2, It’s OK but I have an other problem :

Step 3/8 : RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install file:///tmp/siren-federate-7.3.2-19.0-proguard-plugin.zip
—> Running in 0d1ffa8e991e
-> Downloading file:///tmp/siren-federate-7.3.2-19.0-proguard-plugin.zip
[=================================================] 100%??
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: plugin requires additional permissions @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

  • java.io.FilePermission cloudera.properties#plus read
  • java.io.FilePermission simba.properties#plus read
  • java.lang.RuntimePermission accessClassInPackage.sun.misc
  • java.lang.RuntimePermission accessClassInPackage.sun.misc.*
  • java.lang.RuntimePermission accessClassInPackage.sun.security.provider
  • java.lang.RuntimePermission accessDeclaredMembers
  • java.lang.RuntimePermission createClassLoader
  • java.lang.RuntimePermission getClassLoader
  • java.lang.RuntimePermission loadLibrary.*
  • java.lang.RuntimePermission setContextClassLoader
  • java.lang.management.ManagementPermission control
  • java.lang.reflect.ReflectPermission suppressAccessChecks
  • java.net.NetPermission getProxySelector
  • java.net.SocketPermission * connect,resolve
  • java.security.SecurityPermission createPolicy.JavaPolicy
  • java.security.SecurityPermission getPolicy
  • java.security.SecurityPermission insertProvider
  • java.security.SecurityPermission insertProvider.BC
  • java.security.SecurityPermission putProviderProperty.BC
  • java.security.SecurityPermission setPolicy
  • java.sql.SQLPermission setNetworkTimeout
  • java.util.PropertyPermission * read,write
  • javax.management.MBeanPermission cdjd.com.codahale.metrics.JmxReporter$JmxGauge#-[metrics:name=*] registerMBean
  • javax.management.MBeanPermission cdjd.com.codahale.metrics.JmxReporter$JmxHistogram#-[metrics:name=*] registerMBean
  • javax.management.MBeanPermission oracle.jdbc.driver.OracleDiagnosabilityMBean#[com.oracle.jdbc:] registerMBean
  • javax.management.MBeanPermission sun.management.ManagementFactoryHelper$1#-[java.nio:name=direct,type=BufferPool] getMBeanInfo
  • javax.management.MBeanPermission sun.management.ManagementFactoryHelper$1#-[java.nio:name=mapped,type=BufferPool] getMBeanInfo
  • javax.management.MBeanServerPermission createMBeanServer
  • javax.management.MBeanTrustPermission register
  • org.elasticsearch.secure_sm.ThreadPermission modifyArbitraryThread
  • org.elasticsearch.secure_sm.ThreadPermission modifyArbitraryThreadGroup
    See http://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html
    for descriptions of what these permissions allow and the associated risks.

Exception in thread “main” java.lang.IllegalStateException: unable to read from standard input; is standard input open and a tty attached?
at org.elasticsearch.cli.Terminal$SystemTerminal.readText(Terminal.java:173)
at org.elasticsearch.plugins.PluginSecurity.prompt(PluginSecurity.java:74)
at org.elasticsearch.plugins.PluginSecurity.confirmPolicyExceptions(PluginSecurity.java:67)
at org.elasticsearch.plugins.InstallPluginCommand.installPlugin(InstallPluginCommand.java:811)
at org.elasticsearch.plugins.InstallPluginCommand.install(InstallPluginCommand.java:785)
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:231)
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:216)
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:77)
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:47)

Thank’s

I found, with the option --batch

FROM elasticsearch:7.3.2

ADD siren-federate-7.3.2-19.0-proguard-plugin.zip /tmp/siren-federate-7.3.2-19.0-proguard-plugin.zip

RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install –batch file:///tmp/siren-federate-7.3.2-19.0-proguard-plugin.zip