My ES is in yellow state after another one node adding and restarting cluster. I have 4 unassigned shards (from 33), and here is response for one of unassigned shards:
{
"index" : "MY INDEX NAME",
"shard" : 0,
"primary" : false,
"current_state" : "unassigned",
"unassigned_info" : {
"reason" : "ALLOCATION_FAILED",
"at" : "2021-04-29TTIME",
"failed_allocation_attempts" : 5,
"details" : "failed shard on node [9yWBUCXXXTIIbiA]: failed to create index, failure IllegalArgumentException[IOException while reading synonyms_path_path: /etc/elasticsearch/synonyms.txt]; nested: NoSuchFileException[/etc/elasticsearch/synonyms.txt]; ",
"last_allocation_status" : "no_attempt"
},
How I can fix it?
1 Like
dadoonet
(David Pilato)
April 30, 2021, 6:34am
2
You need to make sure that the synonym file is available on all machines.
1 Like
Yeah, looks like this is the reason, new VM does not have this file.
Should I restart ES on all nodes after that? Or do something else?
@dadoonet add file and restarted ES, but looks like I need to run allocation again? Is it possible?
dadoonet
(David Pilato)
April 30, 2021, 7:02am
5
Did you restart everything? What is the error now?
Added missing file
Restarted ES
Run POST /_cluster/reroute?retry_failed=true
to start again allocation (I used Kibana Dev Toosl)
@dadoonet thank you for your help!
Yeah, after run POST /_cluster/reroute?retry_failed=true
cluaster became green (after allocation)!
1 Like
system
(system)
Closed
May 28, 2021, 7:23am
9
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.