长毛象streaming服务ERR! Error: The client is closed

st 发布于 2022-04-04 1,049 次阅读


这个是Lilymagic上不知道什么时候开始出现的问题,百思不得其解,症状为:

  1. 时间线上三个点的省略号,一般是设置成时间线不自动刷新之后有人新发状态才会出现,但是当时不论有没有新内容,只要打开时间线就会有这个省略号,而且刷新也没有用,这个省略号一直会在时间线顶端。时间线内容正常,有新内容也能正常拉取。

  2. Nginx log内错误[error] 23#23: *5 connect() failed (111: Connection refused) while connecting to upstream

  3. streaming容器log:
    streaming_1 | WARN Starting streaming API server master with 1 workers
    streaming_1 | WARN Starting worker 1
    streaming_1 | WARN Worker 1 now listening on 0.0.0.0:4000
    streaming_1 | verb Subscribe timeline/:access_token/:43
    streaming_1 | verb dec0382e-4a35-49e2-a774-298c612c55d4 Starting stream from timeline:106901085264630507, timeline/:106901085264630507/:notifications for 106901085264630507
    streaming_1 | verb Subscribe timeline/:106901085264630507
    streaming_1 | verb Subscribe timeline/:106901085264630507/:notifications
    streaming_1 | ERR! Error: The client is closed
    streaming_1 | WARN Worker 1 exiting
    streaming_1 | WARN Starting worker 2
    streaming容器的log显示worker一直在不停的exit再重开。

我实在是搞不明白原因,明明有一堆错误但是streaming的内容还是正常的,一直以为是反代问题但是从apache换到nginx还是这样,最后实在搞不明白就rebase到3.4.6然后重新build了,结果瞬间就好了。大概是之前main branch的bug,以后还是用release吧。