Open hdytime opened 4 months ago
看了 etcd client源码,这个错误是etcd server那边返回的
if maj < 3 || (maj == 3 && min < 2) {
rerr = ErrOldCluster
}
// 如果主版本 < 3 或者 版本 < 3.2 才会报这个错误 (那个版本号在api项目中写死的)
你用etcd --version 估计应该也差不多,
看一下server端的yaml文件, 同时升级etcd client,(我用 o.etcd.io/etcd/client/pkg/v3 v3.5.13, 都是正常的 )
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.
- 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?
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?