Closed jmreymond closed 9 years ago
Thanks for reporting this. I can confirm the issue.
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
how to remove the SGA1 file ?
sorry, my question was stupid. I try again and ok, it is good with warning
I updated manually the SHA1 file for now and looking for a long term fix.
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.
Did you restart your node?
What are the full logs?
Are you upgrading?
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.
@rjernst Does this ring a bell? Upgrading from mapper attachments plugin in 1.7 to 2.0 seems to fail.
@jmreymond BTW can you open another issue for this "upgrade issue from 1.7"?
ok,
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]