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

Is a stream indentifier ever not have a '-1' or some number at the end of it? #9043

Open
gregk63 opened this issue May 7, 2024 · 9 comments
Labels

Comments

@gregk63
Copy link

gregk63 commented May 7, 2024

Describe the question
Is a stream indentifier ever not have a '-1' or some number at the end of it?

Screenshots
Provide some screenshots to help us understand and explain your problem.

I am seeing this error in the nginx error log with debug turned on. Notice the identifier doesn't have the -1 at the end which is causing it to error. There is no path with that name. The path should be /live/662972ff31d96-1/index.m3u8

2024/05/06 14:17:53 [error] 2647218#0: *11592 open() "/HLS/live/662972ff31d96/index.m3u8" failed (2: No such file or directory), client: 127.0.0.1, server: videos.kaiserclix.com, request: "GET /live/662972ff31d96/index.m3u8 HTTP/1.1", host: "videos.kaiserclix.com:8443"

@DanielnetoDotCom
Copy link
Member

what exactly key are you using when you make a live stream?

@gregk63
Copy link
Author

gregk63 commented May 8, 2024

662972ff31d96-1. It isn't anymore. I reset it as a troubleshooting step. It is now 6639515e6e171-1 and erroring because when the request comes in it is 6639515e6e171 no '-1'. It is failing because it can't the directory.

@DanielnetoDotCom
Copy link
Member

Hi, where are you seeing an error or problem?

the -1 is correct and you should have no problem playing the video

@gregk63
Copy link
Author

gregk63 commented May 8, 2024

I turned on debug within nginx. Here is a portion of it that contains the error and the key without the '-1'. What is odd is I do see other requests come in with the '-1' in the same error log and of course they work.

2024/05/06 15:53:30 [debug] 3871414#0: *11 http wait request handler
2024/05/06 15:53:30 [debug] 3871414#0: *11 malloc: 000055DFB88C73F0:1024
2024/05/06 15:53:30 [debug] 3871414#0: *11 SSL_read: 203
2024/05/06 15:53:30 [debug] 3871414#0: *11 SSL_read: -1
2024/05/06 15:53:30 [debug] 3871414#0: *11 SSL_get_error: 2
2024/05/06 15:53:30 [debug] 3871414#0: *11 reusable connection: 0
2024/05/06 15:53:30 [debug] 3871414#0: *11 posix_memalign: 000055DFB88ED4F0:4096 @16
2024/05/06 15:53:30 [debug] 3871414#0: *11 http process request line
2024/05/06 15:53:30 [debug] 3871414#0: *11 http request line: "GET /live/662972ff31d96/index.m3u8 HTTP/1.1"
2024/05/06 15:53:30 [debug] 3871414#0: *11 http uri: "/live/662972ff31d96/index.m3u8"
2024/05/06 15:53:30 [debug] 3871414#0: *11 http args: ""
2024/05/06 15:53:30 [debug] 3871414#0: *11 http exten: "m3u8"
2024/05/06 15:53:30 [debug] 3871414#0: *11 posix_memalign: 000055DFB88CFBE0:4096 @16
2024/05/06 15:53:30 [debug] 3871414#0: *11 http process request header line
2024/05/06 15:53:30 [debug] 3871414#0: *11 http header: "User-Agent: AVideoEncoder videos.kaiserclix.com FFMPEG"
2024/05/06 15:53:30 [debug] 3871414#0: *11 http header: "Accept: /"
2024/05/06 15:53:30 [debug] 3871414#0: *11 http header: "Range: bytes=0-"
2024/05/06 15:53:30 [debug] 3871414#0: *11 http header: "Connection: close"
2024/05/06 15:53:30 [debug] 3871414#0: *11 http header: "Host: videos.kaiserclix.com:8443"
2024/05/06 15:53:30 [debug] 3871414#0: *11 http header: "Icy-MetaData: 1"
2024/05/06 15:53:30 [debug] 3871414#0: *11 http header done
2024/05/06 15:53:30 [debug] 3871414#0: *11 event timer del: 15: 452364185
2024/05/06 15:53:30 [debug] 3871414#0: *11 rewrite phase: 0
2024/05/06 15:53:30 [debug] 3871414#0: *11 test location: "/"
2024/05/06 15:53:30 [debug] 3871414#0: *11 test location: "live"
2024/05/06 15:53:30 [debug] 3871414#0: *11 test location: ~ ".m3u8$"
2024/05/06 15:53:30 [debug] 3871414#0: *11 using configuration ".m3u8$"
2024/05/06 15:53:30 [debug] 3871414#0: *11 http cl:-1 max:1048576
2024/05/06 15:53:30 [debug] 3871414#0: *11 rewrite phase: 2
2024/05/06 15:53:30 [debug] 3871414#0: *11 post rewrite phase: 3
2024/05/06 15:53:30 [debug] 3871414#0: *11 generic phase: 4
2024/05/06 15:53:30 [debug] 3871414#0: *11 generic phase: 5
2024/05/06 15:53:30 [debug] 3871414#0: *11 access phase: 6
2024/05/06 15:53:30 [debug] 3871414#0: *11 access phase: 7
2024/05/06 15:53:30 [debug] 3871414#0: *11 post access phase: 8
2024/05/06 15:53:30 [debug] 3871414#0: *11 generic phase: 9
2024/05/06 15:53:30 [debug] 3871414#0: *11 generic phase: 10
2024/05/06 15:53:30 [debug] 3871414#0: *11 content phase: 11
2024/05/06 15:53:30 [debug] 3871414#0: *11 content phase: 12
2024/05/06 15:53:30 [debug] 3871414#0: *11 content phase: 13
2024/05/06 15:53:30 [debug] 3871414#0: *11 http filename: "/HLS/live/662972ff31d96/index.m3u8"
2024/05/06 15:53:30 [debug] 3871414#0: *11 add cleanup: 000055DFB88EE1F8
2024/05/06 15:53:30 [error] 3871414#0: *11 open() "/HLS/live/662972ff31d96/index.m3u8" failed (2: No such file or directory), client: 127.0.0.1, server: videos.kaiserclix.com, request: "GET /live/662972ff31d96/index.m3u8 HTTP/1.1", host: "videos.kaiserclix.com:8443"
2024/05/06 15:53:30 [debug] 3871414#0: *11 http finalize request: 404, "/live/662972ff31d96/index.m3u8?" a:1, c:1
2024/05/06 15:53:30 [debug] 3871414#0: *11 http special response: 404, "/live/662972ff31d96/index.m3u8?"
2024/05/06 15:53:30 [debug] 3871414#0: *11 http set discard body
2024/05/06 15:53:30 [debug] 3871414#0: *11 HTTP/1.1 404 Not Found^M
Server: nginx/1.16.1^M
Date: Mon, 06 May 2024 20:53:30 GMT^M
Content-Type: text/html^M
Transfer-Encoding: chunked^M

@DanielnetoDotCom
Copy link
Member

but is your live playing or not?

@gregk63
Copy link
Author

gregk63 commented May 8, 2024

Yes, it was playing at the time debug was turned on.

The directory on my server at the time this error happened is /HLS/live/662972ff31d96-1/ not /HLS/live/662972ff31d96/.

Here is a portion of the same nginx error log short before the error. This one worked fine because it had the '-1'

2024/05/06 15:53:25 [debug] 3871416#0: *6 http wait request handler
2024/05/06 15:53:25 [debug] 3871416#0: *6 malloc: 000055DFB88C73F0:1024
2024/05/06 15:53:25 [debug] 3871416#0: *6 SSL_read: 102
2024/05/06 15:53:25 [debug] 3871416#0: *6 SSL_read: -1
2024/05/06 15:53:25 [debug] 3871416#0: *6 SSL_get_error: 2
2024/05/06 15:53:25 [debug] 3871416#0: *6 reusable connection: 0
2024/05/06 15:53:25 [debug] 3871416#0: *6 posix_memalign: 000055DFB8A0C290:4096 @16
2024/05/06 15:53:25 [debug] 3871416#0: *6 http process request line
2024/05/06 15:53:25 [debug] 3871416#0: *6 http request line: "GET /live/662972ff31d96-1/index.m3u8 HTTP/1.1"
2024/05/06 15:53:25 [debug] 3871416#0: *6 http uri: "/live/662972ff31d96-1/index.m3u8"
2024/05/06 15:53:25 [debug] 3871416#0: *6 http args: ""
2024/05/06 15:53:25 [debug] 3871416#0: *6 http exten: "m3u8"
2024/05/06 15:53:25 [debug] 3871416#0: *6 posix_memalign: 000055DFB88CEE30:4096 @16
2024/05/06 15:53:25 [debug] 3871416#0: *6 http process request header line
2024/05/06 15:53:25 [debug] 3871416#0: *6 http header: "Host: videos.kaiserclix.com:8443"
2024/05/06 15:53:25 [debug] 3871416#0: *6 http header: "Connection: close"
2024/05/06 15:53:25 [debug] 3871416#0: *6 http header done
2024/05/06 15:53:25 [debug] 3871416#0: *6 event timer del: 13: 452358669
2024/05/06 15:53:25 [debug] 3871416#0: *6 rewrite phase: 0
2024/05/06 15:53:25 [debug] 3871416#0: *6 test location: "/"
2024/05/06 15:53:25 [debug] 3871416#0: *6 test location: "live"
2024/05/06 15:53:25 [debug] 3871416#0: *6 test location: ~ ".m3u8$"
2024/05/06 15:53:25 [debug] 3871416#0: *6 using configuration ".m3u8$"
2024/05/06 15:53:25 [debug] 3871416#0: *6 http cl:-1 max:1048576
2024/05/06 15:53:25 [debug] 3871416#0: *6 rewrite phase: 2
2024/05/06 15:53:25 [debug] 3871416#0: *6 post rewrite phase: 3
2024/05/06 15:53:25 [debug] 3871416#0: *6 generic phase: 4
2024/05/06 15:53:25 [debug] 3871416#0: *6 generic phase: 5
2024/05/06 15:53:25 [debug] 3871416#0: *6 access phase: 6
2024/05/06 15:53:25 [debug] 3871416#0: *6 access phase: 7
2024/05/06 15:53:25 [debug] 3871416#0: *6 post access phase: 8
2024/05/06 15:53:25 [debug] 3871416#0: *6 generic phase: 9
2024/05/06 15:53:25 [debug] 3871416#0: *6 generic phase: 10
2024/05/06 15:53:25 [debug] 3871416#0: *6 content phase: 11
2024/05/06 15:53:25 [debug] 3871416#0: *6 content phase: 12
2024/05/06 15:53:25 [debug] 3871416#0: *6 content phase: 13
2024/05/06 15:53:25 [debug] 3871416#0: *6 http filename: "/HLS/live/662972ff31d96-1/index.m3u8"
2024/05/06 15:53:25 [debug] 3871416#0: *6 add cleanup: 000055DFB8A0CF78
2024/05/06 15:53:25 [debug] 3871416#0: *6 http static fd: 18
2024/05/06 15:53:25 [debug] 3871416#0: *6 http set discard body
2024/05/06 15:53:25 [debug] 3871416#0: *6 HTTP/1.1 200 OK^M
Server: nginx/1.16.1^M
Date: Mon, 06 May 2024 20:53:25 GMT^M
Content-Type: application/vnd.apple.mpegurl^M
Transfer-Encoding: chunked^M
Connection: close^M
Expires: Mon, 06 May 2024 20:53:24 GMT^M
Cache-Control: no-cache^M
Cache-Control: no-cache^M
Access-Control-Allow-Origin: *^M
Access-Control-Expose-Headers: Content-Length^M

2024/05/06 15:53:25 [debug] 3871416#0: *6 write new buf t:1 f:0 000055DFB88CF210, pos 000055DFB88CF210, size: 339 file: 0, size: 0
2024/05/06 15:53:25 [debug] 3871416#0: *6 http write filter: l:0 f:0 s:339

@DanielnetoDotCom
Copy link
Member

if it is playing and working why do you care about the logs?

@gregk63
Copy link
Author

gregk63 commented May 8, 2024

Sorry, I wasn't clear on that. The user isn't able to see the stream I think because of the error. There is just a black screen.

@DanielnetoDotCom
Copy link
Member

I don't know what the error is, you may want to share a page where you are supposed to have a live stream running here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants