yugabyte/yugabyte-db

[yugabyted] Changing --listen after the cluster is started can cause cluster to fail to start

Open

#27116 opened on May 8, 2025

View on GitHub
 (1 comment) (0 reactions) (0 assignees)C (8,229 stars) (1,003 forks)batch import
area/ecosystemarea/ybdgood first issuekind/enhancementpriority/mediumstatus/awaiting-triage

Description

Jira Link: DB-16602

Description

Steps

Start cluster bound to 127.0.0.1

sanketh@dev-server-sanketh-3 yugabyte-db > enable_inheritance > ~/yugabyte-2024.2.0.0/bin/yugabyted start --base_dir /tmp/2024.2 --listen 127.0.0.1
Starting yugabyted...
✅ YugabyteDB Started
✅ UI ready
✅ Data placement constraint successfully verified

⚠ WARNINGS:
- max user processes ulimits value set low. Please set soft and hard limits to 12000.
- Cluster started in an insecure mode without authentication and encryption enabled. For non-production use only, not to be used without firewalls blocking the internet traffic.

Please review the following docs and rerun the start command:


+--------------------------------------------------------------------------------------------------------+
|                                               yugabyted                                                |
+--------------------------------------------------------------------------------------------------------+
| Status              : Running.                                                                         |
| Replication Factor  : 1                                                                                |
| YugabyteDB UI       : http://127.0.0.1:15433                                                           |
| JDBC                : jdbc:postgresql://127.0.0.1:5433/yugabyte?user=yugabyte&password=yugabyte        |
| YSQL                : bin/ysqlsh   -U yugabyte -d yugabyte                                             |
| YCQL                : bin/ycqlsh   -u cassandra                                                        |
| Data Dir            : /tmp/2024.2/data                                                                 |
| Log Dir             : /tmp/2024.2/logs                                                                 |
| Universe UUID       : 67912ccd-dbb5-4533-b26c-f5f0b899c451                                             |
+--------------------------------------------------------------------------------------------------------+
🚀 YugabyteDB started successfully! To load a sample dataset, try 'yugabyted demo'.
🎉 Join us on Slack at https://www.yugabyte.com/slack
👕 Claim your free t-shirt at https://www.yugabyte.com/community-rewards/

Cluster starts fine.

sanketh@dev-server-sanketh-3 yugabyte-db > enable_inheritance > ~/yugabyte-2024.2.0.0/bin/ysqlsh -h 127.0.0.1
ysqlsh (11.2-YB-2024.2.0.0-b0)
Type "help" for help.

yugabyte=# select now();
              now
-------------------------------
 2025-05-08 18:00:52.353728+00
(1 row)

Stop and restart the cluster with 127.0.0.3.

sanketh@dev-server-sanketh-3 yugabyte-db > enable_inheritance > ~/yugabyte-2024.2.0.0/bin/yugabyted stop --base_dir /tmp/2024.2/
Stopped yugabyted using config /tmp/2024.2/conf/yugabyted.conf.
sanketh@dev-server-sanketh-3 yugabyte-db > enable_inheritance > ~/yugabyte-2024.2.0.0/bin/yugabyted start --base_dir /tmp/2024.2 --listen 127.0.0.3
Starting yugabyted...
✅ YugabyteDB Started
✅ UI ready
✅ Data placement constraint successfully verified

⚠ WARNINGS:
- max user processes ulimits value set low. Please set soft and hard limits to 12000.
- Cluster started in an insecure mode without authentication and encryption enabled. For non-production use only, not to be used without firewalls blocking the internet traffic.

Please review the following docs and rerun the start command:


+---------------------------------------------------------------------------------------------------+
|                                             yugabyted                                             |
+---------------------------------------------------------------------------------------------------+
| Status         : Bootstrapping.                                                                   |
| YugabyteDB UI  : http://127.0.0.3:15433                                                           |
| JDBC           : jdbc:postgresql://127.0.0.3:5433/yugabyte?user=yugabyte&password=yugabyte        |
| YSQL           : bin/ysqlsh -h 127.0.0.3  -U yugabyte -d yugabyte                                 |
| YCQL           : bin/ycqlsh 127.0.0.3 9042 -u cassandra                                           |
| Data Dir       : /tmp/2024.2/data                                                                 |
| Log Dir        : /tmp/2024.2/logs                                                                 |
| Universe UUID  : 67912ccd-dbb5-4533-b26c-f5f0b899c451                                             |
+---------------------------------------------------------------------------------------------------+
🚀 YugabyteDB started successfully! To load a sample dataset, try 'yugabyted demo'.
🎉 Join us on Slack at https://www.yugabyte.com/slack
👕 Claim your free t-shirt at https://www.yugabyte.com/community-rewards/

Cluster seems to start but ysqlsh hangs

sanketh@dev-server-sanketh-3 yugabyte-db > enable_inheritance > ~/yugabyte-2024.2.0.0/bin/ysqlsh -h 127.0.0.3
<hangs>

Image

Warning: Please confirm that this issue does not contain any sensitive information

  • I confirm this issue does not contain any sensitive information.

Contributor guide