# Issue with installing plugins from github

**URL:** <https://discuss.elastic.co/t/issue-with-installing-plugins-from-github/5012>\
**Category:** Elasticsearch\
**Created:** [August 1, 2011, 2:48am UTC](https://discuss.elastic.co/t/issue-with-installing-plugins-from-github/5012 "2011-08-01T02:48:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [August 1, 2011, 2:48am UTC](https://discuss.elastic.co/t/issue-with-installing-plugins-from-github/5012/1 "2011-08-01T02:48:34Z")

</div>

While attempting to deploy my plugin from [github.com](http://github.com), I noticed that the  
plugin manager was not finding the correct zip file. The filenames in the  
output looked correct, so I attempted to replicate the download via code. I  
get the following exception:

java.io.IOException: Redirection detected from https to http. Protocol  
switch unsafe, not allowed.  
at  
org.elasticsearch.common.http.client.HttpDownloadHelper$GetThread.redirectionAllowed(HttpDownloadHelper.java:235)  
at  
org.elasticsearch.common.http.client.HttpDownloadHelper$GetThread.openConnection(HttpDownloadHelper.java:277)  
at  
org.elasticsearch.common.http.client.HttpDownloadHelper$GetThread.get(HttpDownloadHelper.java:209)

On a related note, what is the naming convention? When downloading from  
github, the code is looking for a zip file with the repo name as the prefix.  
When install via a local (directory) url, the zip file needs to have  
"elasticsearch-" as the prefix.

Using ES 0.17.2

--  
Ivan

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [August 1, 2011, 3:49am UTC](https://discuss.elastic.co/t/issue-with-installing-plugins-from-github/5012/2 "2011-08-01T03:49:18Z")

</div>

BTW, the url redirected to is [http://cloud.github.com/downloads/](http://cloud.github.com/downloads/)...

My scenario was confirmed in this thread:

> **[New uploader & downloads screen](https://github.blog/2010-11-05-new-uploader-downloads-screen/#comment-9034)**
>
> Update: Uploads have been deprecated Not too long ago we rolled out the one true downloads button, but unfortunately the Downloads page was still left unattended. Well, today we’re rolling out a totally new downloads page – including a completely...

On Sun, Jul 31, 2011 at 10:48 PM, Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com) wrote:

> While attempting to deploy my plugin from [github.com](http://github.com), I noticed that the  
> plugin manager was not finding the correct zip file. The filenames in the  
> output looked correct, so I attempted to replicate the download via code. I  
> get the following exception:
> 
> java.io.IOException: Redirection detected from https to http. Protocol  
> switch unsafe, not allowed.  
> at  
> org.elasticsearch.common.http.client.HttpDownloadHelper$GetThread.redirectionAllowed(HttpDownloadHelper.java:235)  
> at  
> org.elasticsearch.common.http.client.HttpDownloadHelper$GetThread.openConnection(HttpDownloadHelper.java:277)  
> at  
> org.elasticsearch.common.http.client.HttpDownloadHelper$GetThread.get(HttpDownloadHelper.java:209)
> 
> On a related note, what is the naming convention? When downloading from  
> github, the code is looking for a zip file with the repo name as the prefix.  
> When install via a local (directory) url, the zip file needs to have  
> "elasticsearch-" as the prefix.
> 
> Using ES 0.17.2
> 
> --  
> Ivan

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [August 1, 2011, 6:11am UTC](https://discuss.elastic.co/t/issue-with-installing-plugins-from-github/5012/3 "2011-08-01T06:11:41Z")

</div>

What the command you use to install the plugin? And what have you uploaded  
to your repo (is it a zip file you uploaded)?

Regarding naming convention, you its user\_name/repo\_name, or  
user\_name/repo\_name/version. If the repo name starts with es-, or  
elasticsearch- then it will be removed from the plugin installed.

I will fix the redirection problem...

On Mon, Aug 1, 2011 at 6:49 AM, Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com) wrote:

> BTW, the url redirected to is [http://cloud.github.com/downloads/](http://cloud.github.com/downloads/)...
> 
> My scenario was confirmed in this thread:  
> [New uploader & downloads screen - The GitHub Blog](https://github.com/blog/742-new-uploader-downloads-screen#comment-9034)
> 
> On Sun, Jul 31, 2011 at 10:48 PM, Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com) wrote:
> 
> > While attempting to deploy my plugin from [github.com](http://github.com), I noticed that the  
> > plugin manager was not finding the correct zip file. The filenames in the  
> > output looked correct, so I attempted to replicate the download via code. I  
> > get the following exception:
> > 
> > java.io.IOException: Redirection detected from https to http. Protocol  
> > switch unsafe, not allowed.  
> > at  
> > org.elasticsearch.common.http.client.HttpDownloadHelper$GetThread.redirectionAllowed(HttpDownloadHelper.java:235)  
> > at  
> > org.elasticsearch.common.http.client.HttpDownloadHelper$GetThread.openConnection(HttpDownloadHelper.java:277)  
> > at  
> > org.elasticsearch.common.http.client.HttpDownloadHelper$GetThread.get(HttpDownloadHelper.java:209)
> > 
> > On a related note, what is the naming convention? When downloading from  
> > github, the code is looking for a zip file with the repo name as the prefix.  
> > When install via a local (directory) url, the zip file needs to have  
> > "elasticsearch-" as the prefix.
> > 
> > Using ES 0.17.2
> > 
> > --  
> > Ivan

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [August 1, 2011, 11:38am UTC](https://discuss.elastic.co/t/issue-with-installing-plugins-from-github/5012/4 "2011-08-01T11:38:41Z")

</div>

Responses inline.

On Mon, Aug 1, 2011 at 2:11 AM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:

> What the command you use to install the plugin? And what have you uploaded  
> to your repo (is it a zip file you uploaded)?

% bin/plugin -install brusic/streaming-river

The output looks correct:  
-\> Installing brusic/streaming-river...  
Trying  
[https://github.com/downloads/brusic/streaming-river/streaming-river-0.17.2.zip](https://github.com/downloads/brusic/streaming-river/streaming-river-0.17.2.zip).  
..  
Trying [https://github.com/brusic/streaming-river/zipball/v0.17.2](https://github.com/brusic/streaming-river/zipball/v0.17.2)...  
Trying [https://github.com/brusic/streaming-river/zipball/master](https://github.com/brusic/streaming-river/zipball/master)...

The first zip file is correct, it is the redirection which is problematic.

> Regarding naming convention, you its user\_name/repo\_name, or  
> user\_name/repo\_name/version. If the repo name starts with es-, or  
> elasticsearch- then it will be removed from the plugin installed.

I have been installing locally with a relative path:

% $ELASTICSEARCH\_HOME/bin/plugin url target/scala\_2.9.0/streaming-river  
install streaming-river

-\> Installing streaming-river...  
Failed to install streaming-river, reason: no protocol:  
target/scala\_2.9.0/streaming-river

The zip file needs the "elasticsearch-" in order for it to work.

> I will fix the redirection problem...

Thanks so much!

--  
Ivan

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:58am UTC](https://discuss.elastic.co/t/issue-with-installing-plugins-from-github/5012/5 "2017-07-06T03:58:41Z")

</div>


