Unable to install plugin because of proxy


(Amit Soni) #1

Hi all - My servers use a proxy for outbound internet traffic and hence I
have exported http_proxy.

I am able to curl to external websites (http as well as https) but I am
unable to install the head plugin.

bin/plugin -install mobz/elasticsearch-head-> Installing
mobz/elasticsearch-head...Trying
https://github.com/mobz/elasticsearch-head/archive/master.zip.
https://github.com/mobz/elasticsearch-head/archive/master.zip... Failed
to install mobz/elasticsearch-head, reason: failed to download out of all
possible locations..., use -verbose to get detailed information

any comments how I can let the plugin install tool use proxy setting?

-Amit.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Jörg Prante) #2

Does

bin/plugin -install mobz/elasticsearch-head -url
http://github.com/mobz/elasticsearch-head/archive/master.zip

work?

Jörg

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(search) #3

You can download the zip file and run the following:

bin/plugin -u file:///your/zip/file/path -i mobz/elasticsearch-head


(search) #4

You can download the zip file and run the following:

bin/plugin -u file:///your/zip/file/path -i mobz/elasticsearch-head

On Tuesday, November 12, 2013 5:51:15 PM UTC-5, amit.soni wrote:

Hi all - My servers use a proxy for outbound internet traffic and hence I
have exported http_proxy.

I am able to curl to external websites (http as well as https) but I am
unable to install the head plugin.

bin/plugin -install mobz/elasticsearch-head-> Installing
mobz/elasticsearch-head...Trying
https://github.com/mobz/elasticsearch-head/archive/master.zip.
https://github.com/mobz/elasticsearch-head/archive/master.zip... Failed
to install mobz/elasticsearch-head, reason: failed to download out of all
possible locations..., use -verbose to get detailed information

any comments how I can let the plugin install tool use proxy setting?

-Amit.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Amit Soni) #5

Jörg - Specifying the url somehow does not work. However based on the
second suggestion, I was able to first download the zip and then specify
the url of local file which worked fine.

just curious why would specifying an internet/http url not work and
specifying file:/// url works?

-Amit.

On Tue, Nov 12, 2013 at 4:50 PM, Search User feedworks@gmail.com wrote:

You can download the zip file and run the following:

bin/plugin -u file:///your/zip/file/path -i mobz/elasticsearch-head

On Tuesday, November 12, 2013 5:51:15 PM UTC-5, amit.soni wrote:

Hi all - My servers use a proxy for outbound internet traffic and hence I
have exported http_proxy.

I am able to curl to external websites (http as well as https) but I am
unable to install the head plugin.

bin/plugin -install mobz/elasticsearch-head-> Installing
mobz/elasticsearch-head...Trying
https://github.com/mobz/elasticsearch-head/archive/master.zip.
https://github.com/mobz/elasticsearch-head/archive/master.zip... Failed
to install mobz/elasticsearch-head, reason: failed to download out of all
possible locations..., use -verbose to get detailed information

any comments how I can let the plugin install tool use proxy setting?

-Amit.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Mark Walkom) #6

Because file is using a local file (ie on disk) and not over the network.

Regards,
Mark Walkom

Infrastructure Engineer
Campaign Monitor
email: markw@campaignmonitor.com
web: www.campaignmonitor.com

On 13 November 2013 13:00, Amit Soni amitsoni29@gmail.com wrote:

Jörg - Specifying the url somehow does not work. However based on the
second suggestion, I was able to first download the zip and then specify
the url of local file which worked fine.

just curious why would specifying an internet/http url not work and
specifying file:/// url works?

-Amit.

On Tue, Nov 12, 2013 at 4:50 PM, Search User feedworks@gmail.com wrote:

You can download the zip file and run the following:

bin/plugin -u file:///your/zip/file/path -i mobz/elasticsearch-head

On Tuesday, November 12, 2013 5:51:15 PM UTC-5, amit.soni wrote:

Hi all - My servers use a proxy for outbound internet traffic and hence
I have exported http_proxy.

I am able to curl to external websites (http as well as https) but I am
unable to install the head plugin.

bin/plugin -install mobz/elasticsearch-head-> Installing
mobz/elasticsearch-head...Trying
https://github.com/mobz/elasticsearch-head/archive/master.zip.
https://github.com/mobz/elasticsearch-head/archive/master.zip... Failed
to install mobz/elasticsearch-head, reason: failed to download out of all
possible locations..., use -verbose to get detailed information

any comments how I can let the plugin install tool use proxy setting?

-Amit.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Amit Soni) #7

actually my question is more around why the "wget" of file works but a
direct install of plugin (which internally might be using something
equivalent of wget) does not work.
We can surely download plugins one by one and then install it the way as
mentioned above (bin/plugin -u file:///your/zip/file/path -i
mobz/elasticsearch-head
) but understanding the problem would help.

-Amit.

On Tue, Nov 12, 2013 at 6:29 PM, Mark Walkom markw@campaignmonitor.comwrote:

Because file is using a local file (ie on disk) and not over the network.

Regards,
Mark Walkom

Infrastructure Engineer
Campaign Monitor
email: markw@campaignmonitor.com
web: www.campaignmonitor.com

On 13 November 2013 13:00, Amit Soni amitsoni29@gmail.com wrote:

Jörg - Specifying the url somehow does not work. However based on the
second suggestion, I was able to first download the zip and then specify
the url of local file which worked fine.

just curious why would specifying an internet/http url not work and
specifying file:/// url works?

-Amit.

On Tue, Nov 12, 2013 at 4:50 PM, Search User feedworks@gmail.com wrote:

You can download the zip file and run the following:

bin/plugin -u file:///your/zip/file/path -i mobz/elasticsearch-head

On Tuesday, November 12, 2013 5:51:15 PM UTC-5, amit.soni wrote:

Hi all - My servers use a proxy for outbound internet traffic and hence
I have exported http_proxy.

I am able to curl to external websites (http as well as https) but I
am unable to install the head plugin.

bin/plugin -install mobz/elasticsearch-head-> Installing
mobz/elasticsearch-head...Trying
https://github.com/mobz/elasticsearch-head/archive/master.zip.
https://github.com/mobz/elasticsearch-head/archive/master.zip... Failed
to install mobz/elasticsearch-head, reason: failed to download out of all
possible locations..., use -verbose to get detailed information

any comments how I can let the plugin install tool use proxy setting?

-Amit.

--
You received this message because you are subscribed to the Google
Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Jun Ohtani) #8

Hi Amit,

You try the following command that specified proxy host and port number.

./bin/plugin -DproxyPort=*port_number *-DproxyHost=*hostname *-install
mobz/elasticsearch-head

2013/11/13 Amit Soni amitsoni29@gmail.com

actually my question is more around why the "wget" of file works but a
direct install of plugin (which internally might be using something
equivalent of wget) does not work.
We can surely download plugins one by one and then install it the way as
mentioned above (bin/plugin -u file:///your/zip/file/path -i
mobz/elasticsearch-head
) but understanding the problem would help.

-Amit.

On Tue, Nov 12, 2013 at 6:29 PM, Mark Walkom markw@campaignmonitor.comwrote:

Because file is using a local file (ie on disk) and not over the network.

Regards,
Mark Walkom

Infrastructure Engineer
Campaign Monitor
email: markw@campaignmonitor.com
web: www.campaignmonitor.com

On 13 November 2013 13:00, Amit Soni amitsoni29@gmail.com wrote:

Jörg - Specifying the url somehow does not work. However based on the
second suggestion, I was able to first download the zip and then specify
the url of local file which worked fine.

just curious why would specifying an internet/http url not work and
specifying file:/// url works?

-Amit.

On Tue, Nov 12, 2013 at 4:50 PM, Search User feedworks@gmail.comwrote:

You can download the zip file and run the following:

bin/plugin -u file:///your/zip/file/path -i mobz/elasticsearch-head

On Tuesday, November 12, 2013 5:51:15 PM UTC-5, amit.soni wrote:

Hi all - My servers use a proxy for outbound internet traffic and
hence I have exported http_proxy.

I am able to curl to external websites (http as well as https) but I
am unable to install the head plugin.

bin/plugin -install mobz/elasticsearch-head-> Installing
mobz/elasticsearch-head...Trying
https://github.com/mobz/elasticsearch-head/archive/master.zip.
https://github.com/mobz/elasticsearch-head/archive/master.zip... Failed
to install mobz/elasticsearch-head, reason: failed to download out of all
possible locations..., use -verbose to get detailed information

any comments how I can let the plugin install tool use proxy setting?

-Amit.

--
You received this message because you are subscribed to the Google
Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google
Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--

Jun Ohtani
blog : http://blog.johtani.info

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Amit Soni) #9

Great, this works! Thanks much Jun!

I did not know that proxy parameters are supported in the plugin command. I
kind of assumed that it would pick the proxy settings from the system but
that does not seem to be the case.

also the usage doesn't talk about proxy:

Usage: -u, --url [plugin location] : Set exact URL to download
the plugin from -i, --install [plugin name] : Downloads and
installs listed plugins [
] -r, --remove [plugin name] : Removes
listed plugins -l, --list : List installed
plugins -v, --verbose : Prints verbose messages
-s, --silent : Run in silent mode -h,
--help : Prints this help message*

However I am good now, thanks everyone :slight_smile:

-Amit.

On Tue, Nov 12, 2013 at 6:44 PM, Jun Ohtani johtani@gmail.com wrote:

Hi Amit,

You try the following command that specified proxy host and port number.

./bin/plugin -DproxyPort=*port_number *-DproxyHost=*hostname *-install
mobz/elasticsearch-head

2013/11/13 Amit Soni amitsoni29@gmail.com

actually my question is more around why the "wget" of file works but a
direct install of plugin (which internally might be using something
equivalent of wget) does not work.
We can surely download plugins one by one and then install it the way as
mentioned above (bin/plugin -u file:///your/zip/file/path -i
mobz/elasticsearch-head
) but understanding the problem would help.

-Amit.

On Tue, Nov 12, 2013 at 6:29 PM, Mark Walkom markw@campaignmonitor.comwrote:

Because file is using a local file (ie on disk) and not over the network.

Regards,
Mark Walkom

Infrastructure Engineer
Campaign Monitor
email: markw@campaignmonitor.com
web: www.campaignmonitor.com

On 13 November 2013 13:00, Amit Soni amitsoni29@gmail.com wrote:

Jörg - Specifying the url somehow does not work. However based on the
second suggestion, I was able to first download the zip and then specify
the url of local file which worked fine.

just curious why would specifying an internet/http url not work and
specifying file:/// url works?

-Amit.

On Tue, Nov 12, 2013 at 4:50 PM, Search User feedworks@gmail.comwrote:

You can download the zip file and run the following:

bin/plugin -u file:///your/zip/file/path -i mobz/elasticsearch-head

On Tuesday, November 12, 2013 5:51:15 PM UTC-5, amit.soni wrote:

Hi all - My servers use a proxy for outbound internet traffic and
hence I have exported http_proxy.

I am able to curl to external websites (http as well as https) but I
am unable to install the head plugin.

bin/plugin -install mobz/elasticsearch-head-> Installing
mobz/elasticsearch-head...Trying
https://github.com/mobz/elasticsearch-head/archive/master.zip.
https://github.com/mobz/elasticsearch-head/archive/master.zip... Failed
to install mobz/elasticsearch-head, reason: failed to download out of all
possible locations..., use -verbose to get detailed information

any comments how I can let the plugin install tool use proxy setting?

-Amit.

--
You received this message because you are subscribed to the Google
Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google
Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google
Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--

Jun Ohtani
blog : http://blog.johtani.info

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Jun Ohtani) #10

Hi,

I read the code org.elasticsearch.plugin.PluginManager.java.
PluginManager use java.net.URL.openConnection() to download plugins.
-DproxyPort and -DproxyHost parameter is Java Networking system properties.
Using http.proxyPort and http.proxyHost instead of proxyHost and proxyPort is recommended currently, see the following reference link.

But, I don’t try to use “http.*” system properties because I don’t have proxy environment. Sorry.

Reference : http://java.sun.com/javase/6/docs/technotes/guides/net/properties.html


Jun Ohtani
johtani@gmail.com
blog : http://blog.johtani.info
twitter : http://twitter.com/johtani

2013/11/13 12:36、Amit Soni amitsoni29@gmail.com のメール:

Great, this works! Thanks much Jun!

I did not know that proxy parameters are supported in the plugin command. I kind of assumed that it would pick the proxy settings from the system but that does not seem to be the case.

also the usage doesn't talk about proxy:

Usage:
-u, --url [plugin location] : Set exact URL to download the plugin from
-i, --install [plugin name] : Downloads and installs listed plugins [*]
-r, --remove [plugin name] : Removes listed plugins
-l, --list : List installed plugins
-v, --verbose : Prints verbose messages
-s, --silent : Run in silent mode
-h, --help : Prints this help message

However I am good now, thanks everyone :slight_smile:

-Amit.

On Tue, Nov 12, 2013 at 6:44 PM, Jun Ohtani johtani@gmail.com wrote:
Hi Amit,

You try the following command that specified proxy host and port number.

./bin/plugin -DproxyPort=port_number -DproxyHost=hostname -install mobz/elasticsearch-head

2013/11/13 Amit Soni amitsoni29@gmail.com
actually my question is more around why the "wget" of file works but a direct install of plugin (which internally might be using something equivalent of wget) does not work.
We can surely download plugins one by one and then install it the way as mentioned above (bin/plugin -u file:///your/zip/file/path -i mobz/elasticsearch-head) but understanding the problem would help.

-Amit.

On Tue, Nov 12, 2013 at 6:29 PM, Mark Walkom markw@campaignmonitor.com wrote:
Because file is using a local file (ie on disk) and not over the network.

Regards,
Mark Walkom

Infrastructure Engineer
Campaign Monitor
email: markw@campaignmonitor.com
web: www.campaignmonitor.com

On 13 November 2013 13:00, Amit Soni amitsoni29@gmail.com wrote:
Jörg - Specifying the url somehow does not work. However based on the second suggestion, I was able to first download the zip and then specify the url of local file which worked fine.

just curious why would specifying an internet/http url not work and specifying file:/// url works?

-Amit.

On Tue, Nov 12, 2013 at 4:50 PM, Search User feedworks@gmail.com wrote:
You can download the zip file and run the following:

bin/plugin -u file:///your/zip/file/path -i mobz/elasticsearch-head

On Tuesday, November 12, 2013 5:51:15 PM UTC-5, amit.soni wrote:
Hi all - My servers use a proxy for outbound internet traffic and hence I have exported http_proxy.

I am able to curl to external websites (http as well as https) but I am unable to install the head plugin.

bin/plugin -install mobz/elasticsearch-head
-> Installing mobz/elasticsearch-head...
Trying https://github.com/mobz/elasticsearch-head/archive/master.zip...
Failed to install mobz/elasticsearch-head, reason: failed to download out of all possible locations..., use -verbose to get detailed information

any comments how I can let the plugin install tool use proxy setting?

-Amit.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--

Jun Ohtani
blog : http://blog.johtani.info

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #11