Hi, when installing the ingest-attachment I get an error:
testuser@testvm:/usr/share/opensearch-1.0.0/bin$ sudo -u opensearch ./opensearch-plugin install ingest-attachment
→ Installing ingest-attachment
→ Downloading ingest-attachment from opensearch
→ Failed installing ingest-attachment
→ Rolling back ingest-attachment
→ Rolled back ingest-attachment
Exception in thread “main” java.io.IOException: Server returned HTTP response code: 403 for URL: https://artifacts.opensearch.org/releases/plugins/ingest-attachment/1.0.0/ingest-attachment-1.0.0.zip
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1932)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1528)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224)
at org.opensearch.plugins.InstallPluginCommand.downloadZip(InstallPluginCommand.java:438)
at org.opensearch.plugins.InstallPluginCommand.downloadAndValidate(InstallPluginCommand.java:515)
at org.opensearch.plugins.InstallPluginCommand.download(InstallPluginCommand.java:306)
at org.opensearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:260)
at org.opensearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:237)
at org.opensearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:99)
at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:140)
at org.opensearch.cli.MultiCommand.execute(MultiCommand.java:104)
at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:140)
at org.opensearch.cli.Command.main(Command.java:103)
at org.opensearch.plugins.PluginCli.main(PluginCli.java:60)
testuser@testvm:/usr/share/opensearch-1.0.0/bin$
It should have been available the moment 1.0 was public but looks like there was an oversight. There is a pending request with the team that manages this part of the downloads - I’ll update when I know more or have a public place where the issue is being tracked.
-> Installing ingest-attachment
-> Downloading ingest-attachment from opensearch
[=================================================] 100%??
-> Failed installing ingest-attachment
-> Rolling back ingest-attachment
-> Rolled back ingest-attachment
Exception in thread "main" java.io.IOException: Server returned HTTP response code: 403 for URL: https://artifacts.opensearch.org/release
s/plugins/ingest-attachment/1.0.0/ingest-attachment-1.0.0.zip.asc
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1932)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1528)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224)
at java.base/java.net.URL.openStream(URL.java:1167)
at org.opensearch.plugins.InstallPluginCommand.urlOpenStream(InstallPluginCommand.java:482)
at org.opensearch.plugins.InstallPluginCommand.verifySignature(InstallPluginCommand.java:622)
at org.opensearch.plugins.InstallPluginCommand.downloadAndValidate(InstallPluginCommand.java:600)
at org.opensearch.plugins.InstallPluginCommand.download(InstallPluginCommand.java:306)
at org.opensearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:260)
at org.opensearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:237)
at org.opensearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:99)
at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:140)
at org.opensearch.cli.MultiCommand.execute(MultiCommand.java:104)
at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:140)
at org.opensearch.cli.Command.main(Command.java:103)
at org.opensearch.plugins.PluginCli.main(PluginCli.java:60)
I workaround it by downloading the file from https://artifacts.opensearch.org/release
s/plugins/ingest-attachment/1.0.0/ingest-attachment-1.0.0.zip and running:
I might be missing something but I have just run the latest docker image (opensearchproject/opensearch:latest) and it doens’t seem to come with ingest-attachment installed?
Doing a PUT to _ingest/pipeline/attachment
I get a:
{
error: {
root_cause: [ [Object] ],
type: 'parse_exception',
reason: 'No processor type exists with name [attachment]',
processor_type: 'attachment'
},
status: 400
}
Then i went to check if the instance had the plugin, and it doesn’t:
Right!
I installed it with $ bin/opensearch-plugin install ingest-attachment
And now running $ bin/opensearch-plugin list shows it installed.
I did a $ docker-compose down and $ docker-compose up thinking it should be enough to restart opensearch, as mentioned in documentation that you should restart it after installing a plugin.
But that still didn’t get it to work.
I still get a 'No processor type exists with name [attachment]' and doing GET /_cat/plugins does not return ingest-attachment.
I see that docker down/up definitely resets the installed plugins because after doing it, ingest-attachment is no longer listed with $ bin/opensearch-plugin list.
Did you have any issues with the dreaded Exception in thread "main" javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target error with this custom image?
When I’m trying to build the custom image like this, it gives me that error.