tidb 版本 7.5.5
今天reload了一下tiflash发现一直起不来,启动tiflash失败日志如下
[2025/03/14 15:25:33.792 +08:00] [INFO] [SchemaSyncService.cpp:181] ["SchemaSyncService stopped"] [thread_id=1]
[2025/03/14 15:25:35.484 +08:00] [INFO] [Server.cpp:1070] ["Let tiflash proxy shutdown"] [thread_id=1]
[2025/03/14 15:25:35.484 +08:00] [INFO] [Server.cpp:1073] ["Wait for tiflash proxy thread to join"] [thread_id=1]
[2025/03/14 15:25:35.558 +08:00] [INFO] [Server.cpp:1075] ["tiflash proxy thread is joined"] [thread_id=1]
[2025/03/14 15:25:35.558 +08:00] [ERROR] [<unknown>] ["null context when constructing CivetServer. Possible problem binding to port."] [source=Application] [thread_id=1]
[2025/03/14 15:25:35.558 +08:00] [INFO] [<unknown>] ["shutting down"] [source=Application] [thread_id=1]
[2025/03/14 15:25:35.559 +08:00] [INFO] [BaseDaemon.cpp:307] ["Stop SignalListener thread"] [source=BaseDaemon] [thread_id=609]
看到日志猜测是因为端口冲突,然后一直排查tiflash的 tcp_port, http_port,发现这两个端口并未被使用,然后就往其他方向排查问题了。
最后经过查看文档才知道tiflash有6个端口,最终定位到metrics_port和其他服务冲突了
吐槽点,日志没写清楚是哪个端口冲突了,排查起来很浪费时间。