TiFlash Startup Error, Port 378 Startup Error

This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: Tiflash启动报错,378端口启动报错

| username: TiDBer_n2upvF1S

[TiDB Usage Environment] Production Environment
[TiDB Version] V7.1
[Reproduction Path] Directly deploy and install Tiflash, prompt timeout
[Encountered Problem: Problem Phenomenon and Impact] Tiflash startup error, unable to start normally
[Attachment: Screenshot/Log/Monitoring]

Error message:
[2024/05/15 09:43:00.015 +08:00] [WARN] [StorageConfigParser.cpp:273] [“The configuration path is deprecated. Check [storage] section for new style.”] [thread_id=1]
[2024/05/15 09:43:01.262 +08:00] [ERROR] [Server.cpp:379] [“/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tics/contrib/grpc/src/core/ext/transport/chttp2/server/insecure/server_chttp2.cc, line number: 48, log msg : {"created":"@1715737381.262882932","description":"No address added out of total 1 resolved","file":"/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tics/contrib/grpc/src/core/ext/transport/chttp2/server/chttp2_server.cc","file_line":936,"referenced_errors":[{"created":"@1715737381.262856185","description":"Unable to configure socket","fd":36,"file":"/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tics/contrib/grpc/src/core/lib/iomgr/tcp_server_utils_posix_common.cc","file_line":218,"referenced_errors":[{"created":"@1715737381.262845282","description":"Cannot assign requested address","errno":99,"file":"/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tics/contrib/grpc/src/core/lib/iomgr/tcp_server_utils_posix_common.cc","file_line":191,"os_error":"Cannot assign requested address","syscall":"bind"}]}]}”] [source=grpc] [thread_id=1]
[2024/05/15 09:43:02.999 +08:00] [ERROR] [] [“DB::Exception: Exception happens when start grpc server, the flash.service_addr may be invalid, flash.service_addr is”] [source=Application] [thread_id=1]

| username: Billmay表妹 | Original post link

Copy and paste it~ Error
Screenshots are a bit unsightly

| username: DBAER | Original post link

Are you deploying the cluster on a single machine? Do you have enough resources?

| username: TiDBer_n2upvF1S | Original post link

Resources are sufficient.

| username: songxuecheng | Original post link

Check if ports 378 and 3930 are occupied.

| username: TiDBer_QYr0vohO | Original post link

This IP looks like a public IP. Have you confirmed the firewall and ports?

| username: Sword | Original post link

Take a look at this question.

| username: TiDBer_n2upvF1S | Original post link

All confirmed, firewall is turned off, and the port is not occupied.

| username: TiDBer_n2upvF1S | Original post link

Not occupied

| username: DBAER | Original post link

How about manually starting it by running the scripts/run_tiflash.sh in the Deploy Dir directory of tiflash?

| username: 芝士改变命运 | Original post link

Take a look at this issue.

| username: 友利奈绪 | Original post link

Have you checked if the configuration is correct? Have you tried using the local IP and password-free settings?

| username: yytest | Original post link

Check if it is caused by the host firewall.

| username: 数据库真NB | Original post link

The configured TiFlash server address is invalid. Check if it’s a network issue, firewall, whitelist, or some other problem.

| username: yytest | Original post link

  • Confirm whether the IP address and port number of flash.service_addr are correct and accessible.
  • Check the network configuration to ensure there are no port conflicts or other network-related issues.