Skip to content

[BUG] repository-s3 installation - Connection timed out #127

@toby181

Description

@toby181

Describe the bug

The installation of the repository-s3 plugin fails with

./bin/opensearch-plugin install repository-s3
-> Installing repository-s3
-> Failed installing repository-s3
-> Rolling back repository-s3
-> Rolled back repository-s3
Exception in thread "main" java.net.ConnectException: Connection timed out
    at java.base/sun.nio.ch.Net.connect0(Native Method)
    at java.base/sun.nio.ch.Net.connect(Net.java:579)
    at java.base/sun.nio.ch.Net.connect(Net.java:568)
    at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:588)
    at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
    at java.base/java.net.Socket.connect(Socket.java:633)
    at java.base/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:304)
    at java.base/sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:174)
    at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:183)
    at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:531)
    at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:636)
    at java.base/sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:266)
    at java.base/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:380)
    at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:193)
    at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1242)
    at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1128)
    at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:179)
    at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:142)
    at org.opensearch.plugins.InstallPluginCommand.urlExists(InstallPluginCommand.java:425)
    at org.opensearch.plugins.InstallPluginCommand.getOpenSearchUrl(InstallPluginCommand.java:392)
    at org.opensearch.plugins.InstallPluginCommand.download(InstallPluginCommand.java:309)
    at org.opensearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:272)
    at org.opensearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:249)
    at org.opensearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:104)
    at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:138)
    at org.opensearch.cli.MultiCommand.execute(MultiCommand.java:104)
    at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:138)
    at org.opensearch.cli.Command.main(Command.java:101)
    at org.opensearch.plugins.PluginCli.main(PluginCli.java:60)

I'm trying to install the repository-s3 plugin via different approaches.

  1. Installation via Helm: https://github.com/opensearch-project/helm-charts/blob/opensearch-2.12.0/charts/opensearch/values.yaml#L473
values:
    extraEnvs:
    - name: HTTP_PROXY
      value: http://...
    - name: HTTPS_PROXY
      value: http://...
    - name: NO_PROXY
      value: "..."
    - name: http_proxy
      value: http://...
    - name: https_proxy
      value: http://...
    - name: no_proxy
      value: "..."
...
    ## Enable to add 3rd Party / Custom plugins not offered in the default OpenSearch image.
    plugins:
      enabled: true
      installList:
        - repository-s3
  1. Manually connected to one of the OpenSearch pods and manually ran:
$ env | grep -i proxy
NO_PROXY=...
http_proxy=http://...
https_proxy=http://...
HTTPS_PROXY=http://...
no_proxy=....
HTTP_PROXY=http://...
$ ./bin/opensearch-plugin install repository-s3

OpenSearch version 2.7 running on kubernetes, installed via Helm.

Host/Environment (please complete the following information):

  • OS: kubernetes
  • Version 1.24

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    Status

    📦 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions