Error starting TiDB: TiDB found no available replicas while processing the request

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

Original topic: 启动tidb时报错,说是TiDB 在处理请求时发现没有可用的副本。

| username: TiDB学习小白

“This area is for non-technical exchanges.”

My configuration includes two TiKV, one TiDB, and one PD. The deployment and startup were successful before, but after recompiling and redeploying, it started to report errors. It had reported errors before, but then it mysteriously started working. I don’t know the reason. Could the experts please help me out? Thank you.

| username: 小龙虾爱大龙虾 | Original post link

I didn’t see any obvious errors in your logs.

| username: xfworld | Original post link

Remove one TiKV and keep only one TiKV node, then try to start it.

| username: zhaokede | Original post link

Are there more logs?

| username: TiDB学习小白 | Original post link

“throwing pseudo error due to no replica available” in the sixth line

| username: TiDB学习小白 | Original post link

The previous logs did not report any errors. TiDB failed to start and just timed out here.

| username: TiDB学习小白 | Original post link

The same.

| username: TiDB学习小白 | Original post link

I downgraded the version to 7.5, and it was able to start. But the TiDB, PD, and TiKV I pulled from git are all the latest version 8.1.0. The other components are used as they come.

| username: xfworld | Original post link

Did you compile it yourself? Isn’t it the official release version obtained through tiup?

| username: TiDB学习小白 | Original post link

Yes, that’s correct. After compiling it yourself, you can point to your self-compiled TiDB binary file when deploying with tiup.

| username: xfworld | Original post link

You need to pull the GA version (release version) on git, otherwise, it’s normal if it doesn’t run… :see_no_evil:

| username: zhanggame1 | Original post link

8.1.0 isn’t finished yet, right?

| username: zhaokede | Original post link

It’s better to use the official GA.

| username: TiDB学习小白 | Original post link

Okay, okay, thank you. It was running at first, so I’ll try changing the version.

| username: TiDB学习小白 | Original post link

Yes, there might be some bugs. I’ll try downgrading the version to see if it helps. Thank you.

| username: TiDB学习小白 | Original post link

Okay, thank you.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.