elastic / elasticsearch-mapper-attachments

Mapper Attachments Type plugin for Elasticsearch
https://www.elastic.co
Apache License 2.0
504 stars 94 forks source link

Error incorrect hash while installing with ES 2.0 #178

Closed jmreymond closed 9 years ago

jmreymond commented 9 years ago

sudo bin/plugin install elasticsearch/elasticsearch-mapper-attachments/3.0.2 -> Installing elasticsearch/elasticsearch-mapper-attachments/3.0.2... Trying https://download.elastic.co/elasticsearch/elasticsearch-mapper-attachments/elasticsearch-mapper-attachments-3.0.2.zip ... Downloading ..DONE Verifying https://download.elastic.co/elasticsearch/elasticsearch-mapper-attachments/elasticsearch-mapper-attachments-3.0.2.zip checksums if available ... Downloading .DONE ERROR: incorrect hash (SHA1), file hash: [c5b781df38e098448a6a8242ed89cde3213da1b9], expected: [c5b781df38e098448a6a8242ed89cde3213da1b9 elasticsearch-mapper-attachments-3.0.2.zip]

dadoonet commented 9 years ago

Thanks for reporting this. I can confirm the issue.

dadoonet commented 9 years ago

For now, I removed the SHA1 file so you can install it but it will simply warn you:

Verifying https://download.elastic.co/elasticsearch/elasticsearch-mapper-attachments/elasticsearch-mapper-attachments-3.0.2.zip checksums if available ...
NOTE: Unable to verify checksum for downloaded plugin (unable to find .sha1 or .md5 file to verify)
Installed elasticsearch-mapper-attachments into /.../elasticsearch-2.0.0/plugins/elasticsearch-mapper-attachments
jmreymond commented 9 years ago

how to remove the SGA1 file ?

jmreymond commented 9 years ago

sorry, my question was stupid. I try again and ok, it is good with warning

dadoonet commented 9 years ago

I updated manually the SHA1 file for now and looking for a long term fix.

jmreymond commented 9 years ago

no more messages but at the first run:

java.lang.IllegalStateException: unable to upgrade the mappings for the index [evol2], reason: [No handler for type [attachment] declared on field [docsfile]] at org.elasticsearch.cluster.metadata.MetaDataIndexUpgradeService.checkMappingsCompatibility(MetaDataIndexUpgradeService.java:335) at org.elasticsearch.cluster.metadata.MetaDataIndexUpgradeService.upgradeIndexMetaData(MetaDataIndexUpgradeService.java:112) at org.elasticsearch.gateway.GatewayMetaState.pre20Upgrade(GatewayMetaState.java:226) at org.elasticsearch.gateway.GatewayMetaState.(GatewayMetaState.java:85) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:422) at org.elasticsearch.common.inject.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:56) at org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:86) at org.elasticsearch.common.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:104) at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:47) at org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:865) at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:43) at org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:59) at org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:46) at org.elasticsearch.common.inject.SingleParameterInjector.inject(SingleParameterInjector.java:42)

dadoonet commented 9 years ago

Did you restart your node?

What are the full logs?

Are you upgrading?

jmreymond commented 9 years ago

I am upgrading from 1.7 with a single node.

The migration plugin says OK but after installation of the 2.0, restart of the node, I have this fatal message start of the log file (note that mapper-attachment seems ok)

[2015-10-29 17:19:30,197][INFO ][node ] [Red Skull II] version[2.0.0], pid[7515], build[de54438/2015-10-22T08:09:48Z] [2015-10-29 17:19:30,198][INFO ][node ] [Red Skull II] initializing ... [2015-10-29 17:19:31,152][INFO ][plugins ] [Red Skull II] loaded [license, marvel, mapper-attachments], sites [] [2015-10-29 17:19:31,248][INFO ][env ] [Red Skull II] using [1] data paths, mounts [[/home (/dev/sda4)]], net usable_space [652.9gb], net total_space [857.8gb], spins? [possibly], types [ext4] [2015-10-29 17:19:35,265][ERROR][gateway ] [Red Skull II] failed to read local state, exiting... java.lang.IllegalStateException: unable to upgrade the mappings for the index [evol3], reason: [No handler for type [attachment] declared on field [docsfile]] at org.elasticsearch.cluster.metadata.MetaDataIndexUpgradeService.checkMappingsCompatibility(MetaDataIndexUpgradeService.java:335) at org.elasticsearch.cluster.metadata.MetaDataIndexUpgradeService.upgradeIndexMetaData(MetaDataIndexUpgradeService.java:112) at org.elasticsearch.gateway.GatewayMetaState.pre20Upgrade(GatewayMetaState.java:226) at org.elasticsearch.gateway.GatewayMetaState.(GatewayMetaState.java:85) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:422) at org.elasticsearch.common.inject.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:56) at org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:86) at org.elasticsearch.common.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:104) at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:47) at org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:865) at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:43) at org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:59) at org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:46) at org.elasticsearch.common.inject.SingleParameterInjector.inject(SingleParameterInjector.java:42) at org.elasticsearch.common.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:66)

dadoonet commented 9 years ago

@rjernst Does this ring a bell? Upgrading from mapper attachments plugin in 1.7 to 2.0 seems to fail.

dadoonet commented 9 years ago

@jmreymond BTW can you open another issue for this "upgrade issue from 1.7"?

jmreymond commented 9 years ago

ok,