taku333
(Taku333)
January 30, 2019, 10:48am
1
I try Logstash update 6.5.4 → 6.6.0.(Via proxy)
The following error message will fail and fail.
ErrorMessage
Error Bundler::HTTPError, retrying 1/10
Could not fetch specs from https://rubygems.org/
But It will succeed if it does not go through the proxy.
Check the following and both 「HTTPS_PROXY=http://」and 「HTTP_PROXY=http://」 settings are done.
https://www.elastic.co/guide/en/logstash/current/working-with-plugins.html
Also, Elasticsearch has successfully updated plugins via a similar proxy.
Is there any procedure or mistake?
pjanzen
(Paul Janzen)
January 30, 2019, 11:45am
2
Is there a question here?
taku333
(Taku333)
January 30, 2019, 12:30pm
3
@pjanzen
Thanks!
Oh!I forgot to write.
「Is there any procedure or mistake?」add
pjanzen
(Paul Janzen)
January 30, 2019, 12:36pm
4
Hi,
I am unsure what you mean here but I'll give it a go anyway.
Assuming your using linux, you open a terminal and you type:
export http_proxy=<your proxy server>
export https_proxy=<your proxy server>
That should be enough to connect to the outside world.
Please notice the lowercase of http_proxy and https_proxy.
In the same terminal you execute your upgrade commands.
I hope this helps,
Paul.
1 Like
taku333
(Taku333)
January 31, 2019, 2:27am
5
Thanks!!
I have all 4 combinations setup, http_proxy, https_proxy, HTTP_PROXY, HTTPS_PROXY.
But Update failed.
I can do curl/wget properly with the proxy.........
I also found a question of a similar event.
I have setup proxy and I can do curl/wget properly with the proxy. I have got both http and https proxy setup. I have also exported them to both lowercase and uppercase, e.g. https_proxy and HTTPS_PROXY.
But still trying to update plugin fails:
$ bin/plugin update logstash-input-beats
ERROR: Updated Aborted, message: Connection refused - Connection refused
Install works file.
Is there a way to manually download the updates locally and install it?
It seems like a problem not solved here as well.
I have confirmed that the procedure is not wrong, so I will check the proxy settings.
pjanzen
(Paul Janzen)
January 31, 2019, 6:19am
6
You can try the following, edit the file
/usr/share/logstash/bin/logstash-plugin
and where the line says export JRUBY append the following
-J-Dhttp.proxyHost=<proxy.server> -J-Dhttp.proxyPort=<proxy.port>
That could work as well..
2 Likes
taku333
(Taku333)
February 1, 2019, 1:27am
7
@pjanzen
Thank you very much!!!
Once export to JRUBY_OPTS, it succeeded.
This problem was solved. Thanks!!
system
(system)
Closed
March 1, 2019, 1:27am
8
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.