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

用docker etcd 链接kitex服务器时给这个错误 #1101

Open
winson8222 opened this issue Sep 7, 2023 · 7 comments
Open

用docker etcd 链接kitex服务器时给这个错误 #1101

winson8222 opened this issue Sep 7, 2023 · 7 comments

Comments

@winson8222
Copy link

2023/09/08 03:49:13.137176 middlewares.go:130: [Warn] KITEX: auto retry retryable error, retry=1 error=remote or network error: get connection error: dial tcp 169.254.207.55:8000: connectex: A socket operation was attempted to an unreachable network.
2023/09/08 03:49:13.182425 middlewares.go:130: [Warn] KITEX: auto retry retryable error, retry=2 error=remote or network error: get connection error: dial tcp 169.254.207.55:8000: connectex: A socket operation was attempted to an unreachable network.
2023/09/08 03:49:13.183421 middlewares.go:130: [Warn] KITEX: auto retry retryable error, retry=3 error=remote or network error: get connection error: dial tcp 169.254.207.55:8000: connectex: A socket operation was attempted to an unreachable network.
2023/09/08 03:49:13.183421 middlewares.go:130: [Warn] KITEX: auto retry retryable error, retry=4 error=remote or network error: get connection error: dial tcp 169.254.207.55:8000: connectex: A socket operation was attempted to an unreachable network.
2023/09/08 03:49:13.184426 middlewares.go:130: [Warn] KITEX: auto retry retryable error, retry=5 error=remote or network error: get connection error: dial tcp 169.254.207.55:8000: connectex: A socket operation was attempted to an unreachable network.
2023/09/08 03:49:13.184426 middlewares.go:130: [Warn] KITEX: auto retry retryable error, retry=6 error=remote or network error: get connection error: dial tcp 169.254.207.55:8000: connectex: A socket operation was attempted to an unreachable network.
2023/09/08 03:49:13 remote or network error: get connection error: dial tcp 169.254.207.55:8000: connectex: A socket operation was attempted to an unreachable network.

不用etcd直接连没事。

@ppzqh
Copy link
Contributor

ppzqh commented Sep 8, 2023

先明确一下:

  1. etcd是怎么用的?
  2. 169.254.207.55:8000是什么地址?从日志来看网络不连通。

@winson8222
Copy link
Author

etcd 在docker容器,:8000 在localhost上。不清楚169.254.207.55:8000是什么。
client:
image
server:
image

@winson8222
Copy link
Author

先明确一下:

  1. etcd是怎么用的?
  2. 169.254.207.55:8000是什么地址?从日志来看网络不连通。

只是在windows上有这个问题

@winson8222
Copy link
Author

用普通client没有问题,只是generic call有问题。

@rogerogers
Copy link

169.254.207.55是windows没联网的一个地址

@winson8222
Copy link
Author

发现在windows上,用kitexv 0.7.1,和etcd1.1就会有这情况,降到kitex v0.5.2, 和降其他的附属就没有这个问题了。

@felix021
Copy link
Contributor

NewEtcdResolver 的时候不应该用 "0.0.0.0:8000",应当指定一个具体的 IP 地址 + 端口。

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

No branches or pull requests

4 participants