From a6d96be06f53c28f915615dc2b230140084b4a58 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Wed, 5 Feb 2025 18:35:35 +0800 Subject: [PATCH 1/3] Update 07-faq.md --- docs/zh/06-advanced/06-TDgpt/07-faq.md | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/docs/zh/06-advanced/06-TDgpt/07-faq.md b/docs/zh/06-advanced/06-TDgpt/07-faq.md index a8338265bc..02f4436a4c 100644 --- a/docs/zh/06-advanced/06-TDgpt/07-faq.md +++ b/docs/zh/06-advanced/06-TDgpt/07-faq.md @@ -3,7 +3,7 @@ title: "常见问题" sidebar_label: "常见问题" --- -1. 创建 anode 失败 +1. 创建 anode 失败,返回指定服务无法访问 ```bash taos> create anode '127.0.0.1:6090'; @@ -11,14 +11,19 @@ taos> create anode '127.0.0.1:6090'; DB error: Analysis service can't access[0x80000441] (0.117446s) ``` -请检查 anode 服务是否工作正常。 - -```bash -curl '127.0.0.1:6090' -curl: (7) Failed to connect to 127.0.0.1 port 6090: Connection refused -``` +请务必使用 `curl` 命令检查 anode 服务是否正常。`curl '127.0.0.1:6090'` 正常的 anode 服务会返回以下结果。 ```bash TDengine© Time Series Data Analytics Platform (ver 1.0.x) ``` +如果出现下面的结果,表示 anode 服务不正常。 +```bash +curl: (7) Failed to connect to 127.0.0.1 port 6090: Connection refused +``` + +如果 anode 服务启动/运行不正常,请检查 uWSGI 的运行日志 `/var/log/taos/taosanode/taosanode.log`,检查其中的错误信息,根据错误信息解决响应的问题。 + +>请勿使用 systemctl status taosanode 检查 taosanode 是否正常 + +2. 查询结果不正确 From 2663b583c2a8cc91356ab5bc384127f830fd4150 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Wed, 5 Feb 2025 19:27:35 +0800 Subject: [PATCH 2/3] Update 07-faq.md --- docs/zh/06-advanced/06-TDgpt/07-faq.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/zh/06-advanced/06-TDgpt/07-faq.md b/docs/zh/06-advanced/06-TDgpt/07-faq.md index 02f4436a4c..d003cf88df 100644 --- a/docs/zh/06-advanced/06-TDgpt/07-faq.md +++ b/docs/zh/06-advanced/06-TDgpt/07-faq.md @@ -26,4 +26,10 @@ curl: (7) Failed to connect to 127.0.0.1 port 6090: Connection refused >请勿使用 systemctl status taosanode 检查 taosanode 是否正常 -2. 查询结果不正确 +2. 服务正常,查询过程返回服务不可用 +```bash +taos> select _frowts,forecast(current, 'algo=arima, alpha=95, wncheck=0, rows=20, start=1500000000000,every=864000') from d1 where ts<='2017-07-14 10:40:09.999'; + +DB error: Analysis service can't access[0x80000441] (60.195613s) +``` + From 84dae236643920db1ae1a5fc367d5b7dd1bada25 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Thu, 6 Feb 2025 09:24:13 +0800 Subject: [PATCH 3/3] Update 07-faq.md --- docs/zh/06-advanced/06-TDgpt/07-faq.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/zh/06-advanced/06-TDgpt/07-faq.md b/docs/zh/06-advanced/06-TDgpt/07-faq.md index d003cf88df..9747dc18f4 100644 --- a/docs/zh/06-advanced/06-TDgpt/07-faq.md +++ b/docs/zh/06-advanced/06-TDgpt/07-faq.md @@ -28,8 +28,13 @@ curl: (7) Failed to connect to 127.0.0.1 port 6090: Connection refused 2. 服务正常,查询过程返回服务不可用 ```bash -taos> select _frowts,forecast(current, 'algo=arima, alpha=95, wncheck=0, rows=20, start=1500000000000,every=864000') from d1 where ts<='2017-07-14 10:40:09.999'; +taos> select _frowts,forecast(current, 'algo=arima, alpha=95, wncheck=0, rows=20') from d1 where ts<='2017-07-14 10:40:09.999'; DB error: Analysis service can't access[0x80000441] (60.195613s) ``` +数据分析默认超时时间是 60s,出现这个问题的原因是输入数据分析过程超过默认的最长等待时间,请尝试采用限制数据输入范围的方式将输入数据规模减小或者更换分析算法再次尝试。 + +3. 返回结果出现非法 JSON 格式错误 (Invalid json format) + +从 anode 返回到 TDengine 的分析结果有误,请检查 anode 运行日志 `/var/log/taos/taosanode/taosanode.app.log`,以便于获得具体的错误信息。