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

[error] 139441#0: recv() failed (111: Connection refused) [error] 139441#0: upsync_recv: recv error with upstream: "consul_test" #46

Open
hello-llc opened this issue Nov 25, 2020 · 2 comments

Comments

@hello-llc
Copy link

Hi:
这是报错信息

配置信息是这样的:
upstream consul_test {
server bigdatatest1:21050;# 这个固定的,不用理
upsync 127.0.0.1:8500/v1/kv/upstreams/consul_test/ upsync_timeout=3000ms upsync_interval=500ms upsync_type=consul strong_dependency=off;
upsync_dump_path /usr/local/nginx/conf/upsync_test.conf;
include /usr/local/nginx/conf/upsync_test.conf;
}
server{
listen 21052 so_keepalive=on;
proxy_connect_timeout 10;
proxy_timeout 900;
proxy_pass consul_test;
}

什么原因呢?

感谢!

@xiaokai-wang
Copy link
Owner

Uploading image.png…

@hello-llc
Copy link
Author

hello-llc commented Nov 27, 2020

图片

[error] 23094#0: upsync_check_key: invalid ip in /bigdatatest2:21050
[error] 23094#0: upsync_replace_peers: no servers to replace "consul_test"
[error] 23094#0: upsync_process: upstream del/replace peers failed
[error] 23094#0: [WARN] upsync_timeout: timed out reading upsync_server: 127.0.0.1:8500
[error] 23094#0: [WARN] upsync_timeout: timed out reading upsync_server: 127.0.0.1:8500

现在报错信息变成这样了

这是consul日志
图片

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

2 participants