ossrs / srs

SRS is a simple, high-efficiency, real-time media server supporting RTMP, WebRTC, HLS, HTTP-FLV, HTTP-TS, SRT, MPEG-DASH, and GB28181.
https://ossrs.io
MIT License
25.62k stars 5.37k forks source link

CLUSTER: When the http_api listening IP in the node configuration item of the origin server cluster is set to 127.0.0.1 and used simultaneously with the actual IP in coworkers, it will cause a conflict. #2947

Open wr-ning opened 2 years ago

wr-ning commented 2 years ago

Description'

Please ensure that the markdown structure is maintained.

Please describe the issue you encountered here. ' Make sure to maintain the markdown structure.

When the http_api listening IP in the node configuration item of the origin server cluster is set to 127.0.0.1 and used simultaneously with the actual IP in coworkers, it will cause conflicts. The actual IP refers to the IP address of that machine.

  1. SRS version (Version): srs-server-4.0-b1(4.0.206)

  2. Operating System: ubuntu-16.04.6-server-amd64

  3. SRS Installation Package: srs-server-4.0-b1.tar.gz

  4. SRS Log:

[2022-03-04 13:33:02.761][Error][24700][o72v89m6][111] serve error code=1018 : service cycle : rtmp: stream service : discover coworkers, url=http://192.168.1.110:9093/api/v1/clusters?vhost=__defaultVhost__&ip=192.168.1.110&app=live&stream=test02&coworker=192.168.1.110:9093 : http: post http://192.168.1.110:9093/api/v1/clusters?vhost=__defaultVhost__&ip=192.168.1.110&app=live&stream=test02&coworker=192.168.1.110:9093, status=0, res= : http: client post : http: connect server : http: tcp connect http 192.168.1.110:9093 to=30000ms, rto=30000ms : tcp: connect 192.168.1.110:9093 to=30000ms : connect to 192.168.1.110:9093
thread [24700][o72v89m6]: do_cycle() [src/app/srs_app_rtmp_conn.cpp:217][errno=111]
thread [24700][o72v89m6]: service_cycle() [src/app/srs_app_rtmp_conn.cpp:414][errno=111]
thread [24700][o72v89m6]: playing() [src/app/srs_app_rtmp_conn.cpp:629][errno=111]
thread [24700][o72v89m6]: discover_co_workers() [src/app/srs_app_http_hooks.cpp:439][errno=111]
thread [24700][o72v89m6]: do_post() [src/app/srs_app_http_hooks.cpp:505][errno=111]
thread [24700][o72v89m6]: post() [src/protocol/srs_service_http_client.cpp:322][errno=111]
thread [24700][o72v89m6]: connect() [src/protocol/srs_service_http_client.cpp:447][errno=111]
thread [24700][o72v89m6]: connect() [src/protocol/srs_service_st.cpp:642][errno=111]
thread [24700][o72v89m6]: srs_tcp_connect() [src/protocol/srs_service_st.cpp:193][errno=111](Connection refused)

Replay

How to replay bug?

Steps to reproduce the bug

Steps to reproduce the bug:

  1. Currently, there are two machines with the following IP addresses:

    • Machine 1: 192.168.1.110
    • Machine 2: 192.168.1.185

    On the machine with IP 192.168.1.110, there is a deployed origin server cluster consisting of 4 nodes: serverA1, serverB1, serverC1, and serverD1. (Reproducing the issue is easier with 4 nodes in the origin server cluster)

    On the machine with IP 192.168.1.185, there is a deployed edge cluster with 1 node: edge1.

Configuration files for the 4 nodes in the origin server cluster and 1 node in the edge cluster:

  1. The configuration files for the 4 nodes in the origin server cluster and 1 node in the edge cluster are as follows:

    • For the origin server cluster:

      • origin.cluster.serverA.conf
      • origin.cluster.serverB.conf
      • origin.cluster.serverC.conf
      • origin.cluster.edge.conf
    • After making some simple changes, the configuration files will evolve into:

      • origin.cluster.serverA1.conf
      • origin.cluster.serverB1.conf
      • origin.cluster.serverC1.conf
      • origin.cluster.serverD1.conf
      • origin.cluster.edge1.conf

Configuration file for origin.cluster.serverA1.conf:

  1. The configuration file for origin.cluster.serverA1.conf is as follows:
    
    # the config for srs origin-origin cluster
    # @see https://github.com/ossrs/srs/wiki/v3_EN_OriginCluster
    # @see full.conf for detail config.

listen 19350; max_connections 1000; daemon off; srs_log_tank console; pid ./objs/origin.cluster.serverA1.pid; http_api { enabled on; listen 9090; } vhost defaultVhost { cluster { mode local; origin_cluster on; coworkers 192.168.1.110:9091 192.168.1.110:9092 192.168.1.110:9093; } }


**Configuration file for `origin.cluster.serverB1.conf`:**

4. The configuration file for `origin.cluster.serverB1.conf` is as follows:

the config for srs origin-origin cluster

@see https://github.com/ossrs/srs/wiki/v3_EN_OriginCluster

@see full.conf for detail config.

listen 19351; max_connections 1000; daemon off; srs_log_tank console; pid ./objs/origin.cluster.serverB1.pid; http_api { enabled on; listen 9091; } vhost defaultVhost { cluster { mode local; origin_cluster on; coworkers 192.168.1.110:9090 192.168.1.110:9092 192.168.1.110:9093; } }


**Configuration file for `origin.cluster.serverC1.conf`:**

5. The configuration file for `origin.cluster.serverC1.conf` is as follows:

the config for srs origin-origin cluster

@see https://github.com/ossrs/srs/wiki/v3_EN_OriginCluster

@see full.conf for detail config.

listen 19352; max_connections 1000; daemon off; srs_log_tank console; pid ./objs/origin.cluster.serverC1.pid; http_api { enabled on; listen 9092; } vhost defaultVhost { cluster { mode local; origin_cluster on; coworkers 192.168.1.110:9090 192.168.1.110:9091 192.168.1.110:9093; } }


**Configuration file for `origin.cluster.serverD1.conf`:**

6. The configuration file for `origin.cluster.serverD1.conf` is as follows:

the config for srs origin-origin cluster

@see https://github.com/ossrs/srs/wiki/v3_EN_OriginCluster

@see full.conf for detail config.

listen 19353; max_connections 1000; daemon off; srs_log_tank console; pid ./objs/origin.cluster.serverD1.pid; http_api { enabled on; listen 9093; } vhost defaultVhost { cluster { mode local; origin_cluster on; coworkers 192.168.1.110:9090 192.168.1.110:9091 192.168.1.110:9092; } }


**Configuration file for `origin.cluster.edge1.conf`:**

7. The configuration file for `origin.cluster.edge1.conf` is as follows:

the config for srs origin-edge cluster

@see https://github.com/ossrs/srs/wiki/v3_EN_OriginCluster

@see full.conf for detail config.

listen 1935; max_connections 1000; pid objs/edge1.pid; daemon off; srs_log_tank console; vhost defaultVhost { cluster { mode remote; origin 192.168.1.110:19350 192.168.1.110:19351 192.168.1.110:19352 192.168.1.110:19353; } }


**To enter the server at 192.168.1.110, navigate to the SRS project path, and then start SRS:**

Enter the server at 192.168.1.110, go to the SRS project path, and then start SRS.
`./objs/srs -c ./conf/origin.cluster.serverA1.conf`
`./objs/srs -c ./conf/origin.cluster.serverB1.conf`
`./objs/srs -c ./conf/origin.cluster.serverC1.conf`
`./objs/srs -c ./conf/origin.cluster.serverD1.conf`

**To enter the server at 192.168.1.185, navigate to the SRS project path, and then start SRS:**

Enter the server at 192.168.1.185, go to the SRS project path, and then start SRS.
 `./objs/srs -c ./conf/origin.cluster.edge1.conf`

**To stream using ffmpeg to serverA1 and serverC1 nodes:**

Use ffmpeg to push the stream to serverA1 and serverC1 nodes.
`ffmpeg -i rtsp://admin:admin@192.168.1.58:554/h264/ch1/main/av_stream -c copy -f flv rtmp://192.168.1.110:19350/live/test01`
`ffmpeg -i rtsp://admin:admin@192.168.1.48:554/h264/ch1/main/av_stream -c copy -f flv rtmp://192.168.1.110:19352/live/test02`

**To pull the stream from edge1 node using ffplay:**

Use ffplay to pull the stream from the edge1 node.
`ffplay -i rtmp://192.168.1.185:1935/live/test01`
`ffplay -i rtmp://192.168.1.185:1935/live/test02`

**Repeatedly pulling streams test01 and test02, the connection is very smooth, and there are no abnormal logs.**

--------------------------------------------------------------------------------------------------------
**8. **Important:
When I tried to change the http_api in the configuration of the 4 origin server nodes to listen to **127.0.0.1:**<port>, the logs started to show errors. However, the edge nodes can still play, although it takes a long time as it tries to establish a connection with each origin server node mentioned in the configuration. The waiting time is even longer if there are many origin server nodes to connect to before playing.**

**origin.cluster.serverA1.conf** configuration file has been modified as follows:

http_api { enabled on; listen 127.0.0.1:9090; } (The remaining configuration items remain unchanged)


The configuration file origin.cluster.serverB1.conf has been modified as follows:

http_api { enabled on; listen 127.0.0.1:9091; } (The remaining configuration items remain unchanged)


The configuration file origin.cluster.serverC1.conf has been modified as follows:

http_api { enabled on; listen 127.0.0.1:9092; } (The remaining configuration items remain unchanged)


The configuration file origin.cluster.serverD1.conf has been modified as follows:

http_api { enabled on; listen 127.0.0.1:9093; } (The remaining configuration items remain unchanged)


The origin.cluster.edge1.conf configuration file remains unchanged.

Restart the 4 origin servers + 1 edge server, push the stream to the origin servers again, pull the stream from the edge server again. The steps for starting, pushing, and pulling the stream are the same as mentioned above. Considering the length of the text, we will skip the details here.

9. serverA1 log:

[2022-03-04 13:32:20.739][Trace][24700][0i2e3476] XCORE-SRS/4.0.206(Leo) [2022-03-04 13:32:20.739][Trace][24700][0i2e3476] config parse complete [2022-03-04 13:32:20.739][Trace][24700][0i2e3476] write log to console [2022-03-04 13:32:20.739][Trace][24700][0i2e3476][MAIN] SRS/4.0.206(Leo), MIT [2022-03-04 13:32:20.739][Trace][24700][0i2e3476] authors: https://github.com/ossrs/srs/blob/4.0release/trunk/AUTHORS.txt [2022-03-04 13:32:20.739][Trace][24700][0i2e3476] contributors: Winlinwinlin@vip.126.com Winlinwinterserver@126.com Winlinchengli.ycl@alibaba-inc.com Wenjiezhaowenjie@tal.com Wenjie740936897@qq.com Wenjiewenjie.zhao@chinacache.com xiangcheng.liuliuxc0116@foxmail.com naijia.liuyoungcow@youngcow.net alcoholyialcoholyi@qq.com bytemanwangchen2011@gmail.com chad.wangchad.wang.cn@gmail.com suhetaosuhetao@gmail.com Johnnyfengjihu@163.com karthikeyankeyanmca@gmail.com StevenLiulq@chinaffmpeg.org zhengflzhengfl_1989@126.com tufang14breadbean1449@gmail.com allspaceallspace@gmail.com niesongsongnie950@gmail.com rudeb0tnimrod@themanxgroup.tw CallMeNPnp.liamg@gmail.com synotesynote@qq.com lovecatlittlefawn@163.com panda1986542638787@qq.com YueHonghuihongf.yue@hotmail.com ThomasDreibholzdreibh@simula.no JuntaoLiujuntliu@gmail.com RocFangfangpeng1986@gmail.com MakarovYaroslavyaroslav.makarov.97@mail.ru MirkoVelicmvelic@inoxx.net HuiZhang(huzhang2)huzhang2@cisco.com OtterWasimpleotter23@gmail.com walkermi172192667@qq.com haofzfuzhuang.hao@vhall.com ME_Kun_Hanhanvskun@hotmail.com ljx0305ljx0305@gmail.com cenxinweicenshanhe@163.com StarBrilliantm13253@hotmail.com xubinxubin@chnvideo.com intliangyintiliang@gmail.com flowerwrongsysuyangkang@gmail.com YLX568414379@qq.com Jguotaojiang@qq.com Harlanhailiang@gvrcraft.com hankunhankun@bravovcloud.com JonathanBarrattjonathan.barratt@gmail.com KeeganHkeeganwharris@gmail.com StevenLiulingjiujianke@gmail.com liuxc0116liuxc0116@gmail.com ChengdongZhanglmajzcd@sina.com lovacatlovecat@china.sina.com qiang.liqiang.li@verycdn.com.cn HungMingWuu9089000@gmail.com Himerxishizhaohua@qq.com XiaLixinxialixin@kanzhun.com XiaLixin68469352@qq.com XiaLixinxlx0625@163.com XiaLixinxialx@yuntongxun.com alphonsetaityh_123@163.com Michael.Mawnpllr@gmail.com lam2003linmin3@yy.com ShiWeishiwei05@kuaishou.com ShiWeishi.weibd@hotmail.com XiaofengWangwasphin@gmail.com XiaoZhihonghondaxiao@tencent.com XiaoZhihongxiaozhihong8@gmail.com XiaoZhihongxiaozhihong@huya.com yanghuiwencainiaodj@qq.com WuPengqiang309554135@qq.com WuPengqiangpengqiang.wpq@alibaba-inc.com l22312935+lam2003@github xfalconx-falcon@github ChenGuanghuajinxue.cgh@alibaba-inc.com ChenGuanghuachengh_math@126.com LiPengmozhan.lp@alibaba-inc.com LiPenglipeng19811218@gmail.com yajun18yajun18@staff.sina.com.cn liulichuanliulichuan@kuaishou.com yapingcatcaoyapingneu@163.com chenchengbinchenchengbin@yy.com ChenHaibo495810242@qq.com ChenHaibonmgchenhaibo@foxmail.com jasongwqjasongwq@gmail.com yinjiaoyuanyinjiaoyuan@163.com PieerePipihuibin@hotmail.com JesseXijesse.jinjin@wo.cn PieerePi40780488+PieerePi@github ghostsfghost_sf@163.com xbpeng12153243357+xbpeng121@github johzzyhellojinqiang@gmail.com stonebluestn@163.com cfw1134058899+cfw11@github Hung-YiChengaod.chen@gmail.com longliyalong12345@126.com matthew183877285055+matthew1838@github riserise.worlds@outlook.com [2022-03-04 13:32:20.739][Trace][24700][0i2e3476] cwd=/home/srs-server-4.0-b1/trunk, work_dir=./, build: 2021-12-20 20:27:35, configure: --x86-x64, uname: Linux ubuntu 4.4.0-142-generic #168-Ubuntu SMP Wed Jan 16 21:00:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux, osx: 0 [2022-03-04 13:32:20.739][Trace][24700][0i2e3476] configure detail: --prefix=/usr/local/srs --hls=on --hds=off --dvr=on --ssl=on --https=on --ssl-1-0=off --ssl-local=off --sys-ssl=off --transcode=on --ingest=on --stat=on --http-callback=on --http-server=on --stream-caster=on --http-api=on --utest=off --cherrypy=off --srt=off --rtc=on --simulator=off --cxx11=off --cxx14=off --ffmpeg-fit=on --nasm=on --srtp-nasm=on --clean=on --gperf=off --gmc=off --gmd=off --gmp=off --gcp=off --gprof=off --static=off --shared-st=off --shared-srt=off --shared-ffmpeg=off --log-verbose=off --log-info=off --log-trace=on --gcov=off --debug=off --debug-stats=off --cross-build=off --cc=gcc --cxx=g++ --ar=ar --ld=ld --randlib=randlib [2022-03-04 13:32:20.739][Trace][24700][0i2e3476] srs checking config... [2022-03-04 13:32:20.740][Trace][24700][0i2e3476] ips, iface[0] eno1 ipv4 0x11043 192.168.1.110, iface[1] eno1 ipv6 0x11043 fe80::ae1f:6bff:fed6:d12%eno1 [2022-03-04 13:32:20.740][Trace][24700][0i2e3476] devices, intranet eno1 192.168.1.110, intranet eno1 fe80::ae1f:6bff:fed6:d12%eno1 [2022-03-04 13:32:20.740][Warn][24700][0i2e3476][22] stats network use index=0, ip=192.168.1.110, ifname=eno1 [2022-03-04 13:32:20.740][Warn][24700][0i2e3476][22] stats disk not configed, disk iops disabled. [2022-03-04 13:32:20.740][Trace][24700][0i2e3476] write log to console [2022-03-04 13:32:20.740][Trace][24700][0i2e3476] features, rch:on, dash:on, hls:on, hds:off, srt:off, hc:on, ha:on, hs:on, hp:on, dvr:on, trans:on, inge:on, stat:on, sc:on [2022-03-04 13:32:20.740][Trace][24700][0i2e3476] SRS on amd64 x86_64, conf:./conf/origin.cluster.serverA1.conf, limit:1000, writev:1024, encoding:little-endian, HZ:100 [2022-03-04 13:32:20.740][Trace][24700][0i2e3476] mw sleep:350ms. mr enabled:on, default:0, sleep:350ms [2022-03-04 13:32:20.740][Trace][24700][0i2e3476] gc:on, pq:30000ms, cscc:[0,16), csa:on, tn:on(may hurts performance), ss:auto(guess by merged write) [2022-03-04 13:32:20.740][Trace][24700][0i2e3476] system default latency(ms): mw(0-350) + mr(0-350) + play-queue(0-30000) [2022-03-04 13:32:20.740][Warn][24700][0i2e3476][22] SRS/4.0.206 is not stable [2022-03-04 13:32:20.747][Trace][24700][0i2e3476] fingerprint=AB:97:8A:4A:59:C0:68:6E:95:35:1C:6B:FA:D5:31:D6:00:63:6A:83:D2:4B:37:51:E0:7D:83:DD:6E:34:14:C2 [2022-03-04 13:32:20.747][Trace][24700][0i2e3476] CircuitBreaker: enabled=1, high=2x90, critical=1x95, dying=5x99 [2022-03-04 13:32:20.747][Trace][24700][0i2e3476] http: root mount to ./objs/nginx/html [2022-03-04 13:32:20.747][Trace][24700][0i2e3476] server main cid=0i2e3476, pid=24700, ppid=367, asprocess=0 [2022-03-04 13:32:20.747][Trace][24700][0i2e3476] write pid=24700 to ./objs/origin.cluster.serverA1.pid success! [2022-03-04 13:32:20.748][Trace][24700][0i2e3476] RTMP listen at tcp://0.0.0.0:19350, fd=6 [2022-03-04 13:32:20.748][Trace][24700][0i2e3476] HTTP-API listen at tcp://127.0.0.1:9090, fd=7 [2022-03-04 13:32:20.748][Trace][24700][0i2e3476] signal installed, reload=1, reopen=10, fast_quit=15, grace_quit=3 [2022-03-04 13:32:20.748][Trace][24700][0i2e3476] http: api mount /console to ./objs/nginx/html/console [2022-03-04 13:32:20.748][Trace][24700][v84675zu] Hybrid cpu=0.00%,12MB [2022-03-04 13:32:20.748][Warn][24700][444157c1][22] use private address as ip: 192.168.1.110, ifname=eno1 [2022-03-04 13:32:20.748][Trace][24700][444157c1] Startup query id=7678298c9b7c11ec8aa06de3594bfab3, eip=192.168.1.110, wait=436s [2022-03-04 13:32:20.748][Trace][24700][8l5n6562] TCP: connection manager run, conns=0 [2022-03-04 13:32:20.749][Trace][24700][54305xi4] RTC: connection manager run, conns=0 [2022-03-04 13:32:25.737][Trace][24700][v84675zu] Hybrid cpu=1.00%,12MB [2022-03-04 13:32:30.737][Trace][24700][v84675zu] Hybrid cpu=0.00%,12MB [2022-03-04 13:32:31.288][Trace][24700][ec7a653c] RTMP client ip=192.168.1.210:64627, fd=8 [2022-03-04 13:32:31.293][Trace][24700][ec7a653c] complex handshake success [2022-03-04 13:32:31.293][Trace][24700][ec7a653c] connect app, tcUrl=rtmp://192.168.1.110:19350/live, pageUrl=, swfUrl=, schema=rtmp, vhost=192.168.1.110, port=19350, app=live, args=null [2022-03-04 13:32:31.293][Trace][24700][ec7a653c] protocol in.buffer=0, in.ack=0, out.ack=0, in.chunk=128, out.chunk=128 [2022-03-04 13:32:31.371][Trace][24700][ec7a653c] client identified, type=fmle-publish, vhost=192.168.1.110, app=live, stream=test01, param=, duration=0ms [2022-03-04 13:32:31.371][Trace][24700][ec7a653c] connected stream, tcUrl=rtmp://192.168.1.110:19350/live, pageUrl=, swfUrl=, schema=rtmp, vhost=defaultVhost, port=19350, app=live, stream=test01, param=, args=null [2022-03-04 13:32:31.371][Trace][24700][ec7a653c] new source, stream_url=/live/test01 [2022-03-04 13:32:31.371][Trace][24700][ec7a653c] source url=/live/test01, ip=192.168.1.210, cache=1, is_edge=0, source_id=/ [2022-03-04 13:32:31.451][Trace][24700][ec7a653c] ignore disabled exec for vhost=defaultVhost [2022-03-04 13:32:31.451][Trace][24700][ec7a653c] start publish mr=0/350, p1stpt=20000, pnt=5000, tcp_nodelay=0 [2022-03-04 13:32:31.532][Trace][24700][ec7a653c] got metadata, width=1920, height=1080, vcodec=7, acodec=7 [2022-03-04 13:32:31.532][Trace][24700][ec7a653c] 42B video sh, codec(7, profile=High, level=4, 1920x1080, 0kbps, 0.0fps, 0.0s) [2022-03-04 13:32:35.737][Trace][24700][v84675zu] Hybrid cpu=1.00%,13MB, cid=1,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:37,oth:0,buf:0) [2022-03-04 13:32:40.737][Trace][24700][v84675zu] Hybrid cpu=1.00%,14MB, cid=1,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:37,oth:0,buf:0) [2022-03-04 13:32:45.737][Trace][24700][v84675zu] Hybrid cpu=1.00%,14MB, cid=1,0, timer=63,0,0, clock=0,49,0,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:99,oth:0,buf:0) [2022-03-04 13:32:50.737][Trace][24700][v84675zu] Hybrid cpu=1.00%,14MB, cid=1,0, timer=63,0,0, clock=0,49,0,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:99,oth:0,buf:0) [2022-03-04 13:32:55.737][Trace][24700][v84675zu] Hybrid cpu=1.00%,14MB, cid=1,0, timer=63,0,0, clock=0,49,0,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:99,oth:0,buf:0) [2022-03-04 13:32:56.451][Trace][24700][ec7a653c] <- CPB time=19991528, okbps=1,0,0, ikbps=4181,0,0, mr=0/350, p1stpt=20000, pnt=5000 [2022-03-04 13:33:00.737][Trace][24700][v84675zu] Hybrid cpu=1.00%,14MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:100,oth:0,buf:0) [2022-03-04 13:33:02.717][Trace][24700][o72v89m6] RTMP client ip=192.168.1.185:49084, fd=9 [2022-03-04 13:33:02.720][Trace][24700][o72v89m6] complex handshake success [2022-03-04 13:33:02.720][Trace][24700][o72v89m6] connect app, tcUrl=rtmp://192.168.1.110:19350/live, pageUrl=, swfUrl=, schema=rtmp, vhost=192.168.1.110, port=19350, app=live, args=(obj) [2022-03-04 13:33:02.720][Trace][24700][o72v89m6] edge-srs ip=192.168.1.185, version=4.0.206, pid=19627, id=0 [2022-03-04 13:33:02.720][Trace][24700][o72v89m6] protocol in.buffer=0, in.ack=0, out.ack=0, in.chunk=128, out.chunk=128 [2022-03-04 13:33:02.760][Trace][24700][o72v89m6] client identified, type=rtmp-play, vhost=192.168.1.110, app=live, stream=test02, param=, duration=-1ms [2022-03-04 13:33:02.760][Trace][24700][o72v89m6] connected stream, tcUrl=rtmp://192.168.1.110:19350/live, pageUrl=, swfUrl=, schema=rtmp, vhost=defaultVhost, port=19350, app=live, stream=test02, param=, args=(obj) [2022-03-04 13:33:02.760][Trace][24700][o72v89m6] new source, stream_url=/live/test02 [2022-03-04 13:33:02.760][Trace][24700][o72v89m6] source url=/live/test02, ip=192.168.1.185, cache=1, is_edge=0, source_id=/ [2022-03-04 13:33:02.761][Trace][24700][o72v89m6] TCP: before dispose resource(RtmpConn)(0x29c79a0), conns=2, zombies=0, ign=0, inz=0, ind=0 [2022-03-04 13:33:02.761][Error][24700][o72v89m6][111] serve error code=1018 : service cycle : rtmp: stream service : discover coworkers, url=http://192.168.1.110:9093/api/v1/clusters?vhost=__defaultVhost__&ip=192.168.1.110&app=live&stream=test02&coworker=192.168.1.110:9093 : http: post http://192.168.1.110:9093/api/v1/clusters?vhost=__defaultVhost__&ip=192.168.1.110&app=live&stream=test02&coworker=192.168.1.110:9093, status=0, res= : http: client post : http: connect server : http: tcp connect http 192.168.1.110:9093 to=30000ms, rto=30000ms : tcp: connect 192.168.1.110:9093 to=30000ms : connect to 192.168.1.110:9093 thread [24700][o72v89m6]: do_cycle() [src/app/srs_app_rtmp_conn.cpp:217][errno=111] thread [24700][o72v89m6]: service_cycle() [src/app/srs_app_rtmp_conn.cpp:414][errno=111] thread [24700][o72v89m6]: playing() [src/app/srs_app_rtmp_conn.cpp:629][errno=111] thread [24700][o72v89m6]: discover_co_workers() [src/app/srs_app_http_hooks.cpp:439][errno=111] thread [24700][o72v89m6]: do_post() [src/app/srs_app_http_hooks.cpp:505][errno=111] thread [24700][o72v89m6]: post() [src/protocol/srs_service_http_client.cpp:322][errno=111] thread [24700][o72v89m6]: connect() [src/protocol/srs_service_http_client.cpp:447][errno=111] thread [24700][o72v89m6]: connect() [src/protocol/srs_service_st.cpp:642][errno=111] thread [24700][o72v89m6]: srs_tcp_connect() [src/protocol/srs_service_st.cpp:193][errno=111](Connection refused) [2022-03-04 13:33:02.761][Trace][24700][8l5n6562] TCP: clear zombies=1 resources, conns=2, removing=0, unsubs=0 [2022-03-04 13:33:02.761][Trace][24700][o72v89m6] TCP: disposing #0 resource(RtmpConn)(0x29c79a0), conns=2, disposing=1, zombies=0 [2022-03-04 13:33:05.738][Trace][24700][v84675zu] Hybrid cpu=2.00%,14MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:100,oth:0,buf:0) [2022-03-04 13:33:06.452][Trace][24700][ec7a653c] <- CPB time=29998408, okbps=0,1,0, ikbps=4133,4144,0, mr=0/350, p1stpt=20000, pnt=5000 [2022-03-04 13:33:10.738][Trace][24700][v84675zu] Hybrid cpu=1.00%,14MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:100,oth:0,buf:0) [2022-03-04 13:33:15.738][Trace][24700][v84675zu] Hybrid cpu=1.00%,14MB, cid=2,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, free=1, objs=(pkt:0,raw:0,fua:0,msg:100,oth:0,buf:0) [2022-03-04 13:33:16.452][Trace][24700][ec7a653c] <- CPB time=40003649, okbps=0,1,0, ikbps=4110,4144,0, mr=0/350, p1stpt=20000, pnt=5000 [2022-03-04 13:33:20.738][Trace][24700][v84675zu] Hybrid cpu=1.00%,14MB, cid=2,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, free=1, objs=(pkt:0,raw:0,fua:0,msg:100,oth:0,buf:0) [2022-03-04 13:33:25.738][Trace][24700][v84675zu] Hybrid cpu=2.00%,14MB, cid=2,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, free=1, objs=(pkt:0,raw:0,fua:0,msg:100,oth:0,buf:0) [2022-03-04 13:33:26.452][Trace][24700][ec7a653c] <- CPB time=50010948, okbps=0,1,0, ikbps=4091,4144,0, mr=0/350, p1stpt=20000, pnt=5000 [2022-03-04 13:33:30.738][Trace][24700][v84675zu] Hybrid cpu=1.00%,14MB, cid=1,0, timer=63,0,0, clock=0,49,0,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:100,oth:0,buf:0) [2022-03-04 13:33:35.738][Trace][24700][v84675zu] Hybrid cpu=2.00%,14MB, cid=1,0, timer=63,0,0, clock=0,49,0,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:100,oth:0,buf:0) [2022-03-04 13:33:40.738][Trace][24700][v84675zu] Hybrid cpu=1.00%,14MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:99,oth:0,buf:0) [2022-03-04 13:33:41.453][Trace][24700][ec7a653c] <- CPB time=65009779, okbps=0,0,0, ikbps=4069,4014,0, mr=0/350, p1stpt=20000, pnt=5000 [2022-03-04 13:33:45.739][Trace][24700][v84675zu] Hybrid cpu=0.00%,14MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:99,oth:0,buf:0) ^C[2022-03-04 13:33:47.534][Trace][24700][0i2e3476] sig=2, user terminate program, fast quit [2022-03-04 13:33:47.747][Trace][24700][0i2e3476] cleanup for quit signal fast=1, grace=0 [2022-03-04 13:33:47.747][Warn][24700][0i2e3476][11] main cycle terminated, system quit normally. [2022-03-04 13:33:47.847][Trace][24700][0i2e3476] srs disposed [2022-03-04 13:33:47.847][Trace][24700][0i2e3476] srs terminated


serverB1 log:

[2022-03-04 13:32:21.594][Trace][24701][728f358g] XCORE-SRS/4.0.206(Leo) [2022-03-04 13:32:21.594][Trace][24701][728f358g] config parse complete [2022-03-04 13:32:21.594][Trace][24701][728f358g] write log to console [2022-03-04 13:32:21.594][Trace][24701][728f358g][MAIN] SRS/4.0.206(Leo), MIT [2022-03-04 13:32:21.594][Trace][24701][728f358g] authors: https://github.com/ossrs/srs/blob/4.0release/trunk/AUTHORS.txt [2022-03-04 13:32:21.594][Trace][24701][728f358g] contributors: Winlinwinlin@vip.126.com Winlinwinterserver@126.com Winlinchengli.ycl@alibaba-inc.com Wenjiezhaowenjie@tal.com Wenjie740936897@qq.com Wenjiewenjie.zhao@chinacache.com xiangcheng.liuliuxc0116@foxmail.com naijia.liuyoungcow@youngcow.net alcoholyialcoholyi@qq.com bytemanwangchen2011@gmail.com chad.wangchad.wang.cn@gmail.com suhetaosuhetao@gmail.com Johnnyfengjihu@163.com karthikeyankeyanmca@gmail.com StevenLiulq@chinaffmpeg.org zhengflzhengfl_1989@126.com tufang14breadbean1449@gmail.com allspaceallspace@gmail.com niesongsongnie950@gmail.com rudeb0tnimrod@themanxgroup.tw CallMeNPnp.liamg@gmail.com synotesynote@qq.com lovecatlittlefawn@163.com panda1986542638787@qq.com YueHonghuihongf.yue@hotmail.com ThomasDreibholzdreibh@simula.no JuntaoLiujuntliu@gmail.com RocFangfangpeng1986@gmail.com MakarovYaroslavyaroslav.makarov.97@mail.ru MirkoVelicmvelic@inoxx.net HuiZhang(huzhang2)huzhang2@cisco.com OtterWasimpleotter23@gmail.com walkermi172192667@qq.com haofzfuzhuang.hao@vhall.com ME_Kun_Hanhanvskun@hotmail.com ljx0305ljx0305@gmail.com cenxinweicenshanhe@163.com StarBrilliantm13253@hotmail.com xubinxubin@chnvideo.com intliangyintiliang@gmail.com flowerwrongsysuyangkang@gmail.com YLX568414379@qq.com Jguotaojiang@qq.com Harlanhailiang@gvrcraft.com hankunhankun@bravovcloud.com JonathanBarrattjonathan.barratt@gmail.com KeeganHkeeganwharris@gmail.com StevenLiulingjiujianke@gmail.com liuxc0116liuxc0116@gmail.com ChengdongZhanglmajzcd@sina.com lovacatlovecat@china.sina.com qiang.liqiang.li@verycdn.com.cn HungMingWuu9089000@gmail.com Himerxishizhaohua@qq.com XiaLixinxialixin@kanzhun.com XiaLixin68469352@qq.com XiaLixinxlx0625@163.com XiaLixinxialx@yuntongxun.com alphonsetaityh_123@163.com Michael.Mawnpllr@gmail.com lam2003linmin3@yy.com ShiWeishiwei05@kuaishou.com ShiWeishi.weibd@hotmail.com XiaofengWangwasphin@gmail.com XiaoZhihonghondaxiao@tencent.com XiaoZhihongxiaozhihong8@gmail.com XiaoZhihongxiaozhihong@huya.com yanghuiwencainiaodj@qq.com WuPengqiang309554135@qq.com WuPengqiangpengqiang.wpq@alibaba-inc.com l22312935+lam2003@github xfalconx-falcon@github ChenGuanghuajinxue.cgh@alibaba-inc.com ChenGuanghuachengh_math@126.com LiPengmozhan.lp@alibaba-inc.com LiPenglipeng19811218@gmail.com yajun18yajun18@staff.sina.com.cn liulichuanliulichuan@kuaishou.com yapingcatcaoyapingneu@163.com chenchengbinchenchengbin@yy.com ChenHaibo495810242@qq.com ChenHaibonmgchenhaibo@foxmail.com jasongwqjasongwq@gmail.com yinjiaoyuanyinjiaoyuan@163.com PieerePipihuibin@hotmail.com JesseXijesse.jinjin@wo.cn PieerePi40780488+PieerePi@github ghostsfghost_sf@163.com xbpeng12153243357+xbpeng121@github johzzyhellojinqiang@gmail.com stonebluestn@163.com cfw1134058899+cfw11@github Hung-YiChengaod.chen@gmail.com longliyalong12345@126.com matthew183877285055+matthew1838@github riserise.worlds@outlook.com [2022-03-04 13:32:21.594][Trace][24701][728f358g] cwd=/home/srs-server-4.0-b1/trunk, work_dir=./, build: 2021-12-20 20:27:35, configure: --x86-x64, uname: Linux ubuntu 4.4.0-142-generic #168-Ubuntu SMP Wed Jan 16 21:00:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux, osx: 0 [2022-03-04 13:32:21.594][Trace][24701][728f358g] configure detail: --prefix=/usr/local/srs --hls=on --hds=off --dvr=on --ssl=on --https=on --ssl-1-0=off --ssl-local=off --sys-ssl=off --transcode=on --ingest=on --stat=on --http-callback=on --http-server=on --stream-caster=on --http-api=on --utest=off --cherrypy=off --srt=off --rtc=on --simulator=off --cxx11=off --cxx14=off --ffmpeg-fit=on --nasm=on --srtp-nasm=on --clean=on --gperf=off --gmc=off --gmd=off --gmp=off --gcp=off --gprof=off --static=off --shared-st=off --shared-srt=off --shared-ffmpeg=off --log-verbose=off --log-info=off --log-trace=on --gcov=off --debug=off --debug-stats=off --cross-build=off --cc=gcc --cxx=g++ --ar=ar --ld=ld --randlib=randlib [2022-03-04 13:32:21.594][Trace][24701][728f358g] srs checking config... [2022-03-04 13:32:21.595][Trace][24701][728f358g] ips, iface[0] eno1 ipv4 0x11043 192.168.1.110, iface[1] eno1 ipv6 0x11043 fe80::ae1f:6bff:fed6:d12%eno1 [2022-03-04 13:32:21.595][Trace][24701][728f358g] devices, intranet eno1 192.168.1.110, intranet eno1 fe80::ae1f:6bff:fed6:d12%eno1 [2022-03-04 13:32:21.595][Warn][24701][728f358g][22] stats network use index=0, ip=192.168.1.110, ifname=eno1 [2022-03-04 13:32:21.595][Warn][24701][728f358g][22] stats disk not configed, disk iops disabled. [2022-03-04 13:32:21.595][Trace][24701][728f358g] write log to console [2022-03-04 13:32:21.595][Trace][24701][728f358g] features, rch:on, dash:on, hls:on, hds:off, srt:off, hc:on, ha:on, hs:on, hp:on, dvr:on, trans:on, inge:on, stat:on, sc:on [2022-03-04 13:32:21.595][Trace][24701][728f358g] SRS on amd64 x86_64, conf:./conf/origin.cluster.serverB1.conf, limit:1000, writev:1024, encoding:little-endian, HZ:100 [2022-03-04 13:32:21.595][Trace][24701][728f358g] mw sleep:350ms. mr enabled:on, default:0, sleep:350ms [2022-03-04 13:32:21.595][Trace][24701][728f358g] gc:on, pq:30000ms, cscc:[0,16), csa:on, tn:on(may hurts performance), ss:auto(guess by merged write) [2022-03-04 13:32:21.595][Trace][24701][728f358g] system default latency(ms): mw(0-350) + mr(0-350) + play-queue(0-30000) [2022-03-04 13:32:21.595][Warn][24701][728f358g][22] SRS/4.0.206 is not stable [2022-03-04 13:32:21.602][Trace][24701][728f358g] fingerprint=A0:4A:95:FC:E4:F9:4C:CB:A9:3B:21:F3:DA:57:55:89:A9:25:0B:85:29:E4:01:C2:62:01:0C:B5:B8:3D:A6:A4 [2022-03-04 13:32:21.602][Trace][24701][728f358g] CircuitBreaker: enabled=1, high=2x90, critical=1x95, dying=5x99 [2022-03-04 13:32:21.602][Trace][24701][728f358g] http: root mount to ./objs/nginx/html [2022-03-04 13:32:21.602][Trace][24701][728f358g] server main cid=728f358g, pid=24701, ppid=421, asprocess=0 [2022-03-04 13:32:21.602][Trace][24701][728f358g] write pid=24701 to ./objs/origin.cluster.serverB1.pid success! [2022-03-04 13:32:21.602][Trace][24701][728f358g] RTMP listen at tcp://0.0.0.0:19351, fd=6 [2022-03-04 13:32:21.602][Trace][24701][728f358g] HTTP-API listen at tcp://127.0.0.1:9091, fd=7 [2022-03-04 13:32:21.602][Trace][24701][728f358g] signal installed, reload=1, reopen=10, fast_quit=15, grace_quit=3 [2022-03-04 13:32:21.602][Trace][24701][728f358g] http: api mount /console to ./objs/nginx/html/console [2022-03-04 13:32:21.603][Trace][24701][sw45h9v4] Hybrid cpu=0.00%,12MB [2022-03-04 13:32:21.603][Warn][24701][0641x8j3][22] use private address as ip: 192.168.1.110, ifname=eno1 [2022-03-04 13:32:21.603][Trace][24701][0641x8j3] Startup query id=76fa93b89b7c11ec82e2dd698b1bdb28, eip=192.168.1.110, wait=452s [2022-03-04 13:32:21.603][Trace][24701][82817n86] TCP: connection manager run, conns=0 [2022-03-04 13:32:21.604][Trace][24701][95938z28] RTC: connection manager run, conns=0 [2022-03-04 13:32:26.591][Trace][24701][sw45h9v4] Hybrid cpu=0.00%,12MB [2022-03-04 13:32:31.592][Trace][24701][sw45h9v4] Hybrid cpu=0.00%,12MB [2022-03-04 13:32:36.592][Trace][24701][sw45h9v4] Hybrid cpu=0.00%,12MB, cid=1,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0 [2022-03-04 13:32:41.592][Trace][24701][sw45h9v4] Hybrid cpu=0.00%,12MB, cid=1,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0 [2022-03-04 13:32:46.592][Trace][24701][sw45h9v4] Hybrid cpu=0.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0 [2022-03-04 13:32:51.592][Trace][24701][sw45h9v4] Hybrid cpu=0.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0 [2022-03-04 13:32:56.592][Trace][24701][sw45h9v4] Hybrid cpu=0.00%,12MB, cid=1,0, timer=62,0,0, clock=0,49,0,0,0,0,0,0,0 [2022-03-04 13:33:01.592][Trace][24701][sw45h9v4] Hybrid cpu=0.00%,12MB, cid=1,0, timer=62,0,0, clock=0,49,0,0,0,0,0,0,0 [2022-03-04 13:33:05.762][Trace][24701][wq265n92] RTMP client ip=192.168.1.185:52100, fd=8 [2022-03-04 13:33:05.765][Trace][24701][wq265n92] complex handshake success [2022-03-04 13:33:05.765][Trace][24701][wq265n92] connect app, tcUrl=rtmp://192.168.1.110:19351/live, pageUrl=, swfUrl=, schema=rtmp, vhost=192.168.1.110, port=19351, app=live, args=(obj) [2022-03-04 13:33:05.765][Trace][24701][wq265n92] edge-srs ip=192.168.1.185, version=4.0.206, pid=19627, id=0 [2022-03-04 13:33:05.765][Trace][24701][wq265n92] protocol in.buffer=0, in.ack=0, out.ack=0, in.chunk=128, out.chunk=128 [2022-03-04 13:33:05.804][Trace][24701][wq265n92] client identified, type=rtmp-play, vhost=192.168.1.110, app=live, stream=test02, param=, duration=-1ms [2022-03-04 13:33:05.804][Trace][24701][wq265n92] connected stream, tcUrl=rtmp://192.168.1.110:19351/live, pageUrl=, swfUrl=, schema=rtmp, vhost=defaultVhost, port=19351, app=live, stream=test02, param=, args=(obj) [2022-03-04 13:33:05.804][Trace][24701][wq265n92] new source, stream_url=/live/test02 [2022-03-04 13:33:05.804][Trace][24701][wq265n92] source url=/live/test02, ip=192.168.1.185, cache=1, is_edge=0, source_id=/ [2022-03-04 13:33:05.805][Trace][24701][wq265n92] TCP: before dispose resource(RtmpConn)(0x1d21d30), conns=1, zombies=0, ign=0, inz=0, ind=0 [2022-03-04 13:33:05.805][Error][24701][wq265n92][111] serve error code=1018 : service cycle : rtmp: stream service : discover coworkers, url=http://192.168.1.110:9093/api/v1/clusters?vhost=__defaultVhost__&ip=192.168.1.110&app=live&stream=test02&coworker=192.168.1.110:9093 : http: post http://192.168.1.110:9093/api/v1/clusters?vhost=__defaultVhost__&ip=192.168.1.110&app=live&stream=test02&coworker=192.168.1.110:9093, status=0, res= : http: client post : http: connect server : http: tcp connect http 192.168.1.110:9093 to=30000ms, rto=30000ms : tcp: connect 192.168.1.110:9093 to=30000ms : connect to 192.168.1.110:9093 thread [24701][wq265n92]: do_cycle() [src/app/srs_app_rtmp_conn.cpp:217][errno=111] thread [24701][wq265n92]: service_cycle() [src/app/srs_app_rtmp_conn.cpp:414][errno=111] thread [24701][wq265n92]: playing() [src/app/srs_app_rtmp_conn.cpp:629][errno=111] thread [24701][wq265n92]: discover_co_workers() [src/app/srs_app_http_hooks.cpp:439][errno=111] thread [24701][wq265n92]: do_post() [src/app/srs_app_http_hooks.cpp:505][errno=111] thread [24701][wq265n92]: post() [src/protocol/srs_service_http_client.cpp:322][errno=111] thread [24701][wq265n92]: connect() [src/protocol/srs_service_http_client.cpp:447][errno=111] thread [24701][wq265n92]: connect() [src/protocol/srs_service_st.cpp:642][errno=111] thread [24701][wq265n92]: srs_tcp_connect() [src/protocol/srs_service_st.cpp:193][errno=111](Connection refused) [2022-03-04 13:33:05.805][Trace][24701][82817n86] TCP: clear zombies=1 resources, conns=1, removing=0, unsubs=0 [2022-03-04 13:33:05.805][Trace][24701][wq265n92] TCP: disposing #0 resource(RtmpConn)(0x1d21d30), conns=1, disposing=1, zombies=0 [2022-03-04 13:33:06.592][Trace][24701][sw45h9v4] Hybrid cpu=0.00%,12MB, cid=1,0, timer=62,0,0, clock=0,49,0,0,0,0,0,0,0 [2022-03-04 13:33:11.592][Trace][24701][sw45h9v4] Hybrid cpu=0.00%,12MB, cid=2,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, free=1, objs=(pkt:0,raw:0,fua:0,msg:1,oth:0,buf:0) [2022-03-04 13:33:16.593][Trace][24701][sw45h9v4] Hybrid cpu=0.00%,12MB, cid=2,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, free=1, objs=(pkt:0,raw:0,fua:0,msg:1,oth:0,buf:0) [2022-03-04 13:33:21.593][Trace][24701][sw45h9v4] Hybrid cpu=0.00%,12MB, cid=2,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, free=1, objs=(pkt:0,raw:0,fua:0,msg:1,oth:0,buf:0) [2022-03-04 13:33:26.593][Trace][24701][sw45h9v4] Hybrid cpu=0.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0 [2022-03-04 13:33:31.593][Trace][24701][sw45h9v4] Hybrid cpu=1.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0 [2022-03-04 13:33:36.593][Trace][24701][sw45h9v4] Hybrid cpu=0.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0 [2022-03-04 13:33:41.593][Trace][24701][sw45h9v4] Hybrid cpu=0.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0 ^C[2022-03-04 13:33:45.574][Trace][24701][728f358g] sig=2, user terminate program, fast quit [2022-03-04 13:33:45.602][Trace][24701][728f358g] cleanup for quit signal fast=1, grace=0 [2022-03-04 13:33:45.602][Warn][24701][728f358g][11] main cycle terminated, system quit normally. [2022-03-04 13:33:45.702][Trace][24701][728f358g] srs disposed [2022-03-04 13:33:45.702][Trace][24701][728f358g] srs terminated


serverC1 log:

[2022-03-04 13:32:22.364][Trace][24702][51649u5l] XCORE-SRS/4.0.206(Leo) [2022-03-04 13:32:22.364][Trace][24702][51649u5l] config parse complete [2022-03-04 13:32:22.364][Trace][24702][51649u5l] write log to console [2022-03-04 13:32:22.364][Trace][24702][51649u5l][MAIN] SRS/4.0.206(Leo), MIT [2022-03-04 13:32:22.364][Trace][24702][51649u5l] authors: https://github.com/ossrs/srs/blob/4.0release/trunk/AUTHORS.txt [2022-03-04 13:32:22.364][Trace][24702][51649u5l] contributors: Winlinwinlin@vip.126.com Winlinwinterserver@126.com Winlinchengli.ycl@alibaba-inc.com Wenjiezhaowenjie@tal.com Wenjie740936897@qq.com Wenjiewenjie.zhao@chinacache.com xiangcheng.liuliuxc0116@foxmail.com naijia.liuyoungcow@youngcow.net alcoholyialcoholyi@qq.com bytemanwangchen2011@gmail.com chad.wangchad.wang.cn@gmail.com suhetaosuhetao@gmail.com Johnnyfengjihu@163.com karthikeyankeyanmca@gmail.com StevenLiulq@chinaffmpeg.org zhengflzhengfl_1989@126.com tufang14breadbean1449@gmail.com allspaceallspace@gmail.com niesongsongnie950@gmail.com rudeb0tnimrod@themanxgroup.tw CallMeNPnp.liamg@gmail.com synotesynote@qq.com lovecatlittlefawn@163.com panda1986542638787@qq.com YueHonghuihongf.yue@hotmail.com ThomasDreibholzdreibh@simula.no JuntaoLiujuntliu@gmail.com RocFangfangpeng1986@gmail.com MakarovYaroslavyaroslav.makarov.97@mail.ru MirkoVelicmvelic@inoxx.net HuiZhang(huzhang2)huzhang2@cisco.com OtterWasimpleotter23@gmail.com walkermi172192667@qq.com haofzfuzhuang.hao@vhall.com ME_Kun_Hanhanvskun@hotmail.com ljx0305ljx0305@gmail.com cenxinweicenshanhe@163.com StarBrilliantm13253@hotmail.com xubinxubin@chnvideo.com intliangyintiliang@gmail.com flowerwrongsysuyangkang@gmail.com YLX568414379@qq.com Jguotaojiang@qq.com Harlanhailiang@gvrcraft.com hankunhankun@bravovcloud.com JonathanBarrattjonathan.barratt@gmail.com KeeganHkeeganwharris@gmail.com StevenLiulingjiujianke@gmail.com liuxc0116liuxc0116@gmail.com ChengdongZhanglmajzcd@sina.com lovacatlovecat@china.sina.com qiang.liqiang.li@verycdn.com.cn HungMingWuu9089000@gmail.com Himerxishizhaohua@qq.com XiaLixinxialixin@kanzhun.com XiaLixin68469352@qq.com XiaLixinxlx0625@163.com XiaLixinxialx@yuntongxun.com alphonsetaityh_123@163.com Michael.Mawnpllr@gmail.com lam2003linmin3@yy.com ShiWeishiwei05@kuaishou.com ShiWeishi.weibd@hotmail.com XiaofengWangwasphin@gmail.com XiaoZhihonghondaxiao@tencent.com XiaoZhihongxiaozhihong8@gmail.com XiaoZhihongxiaozhihong@huya.com yanghuiwencainiaodj@qq.com WuPengqiang309554135@qq.com WuPengqiangpengqiang.wpq@alibaba-inc.com l22312935+lam2003@github xfalconx-falcon@github ChenGuanghuajinxue.cgh@alibaba-inc.com ChenGuanghuachengh_math@126.com LiPengmozhan.lp@alibaba-inc.com LiPenglipeng19811218@gmail.com yajun18yajun18@staff.sina.com.cn liulichuanliulichuan@kuaishou.com yapingcatcaoyapingneu@163.com chenchengbinchenchengbin@yy.com ChenHaibo495810242@qq.com ChenHaibonmgchenhaibo@foxmail.com jasongwqjasongwq@gmail.com yinjiaoyuanyinjiaoyuan@163.com PieerePipihuibin@hotmail.com JesseXijesse.jinjin@wo.cn PieerePi40780488+PieerePi@github ghostsfghost_sf@163.com xbpeng12153243357+xbpeng121@github johzzyhellojinqiang@gmail.com stonebluestn@163.com cfw1134058899+cfw11@github Hung-YiChengaod.chen@gmail.com longliyalong12345@126.com matthew183877285055+matthew1838@github riserise.worlds@outlook.com [2022-03-04 13:32:22.364][Trace][24702][51649u5l] cwd=/home/srs-server-4.0-b1/trunk, work_dir=./, build: 2021-12-20 20:27:35, configure: --x86-x64, uname: Linux ubuntu 4.4.0-142-generic #168-Ubuntu SMP Wed Jan 16 21:00:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux, osx: 0 [2022-03-04 13:32:22.364][Trace][24702][51649u5l] configure detail: --prefix=/usr/local/srs --hls=on --hds=off --dvr=on --ssl=on --https=on --ssl-1-0=off --ssl-local=off --sys-ssl=off --transcode=on --ingest=on --stat=on --http-callback=on --http-server=on --stream-caster=on --http-api=on --utest=off --cherrypy=off --srt=off --rtc=on --simulator=off --cxx11=off --cxx14=off --ffmpeg-fit=on --nasm=on --srtp-nasm=on --clean=on --gperf=off --gmc=off --gmd=off --gmp=off --gcp=off --gprof=off --static=off --shared-st=off --shared-srt=off --shared-ffmpeg=off --log-verbose=off --log-info=off --log-trace=on --gcov=off --debug=off --debug-stats=off --cross-build=off --cc=gcc --cxx=g++ --ar=ar --ld=ld --randlib=randlib [2022-03-04 13:32:22.364][Trace][24702][51649u5l] srs checking config... [2022-03-04 13:32:22.364][Trace][24702][51649u5l] ips, iface[0] eno1 ipv4 0x11043 192.168.1.110, iface[1] eno1 ipv6 0x11043 fe80::ae1f:6bff:fed6:d12%eno1 [2022-03-04 13:32:22.364][Trace][24702][51649u5l] devices, intranet eno1 192.168.1.110, intranet eno1 fe80::ae1f:6bff:fed6:d12%eno1 [2022-03-04 13:32:22.364][Warn][24702][51649u5l][22] stats network use index=0, ip=192.168.1.110, ifname=eno1 [2022-03-04 13:32:22.365][Warn][24702][51649u5l][22] stats disk not configed, disk iops disabled. [2022-03-04 13:32:22.365][Trace][24702][51649u5l] write log to console [2022-03-04 13:32:22.365][Trace][24702][51649u5l] features, rch:on, dash:on, hls:on, hds:off, srt:off, hc:on, ha:on, hs:on, hp:on, dvr:on, trans:on, inge:on, stat:on, sc:on [2022-03-04 13:32:22.365][Trace][24702][51649u5l] SRS on amd64 x86_64, conf:./conf/origin.cluster.serverC1.conf, limit:1000, writev:1024, encoding:little-endian, HZ:100 [2022-03-04 13:32:22.365][Trace][24702][51649u5l] mw sleep:350ms. mr enabled:on, default:0, sleep:350ms [2022-03-04 13:32:22.365][Trace][24702][51649u5l] gc:on, pq:30000ms, cscc:[0,16), csa:on, tn:on(may hurts performance), ss:auto(guess by merged write) [2022-03-04 13:32:22.365][Trace][24702][51649u5l] system default latency(ms): mw(0-350) + mr(0-350) + play-queue(0-30000) [2022-03-04 13:32:22.365][Warn][24702][51649u5l][22] SRS/4.0.206 is not stable [2022-03-04 13:32:22.371][Trace][24702][51649u5l] fingerprint=D5:BC:22:C9:9D:EA:15:E6:46:2C:EF:58:41:E7:CE:94:02:ED:4D:1F:E2:84:D1:F2:64:DF:DB:73:96:C1:8D:D9 [2022-03-04 13:32:22.372][Trace][24702][51649u5l] CircuitBreaker: enabled=1, high=2x90, critical=1x95, dying=5x99 [2022-03-04 13:32:22.372][Trace][24702][51649u5l] http: root mount to ./objs/nginx/html [2022-03-04 13:32:22.372][Trace][24702][51649u5l] server main cid=51649u5l, pid=24702, ppid=475, asprocess=0 [2022-03-04 13:32:22.372][Trace][24702][51649u5l] write pid=24702 to ./objs/origin.cluster.serverC1.pid success! [2022-03-04 13:32:22.372][Trace][24702][51649u5l] RTMP listen at tcp://0.0.0.0:19352, fd=6 [2022-03-04 13:32:22.372][Trace][24702][51649u5l] HTTP-API listen at tcp://127.0.0.1:9092, fd=7 [2022-03-04 13:32:22.372][Trace][24702][51649u5l] signal installed, reload=1, reopen=10, fast_quit=15, grace_quit=3 [2022-03-04 13:32:22.372][Trace][24702][51649u5l] http: api mount /console to ./objs/nginx/html/console [2022-03-04 13:32:22.372][Trace][24702][rqo38s45] Hybrid cpu=0.00%,12MB [2022-03-04 13:32:22.372][Warn][24702][gs23u2z8][22] use private address as ip: 192.168.1.110, ifname=eno1 [2022-03-04 13:32:22.372][Trace][24702][gs23u2z8] Startup query id=777003c89b7c11ec847ef7786d7a23c8, eip=192.168.1.110, wait=325s [2022-03-04 13:32:22.373][Trace][24702][qs825100] TCP: connection manager run, conns=0 [2022-03-04 13:32:22.373][Trace][24702][q1803092] RTC: connection manager run, conns=0 [2022-03-04 13:32:27.361][Trace][24702][rqo38s45] Hybrid cpu=0.00%,12MB [2022-03-04 13:32:32.361][Trace][24702][rqo38s45] Hybrid cpu=1.00%,12MB [2022-03-04 13:32:37.361][Trace][24702][rqo38s45] Hybrid cpu=0.00%,12MB, cid=1,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0 [2022-03-04 13:32:38.628][Trace][24702][o4983o21] RTMP client ip=192.168.1.210:64634, fd=8 [2022-03-04 13:32:38.643][Trace][24702][o4983o21] complex handshake success [2022-03-04 13:32:38.644][Trace][24702][o4983o21] connect app, tcUrl=rtmp://192.168.1.110:19352/live, pageUrl=, swfUrl=, schema=rtmp, vhost=192.168.1.110, port=19352, app=live, args=null [2022-03-04 13:32:38.644][Trace][24702][o4983o21] protocol in.buffer=0, in.ack=0, out.ack=0, in.chunk=128, out.chunk=128 [2022-03-04 13:32:38.723][Trace][24702][o4983o21] client identified, type=fmle-publish, vhost=192.168.1.110, app=live, stream=test02, param=, duration=0ms [2022-03-04 13:32:38.723][Trace][24702][o4983o21] connected stream, tcUrl=rtmp://192.168.1.110:19352/live, pageUrl=, swfUrl=, schema=rtmp, vhost=defaultVhost, port=19352, app=live, stream=test02, param=, args=null [2022-03-04 13:32:38.723][Trace][24702][o4983o21] new source, stream_url=/live/test02 [2022-03-04 13:32:38.723][Trace][24702][o4983o21] source url=/live/test02, ip=192.168.1.210, cache=1, is_edge=0, source_id=/ [2022-03-04 13:32:38.803][Trace][24702][o4983o21] ignore disabled exec for vhost=defaultVhost [2022-03-04 13:32:38.803][Trace][24702][o4983o21] start publish mr=0/350, p1stpt=20000, pnt=5000, tcp_nodelay=0 [2022-03-04 13:32:38.882][Trace][24702][o4983o21] got metadata, width=1280, height=720, vcodec=7, acodec=8 [2022-03-04 13:32:38.883][Trace][24702][o4983o21] 40B video sh, codec(7, profile=Baseline, level=3.1, 1280x720, 0kbps, 0.0fps, 0.0s) [2022-03-04 13:32:42.362][Trace][24702][rqo38s45] Hybrid cpu=0.00%,13MB, cid=1,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0 [2022-03-04 13:32:47.362][Trace][24702][rqo38s45] Hybrid cpu=1.00%,13MB, cid=1,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0 [2022-03-04 13:32:52.362][Trace][24702][rqo38s45] Hybrid cpu=1.00%,13MB, cid=1,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:105,oth:0,buf:0) [2022-03-04 13:32:57.362][Trace][24702][rqo38s45] Hybrid cpu=0.00%,13MB, cid=1,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:105,oth:0,buf:0) [2022-03-04 13:33:02.362][Trace][24702][rqo38s45] Hybrid cpu=0.00%,13MB, cid=1,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:105,oth:0,buf:0) [2022-03-04 13:33:03.803][Trace][24702][o4983o21] <- CPB time=20003728, okbps=1,0,0, ikbps=882,0,0, mr=0/350, p1stpt=20000, pnt=5000 [2022-03-04 13:33:07.362][Trace][24702][rqo38s45] Hybrid cpu=0.00%,13MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:100,oth:0,buf:0) [2022-03-04 13:33:08.806][Trace][24702][04z40272] RTMP client ip=192.168.1.185:35852, fd=9 [2022-03-04 13:33:08.809][Trace][24702][04z40272] complex handshake success [2022-03-04 13:33:08.809][Trace][24702][04z40272] connect app, tcUrl=rtmp://192.168.1.110:19352/live, pageUrl=, swfUrl=, schema=rtmp, vhost=192.168.1.110, port=19352, app=live, args=(obj) [2022-03-04 13:33:08.809][Trace][24702][04z40272] edge-srs ip=192.168.1.185, version=4.0.206, pid=19627, id=0 [2022-03-04 13:33:08.809][Trace][24702][04z40272] protocol in.buffer=0, in.ack=0, out.ack=0, in.chunk=128, out.chunk=128 [2022-03-04 13:33:08.848][Trace][24702][04z40272] client identified, type=rtmp-play, vhost=192.168.1.110, app=live, stream=test02, param=, duration=-1ms [2022-03-04 13:33:08.848][Trace][24702][04z40272] connected stream, tcUrl=rtmp://192.168.1.110:19352/live, pageUrl=, swfUrl=, schema=rtmp, vhost=defaultVhost, port=19352, app=live, stream=test02, param=, args=(obj) [2022-03-04 13:33:08.848][Trace][24702][04z40272] source url=/live/test02, ip=192.168.1.185, cache=1, is_edge=0, source_id=o4983o21/o4983o21 [2022-03-04 13:33:08.848][Trace][24702][04z40272] dispatch cached gop success. count=25, duration=490 [2022-03-04 13:33:08.848][Trace][24702][04z40272] create consumer, active=1, queue_size=0.00, jitter=30000000 [2022-03-04 13:33:08.848][Trace][24702][04z40272] set fd=9, SO_SNDBUF=87040=>175000, buffer=350ms [2022-03-04 13:33:08.848][Trace][24702][04z40272] start play smi=0ms, mw_sleep=350, mw_msgs=8, realtime=0, tcp_nodelay=0 [2022-03-04 13:33:12.362][Trace][24702][rqo38s45] Hybrid cpu=2.00%,13MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:100,oth:0,buf:0) [2022-03-04 13:33:13.804][Trace][24702][o4983o21] <- CPB time=30014718, okbps=0,1,0, ikbps=859,878,0, mr=0/350, p1stpt=20000, pnt=5000 [2022-03-04 13:33:14.378][Trace][24702][04z40272] TCP: before dispose resource(RtmpConn)(0x168da80), conns=2, zombies=0, ign=0, inz=0, ind=0 [2022-03-04 13:33:14.378][Warn][24702][04z40272][32] client disconnect peer. ret=1009 [2022-03-04 13:33:14.378][Trace][24702][qs825100] TCP: clear zombies=1 resources, conns=2, removing=0, unsubs=0 [2022-03-04 13:33:14.378][Trace][24702][04z40272] TCP: disposing #0 resource(RtmpConn)(0x168da80), conns=2, disposing=1, zombies=0 [2022-03-04 13:33:17.363][Trace][24702][rqo38s45] Hybrid cpu=1.00%,13MB, cid=4,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, free=1, objs=(pkt:0,raw:0,fua:0,msg:131,oth:0,buf:0) [2022-03-04 13:33:22.363][Trace][24702][rqo38s45] Hybrid cpu=1.00%,13MB, cid=4,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, free=1, objs=(pkt:0,raw:0,fua:0,msg:131,oth:0,buf:0) [2022-03-04 13:33:27.363][Trace][24702][rqo38s45] Hybrid cpu=0.00%,13MB, cid=4,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, free=1, objs=(pkt:0,raw:0,fua:0,msg:131,oth:0,buf:0) [2022-03-04 13:33:28.804][Trace][24702][o4983o21] <- CPB time=45001819, okbps=0,1,0, ikbps=845,878,0, mr=0/350, p1stpt=20000, pnt=5000 [2022-03-04 13:33:32.363][Trace][24702][rqo38s45] Hybrid cpu=0.00%,13MB, cid=1,0, timer=63,0,0, clock=0,49,0,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:99,oth:0,buf:0) [2022-03-04 13:33:37.363][Trace][24702][rqo38s45] Hybrid cpu=1.00%,13MB, cid=1,0, timer=63,0,0, clock=0,49,0,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:99,oth:0,buf:0) [2022-03-04 13:33:38.804][Trace][24702][o4983o21] <- CPB time=55009313, okbps=0,1,0, ikbps=837,878,0, mr=0/350, p1stpt=20000, pnt=5000 [2022-03-04 13:33:42.363][Trace][24702][rqo38s45] Hybrid cpu=1.00%,13MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:99,oth:0,buf:0) ^C[2022-03-04 13:33:43.640][Trace][24702][51649u5l] sig=2, user terminate program, fast quit [2022-03-04 13:33:44.371][Trace][24702][51649u5l] cleanup for quit signal fast=1, grace=0 [2022-03-04 13:33:44.371][Warn][24702][51649u5l][11] main cycle terminated, system quit normally. [2022-03-04 13:33:44.471][Trace][24702][51649u5l] srs disposed [2022-03-04 13:33:44.471][Trace][24702][51649u5l] srs terminated


serverD1 log:

[2022-03-04 13:32:23.042][Trace][24704][513k770g] XCORE-SRS/4.0.206(Leo) [2022-03-04 13:32:23.043][Trace][24704][513k770g] config parse complete [2022-03-04 13:32:23.043][Trace][24704][513k770g] write log to console [2022-03-04 13:32:23.043][Trace][24704][513k770g][MAIN] SRS/4.0.206(Leo), MIT [2022-03-04 13:32:23.043][Trace][24704][513k770g] authors: https://github.com/ossrs/srs/blob/4.0release/trunk/AUTHORS.txt [2022-03-04 13:32:23.043][Trace][24704][513k770g] contributors: Winlinwinlin@vip.126.com Winlinwinterserver@126.com Winlinchengli.ycl@alibaba-inc.com Wenjiezhaowenjie@tal.com Wenjie740936897@qq.com Wenjiewenjie.zhao@chinacache.com xiangcheng.liuliuxc0116@foxmail.com naijia.liuyoungcow@youngcow.net alcoholyialcoholyi@qq.com bytemanwangchen2011@gmail.com chad.wangchad.wang.cn@gmail.com suhetaosuhetao@gmail.com Johnnyfengjihu@163.com karthikeyankeyanmca@gmail.com StevenLiulq@chinaffmpeg.org zhengflzhengfl_1989@126.com tufang14breadbean1449@gmail.com allspaceallspace@gmail.com niesongsongnie950@gmail.com rudeb0tnimrod@themanxgroup.tw CallMeNPnp.liamg@gmail.com synotesynote@qq.com lovecatlittlefawn@163.com panda1986542638787@qq.com YueHonghuihongf.yue@hotmail.com ThomasDreibholzdreibh@simula.no JuntaoLiujuntliu@gmail.com RocFangfangpeng1986@gmail.com MakarovYaroslavyaroslav.makarov.97@mail.ru MirkoVelicmvelic@inoxx.net HuiZhang(huzhang2)huzhang2@cisco.com OtterWasimpleotter23@gmail.com walkermi172192667@qq.com haofzfuzhuang.hao@vhall.com ME_Kun_Hanhanvskun@hotmail.com ljx0305ljx0305@gmail.com cenxinweicenshanhe@163.com StarBrilliantm13253@hotmail.com xubinxubin@chnvideo.com intliangyintiliang@gmail.com flowerwrongsysuyangkang@gmail.com YLX568414379@qq.com Jguotaojiang@qq.com Harlanhailiang@gvrcraft.com hankunhankun@bravovcloud.com JonathanBarrattjonathan.barratt@gmail.com KeeganHkeeganwharris@gmail.com StevenLiulingjiujianke@gmail.com liuxc0116liuxc0116@gmail.com ChengdongZhanglmajzcd@sina.com lovacatlovecat@china.sina.com qiang.liqiang.li@verycdn.com.cn HungMingWuu9089000@gmail.com Himerxishizhaohua@qq.com XiaLixinxialixin@kanzhun.com XiaLixin68469352@qq.com XiaLixinxlx0625@163.com XiaLixinxialx@yuntongxun.com alphonsetaityh_123@163.com Michael.Mawnpllr@gmail.com lam2003linmin3@yy.com ShiWeishiwei05@kuaishou.com ShiWeishi.weibd@hotmail.com XiaofengWangwasphin@gmail.com XiaoZhihonghondaxiao@tencent.com XiaoZhihongxiaozhihong8@gmail.com XiaoZhihongxiaozhihong@huya.com yanghuiwencainiaodj@qq.com WuPengqiang309554135@qq.com WuPengqiangpengqiang.wpq@alibaba-inc.com l22312935+lam2003@github xfalconx-falcon@github ChenGuanghuajinxue.cgh@alibaba-inc.com ChenGuanghuachengh_math@126.com LiPengmozhan.lp@alibaba-inc.com LiPenglipeng19811218@gmail.com yajun18yajun18@staff.sina.com.cn liulichuanliulichuan@kuaishou.com yapingcatcaoyapingneu@163.com chenchengbinchenchengbin@yy.com ChenHaibo495810242@qq.com ChenHaibonmgchenhaibo@foxmail.com jasongwqjasongwq@gmail.com yinjiaoyuanyinjiaoyuan@163.com PieerePipihuibin@hotmail.com JesseXijesse.jinjin@wo.cn PieerePi40780488+PieerePi@github ghostsfghost_sf@163.com xbpeng12153243357+xbpeng121@github johzzyhellojinqiang@gmail.com stonebluestn@163.com cfw1134058899+cfw11@github Hung-YiChengaod.chen@gmail.com longliyalong12345@126.com matthew183877285055+matthew1838@github riserise.worlds@outlook.com [2022-03-04 13:32:23.043][Trace][24704][513k770g] cwd=/home/srs-server-4.0-b1/trunk, work_dir=./, build: 2021-12-20 20:27:35, configure: --x86-x64, uname: Linux ubuntu 4.4.0-142-generic #168-Ubuntu SMP Wed Jan 16 21:00:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux, osx: 0 [2022-03-04 13:32:23.043][Trace][24704][513k770g] configure detail: --prefix=/usr/local/srs --hls=on --hds=off --dvr=on --ssl=on --https=on --ssl-1-0=off --ssl-local=off --sys-ssl=off --transcode=on --ingest=on --stat=on --http-callback=on --http-server=on --stream-caster=on --http-api=on --utest=off --cherrypy=off --srt=off --rtc=on --simulator=off --cxx11=off --cxx14=off --ffmpeg-fit=on --nasm=on --srtp-nasm=on --clean=on --gperf=off --gmc=off --gmd=off --gmp=off --gcp=off --gprof=off --static=off --shared-st=off --shared-srt=off --shared-ffmpeg=off --log-verbose=off --log-info=off --log-trace=on --gcov=off --debug=off --debug-stats=off --cross-build=off --cc=gcc --cxx=g++ --ar=ar --ld=ld --randlib=randlib [2022-03-04 13:32:23.043][Trace][24704][513k770g] srs checking config... [2022-03-04 13:32:23.043][Trace][24704][513k770g] ips, iface[0] eno1 ipv4 0x11043 192.168.1.110, iface[1] eno1 ipv6 0x11043 fe80::ae1f:6bff:fed6:d12%eno1 [2022-03-04 13:32:23.043][Trace][24704][513k770g] devices, intranet eno1 192.168.1.110, intranet eno1 fe80::ae1f:6bff:fed6:d12%eno1 [2022-03-04 13:32:23.043][Warn][24704][513k770g][22] stats network use index=0, ip=192.168.1.110, ifname=eno1 [2022-03-04 13:32:23.043][Warn][24704][513k770g][22] stats disk not configed, disk iops disabled. [2022-03-04 13:32:23.043][Trace][24704][513k770g] write log to console [2022-03-04 13:32:23.043][Trace][24704][513k770g] features, rch:on, dash:on, hls:on, hds:off, srt:off, hc:on, ha:on, hs:on, hp:on, dvr:on, trans:on, inge:on, stat:on, sc:on [2022-03-04 13:32:23.043][Trace][24704][513k770g] SRS on amd64 x86_64, conf:./conf/origin.cluster.serverD1.conf, limit:1000, writev:1024, encoding:little-endian, HZ:100 [2022-03-04 13:32:23.043][Trace][24704][513k770g] mw sleep:350ms. mr enabled:on, default:0, sleep:350ms [2022-03-04 13:32:23.043][Trace][24704][513k770g] gc:on, pq:30000ms, cscc:[0,16), csa:on, tn:on(may hurts performance), ss:auto(guess by merged write) [2022-03-04 13:32:23.043][Trace][24704][513k770g] system default latency(ms): mw(0-350) + mr(0-350) + play-queue(0-30000) [2022-03-04 13:32:23.043][Warn][24704][513k770g][22] SRS/4.0.206 is not stable [2022-03-04 13:32:23.050][Trace][24704][513k770g] fingerprint=85:75:B4:48:2D:1C:0D:B9:E9:D2:8B:7D:5E:62:9E:9A:9F:1E:4E:79:6B:5F:17:71:3F:6E:CB:04:72:AA:48:1F [2022-03-04 13:32:23.050][Trace][24704][513k770g] CircuitBreaker: enabled=1, high=2x90, critical=1x95, dying=5x99 [2022-03-04 13:32:23.050][Trace][24704][513k770g] http: root mount to ./objs/nginx/html [2022-03-04 13:32:23.050][Trace][24704][513k770g] server main cid=513k770g, pid=24704, ppid=527, asprocess=0 [2022-03-04 13:32:23.051][Trace][24704][513k770g] write pid=24704 to ./objs/origin.cluster.serverD1.pid success! [2022-03-04 13:32:23.051][Trace][24704][513k770g] RTMP listen at tcp://0.0.0.0:19353, fd=6 [2022-03-04 13:32:23.051][Trace][24704][513k770g] HTTP-API listen at tcp://127.0.0.1:9093, fd=7 [2022-03-04 13:32:23.051][Trace][24704][513k770g] signal installed, reload=1, reopen=10, fast_quit=15, grace_quit=3 [2022-03-04 13:32:23.051][Trace][24704][513k770g] http: api mount /console to ./objs/nginx/html/console [2022-03-04 13:32:23.051][Trace][24704][8011z123] Hybrid cpu=0.00%,12MB [2022-03-04 13:32:23.051][Warn][24704][4747t7t3][22] use private address as ip: 192.168.1.110, ifname=eno1 [2022-03-04 13:32:23.051][Trace][24704][4747t7t3] Startup query id=77d79b469b7c11eca2b155a34adc145c, eip=192.168.1.110, wait=383s [2022-03-04 13:32:23.051][Trace][24704][p2368853] TCP: connection manager run, conns=0 [2022-03-04 13:32:23.052][Trace][24704][42c822l7] RTC: connection manager run, conns=0 [2022-03-04 13:32:28.040][Trace][24704][8011z123] Hybrid cpu=0.00%,12MB [2022-03-04 13:32:33.040][Trace][24704][8011z123] Hybrid cpu=0.00%,12MB [2022-03-04 13:32:38.040][Trace][24704][8011z123] Hybrid cpu=0.00%,12MB, cid=1,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0 [2022-03-04 13:32:43.040][Trace][24704][8011z123] Hybrid cpu=0.00%,12MB, cid=1,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0 [2022-03-04 13:32:48.040][Trace][24704][8011z123] Hybrid cpu=0.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0 [2022-03-04 13:32:53.040][Trace][24704][8011z123] Hybrid cpu=0.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0 [2022-03-04 13:32:58.041][Trace][24704][8011z123] Hybrid cpu=1.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0 [2022-03-04 13:33:03.041][Trace][24704][8011z123] Hybrid cpu=0.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0 [2022-03-04 13:33:08.041][Trace][24704][8011z123] Hybrid cpu=1.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0 [2022-03-04 13:33:13.041][Trace][24704][8011z123] Hybrid cpu=0.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,0,0,0,0,0,0,0 [2022-03-04 13:33:18.041][Trace][24704][8011z123] Hybrid cpu=0.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,0,0,0,0,0,0,0 [2022-03-04 13:33:23.041][Trace][24704][8011z123] Hybrid cpu=1.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,0,0,0,0,0,0,0 [2022-03-04 13:33:28.041][Trace][24704][8011z123] Hybrid cpu=0.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0 ^[[A[2022-03-04 13:33:33.042][Trace][24704][8011z123] Hybrid cpu=0.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0 [2022-03-04 13:33:38.042][Trace][24704][8011z123] Hybrid cpu=0.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0 ^C[2022-03-04 13:33:41.646][Trace][24704][513k770g] sig=2, user terminate program, fast quit [2022-03-04 13:33:42.050][Trace][24704][513k770g] cleanup for quit signal fast=1, grace=0 [2022-03-04 13:33:42.050][Warn][24704][513k770g][11] main cycle terminated, system quit normally. [2022-03-04 13:33:42.150][Trace][24704][513k770g] srs disposed [2022-03-04 13:33:42.150][Trace][24704][513k770g] srs terminated



`TRANS_BY_GPT3`
wr-ning commented 2 years ago

(There is a character length limit, continuing from the previous text)

edge1 log:

[2022-03-04 13:32:24.495][Trace][19627][cli33je7] XCORE-SRS/4.0.206(Leo)
[2022-03-04 13:32:24.495][Trace][19627][cli33je7] config parse complete
[2022-03-04 13:32:24.495][Trace][19627][cli33je7] write log to console
[2022-03-04 13:32:24.495][Trace][19627][cli33je7][MAIN] SRS/4.0.206(Leo), MIT
[2022-03-04 13:32:24.495][Trace][19627][cli33je7] authors: https://github.com/ossrs/srs/blob/4.0release/trunk/AUTHORS.txt
[2022-03-04 13:32:24.495][Trace][19627][cli33je7] contributors: Winlin<winlin@vip.126.com> Winlin<winterserver@126.com> Winlin<chengli.ycl@alibaba-inc.com> Wenjie<zhaowenjie@tal.com> Wenjie<740936897@qq.com> Wenjie<wenjie.zhao@chinacache.com> xiangcheng.liu<liuxc0116@foxmail.com> naijia.liu<youngcow@youngcow.net> alcoholyi<alcoholyi@qq.com> byteman<wangchen2011@gmail.com> chad.wang<chad.wang.cn@gmail.com> suhetao<suhetao@gmail.com> Johnny<fengjihu@163.com> karthikeyan<keyanmca@gmail.com> StevenLiu<lq@chinaffmpeg.org> zhengfl<zhengfl_1989@126.com> tufang14<breadbean1449@gmail.com> allspace<allspace@gmail.com> niesongsong<nie950@gmail.com> rudeb0t<nimrod@themanxgroup.tw> CallMeNP<np.liamg@gmail.com> synote<synote@qq.com> lovecat<littlefawn@163.com> panda1986<542638787@qq.com> YueHonghui<hongf.yue@hotmail.com> ThomasDreibholz<dreibh@simula.no> JuntaoLiu<juntliu@gmail.com> RocFang<fangpeng1986@gmail.com> MakarovYaroslav<yaroslav.makarov.97@mail.ru> MirkoVelic<mvelic@inoxx.net> HuiZhang(huzhang2)<huzhang2@cisco.com> OtterWa<simpleotter23@gmail.com> walkermi<172192667@qq.com> haofz<fuzhuang.hao@vhall.com> ME_Kun_Han<hanvskun@hotmail.com> ljx0305<ljx0305@gmail.com> cenxinwei<censhanhe@163.com> StarBrilliant<m13253@hotmail.com> xubin<xubin@chnvideo.com> intliang<yintiliang@gmail.com> flowerwrong<sysuyangkang@gmail.com> YLX<568414379@qq.com> J<guotaojiang@qq.com> Harlan<hailiang@gvrcraft.com> hankun<hankun@bravovcloud.com> JonathanBarratt<jonathan.barratt@gmail.com> KeeganH<keeganwharris@gmail.com> StevenLiu<lingjiujianke@gmail.com> liuxc0116<liuxc0116@gmail.com> ChengdongZhang<lmajzcd@sina.com> lovacat<lovecat@china.sina.com> qiang.li<qiang.li@verycdn.com.cn> HungMingWu<u9089000@gmail.com> Himer<xishizhaohua@qq.com> XiaLixin<xialixin@kanzhun.com> XiaLixin<68469352@qq.com> XiaLixin<xlx0625@163.com> XiaLixin<xialx@yuntongxun.com> alphonsetai<tyh_123@163.com> Michael.Ma<wnpllr@gmail.com> lam2003<linmin3@yy.com> ShiWei<shiwei05@kuaishou.com> ShiWei<shi.weibd@hotmail.com> XiaofengWang<wasphin@gmail.com> XiaoZhihong<hondaxiao@tencent.com> XiaoZhihong<xiaozhihong8@gmail.com> XiaoZhihong<xiaozhihong@huya.com> yanghuiwen<cainiaodj@qq.com> WuPengqiang<309554135@qq.com> WuPengqiang<pengqiang.wpq@alibaba-inc.com> l<22312935+lam2003@github> xfalcon<x-falcon@github> ChenGuanghua<jinxue.cgh@alibaba-inc.com> ChenGuanghua<chengh_math@126.com> LiPeng<mozhan.lp@alibaba-inc.com> LiPeng<lipeng19811218@gmail.com> yajun18<yajun18@staff.sina.com.cn> liulichuan<liulichuan@kuaishou.com> yapingcat<caoyapingneu@163.com> chenchengbin<chenchengbin@yy.com> ChenHaibo<495810242@qq.com> ChenHaibo<nmgchenhaibo@foxmail.com> jasongwq<jasongwq@gmail.com> yinjiaoyuan<yinjiaoyuan@163.com> PieerePi<pihuibin@hotmail.com> JesseXi<jesse.jinjin@wo.cn> PieerePi<40780488+PieerePi@github> ghostsf<ghost_sf@163.com> xbpeng121<53243357+xbpeng121@github> johzzy<hellojinqiang@gmail.com> stone<bluestn@163.com> cfw11<34058899+cfw11@github> Hung-YiChen<gaod.chen@gmail.com> long<liyalong12345@126.com> matthew1838<77285055+matthew1838@github> rise<rise.worlds@outlook.com> 
[2022-03-04 13:32:24.495][Trace][19627][cli33je7] cwd=/home/srs-server-4.0-b1/trunk, work_dir=./, build: 2021-12-20 20:18:37, configure: --x86-x64, uname: Linux ubuntu 4.4.0-142-generic #168-Ubuntu SMP Wed Jan 16 21:00:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux, osx: 0
[2022-03-04 13:32:24.495][Trace][19627][cli33je7] configure detail: --prefix=/usr/local/srs --hls=on --hds=off --dvr=on --ssl=on --https=on --ssl-1-0=off --ssl-local=off --sys-ssl=off --transcode=on --ingest=on --stat=on --http-callback=on --http-server=on --stream-caster=on --http-api=on --utest=off --cherrypy=off --srt=off --rtc=on --simulator=off --cxx11=off --cxx14=off --ffmpeg-fit=on --nasm=on --srtp-nasm=on --clean=on --gperf=off --gmc=off --gmd=off --gmp=off --gcp=off --gprof=off --static=off --shared-st=off --shared-srt=off --shared-ffmpeg=off --log-verbose=off --log-info=off --log-trace=on --gcov=off --debug=off --debug-stats=off --cross-build=off --cc=gcc --cxx=g++ --ar=ar --ld=ld --randlib=randlib
[2022-03-04 13:32:24.495][Trace][19627][cli33je7] srs checking config...
[2022-03-04 13:32:24.496][Trace][19627][cli33je7] ips, iface[0] bond0 ipv4 0x11443 192.168.1.185, iface[1] bond0 ipv6 0x11443 fe80::1618:77ff:fe4d:57f%bond0
[2022-03-04 13:32:24.496][Trace][19627][cli33je7] devices, intranet bond0 192.168.1.185, intranet bond0 fe80::1618:77ff:fe4d:57f%bond0
[2022-03-04 13:32:24.496][Warn][19627][cli33je7][22] stats network use index=0, ip=192.168.1.185, ifname=bond0
[2022-03-04 13:32:24.497][Warn][19627][cli33je7][22] stats disk not configed, disk iops disabled.
[2022-03-04 13:32:24.497][Trace][19627][cli33je7] write log to console
[2022-03-04 13:32:24.497][Trace][19627][cli33je7] features, rch:on, dash:on, hls:on, hds:off, srt:off, hc:on, ha:on, hs:on, hp:on, dvr:on, trans:on, inge:on, stat:on, sc:on
[2022-03-04 13:32:24.497][Trace][19627][cli33je7] SRS on  amd64 x86_64, conf:./conf/origin.cluster.edge1.conf, limit:1000, writev:1024, encoding:little-endian, HZ:100
[2022-03-04 13:32:24.497][Trace][19627][cli33je7] mw sleep:350ms. mr enabled:on, default:0, sleep:350ms
[2022-03-04 13:32:24.497][Trace][19627][cli33je7] gc:on, pq:30000ms, cscc:[0,16), csa:on, tn:on(may hurts performance), ss:auto(guess by merged write)
[2022-03-04 13:32:24.497][Trace][19627][cli33je7] system default latency(ms): mw(0-350) + mr(0-350) + play-queue(0-30000)
[2022-03-04 13:32:24.497][Warn][19627][cli33je7][22] SRS/4.0.206 is not stable
[2022-03-04 13:32:24.504][Trace][19627][cli33je7] fingerprint=03:FD:C8:B6:E2:60:35:78:59:9C:04:18:1E:7E:E6:F8:19:B6:E5:5F:AB:CA:44:78:53:90:A3:5C:CE:85:72:45
[2022-03-04 13:32:24.504][Trace][19627][cli33je7] CircuitBreaker: enabled=1, high=2x90, critical=1x95, dying=5x99
[2022-03-04 13:32:24.504][Trace][19627][cli33je7] http: root mount to ./objs/nginx/html
[2022-03-04 13:32:24.504][Trace][19627][cli33je7] server main cid=cli33je7, pid=19627, ppid=176576, asprocess=0
[2022-03-04 13:32:24.504][Trace][19627][cli33je7] write pid=19627 to objs/edge1.pid success!
[2022-03-04 13:32:24.504][Trace][19627][cli33je7] RTMP listen at tcp://0.0.0.0:1935, fd=6
[2022-03-04 13:32:24.504][Trace][19627][cli33je7] signal installed, reload=1, reopen=10, fast_quit=15, grace_quit=3
[2022-03-04 13:32:24.504][Trace][19627][cli33je7] http: api mount /console to ./objs/nginx/html/console
[2022-03-04 13:32:24.505][Trace][19627][x5910t65] Hybrid cpu=0.00%,12MB
[2022-03-04 13:32:24.505][Warn][19627][xn7t6z8h][22] use private address as ip: 192.168.1.185, ifname=bond0
[2022-03-04 13:32:24.505][Trace][19627][xn7t6z8h] Startup query id=78b559d69b7c11ec83c41f0a1fab75e3, eip=192.168.1.185, wait=407s
[2022-03-04 13:32:24.505][Trace][19627][bwtk01m0] TCP: connection manager run, conns=0
[2022-03-04 13:32:24.507][Trace][19627][884knwib] RTC: connection manager run, conns=0
[2022-03-04 13:32:29.492][Trace][19627][x5910t65] Hybrid cpu=0.00%,12MB
[2022-03-04 13:32:34.493][Trace][19627][x5910t65] Hybrid cpu=0.00%,12MB
[2022-03-04 13:32:39.493][Trace][19627][x5910t65] Hybrid cpu=1.00%,12MB, cid=1,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
[2022-03-04 13:32:44.493][Trace][19627][x5910t65] Hybrid cpu=0.00%,12MB, cid=1,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
[2022-03-04 13:32:49.493][Trace][19627][x5910t65] Hybrid cpu=1.00%,12MB, cid=1,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
[2022-03-04 13:32:54.493][Trace][19627][x5910t65] Hybrid cpu=0.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
[2022-03-04 13:32:59.493][Trace][19627][x5910t65] Hybrid cpu=0.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
[2022-03-04 13:33:02.635][Trace][19627][f30o5z66] RTMP client ip=192.168.1.210:64655, fd=7
[2022-03-04 13:33:02.640][Trace][19627][f30o5z66] complex handshake success
[2022-03-04 13:33:02.640][Trace][19627][f30o5z66] connect app, tcUrl=rtmp://192.168.1.185:1935/live, pageUrl=, swfUrl=, schema=rtmp, vhost=192.168.1.185, port=1935, app=live, args=null
[2022-03-04 13:33:02.640][Trace][19627][f30o5z66] protocol in.buffer=0, in.ack=0, out.ack=0, in.chunk=128, out.chunk=128
[2022-03-04 13:33:02.720][Trace][19627][f30o5z66] ignore AMF0/AMF3 command message.
[2022-03-04 13:33:02.760][Trace][19627][f30o5z66] ignore AMF0/AMF3 command message.
[2022-03-04 13:33:02.760][Trace][19627][f30o5z66] client identified, type=rtmp-play, vhost=192.168.1.185, app=live, stream=test02, param=, duration=-1ms
[2022-03-04 13:33:02.760][Trace][19627][f30o5z66] connected stream, tcUrl=rtmp://192.168.1.185:1935/live, pageUrl=, swfUrl=, schema=rtmp, vhost=__defaultVhost__, port=1935, app=live, stream=test02, param=, args=null
[2022-03-04 13:33:02.761][Trace][19627][f30o5z66] new source, stream_url=/live/test02
[2022-03-04 13:33:02.761][Trace][19627][f30o5z66] source url=/live/test02, ip=192.168.1.210, cache=1, is_edge=1, source_id=/
[2022-03-04 13:33:02.761][Trace][19627][f30o5z66] ignore disabled exec for vhost=__defaultVhost__
[2022-03-04 13:33:02.761][Trace][19627][f30o5z66] dispatch cached gop success. count=0, duration=-1
[2022-03-04 13:33:02.761][Trace][19627][f30o5z66] create consumer, active=1, queue_size=0.00, jitter=30000000
[2022-03-04 13:33:02.761][Trace][19627][f30o5z66] set fd=7, SO_SNDBUF=87040=>175000, buffer=350ms
[2022-03-04 13:33:02.761][Trace][19627][f30o5z66] start play smi=0ms, mw_sleep=350, mw_msgs=8, realtime=0, tcp_nodelay=0
[2022-03-04 13:33:02.761][Trace][19627][f30o5z66] update source_id=35r4mf06/f30o5z66
[2022-03-04 13:33:02.765][Trace][19627][35r4mf06] complex handshake success.
[2022-03-04 13:33:02.765][Trace][19627][35r4mf06] protocol in.buffer=0, in.ack=0, out.ack=0, in.chunk=128, out.chunk=128
[2022-03-04 13:33:02.804][Trace][19627][35r4mf06] connected, version=4.0.206.0, ip=192.168.1.110, pid=24700, id=0, dsu=1
[2022-03-04 13:33:02.804][Trace][19627][35r4mf06] edge-pull publish url rtmp://192.168.1.110:19350/live/test02, stream=test02 as test02
[2022-03-04 13:33:02.804][Trace][19627][35r4mf06] edge change from 100 to state 101 (pull).
[2022-03-04 13:33:02.806][Warn][19627][35r4mf06][104] origin disconnected, retry, error code=1007 : recv message : recv interlaced message : read basic header : basic header requires 1 bytes : read bytes : read
thread [19627][35r4mf06]: ingest() [src/app/srs_app_edge.cpp:320][errno=104]
thread [19627][35r4mf06]: recv_message() [src/protocol/srs_rtmp_stack.cpp:372][errno=104]
thread [19627][35r4mf06]: recv_interlaced_message() [src/protocol/srs_rtmp_stack.cpp:859][errno=104]
thread [19627][35r4mf06]: read_basic_header() [src/protocol/srs_rtmp_stack.cpp:954][errno=104]
thread [19627][35r4mf06]: grow() [src/protocol/srs_protocol_stream.cpp:162][errno=104]
thread [19627][35r4mf06]: read() [src/protocol/srs_service_st.cpp:514][errno=104]
[2022-03-04 13:33:04.493][Trace][19627][x5910t65] Hybrid cpu=1.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
[2022-03-04 13:33:05.809][Trace][19627][35r4mf06] complex handshake success.
[2022-03-04 13:33:05.809][Trace][19627][35r4mf06] protocol in.buffer=0, in.ack=0, out.ack=0, in.chunk=128, out.chunk=128
[2022-03-04 13:33:05.848][Trace][19627][35r4mf06] connected, version=4.0.206.0, ip=192.168.1.110, pid=24701, id=0, dsu=1
[2022-03-04 13:33:05.848][Trace][19627][35r4mf06] edge-pull publish url rtmp://192.168.1.110:19351/live/test02, stream=test02 as test02
[2022-03-04 13:33:05.850][Warn][19627][35r4mf06][104] origin disconnected, retry, error code=1007 : recv message : recv interlaced message : read basic header : basic header requires 1 bytes : read bytes : read
thread [19627][35r4mf06]: ingest() [src/app/srs_app_edge.cpp:320][errno=104]
thread [19627][35r4mf06]: recv_message() [src/protocol/srs_rtmp_stack.cpp:372][errno=104]
thread [19627][35r4mf06]: recv_interlaced_message() [src/protocol/srs_rtmp_stack.cpp:859][errno=104]
thread [19627][35r4mf06]: read_basic_header() [src/protocol/srs_rtmp_stack.cpp:954][errno=104]
thread [19627][35r4mf06]: grow() [src/protocol/srs_protocol_stream.cpp:162][errno=104]
thread [19627][35r4mf06]: read() [src/protocol/srs_service_st.cpp:514][errno=104]
[2022-03-04 13:33:08.853][Trace][19627][35r4mf06] complex handshake success.
[2022-03-04 13:33:08.853][Trace][19627][35r4mf06] protocol in.buffer=0, in.ack=0, out.ack=0, in.chunk=128, out.chunk=128
[2022-03-04 13:33:08.892][Trace][19627][35r4mf06] connected, version=4.0.206.0, ip=192.168.1.110, pid=24702, id=0, dsu=1
[2022-03-04 13:33:08.892][Trace][19627][35r4mf06] edge-pull publish url rtmp://192.168.1.110:19352/live/test02, stream=test02 as test02
[2022-03-04 13:33:08.893][Trace][19627][35r4mf06] got metadata, width=1280, height=720, vcodec=7, acodec=8
[2022-03-04 13:33:08.893][Trace][19627][35r4mf06] 40B video sh,  codec(7, profile=Baseline, level=3.1, 1280x720, 0kbps, 0.0fps, 0.0s)
[2022-03-04 13:33:09.493][Trace][19627][x5910t65] Hybrid cpu=1.00%,13MB, cid=4,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:11,oth:0,buf:0)
[2022-03-04 13:33:11.422][Warn][19627][35r4mf06][4] origin disconnected, retry, error code=1007 : recv message : recv interlaced message : read basic header : basic header requires 1 bytes : read bytes : read
thread [19627][35r4mf06]: ingest() [src/app/srs_app_edge.cpp:320][errno=4]
thread [19627][35r4mf06]: recv_message() [src/protocol/srs_rtmp_stack.cpp:372][errno=4]
thread [19627][35r4mf06]: recv_interlaced_message() [src/protocol/srs_rtmp_stack.cpp:859][errno=4]
thread [19627][35r4mf06]: read_basic_header() [src/protocol/srs_rtmp_stack.cpp:954][errno=4]
thread [19627][35r4mf06]: grow() [src/protocol/srs_protocol_stream.cpp:162][errno=4]
thread [19627][35r4mf06]: read() [src/protocol/srs_service_st.cpp:514][errno=4]
[2022-03-04 13:33:14.422][Trace][19627][f30o5z66] cleanup when unpublish
[2022-03-04 13:33:14.422][Trace][19627][f30o5z66] edge change from 101 to 300 then 0 (init).
[2022-03-04 13:33:14.422][Trace][19627][f30o5z66] TCP: before dispose resource(RtmpConn)(0x1401800), conns=1, zombies=0, ign=0, inz=0, ind=0
[2022-03-04 13:33:14.422][Warn][19627][f30o5z66][4] client disconnect peer. ret=1007
[2022-03-04 13:33:14.422][Trace][19627][bwtk01m0] TCP: clear zombies=1 resources, conns=1, removing=0, unsubs=0
[2022-03-04 13:33:14.422][Trace][19627][f30o5z66] TCP: disposing #0 resource(RtmpConn)(0x1401800), conns=1, disposing=1, zombies=0
[2022-03-04 13:33:14.494][Trace][19627][x5910t65] Hybrid cpu=0.00%,13MB, cid=4,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:11,oth:0,buf:0)
[2022-03-04 13:33:19.494][Trace][19627][x5910t65] Hybrid cpu=0.00%,13MB, cid=3,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, free=1, objs=(pkt:0,raw:0,fua:0,msg:32,oth:0,buf:0)
[2022-03-04 13:33:24.494][Trace][19627][x5910t65] Hybrid cpu=1.00%,13MB, cid=3,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, free=1, objs=(pkt:0,raw:0,fua:0,msg:32,oth:0,buf:0)
[2022-03-04 13:33:29.494][Trace][19627][x5910t65] Hybrid cpu=0.00%,13MB, cid=3,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, free=1, objs=(pkt:0,raw:0,fua:0,msg:32,oth:0,buf:0)
[2022-03-04 13:33:34.494][Trace][19627][x5910t65] Hybrid cpu=0.00%,13MB, cid=1,0, timer=62,0,0, clock=0,49,1,0,0,0,0,0,0
^C[2022-03-04 13:33:36.586][Trace][19627][cli33je7] sig=2, user terminate program, fast quit
[2022-03-04 13:33:37.501][Trace][19627][cli33je7] cleanup for quit signal fast=1, grace=0
[2022-03-04 13:33:37.501][Warn][19627][cli33je7][11] main cycle terminated, system quit normally.
[2022-03-04 13:33:37.601][Trace][19627][cli33je7] srs disposed
[2022-03-04 13:33:37.601][Trace][19627][cli33je7] srs terminated

10. Initial analysis suggests that if http_api is only listening on 127.0.0.1, the actual IP configured in coworkers, 192.168.1.110, becomes unreachable, resulting in errors in the logs of the source node. So, no IP is allowed to access http_api, not even the actual IP of the local machine, 192.168.1.110. In theory, restricting local access should allow both 127.0.0.1 and the actual IP of the local machine, 192.168.1.110.

Expected behavior (Expect)

Expected behavior:

Expect to be able to have the http_api listen on 127.0.0.1, restricting access to others. Coworkers should be able to access it using the actual IP address of the local machine.

TRANS_BY_GPT3

wr-ning commented 2 years ago

After changing the http_api listener to 127.0.0.1, I also tried to change the configuration of coworkers in each source station node to 127.0.0.1, but the edge nodes also reported errors. This is because when the edge nodes pull the stream, the source station feedback to the edge node's pull stream address is not the actual IP, but starts with 127.0.0.1. However, there is no streaming on the edge node, so it fails as well.

TRANS_BY_GPT3

wr-ning commented 2 years ago

The configuration of the http_api listening IP as 127.0.0.1 in the source station's node is done to prevent external machines from accessing the API in the node, thus enhancing security.

This is because currently, the http_api does not support features like password input or similar security interception, making it easily accessible. Therefore, there is a desire to restrict external access.

TRANS_BY_GPT3

jinleileiking commented 2 years ago

For k8s, it's easy to solve. If you want to deploy directly, should we use iptables?

TRANS_BY_GPT3

wr-ning commented 2 years ago

The deployment is done directly on physical machines on-site. It is not running on containers. I am not quite sure what you mean by "use iptables?". I only have basic knowledge of using Linux and have limited understanding of Linux system administration.

TRANS_BY_GPT3

winlinvip commented 2 years ago

I didn't understand, it's too complicated. Do we need all four source nodes to reproduce it? Let's see if we can reduce the reproduction path.

Also, never push the stream directly to the source node, it should be pushed to the Edge.

TRANS_BY_GPT3