-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
无法链接本地的etcd客户端 无法写入 #939
Comments
如果是本机,你试试localhost |
rpc dial: discov://localhost:2379/add.rpc, error: context deadline exceeded, make sure rpc service "add.rpc" is already started |
|
环境: etcd 安装如下: rpc-test服务: 本地测试: etcd 是否正常 google.golang.org/grpc:v1.26.0 rpc服务启动过一度时间出现: "logger":"etcd-client","caller":"[email protected]/retry_interceptor.go:62","msg":"retrying of una |
只能单个服务注册吗 我看都是注册的是单个服务 有 服务名称+path这种的吗 就是service 公用一个servicenamepace 去调用对应的方法 |
类似 servicename.namespace.svc.cluster.local 的形式 |
加我微信沟通下吧,没太明白 |
微信多少
…------------------ 原始邮件 ------------------
发件人: "Kevin ***@***.***>;
发送时间: 2021年8月24日(星期二) 中午12:59
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [tal-tech/go-zero] 无法链接本地的etcd客户端 无法写入 (#939)
加我微信沟通下吧,没太明白
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
kevwan |
同样问题,怎么解决的? |
单独的注入客户端没有问题 注入相同的客户端 公用一个链接 conn 句柄 导致问题 请查看 svcContext 注入的rpc客户端是否配置了conn zrpc.MustClient 传入的是grpc.Conn 实例 可以自己随便的扩展 使用consul etcd java的配置服务发现中心 只需要继承 client.Client 的 Conn 方法即可 |
xxx.log.rpc 这种形式,多个相同的客户端有解决方案了吗? |
你指的是 一个grpc服务 同一个客户端 conn 传递的 path 比如 user 里面细分为 多个业务 公用一个conn ip:port 只是 注册的 服务不一样
我的解决方法:
一.使用consul进行重新做服务发现
二.使用grpc proto生成的 客户端
三.使用baseClient 提供 svc服务的名称进行服务查询返回
自己去生成 rpcinterface-server rpcinterface/client -> baseclient -> servicename -> consul/etcd -> ip:port -> conn -> grpcClient -> 注入
…------------------ 原始邮件 ------------------
发件人: "zeromicro/go-zero" ***@***.***>;
发送时间: 2021年10月9日(星期六) 中午1:01
***@***.***>;
***@***.***>;"State ***@***.***>;
主题: Re: [zeromicro/go-zero] 无法链接本地的etcd客户端 无法写入 (#939)
xxx.log.rpc 这种形式有解决方案了吗?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
请问这个问题后来有解决吗 |
Has this issue been resolved later? |
因为我使用的etcd版本是2.2.5,升级到3.5.2就没有存在这个问题了 |
Because the etcd version I am using is 2.2.5, this problem does not exist after upgrading to 3.5.2 |
可以升级一下 需要把 grpc 也对呀的升级一下版本就行了
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2022年3月22日(星期二) 中午11:25
收件人: ***@***.***>;
抄送: ***@***.***>; "State ***@***.***>;
主题: Re: [zeromicro/go-zero] 无法链接本地的etcd客户端 无法写入 (#939)
请问这个问题后来有解决吗
因为我使用的etcd版本是2.2.5,升级到3.5.2就没有存在这个问题了
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you modified the open/close state.Message ID: ***@***.***>
|
?
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2022年3月22日(星期二) 中午11:25
收件人: ***@***.***>;
抄送: ***@***.***>; "State ***@***.***>;
主题: Re: [zeromicro/go-zero] 无法链接本地的etcd客户端 无法写入 (#939)
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Is this problem solved later?
Because the etcd version I am using is 2.2.5, this problem does not exist after upgrading to 3.5.2
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you modified the open/close state.Message ID: ***@***.***>
|
解决了吗 |
Solve it |
解决了吗 |
Is it solved? |
{"level":"warn","ts":"2021-08-23T17:23:44.850+0800","logger":"etcd-client","caller":"[email protected]/retry_interceptor.go:62","msg":"retrying of
unary invoker failed","target":"etcd-endpoints://0xc0001a1880/#initially=[192.168.1.57:2379]","attempt":0,"error":"rpc error: code = Dead
lineExceeded desc = latest balancer error: last connection error: connection error: desc = "transport: Error while dialing dial tcp 0.0.0
.0:2379: connectex: No connection could be made because the target machine actively refused it.""}
{"level":"info","ts":"2021-08-23T17:23:44.850+0800","logger":"etcd-client","caller":"[email protected]/client.go:207","msg":"Auto sync endpoints f
ailed.","error":"context deadline exceeded"}
The text was updated successfully, but these errors were encountered: