Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic: etcdclient: old cluster version #4170

Open
hdytime opened this issue May 30, 2024 · 2 comments
Open

panic: etcdclient: old cluster version #4170

hdytime opened this issue May 30, 2024 · 2 comments

Comments

@hdytime
Copy link

hdytime commented May 30, 2024

image
image
image

My etcd version is very new but I still can't successfully start this demo.
I have been troubled for two days. Does anyone know how to solve this?

@Owen-Zhang
Copy link

Owen-Zhang commented Jun 27, 2024

看了 etcd client源码,这个错误是etcd server那边返回的

if maj < 3 || (maj == 3 && min < 2) {
   rerr = ErrOldCluster
}
// 如果主版本 < 3 或者 版本 < 3.2 才会报这个错误 (那个版本号在api项目中写死的)

你用etcd --version 估计应该也差不多,

  1. 你看一下你的etcd服务端是不是使用了v2版本,
    2 看一个etcd client是不是老了,更新一点看看,反正就是服务端返回了版本信息,客户端做了一些验证

看一下server端的yaml文件, 同时升级etcd client,(我用 o.etcd.io/etcd/client/pkg/v3 v3.5.13, 都是正常的 )

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


After looking at etcd client source, this error is returned by etcd server.

if maj < 3 || (maj == 3 && min < 2) {
   rerr = ErrOldCluster
}
// This error will only be reported if the main version < 3 or version < 3.2 (that version number is hard-coded in the api project)

It should be similar if you use etcd --version.

  1. Check to see if your etcd server uses version v2.
    2 Check if an etcd client is old, update it and see if it is

I personally feel that the problem is more likely to be caused by the server. Can you take a look at the configuration of etcd.yaml?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants