Hi I am new to this list and i'm experiencing problems with my graylog appliance (v1.3.4, just updated). The elasticsearch status is "red", the query shows:
curl -XGET http://localhost:9200/_cluster/health?pretty { "cluster_name" : "graylog2", "status" : "yellow", "timed_out" : false, "number_of_nodes" : 2, "number_of_data_nodes" : 1, "active_primary_shards" : 1208, "active_shards" : 1208, "relocating_shards" : 0, "initializing_shards" : 0, "unassigned_shards" : 1208, "delayed_unassigned_shards" : 0, "number_of_pending_tasks" : 0, "number_of_in_flight_fetch" : 0 } looking for unassigned shards show a huge list curl -XGET http://localhost:9200/_cat/shards | grep UNASSIGNED ... graylog_171 0 r UNASSIGNED graylog_171 3 r UNASSIGNED graylog_171 1 r UNASSIGNED graylog_171 2 r UNASSIGNED graylog_290 0 r UNASSIGNED graylog_290 3 r UNASSIGNED graylog_290 1 r UNASSIGNED graylog_290 2 r UNASSIGNED ... I googled around a little and found this page: https://t37.net/how-to-fix-your-elasticsearch-cluster-stuck-in-initializing-shards-mode.html I tried the fix for the index "graylog_290" for shard in $(curl -XGET http://localhost:9200/_cat/shards | grep UNASSIGNED | awk '{print $2}'); do curl -XPOST 'localhost:9200/_cluster/reroute' -d '{ "commands" : [ { "allocate" : { "index" : "graylog_290", "shard" : '$shard', "node" : "Great Gambonnos", "allow_primary" : true } } ] }' sleep 5 done But i am given this output: root@syslog:~# sh fix.sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 174k 100 174k 0 0 2220k 0 --:--:-- --:--:-- --:--:-- 2238k {"error":"ElasticsearchIllegalArgumentException[[allocate] allocation of [graylog_290][0] on node [Great Gambonnos][mB5gKQroSu6XQNzNkeHzxQ][xxxx.mydomain.de][inet[/192.168.1.3:9300]] is not allowed, reason: [NO(shard cannot be allocated on same node [mB5gKQroSu6XQNzNkeHzxQ] it already exists on)][YES(node passes include/exclude/require filters)][YES(primary is already active)][YES(below shard recovery limit of [2])][YES(allocation disabling is ignored)][YES(allocation disabling is ignored)][YES(no allocation awareness enabled)][YES(total shard limit disabled: [-1] <= 0)][YES(target node version [1.7.5] is same or newer than source node version [1.7.5])][YES(enough disk for shard on node, free: [7gb])][YES(shard not primary or relocation disabled)]]","status":400} What am i doing wrong? Best, Thomas -- You received this message because you are subscribed to the Google Groups "Graylog Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/graylog2/29558aa6-812d-4cc0-b955-2cb044dd3998%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
