---
title: "常见问题"
date: 0001-01-01
summary: "常见问题及故障处理 #  这里主要收集 INFINI Console 使用过程中遇到的常见问题及处理办法，欢迎反馈提交到 这里。
常见问题 #  Elasticsearch 前面加上 Nginx，平台提示 400 错误 #  类似错误日志如下：
[11-25 18:26:58] [TRC] [v0.go:390] search response: {&quot;query&quot;:{&quot;match&quot;:{&quot;status&quot;: &quot;RUNNING&quot;}}},&lt;!DOCTYPE html&gt; &lt;title&gt;Error 400 (Bad Request)!!1&lt;/title&gt; &lt;p&gt;&lt;b&gt;400.&lt;/b&gt; &lt;ins&gt;That’s an error.&lt;/ins&gt; &lt;p&gt;Your client has issued a malformed or illegal request. &lt;ins&gt;That’s all we know.&lt;/ins&gt; [11-25 18:26:58] [ERR] [init.go:87] json: invalid character '&lt;' looking for beginning of value: &lt;!DOCTYPE html&gt; &lt;html lang=en&gt; 问题描述 #  Nginx 对于 GET 请求类型，不支持传递请求体"
---


# 常见问题及故障处理

这里主要收集 INFINI Console 使用过程中遇到的常见问题及处理办法，欢迎反馈提交到[这里](https://github.com/infinilabs/console/issues/new/choose)。

## 常见问题

### Elasticsearch 前面加上 Nginx，平台提示 400 错误

类似错误日志如下：

```
[11-25 18:26:58] [TRC] [v0.go:390] search response: {"query":{"match":{"status": "RUNNING"}}},<!DOCTYPE html>
  <title>Error 400 (Bad Request)!!1</title>
  <p><b>400.</b> <ins>That’s an error.</ins>
  <p>Your client has issued a malformed or illegal request.  <ins>That’s all we know.</ins>
[11-25 18:26:58] [ERR] [init.go:87] json: invalid character '<' looking for beginning of value: <!DOCTYPE html>
<html lang=en>
```

#### 问题描述

Nginx 对于 GET 请求类型，不支持传递请求体

#### 解决方案

将 INFINI Console 升级最新版本。

### 注册集群后监控数据不显示

如下如所示：
{{% load-img "/img/troubleshooting/monitor_no_data.png" "集群监控不显示数据" %}}

#### 问题描述

INFINI Console 需要用到 Elasticsearch 7.0 以上版本的一些特性

#### 解决方案

将 INFINI Console 存储数据的 ES 集群版本升级到 v7.0+

### 系统集群状态显示为不可用

如下如所示：
{{% load-img "/img/troubleshooting/cluster_unavilabe.png" "系统集群状态显示为不可用" %}}

#### 问题描述

在 1.29.0 或 1.29.1 版本中，系统集群的健康状态字段更新错误，导致无法正确显示集群状态。

#### 解决方案
在开发工具中执行以下命令进行状态更新或升级 Console 至最新版本

```
POST /.infini_cluster/_update_by_query?conflicts=proceed
{
  "query": {
    "term": {
      "id": {
        "value": "infini_default_system_cluster"
      }
    }
  },
  "script": {
    "source": "ctx._source.labels = ['health_status': params.status]",
    "lang": "painless",
    "params": {
      "status": "green"
    }
  }
}
```

### 启动报错

```
[03-23 08:38:20] [ERR] [metadata.go:529] {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Can't merge a non object mapping [payload.node_state.settings.http.type] with an object mapping [payload.node_state.settings.http.type]"}],"type":"illegal_argument_exception","reason":"Can't merge a non object mapping [payload.node_state.settings.http.type] with an object mapping [payload.node_state.settings.http.type]"},"status":400}
```

或者出现错误

```
[04-16 09:45:06] [ERR] [schema.go:144] error on update mapping: {"root_cause":[{"type":"mapper_parsing_exception","reason":"Failed to parse mapping [_doc]: analyzer [suggest_text_search] has not been configured in mappings"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [_doc]: analyzer [suggest_text_search] has not been configured in mappings","caused_by":{"type":"illegal_argument_exception","reason":"analyzer [suggest_text_search] has not been configured in mappings"}}
```

#### 问题描述

版本 v0.3 修改了模板和 Mapping，如果升级之前未手动更新模板，旧索引已经存在且 Mapping 不是期望的 object 类型，会提示字段冲突或者分析器找不到。

关于升级，请参考 [升级说明](../upgrade/)

#### 解决方案

- 停止 INFINI Console
- 删除索引模板 `.infini`

```
DELETE _template/.infini
```

- 删除索引 `.infini_node` 和 `.infini_index`

```
DELETE .infini_node
DELETE .infini_index
```

- 启动 INFINI Console

#### 问题描述

当较低版本的 INFINI Console (<=1.29.8) 连接到版本不兼容的较高版本 INFINI Easysearch (>=1.5.0) 时，程序在初始化阶段会报错。

系统会报告以下 `index_not_found_exception` 错误：
```json
PUT /.easysearch-ilm-config/_settings {"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index [.easysearch-ilm-config]","resource.type":"index_or_alias","resource.id":".easysearch-ilm-config","index_uuid":"_na_","index":".easysearch-ilm-config"}],"type":"index_not_found_exception","reason":"no such index [.easysearch-ilm-config]","resource.type":"index_or_alias","resource.id":".easysearch-ilm-config","index_uuid":"_na_","index":".easysearch-ilm-config"},"status":404}
```

如下图所示：
{{% load-img "/img/troubleshooting/ilm-error.png" "初始化报错" %}}

#### 解决方案

该问题由版本不兼容导致。为解决此问题，您需要确保 INFINI Console 和 INFINI Easysearch 的版本相互兼容。

首先，请停止 INFINI Console 服务。然后，在以下两个方案中选择**其中一个**执行：

*   **方案一：降级 INFINI Easysearch**
    *   将您的 INFINI Easysearch 实例降级至兼容版本，例如 **1.4.2 或更早版本**。

*   **方案二：升级 INFINI Console**
    *   将您的 INFINI Console 实例升级至兼容版本，例如 **1.29.9 或更高版本**。