KIbana启动报错 FATAL [search_phase_execution_exception] all shards failed :: {"path":"/.kibana/doc/_co

error  [02:34:27.342] [warning][stats-collection] [search_phase_execution_exception] all shards failed :: {"path":"/.kibana/_search","query":{},"body":"{\"query\":{\"term\":{\"type\":\"config\"}}}","statusCode":503,"response":"{\"error\":{\"root_cause\":[],\"type\":\"search_phase_execution_exception\",\"reason\":\"all shards failed\",\"phase\":\"query\",\"grouped\":true,\"failed_shards\":[]},\"status\":503}"}
    at respond (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/src/lib/transport.js:308:15)
    at checkRespForFailure (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/src/lib/transport.js:267:7)
    at HttpConnector. (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/src/lib/connectors/http.js:166:7)
    at IncomingMessage.wrapper (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/node_modules/lodash/lodash.js:4935:19)
    at IncomingMessage.emit (events.js:194:15)
    at endReadableNT (_stream_readable.js:1103:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)
  log   [02:34:27.343] [warning][stats-collection] Unable to fetch data from kql collector
 error  [02:34:27.352] [warning][stats-collection] [search_phase_execution_exception] all shards failed :: {"path":"/.kibana/_search","query":{"ignore_unavailable":true,"filter_path":"aggregations.types.buckets"},"body":"{\"size\":0,\"query\":{\"terms\":{\"type\":[\"dashboard\",\"visualization\",\"search\",\"index-pattern\",\"graph-workspace\",\"timelion-sheet\"]}},\"aggs\":{\"types\":{\"terms\":{\"field\":\"type\",\"size\":6}}}}","statusCode":503,"response":"{\"error\":{\"root_cause\":[],\"type\":\"search_phase_execution_exception\",\"reason\":\"all shards failed\",\"phase\":\"query\",\"grouped\":true,\"failed_shards\":[]},\"status\":503}"}
    at respond (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/src/lib/transport.js:308:15)
    at checkRespForFailure (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/src/lib/transport.js:267:7)
    at HttpConnector. (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/src/lib/connectors/http.js:166:7)
    at IncomingMessage.wrapper (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/node_modules/lodash/lodash.js:4935:19)
    at IncomingMessage.emit (events.js:194:15)
    at endReadableNT (_stream_readable.js:1103:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)
  log   [02:34:27.352] [warning][stats-collection] Unable to fetch data from kibana collector
 error  [02:34:27.353] [warning][stats-collection] [search_phase_execution_exception] all shards failed :: {"path":"/.kibana/_search","query":{"size":1000,"ignore_unavailable":true,"filter_path":"hits.hits._id"},"body":"{\"query\":{\"bool\":{\"filter\":{\"term\":{\"index-pattern.type\":\"rollup\"}}}}}","statusCode":503,"response":"{\"error\":{\"root_cause\":[],\"type\":\"search_phase_execution_exception\",\"reason\":\"all shards failed\",\"phase\":\"query\",\"grouped\":true,\"failed_shards\":[]},\"status\":503}"}
    at respond (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/src/lib/transport.js:308:15)
    at checkRespForFailure (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/src/lib/transport.js:267:7)
    at HttpConnector. (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/src/lib/connectors/http.js:166:7)
    at IncomingMessage.wrapper (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/node_modules/lodash/lodash.js:4935:19)
    at IncomingMessage.emit (events.js:194:15)
    at endReadableNT (_stream_readable.js:1103:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)
  log   [02:34:27.354] [warning][stats-collection] Unable to fetch data from rollups collector
 error  [02:34:27.354] [warning][stats-collection] [no_shard_available_action_exception] No shard available for [get [.kibana][doc][config:6.6.2]: routing [null]] :: {"path":"/.kibana/doc/config%3A6.6.2","query":{},"statusCode":503,"response":"{\"error\":{\"root_cause\":[{\"type\":\"no_shard_available_action_exception\",\"reason\":\"No shard available for [get [.kibana][doc][config:6.6.2]: routing [null]]\"}],\"type\":\"no_shard_available_action_exception\",\"reason\":\"No shard available for [get [.kibana][doc][config:6.6.2]: routing [null]]\"},\"status\":503}"}
    at respond (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/src/lib/transport.js:308:15)
    at checkRespForFailure (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/src/lib/transport.js:267:7)
    at HttpConnector. (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/src/lib/connectors/http.js:166:7)
    at IncomingMessage.wrapper (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/node_modules/lodash/lodash.js:4935:19)
    at IncomingMessage.emit (events.js:194:15)
    at endReadableNT (_stream_readable.js:1103:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)
  log   [02:34:27.355] [warning][stats-collection] Unable to fetch data from kibana_settings collector
 error  [02:34:27.359] [warning][stats-collection] [search_phase_execution_exception] all shards failed :: {"path":"/.kibana/_search","query":{"size":10000,"ignore_unavailable":true,"filter_path":"hits.hits._source.canvas-workpad"},"body":"{\"query\":{\"bool\":{\"filter\":{\"term\":{\"type\":\"canvas-workpad\"}}}}}","statusCode":503,"response":"{\"error\":{\"root_cause\":[],\"type\":\"search_phase_execution_exception\",\"reason\":\"all shards failed\",\"phase\":\"query\",\"grouped\":true,\"failed_shards\":[]},\"status\":503}"}
    at respond (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/src/lib/transport.js:308:15)
    at checkRespForFailure (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/src/lib/transport.js:267:7)
    at HttpConnector. (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/src/lib/connectors/http.js:166:7)
    at IncomingMessage.wrapper (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/node_modules/lodash/lodash.js:4935:19)
    at IncomingMessage.emit (events.js:194:15)
    at endReadableNT (_stream_readable.js:1103:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)
  log   [02:34:27.359] [warning][stats-collection] Unable to fetch data from canvas collector
  log   [02:34:27.383] [info][license][xpack] Imported license information from Elasticsearch for the [monitoring] cluster: mode: basic | status: active
  log   [02:34:27.618] [warning][browser-driver][reporting] Enabling the Chromium sandbox provides an additional layer of protection.
 error  [02:34:37.332] [warning][stats-collection] [search_phase_execution_exception] all shards failed :: {"path":"/.kibana/_search","query":{"ignore_unavailable":true,"filter_path":"aggregations.types.buckets"},"body":"{\"size\":0,\"query\":{\"terms\":{\"type\":[\"dashboard\",\"visualization\",\"search\",\"index-pattern\",\"graph-workspace\",\"timelion-sheet\"]}},\"aggs\":{\"types\":{\"terms\":{\"field\":\"type\",\"size\":6}}}}","statusCode":503,"response":"{\"error\":{\"root_cause\":[],\"type\":\"search_phase_execution_exception\",\"reason\":\"all shards failed\",\"phase\":\"query\",\"grouped\":true,\"failed_shards\":[]},\"status\":503}"}
    at respond (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/src/lib/transport.js:308:15)
    at checkRespForFailure (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/src/lib/transport.js:267:7)
    at HttpConnector. (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/src/lib/connectors/http.js:166:7)
    at IncomingMessage.wrapper (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/node_modules/lodash/lodash.js:4935:19)
    at IncomingMessage.emit (events.js:194:15)
    at endReadableNT (_stream_readable.js:1103:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)
  log   [02:34:37.334] [warning][stats-collection] Unable to fetch data from kibana collector
 error  [02:34:37.335] [warning][stats-collection] [search_phase_execution_exception] all shards failed :: {"path":"/.kibana/_search","query":{},"body":"{\"query\":{\"term\":{\"type\":\"config\"}}}","statusCode":503,"response":"{\"error\":{\"root_cause\":[],\"type\":\"search_phase_execution_exception\",\"reason\":\"all shards failed\",\"phase\":\"query\",\"grouped\":true,\"failed_shards\":[]},\"status\":503}"}
    at respond (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/src/lib/transport.js:308:15)
    at checkRespForFailure (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/src/lib/transport.js:267:7)
    at HttpConnector. (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/src/lib/connectors/http.js:166:7)
    at IncomingMessage.wrapper (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/node_modules/lodash/lodash.js:4935:19)
    at IncomingMessage.emit (events.js:194:15)
    at endReadableNT (_stream_readable.js:1103:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)
  log   [02:34:37.335] [warning][stats-collection] Unable to fetch data from kql collector
 error  [02:34:37.337] [warning][stats-collection] [search_phase_execution_exception] all shards failed :: {"path":"/.kibana/_search","query":{"size":1000,"ignore_unavailable":true,"filter_path":"hits.hits._id"},"body":"{\"query\":{\"bool\":{\"filter\":{\"term\":{\"index-pattern.type\":\"rollup\"}}}}}","statusCode":503,"response":"{\"error\":{\"root_cause\":[],\"type\":\"search_phase_execution_exception\",\"reason\":\"all shards failed\",\"phase\":\"query\",\"grouped\":true,\"failed_shards\":[]},\"status\":503}"}
    at respond (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/src/lib/transport.js:308:15)
    at checkRespForFailure (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/src/lib/transport.js:267:7)
    at HttpConnector. (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/src/lib/connectors/http.js:166:7)
    at IncomingMessage.wrapper (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/node_modules/lodash/lodash.js:4935:19)
    at IncomingMessage.emit (events.js:194:15)
    at endReadableNT (_stream_readable.js:1103:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)
  log   [02:34:37.338] [warning][stats-collection] Unable to fetch data from rollups collector
 error  [02:34:37.338] [warning][stats-collection] [no_shard_available_action_exception] No shard available for [get [.kibana][doc][config:6.6.2]: routing [null]] :: {"path":"/.kibana/doc/config%3A6.6.2","query":{},"statusCode":503,"response":"{\"error\":{\"root_cause\":[{\"type\":\"no_shard_available_action_exception\",\"reason\":\"No shard available for [get [.kibana][doc][config:6.6.2]: routing [null]]\"}],\"type\":\"no_shard_available_action_exception\",\"reason\":\"No shard available for [get [.kibana][doc][config:6.6.2]: routing [null]]\"},\"status\":503}"}
    at respond (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/src/lib/transport.js:308:15)
    at checkRespForFailure (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/src/lib/transport.js:267:7)
    at HttpConnector. (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/src/lib/connectors/http.js:166:7)
    at IncomingMessage.wrapper (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/node_modules/lodash/lodash.js:4935:19)
    at IncomingMessage.emit (events.js:194:15)
    at endReadableNT (_stream_readable.js:1103:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)
  log   [02:34:37.339] [warning][stats-collection] Unable to fetch data from kibana_settings collector
 error  [02:34:37.341] [warning][stats-collection] [search_phase_execution_exception] all shards failed :: {"path":"/.kibana/_search","query":{"size":10000,"ignore_unavailable":true,"filter_path":"hits.hits._source.canvas-workpad"},"body":"{\"query\":{\"bool\":{\"filter\":{\"term\":{\"type\":\"canvas-workpad\"}}}}}","statusCode":503,"response":"{\"error\":{\"root_cause\":[],\"type\":\"search_phase_execution_exception\",\"reason\":\"all shards failed\",\"phase\":\"query\",\"grouped\":true,\"failed_shards\":[]},\"status\":503}"}
    at respond (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/src/lib/transport.js:308:15)
    at checkRespForFailure (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/src/lib/transport.js:267:7)
    at HttpConnector. (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/src/lib/connectors/http.js:166:7)
    at IncomingMessage.wrapper (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/node_modules/lodash/lodash.js:4935:19)
    at IncomingMessage.emit (events.js:194:15)
    at endReadableNT (_stream_readable.js:1103:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)
  log   [02:34:37.342] [warning][stats-collection] Unable to fetch data from canvas collector
  log   [02:34:38.694] [error][status][plugin:[email protected]] Status changed from yellow to red - all shards failed: [search_phase_execution_exception] all shards failed
  log   [02:34:38.698] [fatal][root] { [search_phase_execution_exception] all shards failed :: {"path":"/.kibana/doc/_count","query":{},"body":"{\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"exists\":{\"field\":\"index-pattern\"}},{\"bool\":{\"must_not\":{\"term\":{\"migrationVersion.index-pattern\":\"6.5.0\"}}}}]}}]}}}","statusCode":503,"response":"{\"error\":{\"root_cause\":[],\"type\":\"search_phase_execution_exception\",\"reason\":\"all shards failed\",\"phase\":\"query\",\"grouped\":true,\"failed_shards\":[]},\"status\":503}"}
    at respond (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/src/lib/transport.js:308:15)
    at checkRespForFailure (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/src/lib/transport.js:267:7)
    at HttpConnector. (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/src/lib/connectors/http.js:166:7)
    at IncomingMessage.wrapper (/data/appcom/kibana-6.6.2/node_modules/elasticsearch/node_modules/lodash/lodash.js:4935:19)
    at IncomingMessage.emit (events.js:194:15)
    at endReadableNT (_stream_readable.js:1103:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)
  status: 503,
  displayName: 'ServiceUnavailable',
  message:
   'all shards failed: [search_phase_execution_exception] all shards failed',
  path: '/.kibana/doc/_count',
  query: {},
  body:
   { error:
      { root_cause: [],
        type: 'search_phase_execution_exception',
        reason: 'all shards failed',
        phase: 'query',
        grouped: true,
        failed_shards: [] },
     status: 503 },
  statusCode: 503,
  response:
   '{"error":{"root_cause":[],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[]},"status":503}',
  toString: [Function],
  toJSON: [Function],
  isBoom: true,
  isServer: true,
  data: null,
  output:
   { statusCode: 503,
     payload:
      { message:
         'all shards failed: [search_phase_execution_exception] all shards failed',
        statusCode: 503,
        error: 'Service Unavailable' },
     headers: {} },
  reformat: [Function],
  [Symbol(SavedObjectsClientErrorCode)]: 'SavedObjectsClient/esUnavailable' }

 FATAL  [search_phase_execution_exception] all shards failed :: {"path":"/.kibana/doc/_count","query":{},"body":"{\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"exists\":{\"field\":\"index-pattern\"}},{\"bool\":{\"must_not\":{\"term\":{\"migrationVersion.index-pattern\":\"6.5.0\"}}}}]}}]}}}","statusCode":503,"response":"{\"error\":{\"root_cause\":[],\"type\":\"search_phase_execution_exception\",\"reason\":\"all shards failed\",\"phase\":\"query\",\"grouped\":true,\"failed_shards\":[]},\"status\":503}"}

出现这种报错的原因为Kibana启动的默认索引与ES的集群中的索引有冲突,

解决办法为删除冲突索引或者在Kibana配置文件中重命名索引

将上述对应的索引重新命名启动就可以了。

你可能感兴趣的:(Elasticsearch,大数据)