Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JAVA:TDengine Error: Unable to establish connection #4770

Closed
Mrgongm opened this issue Dec 30, 2020 · 2 comments
Closed

JAVA:TDengine Error: Unable to establish connection #4770

Mrgongm opened this issue Dec 30, 2020 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Mrgongm
Copy link

Mrgongm commented Dec 30, 2020

Bug Description
taosd.service start filed,
Job for taosd.service failed because a fatal signal was delivered to the control process.

To Reproduce
1、两台设备 搭建简单的集群并且检查连接成功。建立两个数据库,同时开始存储数据(每个数据库均有1680张表,每张表每秒使用1次insert语句批量插入1000条数据)。建库建表语句如下:

CREATE DATABASE IF NOT EXISTS dbm KEEP 10 DAYS 1;
USE dbm;
CREATE TABLE IF NOT EXISTS suMdata(ts TIMESTAMP,a int,b int) tags(groupid smallint ,hostid smallint);
CREATE DATABASE IF NOT EXISTS dbv KEEP 10 DAYS 1;
USE dbv;
CREATE TABLE IF NOT EXISTS suVdata(ts TIMESTAMP,x int,y int,z int) tags(groupid smallint ,hostid smallint);

2、刚开始一切正常,查询集群中任何节点,均能查看到所有表及数据
3、运行一段时间后,java程序出现异常:“TDengine Error: Unable to establish connection”
4、此时打开终端,输入“taos”指令,数据库已经无法进入,且报异常“taos connect failed, reason: Unable to establish connection.”
5、执行sudo systemctl status taosd.server 发现taosd已经停止运行
6、执行sudo systemctl start taosd.server 出现以下信息:

Job for taosd.service failed because a fatal signal was delivered to the control process.
See "systemctl status taosd.service" and "journalctl -xe" for details.

7、再次执行sudo systemctl status taosd.server 查看状态如下:

● taosd.service - TDengine server service
   Loaded: loaded (/etc/systemd/system/taosd.service; enabled; vendor preset: enabled)
   Active: failed (Result: signal) since Wed 2020-12-30 01:12:15 CST; 57s ago
  Process: 28334 ExecStart=/usr/bin/taosd (code=killed, signal=ABRT)
 Main PID: 28334 (code=killed, signal=ABRT)
12月 30 01:12:15 beiyang-Precision-5820-Tower-X-Series systemd[1]: Stopped TDengine server service.
12月 30 01:12:15 beiyang-Precision-5820-Tower-X-Series systemd[1]: taosd.service: Start request repeated too quickly.
12月 30 01:12:15 beiyang-Precision-5820-Tower-X-Series systemd[1]: taosd.service: Failed with result 'signal'.
12月 30 01:12:15 beiyang-Precision-5820-Tower-X-Series systemd[1]: Failed to start TDengine server service.
12月 30 01:12:25 beiyang-Precision-5820-Tower-X-Series systemd[1]: taosd.service: Start request repeated too quickly.
12月 30 01:12:25 beiyang-Precision-5820-Tower-X-Series systemd[1]: taosd.service: Failed with result 'signal'.
12月 30 01:12:25 beiyang-Precision-5820-Tower-X-Series systemd[1]: Failed to start TDengine server service.
12月 30 01:12:32 beiyang-Precision-5820-Tower-X-Series systemd[1]: taosd.service: Start request repeated too quickly.
12月 30 01:12:32 beiyang-Precision-5820-Tower-X-Series systemd[1]: taosd.service: Failed with result 'signal'.
12月 30 01:12:32 beiyang-Precision-5820-Tower-X-Series systemd[1]: Failed to start TDengine server service.

Screenshots
image

Environment (please complete the following information):
集群两台设备:

 - OS: [Ubuntu 18.04]
 - Memory[32G], CPU[36  Intel(R) Core(TM) i9-10980XE CPU @ 3.00GHz], current Disk Space[198G/229G]
 - TDengine Version [2.0.12.0]
 - OS: [Ubuntu 18.04]
 - Memory[16G], CPU[ 8  Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz], current Disk Space[45G/475G]
 - TDengine Version [2.0.12.0]

Log:
taoslog&taosdlog.zip

@Mrgongm Mrgongm added the bug Something isn't working label Dec 30, 2020
@sangshuduo
Copy link
Contributor

log里只有一个 taosdlog,请把另外一台机器的taosdlog也上传,另外说明对应无法那台机器的log文件是哪个

@Mrgongm
Copy link
Author

Mrgongm commented Dec 30, 2020

sorry。
之前提交的是32G内存机器的log。

以下是16G内存机器的log文件。
8核机器log.zip

@sangshuduo sangshuduo self-assigned this Jan 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants