Open oleg68 opened 2 years ago
Looks like you have some local DNS resolution problems. Could you provide command-line you have used to run the nodes?
Looks like you have some local DNS resolution problems.
No, it does not:
[oleg@ydbs1 ~]$ hostname
ydbs1
[oleg@ydbs1 ~]$ hostname -f
ydbs1.oleg2-virt.oleghome
[oleg@ydbs1 ~]$ host ydbs1
ydbs1.oleg2-virt.oleghome has address 192.168.56.91
[oleg@ydbs1 ~]$ host ydbs1.oleg2-virt.oleghome
ydbs1.oleg2-virt.oleghome has address 192.168.56.91
[oleg@ydbs1 ~]$ host 192.168.56.91
91.56.168.192.in-addr.arpa domain name pointer ydbs1.oleg2-virt.oleghome.
Could you provide command-line you have used to run the nodes?
It is the default one from your systemd example: /opt/ydb/bin/ydbd server --log-level 3 --syslog --tcp --yaml-config /opt/ydb/cfg/config.yaml --grpc-port 2135 --ic-port 19001 --mon-port 8765 --node static
Thanks for these details. We will try to reproduce the problem and come back with answer.
The problem is that YDB trying to get local hostname using HostName() call which returns shortname in your case (and it doesn't match hostname in config). We will fix it soon KIKIMR-15293.
I'm trying to start a ydb cluster with mirror-dc configuration for three nodes. The
hosts
part is:When I'm rtying to start ydbd it finishes with error:
Caught exception: ydb/core/driver_lib/cli_utils/cli_cmds_server.cpp:351: cannot detect node ID for ydbs1:19001
After I removed the domain names,
the cluster is starting successfully.