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

upsync_consul_parse_init: recv upstream "test" error; http_status: 504 #235

Open
mjwtc0722 opened this issue Oct 27, 2018 · 10 comments
Open

Comments

@mjwtc0722
Copy link

2018/10/27 13:04:41 [error] 26187#0: upsync_consul_parse_init: recv upstream "test" error; http_status: 504
2018/10/27 13:04:41 [error] 26187#0: upsync_consul_parse_init: recv upstream "test2" error; http_status: 504
2018/10/27 13:04:41 [error] 26187#0: upsync_consul_parse_init: recv upstream "test3" error; http_status: 504
2018/10/27 13:04:41 [error] 26187#0: upsync_consul_parse_init: recv upstream "test4" error; http_status: 504

@xiaokai-wang
Copy link
Member

consul server 响应超时,请检查consul server 服务.

@mjwtc0722
Copy link
Author

我从consul里是可以正常进行配置的,这个超时指的是哪里引起的

@gfrankliu
Copy link
Collaborator

估计是nginx不能连接consul的端口。

@gfrankliu
Copy link
Collaborator

Is there a firewall?

@mjwtc0722
Copy link
Author

没有防火墙,再nginx所在的主机可以使用curl访问consul集群

@gfrankliu
Copy link
Collaborator

Paste your full config, also enable debug and post the debug log.

@mjwtc0722
Copy link
Author

这个问题解决了,是因为使用了七层SLB,在SLB上的连接超时了

@arrow2012
Copy link

@mjwtc0722 我是upsync ——》阿里云SLB(HTTP)——》 nginx ——》3台consul server 也会出现 上面这种 504的错误,是需要修改SLB为 4层 即可解决吗?

@gf-chenxudong
Copy link

consul server 响应超时,请检查consul server 服务.

我也是同样的问题,我配置的是etcd,为啥去连接consul呢

@hanggegege
Copy link

@mjwtc0722 我是upsync ——》阿里云SLB(HTTP)——》 nginx ——》3台consul server 也会出现 上面这种 504的错误,是需要修改SLB为 4层 即可解决吗?

你好,你解决了吗

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

6 participants