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

Proxy requires a restart occasionally after channel drops #205

Open
shorty789 opened this issue Dec 27, 2024 · 1 comment
Open

Proxy requires a restart occasionally after channel drops #205

shorty789 opened this issue Dec 27, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@shorty789
Copy link

Here are my logs, normally what will happen is that it will suddenly go into an endless loop of the same segments, but then when I back out and try to launch the same channel again, I get errors until I restart the container:

2024/12/27 17:55:52 Stream ended (unexpected EOF reached): :39742
2024/12/27 17:55:52 Retrying same stream until timeout (3 seconds) is reached...
2024/12/27 17:55:52 Stream ended (unexpected EOF reached): :39742
2024/12/27 17:55:52 Retrying same stream until timeout (3 seconds) is reached...
2024/12/27 17:55:53 Stream ended (unexpected EOF reached): :39742
2024/12/27 17:55:53 Retrying same stream until timeout (3 seconds) is reached...
2024/12/27 17:55:53 Stream ended (unexpected EOF reached): :39742
2024/12/27 17:55:53 Retrying same stream until timeout (3 seconds) is reached...
2024/12/27 17:55:55 Timeout reached while trying to stream: :39742
2024/12/27 17:55:55 [DEBUG] Defer executed for stream: :39742
2024/12/27 17:55:55 Current number of connections for M3U_3: 0
2024/12/27 17:55:55 Exit code 2 received from http:///577511
2024/12/27 17:55:55 [DEBUG] Setting tested indexes for session - 36c4bf67272add31b9617e3413477fdbc71e31f43cb4bb825400f0c2582bed7d: [3|0]
2024/12/27 17:55:55 Retrying other servers...
2024/12/27 17:55:55 [DEBUG] Stream attempt 1 out of 5
2024/12/27 17:55:55 Skipping M3U_3|0: marked as previous stream
2024/12/27 17:55:55 Current number of connections for M3U_1: 1
2024/12/27 17:55:55 Concurrency limit reached for M3U_1: http://
/577511
2024/12/27 17:55:55 Current number of connections for M3U_4: 1
2024/12/27 17:55:55 Concurrency limit reached for M3U_4: http:///577511
2024/12/27 17:55:55 Current number of connections for M3U_2: 1
2024/12/27 17:55:55 Concurrency limit reached for M3U_2: http://
/577511
2024/12/27 17:55:55 [DEBUG] All streams skipped in lap 0
2024/12/27 17:55:55 [DEBUG] Setting tested indexes for session - 36c4bf67272add31b9617e3413477fdbc71e31f43cb4bb825400f0c2582bed7d: []
2024/12/27 17:55:55 [DEBUG] Stream attempt 2 out of 5
2024/12/27 17:55:55 Current number of connections for M3U_3: 0
2024/12/27 17:55:57 [DEBUG] Successfully fetched stream from http:///577511
2024/12/27 17:55:57 Proxying :39742 to http://
/577511
2024/12/27 17:55:57 Current number of connections for M3U_3: 1
2024/12/27 18:06:10 [DEBUG] Defer executed for stream: :39742
2024/12/27 18:06:10 Current number of connections for M3U_3: 0
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x76450a]

goroutine 1385942 [running]:
m3u-stream-merger/proxy.(StreamInstance).ProxyStream(0xc0004a3080, {0x8b6ec0, 0xc00031c550}, {0xc000018098, 0x1}, {0xc001300460?, 0xc0001e3fd0?}, 0xc0000f8870, 0xc0000f63c0, {0x8b6348, ...}, ...)
/app/proxy/proxy_stream.go:163 +0x6ca
created by m3u-stream-merger/handlers.StreamHandler in goroutine 1095789
/app/handlers/stream_handler.go:81 +0x819
2024/12/27 18:06:12 Starting updater...
2024/12/27 18:06:12 CLEAR_ON_BOOT enabled. Clearing current cache.
2024/12/27 18:06:12 [DEBUG] Clearing memory and disk M3U cache.
2024/12/27 18:06:14 SYNC_CRON not initialized. Defaulting to 0 0 * * * (12am every day).
2024/12/27 18:06:14 SYNC_ON_BOOT enabled. Starting initial M3U update.
2024/12/27 18:06:14 Setting up HTTP handlers...
2024/12/27 18:06:14 Server is running on port 8080...
2024/12/27 18:06:14 Playlist Endpoint is running (/playlist.m3u)
2024/12/27 18:06:14 Stream Endpoint is running (/p/{originalBasePath}/{streamID}.{fileExt})
2024/12/27 18:06:14 Background process: Checking M3U_URLs...
2024/12/27 18:06:14 Background process: Fetching M3U_URL_1...
2024/12/27 18:06:14 Background process: Fetching M3U_URL_2...
2024/12/27 18:06:14 Background process: Fetching M3U_URL_3...
2024/12/27 18:06:14 Background process: Fetching M3U_URL_4...
2024/12/27 18:06:14 [DEBUG] Processing M3U from: http://
/4.m3u
2024/12/27 18:06:14 [DEBUG] Remote M3U URL detected: http://
/4.m3u
2024/12/27 18:06:14 [DEBUG] Processing M3U from: http://
/2.m3u
2024/12/27 18:06:14 [DEBUG] Remote M3U URL detected: http://
/2.m3u
2024/12/27 18:06:14 [DEBUG] Processing M3U from: http://
/1.m3u
2024/12/27 18:06:14 [DEBUG] Remote M3U URL detected: http://
/1.m3u
2024/12/27 18:06:14 [DEBUG] Processing M3U from: http://
/3.m3u
2024/12/27 18:06:14 [DEBUG] Remote M3U URL detected: http://
/3.m3u
2024/12/27 18:06:14 [DEBUG] M3U file downloaded to /tmp/m3u-proxy/sources/3.m3u
2024/12/27 18:06:14 [DEBUG] M3U file downloaded to /tmp/m3u-proxy/sources/2.m3u
2024/12/27 18:06:14 [DEBUG] M3U file downloaded to /tmp/m3u-proxy/sources/1.m3u
2024/12/27 18:06:14 [DEBUG] M3U file downloaded to /tmp/m3u-proxy/sources/4.m3u
2024/12/27 18:06:14 Background process: M3U fetching complete.
2024/12/27 18:06:14 Background process: Updated M3U store.
2024/12/27 19:30:26 Received request from :47494 for URL: /KLUv_QQAwQQAeyJ0aXRsZSI6IlVLIC0gQ0hBTk5FTCA0IEZIRCIsInR2Z19pZCI6IkNoYW5uZWw0LnVrIiwidHZnX2NoIjoiIiwibG9nbyI6Imh0dHA6Ly8xMDMuMTc2LjkwLjExOC9waWNvbnMtZGluby9sb2dvcy9jaGFubmVsNGhkLnBuZyIsImdyb3VwIjoifFVLfCBHRU5FUkFMIn1Gbbsy
2024/12/27 19:30:26 [DEBUG] Generating fingerprint from: X.X.X.X|VLC|
/
||
/KLUv_QQAwQQAeyJ0aXRsZSI6IlVLIC0gQ0hBTk5FTCA0IEZIRCIsInR2Z19pZCI6IkNoYW5uZWw0LnVrIiwidHZnX2NoIjoiIiwibG9nbyI6Imh0dHA6Ly8xMDMuMTc2LjkwLjExOC9waWNvbnMtZGluby9sb2dvcy9jaGFubmVsNGhkLnBuZyIsImdyb3VwIjoifFVLfCBHRU5FUkFMIn1Gbbsy
2024/12/27 19:30:26 [DEBUG] Generating new session: 8e06e96ac1156728af808a754a4844ad8844f33c3182e593c8c92198cc17679d
2024/12/27 19:30:26 [DEBUG] Stream attempt 1 out of 5
2024/12/27 19:30:26 [DEBUG] All streams skipped in lap 0
2024/12/27 19:30:26 [DEBUG] Setting tested indexes for session - 8e06e96ac1156728af808a754a4844ad8844f33c3182e593c8c92198cc17679d: []
2024/12/27 19:30:26 [DEBUG] Stream attempt 2 out of 5
2024/12/27 19:30:26 [DEBUG] All streams skipped in lap 1
2024/12/27 19:30:26 [DEBUG] Setting tested indexes for session - 8e06e96ac1156728af808a754a4844ad8844f33c3182e593c8c92198cc17679d: []
2024/12/27 19:30:27 [DEBUG] Stream attempt 3 out of 5
2024/12/27 19:30:27 [DEBUG] All streams skipped in lap 2
2024/12/27 19:30:27 [DEBUG] Setting tested indexes for session - 8e06e96ac1156728af808a754a4844ad8844f33c3182e593c8c92198cc17679d: []
2024/12/27 19:30:27 [DEBUG] Stream attempt 4 out of 5
2024/12/27 19:30:27 [DEBUG] All streams skipped in lap 3
2024/12/27 19:30:27 [DEBUG] Setting tested indexes for session - 8e06e96ac1156728af808a754a4844ad8844f33c3182e593c8c92198cc17679d: []
2024/12/27 19:30:29 [DEBUG] Stream attempt 5 out of 5
2024/12/27 19:30:29 [DEBUG] All streams skipped in lap 4
2024/12/27 19:30:29 [DEBUG] Setting tested indexes for session - 8e06e96ac1156728af808a754a4844ad8844f33c3182e593c8c92198cc17679d: []
2024/12/27 19:30:31 Error reloading stream for KLUv_QQAwQQAeyJ0aXRsZSI6IlVLIC0gQ0hBTk5FTCA0IEZIRCIsInR2Z19pZCI6IkNoYW5uZWw0LnVrIiwidHZnX2NoIjoiIiwibG9nbyI6Imh0dHA6Ly8xMDMuMTc2LjkwLjExOC9waWNvbnMtZGluby9sb2dvcy9jaGFubmVsNGhkLnBuZyIsImdyb3VwIjoifFVLfCBHRU5FUkFMIn1Gbbsy: Error fetching stream. Exhausted all streams.
2024/12/27 19:32:01 Received request from :44470 for URL: /KLUv_QQAwQQAeyJ0aXRsZSI6IlVLIC0gQ0hBTk5FTCA0IEZIRCIsInR2Z19pZCI6IkNoYW5uZWw0LnVrIiwidHZnX2NoIjoiIiwibG9nbyI6Imh0dHA6Ly8xMDMuMTc2LjkwLjExOC9waWNvbnMtZGluby9sb2dvcy9jaGFubmVsNGhkLnBuZyIsImdyb3VwIjoifFVLfCBHRU5FUkFMIn1Gbbsy
2024/12/27 19:32:01 [DEBUG] Generating fingerprint from: 172.16.252.3|VLC|
/
||/
*/KLUv_QQAwQQAeyJ0aXRsZSI6IlVLIC0gQ0hBTk5FTCA0IEZIRCIsInR2Z19pZCI6IkNoYW5uZWw0LnVrIiwidHZnX2NoIjoiIiwibG9nbyI6Imh0dHA6Ly8xMDMuMTc2LjkwLjExOC9waWNvbnMtZGluby9sb2dvcy9jaGFubmVsNGhkLnBuZyIsImdyb3VwIjoifFVLfCBHRU5FUkFMIn1Gbbsy
2024/12/27 19:32:01 [DEBUG] Existing session found: 8e06e96ac1156728af808a754a4844ad8844f33c3182e593c8c92198cc17679d
2024/12/27 19:32:01 [DEBUG] Stream attempt 1 out of 5
2024/12/27 19:32:01 [DEBUG] All streams skipped in lap 0
2024/12/27 19:32:01 [DEBUG] Setting tested indexes for session - 8e06e96ac1156728af808a754a4844ad8844f33c3182e593c8c92198cc17679d: []
2024/12/27 19:32:01 [DEBUG] Stream attempt 2 out of 5
2024/12/27 19:32:01 [DEBUG] All streams skipped in lap 1
2024/12/27 19:32:01 [DEBUG] Setting tested indexes for session - 8e06e96ac1156728af808a754a4844ad8844f33c3182e593c8c92198cc17679d: []
2024/12/27 19:32:02 [DEBUG] Stream attempt 3 out of 5
2024/12/27 19:32:02 [DEBUG] All streams skipped in lap 2
2024/12/27 19:32:02 [DEBUG] Setting tested indexes for session - 8e06e96ac1156728af808a754a4844ad8844f33c3182e593c8c92198cc17679d: []
2024/12/27 19:32:02 [DEBUG] Stream attempt 4 out of 5
2024/12/27 19:32:02 [DEBUG] All streams skipped in lap 3
2024/12/27 19:32:02 [DEBUG] Setting tested indexes for session - 8e06e96ac1156728af808a754a4844ad8844f33c3182e593c8c92198cc17679d: []
2024/12/27 19:32:04 [DEBUG] Stream attempt 5 out of 5
2024/12/27 19:32:04 [DEBUG] All streams skipped in lap 4
2024/12/27 19:32:04 [DEBUG] Setting tested indexes for session - 8e06e96ac1156728af808a754a4844ad8844f33c3182e593c8c92198cc17679d: []
2024/12/27 19:32:06 Error reloading stream for KLUv_QQAwQQAeyJ0aXRsZSI6IlVLIC0gQ0hBTk5FTCA0IEZIRCIsInR2Z19pZCI6IkNoYW5uZWw0LnVrIiwidHZnX2NoIjoiIiwibG9nbyI6Imh0dHA6Ly8xMDMuMTc2LjkwLjExOC9waWNvbnMtZGluby9sb2dvcy9jaGFubmVsNGhkLnBuZyIsImdyb3VwIjoifFVLfCBHRU5FUkFMIn1Gbbsy: Error fetching stream. Exhausted all streams.

@shorty789 shorty789 added the bug Something isn't working label Dec 27, 2024
@sonroyaalmerol sonroyaalmerol linked a pull request Dec 31, 2024 that will close this issue
3 tasks
@sonroyaalmerol
Copy link
Owner

Hi @shorty789. Can you try again with the latest release and send in the logs if it happens again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants