403错误当尝试安装摄取附件插件到elasticsearch

eqfvzcg8  于 2022-11-02  发布在  ElasticSearch
关注(0)|答案(1)|浏览(159)

我想在debian 11上安装elasticsearch 6.8.23的摄取附件插件:
当做

user@server[elasticsearch]$ sudo bin/elasticsearch-plugin install ingest-attachment

我得到以下错误

Exception in thread "main" java.io.IOException: Server returned HTTP response code: 403 for URL: https://artifacts.elastic.co/downloads/elasticsearch-plugins/ingest-attachment/ingest-attachment-6.8.23.zip
    at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1924)
    at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520)
    at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:250)
    at org.elasticsearch.plugins.InstallPluginCommand.downloadZip(InstallPluginCommand.java:381)
    at org.elasticsearch.plugins.InstallPluginCommand.downloadAndValidate(InstallPluginCommand.java:455)
    at org.elasticsearch.plugins.InstallPluginCommand.download(InstallPluginCommand.java:257)
    at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:230)
    at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:217)
    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)

但是,当我浏览到https://artifacts.elastic.co/downloads/elasticsearch-plugins/ingest-attachment/ingest-attachment-6.8.23.zip时,没有错误403,并且下载了软件包。
由于情况的原因,我不得不使用6. 8. 23,所以没有必要对此发表评论。我知道,我知道。
有机会在Debian 11上安装这个吗?谢谢你的时间。

ippsafx7

ippsafx71#

正在执行

user@server[elasticsearch]$ sudo wget https://artifacts.elastic.co/downloads/elasticsearch-plugins/ingest-attachment/ingest-attachment-6.8.23.zip`

紧接着

user@server[elasticsearch]$ sudo bin/elasticsearch-plugin install file:///usr/share/elasticsearch/ingest-attachment-6.8.23.zip

就能成功!
非常感谢@Briomkez提供的解决方案!

相关问题