New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem installing plugins without checksums #13196
Comments
I think you're right. It's a bug IMO. In the meantime, could you add to your repo a checksum file? May be not doable with github though... |
yeah, will try that in the afternoon, need to leave now. thanks :) |
You can actually run: bin/plugin https://github.com/lmenezes/elasticsearch-kopf/archive/develop.zip So you don't have to provide the checksum file for now. |
I see what is happening. We expect to get a
Will propose a fix. |
Weird... We have a stacktrace:
This code is supposed to unwrap the if (ExceptionsHelper.unwrapCause(e) instanceof FileNotFoundException) {
// checksum file didn't exist
return false;
}
public static Throwable unwrapCause(Throwable t) {
Throwable result = t;
while (result instanceof ElasticsearchWrapperException) {
// Skipped for clarity
}
return result;
} I guess this happened when we removed most of the elasticsearch exception and replaced them with standard java exceptions. @s1monw WDYT? |
thanks for reporting this @lmenezes |
```sh bin/plugin install lmenezes/elasticsearch-kopf/develop -> Installing lmenezes/elasticsearch-kopf/develop... Trying http://download.elastic.co/lmenezes/elasticsearch-kopf/elasticsearch-kopf-develop.zip ... Trying http://search.maven.org/remotecontent?filepath=lmenezes/elasticsearch-kopf/develop/elasticsearch-kopf-develop.zip ... Trying https://oss.sonatype.org/service/local/repositories/releases/content/lmenezes/elasticsearch-kopf/develop/elasticsearch-kopf-develop.zip ... Trying https://github.com/lmenezes/elasticsearch-kopf/archive/develop.zip ... Downloading .................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................DONE Verifying https://github.com/lmenezes/elasticsearch-kopf/archive/develop.zip checksums if available ... Trying https://github.com/lmenezes/elasticsearch-kopf/archive/master.zip ... Downloading ....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................DONE Verifying https://github.com/lmenezes/elasticsearch-kopf/archive/master.zip checksums if available ... ``` This happens because we don't have anymore ElasticsearchWrapperException here but standard java exceptions. Closes elastic#13196.
```sh bin/plugin install lmenezes/elasticsearch-kopf/develop -> Installing lmenezes/elasticsearch-kopf/develop... Trying http://download.elastic.co/lmenezes/elasticsearch-kopf/elasticsearch-kopf-develop.zip ... Trying http://search.maven.org/remotecontent?filepath=lmenezes/elasticsearch-kopf/develop/elasticsearch-kopf-develop.zip ... Trying https://oss.sonatype.org/service/local/repositories/releases/content/lmenezes/elasticsearch-kopf/develop/elasticsearch-kopf-develop.zip ... Trying https://github.com/lmenezes/elasticsearch-kopf/archive/develop.zip ... Downloading .................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................DONE Verifying https://github.com/lmenezes/elasticsearch-kopf/archive/develop.zip checksums if available ... Trying https://github.com/lmenezes/elasticsearch-kopf/archive/master.zip ... Downloading ....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................DONE Verifying https://github.com/lmenezes/elasticsearch-kopf/archive/master.zip checksums if available ... ``` This happens because we don't have anymore ElasticsearchWrapperException here but standard java exceptions. Closes #13196. (cherry picked from commit 03bb285)
trying to make kopf work with 2.0-beta1 but I just got:
is this the expected behaviour? I will add checksums if necessary, but going from specified branch to master branch in case no checksum is found doesn't seem like the expected outcome(but maybe it is...)
The text was updated successfully, but these errors were encountered: