ossrs / srs-bench

SB(SRS Bench) is a set of benchmark and regression test tools, for SRS and other media servers, supports HTTP-FLV, RTMP, HLS, WebRTC and GB28181.
https://ossrs.net
MIT License
388 stars 222 forks source link

Usage of sb_hls_load resulting in get m3u8 failure #2

Open mbeacom opened 7 years ago

mbeacom commented 7 years ago

Example: http://live.schou.me/FishHD.m3u8 via http://fish.schou.me/ executed via: ./sb_hls_load -r http://live.schou.me/FishHD.m3u8 results in the following errors:

[2016-11-10 19:05:20.441][0][trace] params url=http://live.schou.me/FishHD.m3u8, vod=0, threads=1, start=5.00, delay=-1.00, error=3.00, report=30.00, count=0
[2016-11-10 19:05:20.441][0][trace] create thread for task #1 success
[2016-11-10 19:05:20.441] [report] [32451] threads:0 alive:0 duration:0 tduration:0 nread:0.00 nwrite:0.00 tasks:0 etasks:0 stasks:0 estasks:0
[2016-11-10 19:05:20.441][1][trace] start random sleep 3576ms
[2016-11-10 19:05:24.021][1][trace] start to process HLS task #1, schema=http, host=live.schou.me, port=80, path=/FishHD.m3u8, startup=5.00, delay=-1.00, error=3.00, count=0
[2016-11-10 19:05:24.030][1][error] invalid url=http://live.schou.me/FishHD.m3u8, endpoint change from 104.28.5.13:80 to 104.28.4.13:80 errno=0(Success)
[2016-11-10 19:05:24.030][1][error] http client check url failed. ret=501 errno=0(Success)
[2016-11-10 19:05:24.030][1][error] http client get m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:05:24.030][1][error] http client process m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:05:27.033][1][error] invalid url=http://live.schou.me/FishHD.m3u8, endpoint change from 104.28.5.13:80 to 104.28.4.13:80 errno=0(Success)
[2016-11-10 19:05:27.034][1][error] http client check url failed. ret=501 errno=0(Success)
[2016-11-10 19:05:27.034][1][error] http client get m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:05:27.034][1][error] http client process m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:05:30.037][1][error] invalid url=http://live.schou.me/FishHD.m3u8, endpoint change from 104.28.5.13:80 to 104.28.4.13:80 errno=0(Success)
[2016-11-10 19:05:30.037][1][error] http client check url failed. ret=501 errno=0(Success)
[2016-11-10 19:05:30.037][1][error] http client get m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:05:30.037][1][error] http client process m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:05:33.041][1][error] invalid url=http://live.schou.me/FishHD.m3u8, endpoint change from 104.28.5.13:80 to 104.28.4.13:80 errno=0(Success)
[2016-11-10 19:05:33.041][1][error] http client check url failed. ret=501 errno=0(Success)
[2016-11-10 19:05:33.041][1][error] http client get m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:05:33.041][1][error] http client process m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:05:36.045][1][error] invalid url=http://live.schou.me/FishHD.m3u8, endpoint change from 104.28.5.13:80 to 104.28.4.13:80 errno=0(Success)
[2016-11-10 19:05:36.045][1][error] http client check url failed. ret=501 errno=0(Success)
[2016-11-10 19:05:36.045][1][error] http client get m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:05:36.045][1][error] http client process m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:05:39.049][1][error] invalid url=http://live.schou.me/FishHD.m3u8, endpoint change from 104.28.5.13:80 to 104.28.4.13:80 errno=0(Success)
[2016-11-10 19:05:39.049][1][error] http client check url failed. ret=501 errno=0(Success)
[2016-11-10 19:05:39.049][1][error] http client get m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:05:39.049][1][error] http client process m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:05:42.052][1][error] invalid url=http://live.schou.me/FishHD.m3u8, endpoint change from 104.28.5.13:80 to 104.28.4.13:80 errno=0(Success)
[2016-11-10 19:05:42.052][1][error] http client check url failed. ret=501 errno=0(Success)
[2016-11-10 19:05:42.052][1][error] http client get m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:05:42.052][1][error] http client process m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:05:45.055][1][error] invalid url=http://live.schou.me/FishHD.m3u8, endpoint change from 104.28.5.13:80 to 104.28.4.13:80 errno=0(Success)
[2016-11-10 19:05:45.055][1][error] http client check url failed. ret=501 errno=0(Success)
[2016-11-10 19:05:45.055][1][error] http client get m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:05:45.055][1][error] http client process m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:05:48.057][1][error] invalid url=http://live.schou.me/FishHD.m3u8, endpoint change from 104.28.5.13:80 to 104.28.4.13:80 errno=0(Success)
[2016-11-10 19:05:48.057][1][error] http client check url failed. ret=501 errno=0(Success)
[2016-11-10 19:05:48.057][1][error] http client get m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:05:48.057][1][error] http client process m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:05:50.444] [report] [32451] threads:1 alive:0 duration:30 tduration:0 nread:0.00 nwrite:0.00 tasks:9 etasks:9 stasks:0 estasks:0
[2016-11-10 19:05:51.057][1][error] invalid url=http://live.schou.me/FishHD.m3u8, endpoint change from 104.28.5.13:80 to 104.28.4.13:80 errno=0(Success)
[2016-11-10 19:05:51.057][1][error] http client check url failed. ret=501 errno=0(Success)
[2016-11-10 19:05:51.057][1][error] http client get m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:05:51.057][1][error] http client process m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:05:54.060][1][error] invalid url=http://live.schou.me/FishHD.m3u8, endpoint change from 104.28.5.13:80 to 104.28.4.13:80 errno=0(Success)
[2016-11-10 19:05:54.060][1][error] http client check url failed. ret=501 errno=0(Success)
[2016-11-10 19:05:54.060][1][error] http client get m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:05:54.060][1][error] http client process m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:05:57.064][1][error] invalid url=http://live.schou.me/FishHD.m3u8, endpoint change from 104.28.5.13:80 to 104.28.4.13:80 errno=0(Success)
[2016-11-10 19:05:57.064][1][error] http client check url failed. ret=501 errno=0(Success)
[2016-11-10 19:05:57.064][1][error] http client get m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:05:57.064][1][error] http client process m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:06:00.068][1][error] invalid url=http://live.schou.me/FishHD.m3u8, endpoint change from 104.28.5.13:80 to 104.28.4.13:80 errno=0(Success)
[2016-11-10 19:06:00.068][1][error] http client check url failed. ret=501 errno=0(Success)
[2016-11-10 19:06:00.068][1][error] http client get m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:06:00.068][1][error] http client process m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:06:03.072][1][error] invalid url=http://live.schou.me/FishHD.m3u8, endpoint change from 104.28.5.13:80 to 104.28.4.13:80 errno=0(Success)
[2016-11-10 19:06:03.072][1][error] http client check url failed. ret=501 errno=0(Success)
[2016-11-10 19:06:03.072][1][error] http client get m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:06:03.072][1][error] http client process m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:06:06.073][1][error] invalid url=http://live.schou.me/FishHD.m3u8, endpoint change from 104.28.5.13:80 to 104.28.4.13:80 errno=0(Success)
[2016-11-10 19:06:06.073][1][error] http client check url failed. ret=501 errno=0(Success)
[2016-11-10 19:06:06.073][1][error] http client get m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:06:06.073][1][error] http client process m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:06:09.077][1][error] invalid url=http://live.schou.me/FishHD.m3u8, endpoint change from 104.28.5.13:80 to 104.28.4.13:80 errno=0(Success)
[2016-11-10 19:06:09.077][1][error] http client check url failed. ret=501 errno=0(Success)
[2016-11-10 19:06:09.077][1][error] http client get m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:06:09.077][1][error] http client process m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:06:12.081][1][error] invalid url=http://live.schou.me/FishHD.m3u8, endpoint change from 104.28.5.13:80 to 104.28.4.13:80 errno=0(Success)
[2016-11-10 19:06:12.081][1][error] http client check url failed. ret=501 errno=0(Success)
[2016-11-10 19:06:12.081][1][error] http client get m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:06:12.081][1][error] http client process m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:06:15.085][1][error] invalid url=http://live.schou.me/FishHD.m3u8, endpoint change from 104.28.5.13:80 to 104.28.4.13:80 errno=0(Success)
[2016-11-10 19:06:15.085][1][error] http client check url failed. ret=501 errno=0(Success)
[2016-11-10 19:06:15.085][1][error] http client get m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:06:15.085][1][error] http client process m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:06:18.088][1][error] invalid url=http://live.schou.me/FishHD.m3u8, endpoint change from 104.28.5.13:80 to 104.28.4.13:80 errno=0(Success)
[2016-11-10 19:06:18.088][1][error] http client check url failed. ret=501 errno=0(Success)
[2016-11-10 19:06:18.088][1][error] http client get m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:06:18.088][1][error] http client process m3u8 failed. ret=501 errno=0(Success)
[2016-11-10 19:06:20.447] [report] [32451] threads:1 alive:0 duration:60 tduration:0 nread:0.00 nwrite:0.00 tasks:19 etasks:19 stasks:0 estasks:0
[2016-11-10 19:06:21.088][1][error] invalid url=http://live.schou.me/FishHD.m3u8, endpoint change from 104.28.5.13:80 to 104.28.4.13:80 errno=0(Success)

Is there any way to resolve this? What would typically cause this to occur?

I appreciate any direction or suggestions! Thank you!

winlinvip commented 7 years ago

貌似是DNS解析的问题,你可以固定hosts绕过去。 SB的HTTP库没有和SRS同步,有点问题。

moondigi commented 7 years ago

同样有这个错误,应该如何解决?

winlinvip commented 7 years ago
http://live.schou.me/FishHD.m3u8

如果能把url改成多级的应该就好了,这个是个解析url的bug。譬如改成这样应该没有问题:

http://live.schou.me/app/FishHD.m3u8

加一个app的目录,可以是其他名字。

moondigi commented 7 years ago

error

winlinvip commented 7 years ago

错误应该是解析m3u8错误,不是http的500吧。得调试下看看是哪个地方解析m3u8有问题。

ClaudioBrocco commented 1 year ago

Hi, in hls test also the same thing happens to me. Do you know how to solve it?

flyliu33 commented 10 months ago
http://live.schou.me/FishHD.m3u8

如果能把url改成多级的应该就好了,这个是个解析url的bug。譬如改成这样应该没有问题:

http://live.schou.me/app/FishHD.m3u8

加一个app的目录,可以是其他名字。

[[image

nty](https://live-01-01-tn.vodgc.net/TN24/index.m3u8)](https://live-01-01-tn.vodgc.net/TN24/index.m3u8)

即使中间增加一个目录,此问题还存在。 docker run --rm -it --network=host --name sb ossrs/srs:sb \ ./objs/sb_hls_load -c 10 -r https://live-01-01-tn.vodgc.net/TN24/index.m3u8