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

客户端 notifications/v2 504 怎么解 #1045

Closed
mhcxp opened this issue Apr 10, 2018 · 8 comments
Closed

客户端 notifications/v2 504 怎么解 #1045

mhcxp opened this issue Apr 10, 2018 · 8 comments

Comments

@mhcxp
Copy link

mhcxp commented Apr 10, 2018

版本: 0.10.2

2018-04-10 22:20:05.245  WARN [apollo-demo,,,] 5544 [Apollo-RemoteConfigLongPollService-1] [c.c.f.a.i.RemoteConfigLongPollService   :194] Long polling failed,
will retry in 120 seconds. appId: apollo-demo, cluster: default, namespaces: application+extraDev, long polling url:
http://localhost:18080/notifications/v2?cluster=default&appId=apollo-demo&ip=192.168.200.1&notifications=%5B%7B%22namespaceName%22%3A%22application%22%2C%22notificationId%22%3A8%7D%2C%7B%22namespaceName%22%3A%22extraDev%22%2C%22notificationId%22%3A6%7D%5D, reason: Could not complete get operation [Cause: Server returned HTTP response code: 504 for URL: 
http://localhost:18080/notifications/v2?cluster=default&appId=apollo-demo&ip=192.168.200.1&notifications=%5B%7B%22namespaceName%22%3A%22application%22%2C%22notificationId%22%3A8%7D%2C%7B%22namespaceName%22%3A%22extraDev%22%2C%22notificationId%22%3A6%7D%5D [Cause: Server returned HTTP response code: 504 for URL: http://localhost:18080/notifications/v2?cluster=default&appId=apollo-demo&ip=192.168.200.1&notifications=%5B%7B%22namespaceName%22%3A%22application%22%2C%22notificationId%22%3A8%7D%2C%7B%22namespaceName%22%3A%22extraDev%22%2C%22notificationId%22%3A6%7D%5D]]

@nobodyiam
Copy link
Member

你先浏览器访问以下这个URL看看?tomcat应该不会返回504吧?

@mhcxp
Copy link
Author

mhcxp commented Apr 10, 2018

@nobodyiam

浏览器一样504。修改配置并发布后,重新访问(notificationId已请求过)正常,但使用新的notificationId 依然504
部署方式

@weifan01
Copy link

@mhcxp 您好,这个最终怎么解决了呢?我的也是这个问题,分布式部署方式

@nobodyiam
Copy link
Member

504应该是Long Polling不是通过IP直连config service,而是走了网关或nginx之类的,需要调大网关或nginx上的超时设置到1分钟以上。

@nobodyiam
Copy link
Member

case先关闭了,如还有问题,可以提供更多信息,或进群交流。

@working-alone
Copy link

[Apollo-RemoteConfigLongPollService-1] WARN c.c.f.a.i.RemoteConfigLongPollService -【】- Long polling failed, will retry in 1 seconds. appId: hnf-orders-consumer-server, cluster: default, namespaces: application, long polling url: http://172.17.0.3:8180/notifications/v2?cluster=default&appId=hnf-orders-consumer-server&ip=10.244.1.3&notifications=%5B%7B%22namespaceName%22%3A%22application%22%2C%22notificationId%22%3A88%7D%5D, reason: Could not complete get operation [Cause: No route to host (Host unreachable)]

@zhangbao1s
Copy link

nginx keepalive_timeout 120; 还是同样报超时 HTTP response code: 504

@oldthreefeng
Copy link

nginx keepalive_timeout 120; 还是同样报超时 HTTP response code: 504

+1

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