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

hostname如果包含短横线-,则启动失败. #28018

Open
trdmm opened this issue Sep 22, 2024 · 3 comments
Open

hostname如果包含短横线-,则启动失败. #28018

trdmm opened this issue Sep 22, 2024 · 3 comments
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@trdmm
Copy link

trdmm commented Sep 22, 2024

Version: 3.3.2.0

比如, 我的hostname是: tdengine-1, 则启动时报错:

06/08 15:49:11.056342 00000593 C DND start to init dnode env
06/08 15:49:11.057625 00000593 C DND dnode file:/var/lib/taos//dnode/dnode.json not exist
06/08 15:49:11.058281 00000593 C DND mnode file:/var/lib/taos//mnode/mnode.json not exist
06/08 15:49:11.058285 00000593 C DND deploy mnode required. dnodeId:0<=0, clusterId:0<=0, localEp:tdengine-1:6030==firstEp
06/08 15:49:11.058290 00000593 C DND file:/var/lib/taos//qnode/qnode.json not exist
06/08 15:49:11.058293 00000593 C DND file:/var/lib/taos//snode/snode.json not exist
06/08 15:49:11.065203 00000593 C RPC ERROR invalid ip/port, 1698605248:6030, reason:Cannot assign requested address
06/08 15:49:11.065214 00000593 C DND ERROR failed to init dnode rpc server
06/08 15:49:11.065216 00000593 C DND ERROR failed to init transport since Cannot assign requested address
06/08 15:49:11.065223 00000593 C DND ERROR failed to create dnode since Cannot assign requested address
06/08 15:49:11.065225 00000593 C DND ERROR failed to init dnode since Cannot assign requested address

此时需修改:

  1. hostname: hostnamectl set-hostname tdengine1;
  2. /etc/taos/taos.cfg: 配置文件中如设置了hostname, 也需同步修改;
  3. /etc/hosts: 新hostname的IP地址解析也需同步修改.
@trdmm trdmm added help wanted Extra attention is needed question Further information is requested labels Sep 22, 2024
@trdmm
Copy link
Author

trdmm commented Sep 22, 2024

以此记录供后来者参考.

@yu285
Copy link
Contributor

yu285 commented Sep 24, 2024

我们看下。

@yu285
Copy link
Contributor

yu285 commented Sep 24, 2024

image
我这边试了一下,用- 的FQDN 可以用的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants