Cant install Marvel License

monitoring

(David Thomas) #1

Hi,

I am attempting to install the Marvel License and it gives me the following errors:

Standard Install

sudo bin/plugin install license

Error:

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

Offline Install

sudo bin/plugin install license file:license-2.0.0.zip
sudo bin/plugin install license file:///license-2.0.0.zip

Both give this error:

Command [file:license-2.0.0.zip] unknown.

I don't understand as when I view the commands available "File" is not an optional parameter but the documentation states to use it.

Can someone please help?

Thanks


(François) #2

Same problem here. Can't download from the internet.

After downloading the zip file, and trying this command : sudo bin/plugin install licence file:///home/tissanfr/temp/license-2.0.0.zip

"Trying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/licence/2.0.0/licence-2.0.0.zip ...
ERROR: failed to download out of all possible locations..."

It's still trying to get it online, I don't know why.


(François) #3

ok, this command seems to be working better here :smile:

"sudo bin/plugin install file:/home/tissanfr/temp/license-2.0.0.zip"

The doc here https://www.elastic.co/guide/en/marvel/current/installing-marvel.html#offline-installation says
"bin/plugin install license file:///path/to/file/license-2.0.0.zip"

So maybe it should be fixed !


(David Thomas) #4

I have tried that and I do get a little further but still get the error below:

-> Installing file:/usr/share/elasticsearch/license-2.0.0.zip...
Trying http://download.elasticsearch.org/file:/usr/usr-share.zip...
Trying http://search.maven.org/remotecontent?filepath=file:/usr/share/usr-share.zip...
Trying https://oss.sonatype.org/service/local/repositories/releases/content/file:/usr/share/usr-share.zip...
Trying https://github.com/file:/usr/archive/share.zip...
Trying https://github.com/file:/usr/archive/master.zip...
Failed to install file:/usr/share/elasticsearch/license-2.0.0.zip, reason: failed to download out of all possible locations..., use --verbose to get detailed information

(David Thomas) #5

This is the verbose output:

-> Installing file:/usr/share/elasticsearch/license-2.0.0.zip...
Trying http://download.elasticsearch.org/file:/usr/usr-share.zip...
Failed: IOException[Can't get http://download.elasticsearch.org/file:/usr/usr-share.zip to /usr/share/elasticsearch/plugins/usr.zip]; nested: FileNotFoundException[http://download.elasticsearch.org/file:/usr/usr-share.zip]; nested: FileNotFoundException[http://download.elasticsearch.org/file:/usr/usr-share.zip]; 
Trying http://search.maven.org/remotecontent?filepath=file:/usr/share/usr-share.zip...
Failed: IOException[Can't get http://search.maven.org/remotecontent?filepath=file:/usr/share/usr-share.zip to /usr/share/elasticsearch/plugins/usr.zip]; nested: FileNotFoundException[https://repo1.maven.org/maven2/file:/usr/share/usr-share.zip]; nested:     FileNotFoundException[https://repo1.maven.org/maven2/file:/usr/share/usr-share.zip]; 
Trying https://oss.sonatype.org/service/local/repositories/releases/content/file:/usr/share/usr-share.zip...
Failed: IOException[Can't get https://oss.sonatype.org/service/local/repositories/releases/content/file:/usr/share/usr-share.zip to /usr/share/elasticsearch/plugins/usr.zip]; nested: FileNotFoundException[https://oss.sonatype.org/service/local/repositories/releases/content/file:/usr/share/usr-share.zip]; nested: FileNotFoundException[https://oss.sonatype.org/service/local/repositories/releases/content/file:/usr/share/usr-share.zip]; 
Trying https://github.com/file:/usr/archive/share.zip...
Failed: IOException[Can't get https://github.com/file:/usr/archive/share.zip to /usr/share/elasticsearch/plugins/usr.zip]; nested: FileNotFoundException[https://github.com/file:/usr/archive/share.zip]; nested: FileNotFoundException[https://github.com/file:/usr/archive/share.zip]; 
Trying https://github.com/file:/usr/archive/master.zip...
Failed: IOException[Can't get https://github.com/file:/usr/archive/master.zip to /usr/share/elasticsearch/plugins/usr.zip]; nested: FileNotFoundException[https://github.com/file:/usr/archive/master.zip]; nested: FileNotFoundException[https://github.com/file:/usr/archive/master.zip]; 
Failed to install file:/usr/share/elasticsearch/license-2.0.0.zip, reason: failed to download out of all possible locations..., use --verbose to get detailed information

(Anh) #6

bin/plugin install license file:///path/to/file/license-2.0.0.zip
bin/plugin install marvel-agent file:///path/to/file/marvel-agent-2.0.0.zip
bin/kibana plugin --install marvel --url file:///path/to/file/marvel-2.0.0.tar.gz


(David Thomas) #7

Hi All,

I have tried the suggestion above but it really doesn't like the manual install process I ran the below and you can clearly see that even though I am adding the file location it still tries to download a file that doesn't exist:

/usr/share/elasticsearch/bin/plugin install marvel-agent file:///opt/marvel-agent-2.0.0.zip 
-> Installing marvel-agent...
Trying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/marvel-agent/2.0.0-beta2/marvel-agent-2.0.0-beta2.zip ...
ERROR: failed to download out of all possible locations..., use --verbose to get detailed information

Can somebody from Elastic please reply to this thread to help?

Thanks


Update elasticsearch repository
(David Thomas) #8

Hi,

So got a bit further however disappointed at the lack of response on this forum from Elastic support :frowning:

I used the following command:

/usr/share/elasticsearch/bin/plugin install file:///opt/marvel-agent-2.0.0.zip

However now it seems that its saying Elastic search 2.0 is too old for some reason:

-> Installing from file:/opt/marvel-agent-2.0.0.zip...
Trying file:/opt/marvel-agent-2.0.0.zip ...
Downloading ..DONE
Verifying file:/opt/marvel-agent-2.0.0.zip checksums if available ...
NOTE: Unable to verify checksum for downloaded plugin (unable to find .sha1 or .md5 file to verify)
ERROR: Elasticsearch version [2.0.0] is too old for plugin [marvel-agent]

Can anyone help as the documentation says I need Elasticsearch 2.0 or later which I have?


(Raamee) #10

Yes, even I have the same issue.

[root@localhost bin]# rpm -qa | grep elastic
elasticsearch-2.0.0-beta2_1.noarch

[root@localhost bin]# ./plugin install file:///usr/local/src/marvel-agent-2.0.0.zip 
-> Installing from file:/usr/local/src/marvel-agent-2.0.0.zip...
Trying file:/usr/local/src/marvel-agent-2.0.0.zip ...
Downloading ..DONE
Verifying file:/usr/local/src/marvel-agent-2.0.0.zip checksums if available ...
NOTE: Unable to verify checksum for downloaded plugin (unable to find .sha1 or .md5 file to verify)
ERROR: Elasticsearch version [2.0.0] is too old for plugin [marvel-agent]

(deepakas) #11

Even I have the same issue. It looks like yum install install the beta version instead of general release.

[root@datascience elasticsearch]# rpm -qa | grep elastic
elasticsearch-2.0.0-beta2_1.noarch
[root@datascience elasticsearch]# bin/plugin install https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/marvel-agent/2.0.0/marvel-agent-2.0.0.zip
-> Installing from https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/marvel-agent/2.0.0/marvel-agent-2.0.0.zip...
Trying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/marvel-agent/2.0.0/marvel-agent-2.0.0.zip ...
Downloading .........DONE
Verifying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/marvel-agent/2.0.0/marvel-agent-2.0.0.zip checksums if available ...
Downloading .DONE
ERROR: Elasticsearch version [2.0.0] is too old for plugin [marvel-agent]


(deepakas) #12

It is working now as I manually installed elasticsearch2.0 version.

wget https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/rpm/elasticsearch/2.0.0/elasticsearch-2.0.0.rpm

yum localinstall elasticsearch-2.0.0.rpm


(weisong) #13

I also meet the same issue, I have downloaded the zip file, and using the following command to install:
bin/plugin install license file:///home/wesong/Downloads/license-2.0.0.zip

then I will get the following error:
-> Installing license...
Trying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/license/2.0.0/license-2.0.0.zip ...
ERROR: failed to download out of all possible locations..., use --verbose to get detailed information


(Nacho Mezzadra) #14

Same here while installing Marvel itself:

plugin install marvel --verbose

Trying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/marvel/2.0.0/marvel-2.0.0.zip ...
Failed: FileNotFoundException[https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/marvel/2.0.0/marvel-2.0.0.zip]; nested: FileNotFoundException[https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/marvel/2.0.0/marvel-2.0.0.zip];
ERROR: failed to download out of all possible locations..., use --verbose to get detailed information
Service 'elasticsearch' failed to build: The command '/bin/sh -c plugin install marvel --verbose' returned a non-zero code: 74


(Quentin Decoudier) #15

Has anyone found a solution on this ?


(Steve Crickett) #16

I'm getting this with the 2.2.0 install.


(Rishi) #17

I am also getting this with the 2.2.0 install.
Is there any workaround? I would like to integrate this into our automated deploy.


(Sharief Mohatad) #18

I had same issue, this is what i did ( windows )

Check and uninstall any license under plugin folder

Run below command

step 1 : bin/plugin install license
Step 2 : bin/plugin install marvel-agent

And it worked. Hope this is helpfull


(chandan patra) #19

Try running with proxy if you are behind one.
Go to your elasticsearch installation path. In my case > /usr/share/elasticsearch

cd /usr/share/elasticsearch
bin/plugin -DproxyPort=<porxyPort> -DproxyHost=<proxyHostDNSorIP> install license
bin/plugin -DproxyPort=<porxyPort> -DproxyHost=<proxyHostDNSorIP> install shield

Thanks,

Chandan


(Nicolas Azevedo Costa) #20

Hey guys. I had the same issue.
I got a solution without updating the ES version.

bin/plugin install license -u https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/license/2.4.3/license-2.4.3.zip

That worked for me! :smiley:


(rajasekaran) #21

It is not working for me. Can someone suggest how to achieve this.

root@treselle-VirtualBox:/usr/share/elasticsearch# sudo bin/elasticsearch-plugin install license https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/license/2.4.3/license-2.4.3.zip
A tool for managing installed elasticsearch plugins

Commands

list - Lists installed elasticsearch plugins
install - Install a plugin
remove - Removes a plugin from elasticsearch

Non-option arguments:
command

Option Description


-h, --help show help
-s, --silent show minimal output
-v, --verbose show verbose output
ERROR: Found multiple arguments for option [arguments], but you asked for only one

Regards,
Raja