Channels DVR times out after 12s trying to fetch the playlist.m3u8 from the Samsung container
2024/10/26 15:15:13.825703 [ERR] Failed to request m3u for SamsungTVPlus: Get "http://192.168.1.3:8182/playlist.m3u8": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
To me, this says Channels DVR made the request at 2024/10/26 15:15:01
But the Samsung container shows the request at 2024/10/26 15:15:21, which is 20 seconds after Channels DVR made the request.
So 8 seconds after Channels DVR times out and disconnects, we get a Broken pipe exception.
Samsung container log
2024-10-26T22:15:21.774874689Z Including channels from regions: ['us']
2024-10-26T22:15:21.775205252Z 192.168.144.1 - - [26/Oct/2024 15:15:21] "GET /playlist.m3u8 HTTP/1.1" 200 -
2024-10-26T22:15:21.777449328Z 192.168.144.1 - - [26/Oct/2024 15:15:21] "GET /playlist.m3u8 HTTP/1.1" 500 -
2024-10-26T22:15:21.777787699Z ----------------------------------------
2024-10-26T22:15:21.777908451Z Exception occurred during processing of request from ('192.168.144.1', 44480)
2024-10-26T22:15:21.779876350Z Traceback (most recent call last):
2024-10-26T22:15:21.780945769Z File "/usr/src/app/./app.py", line 48, in do_GET
2024-10-26T22:15:21.781204142Z routes[func]()
2024-10-26T22:15:21.781378660Z File "/usr/src/app/./app.py", line 96, in _playlist
2024-10-26T22:15:21.781524574Z self.wfile.write(f'#EXTINF:-1 channel-id="{channel_id}" tvg-id="{key}" tvg-logo="{logo}" group-title="{group}"{chno},{name}\n{url}\n'.encode('utf8'))
2024-10-26T22:15:21.781676874Z File "/usr/local/lib/python3.12/socketserver.py", line 840, in write
2024-10-26T22:15:21.781803555Z self._sock.sendall(b)
2024-10-26T22:15:21.781905473Z BrokenPipeError: [Errno 32] Broken pipe
2024-10-26T22:15:21.782009662Z
2024-10-26T22:15:21.782094622Z During handling of the above exception, another exception occurred:
2024-10-26T22:15:21.782198372Z
2024-10-26T22:15:21.782279478Z Traceback (most recent call last):
2024-10-26T22:15:21.782994632Z File "/usr/local/lib/python3.12/socketserver.py", line 692, in process_request_thread
2024-10-26T22:15:21.783216446Z self.finish_request(request, client_address)
2024-10-26T22:15:21.783465992Z File "/usr/local/lib/python3.12/socketserver.py", line 362, in finish_request
2024-10-26T22:15:21.783672885Z self.RequestHandlerClass(request, client_address, self)
2024-10-26T22:15:21.783819644Z File "/usr/src/app/./app.py", line 23, in __init__
2024-10-26T22:15:21.783932717Z super().__init__(*args, **kwargs)
2024-10-26T22:15:21.784028259Z File "/usr/local/lib/python3.12/socketserver.py", line 761, in __init__
2024-10-26T22:15:21.784128136Z self.handle()
2024-10-26T22:15:21.784226555Z File "/usr/local/lib/python3.12/http/server.py", line 436, in handle
2024-10-26T22:15:21.784396009Z self.handle_one_request()
2024-10-26T22:15:21.784528152Z File "/usr/local/lib/python3.12/http/server.py", line 424, in handle_one_request
2024-10-26T22:15:21.784892417Z method()
2024-10-26T22:15:21.785022207Z File "/usr/src/app/./app.py", line 50, in do_GET
2024-10-26T22:15:21.785133745Z self._error(e)
2024-10-26T22:15:21.785230833Z File "/usr/src/app/./app.py", line 27, in _error
2024-10-26T22:15:21.785374280Z self.end_headers()
2024-10-26T22:15:21.785496450Z File "/usr/local/lib/python3.12/http/server.py", line 538, in end_headers
2024-10-26T22:15:21.785606428Z self.flush_headers()
2024-10-26T22:15:21.785697012Z File "/usr/local/lib/python3.12/http/server.py", line 542, in flush_headers
2024-10-26T22:15:21.785800081Z self.wfile.write(b"".join(self._headers_buffer))
2024-10-26T22:15:21.785899353Z File "/usr/local/lib/python3.12/socketserver.py", line 840, in write
2024-10-26T22:15:21.785999264Z self._sock.sendall(b)
2024-10-26T22:15:21.786087818Z BrokenPipeError: [Errno 32] Broken pipe
2024-10-26T22:15:21.786179593Z ----------------------------------------
Same thing again
2024/10/26 15:15:25.847026 [ERR] Failed to request m3u for SamsungTVPlusGracenote: Get "http://192.168.1.3:8182/playlist.m3u8": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
Samsung container log
2024-10-26T22:15:33.560914247Z Including channels from regions: ['us']
2024-10-26T22:15:33.561195371Z 192.168.144.1 - - [26/Oct/2024 15:15:33] "GET /playlist.m3u8 HTTP/1.1" 200 -
2024-10-26T22:15:33.563581368Z 192.168.144.1 - - [26/Oct/2024 15:15:33] "GET /playlist.m3u8 HTTP/1.1" 500 -
2024-10-26T22:15:33.563876285Z ----------------------------------------
2024-10-26T22:15:33.564048296Z Exception occurred during processing of request from ('192.168.144.1', 44482)
2024-10-26T22:15:33.566271507Z Traceback (most recent call last):
2024-10-26T22:15:33.567308958Z File "/usr/src/app/./app.py", line 48, in do_GET
2024-10-26T22:15:33.567578127Z routes[func]()
2024-10-26T22:15:33.567756765Z File "/usr/src/app/./app.py", line 96, in _playlist
2024-10-26T22:15:33.567876033Z self.wfile.write(f'#EXTINF:-1 channel-id="{channel_id}" tvg-id="{key}" tvg-logo="{logo}" group-title="{group}"{chno},{name}\n{url}\n'.encode('utf8'))
2024-10-26T22:15:33.568022258Z File "/usr/local/lib/python3.12/socketserver.py", line 840, in write
2024-10-26T22:15:33.568148127Z self._sock.sendall(b)
2024-10-26T22:15:33.568257951Z BrokenPipeError: [Errno 32] Broken pipe
2024-10-26T22:15:33.568425334Z
2024-10-26T22:15:33.568528515Z During handling of the above exception, another exception occurred:
2024-10-26T22:15:33.568636881Z
2024-10-26T22:15:33.568718266Z Traceback (most recent call last):
2024-10-26T22:15:33.569821053Z File "/usr/local/lib/python3.12/socketserver.py", line 692, in process_request_thread
2024-10-26T22:15:33.570101846Z self.finish_request(request, client_address)
2024-10-26T22:15:33.570298345Z File "/usr/local/lib/python3.12/socketserver.py", line 362, in finish_request
2024-10-26T22:15:33.570580709Z self.RequestHandlerClass(request, client_address, self)
2024-10-26T22:15:33.570748220Z File "/usr/src/app/./app.py", line 23, in __init__
2024-10-26T22:15:33.570897983Z super().__init__(*args, **kwargs)
2024-10-26T22:15:33.571043355Z File "/usr/local/lib/python3.12/socketserver.py", line 761, in __init__
2024-10-26T22:15:33.571192915Z self.handle()
2024-10-26T22:15:33.571622028Z File "/usr/local/lib/python3.12/http/server.py", line 436, in handle
2024-10-26T22:15:33.571847537Z self.handle_one_request()
2024-10-26T22:15:33.571991319Z File "/usr/local/lib/python3.12/http/server.py", line 424, in handle_one_request
2024-10-26T22:15:33.572553375Z method()
2024-10-26T22:15:33.572735818Z File "/usr/src/app/./app.py", line 50, in do_GET
2024-10-26T22:15:33.572883291Z self._error(e)
2024-10-26T22:15:33.573016765Z File "/usr/src/app/./app.py", line 27, in _error
2024-10-26T22:15:33.573160596Z self.end_headers()
2024-10-26T22:15:33.573290232Z File "/usr/local/lib/python3.12/http/server.py", line 538, in end_headers
2024-10-26T22:15:33.573537161Z self.flush_headers()
2024-10-26T22:15:33.573677879Z File "/usr/local/lib/python3.12/http/server.py", line 542, in flush_headers
2024-10-26T22:15:33.573835477Z self.wfile.write(b"".join(self._headers_buffer))
2024-10-26T22:15:33.573982578Z File "/usr/local/lib/python3.12/socketserver.py", line 840, in write
2024-10-26T22:15:33.574131134Z self._sock.sendall(b)
2024-10-26T22:15:33.574267221Z BrokenPipeError: [Errno 32] Broken pipe
2024-10-26T22:15:33.574518319Z ----------------------------------------
This has happened 12 times this month so far
2024/10/05 11:15:14.032575 [ERR] Failed to request m3u for SamsungTVPlusGracenote: Get "http://192.168.1.3:8182/playlist.m3u8": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024/10/05 12:15:09.694490 [ERR] Unexpected m3u response for SamsungTVPlus: 500 Internal Server Error
2024/10/05 12:15:21.712464 [ERR] Failed to request m3u for SamsungTVPlusGracenote: Get "http://192.168.1.3:8182/playlist.m3u8": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024/10/05 13:15:13.406329 [ERR] Failed to request m3u for SamsungTVPlus: Get "http://192.168.1.3:8182/playlist.m3u8": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024/10/05 13:15:25.428759 [ERR] Failed to request m3u for SamsungTVPlusGracenote: Get "http://192.168.1.3:8182/playlist.m3u8": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024/10/07 09:15:11.719993 [ERR] Unexpected m3u response for SamsungTVPlus: 500 Internal Server Error
2024/10/24 11:15:14.031980 [ERR] Failed to request m3u for SamsungTVPlus: Get "http://192.168.1.3:8182/playlist.m3u8": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024/10/24 11:15:26.050362 [ERR] Failed to request m3u for SamsungTVPlusGracenote: Get "http://192.168.1.3:8182/playlist.m3u8": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024/10/26 03:15:13.382200 [ERR] Failed to request m3u for SamsungTVPlus: Get "http://192.168.1.3:8182/playlist.m3u8": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024/10/26 03:15:25.403142 [ERR] Failed to request m3u for SamsungTVPlusGracenote: Get "http://192.168.1.3:8182/playlist.m3u8": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024/10/26 15:15:13.825703 [ERR] Failed to request m3u for SamsungTVPlus: Get "http://192.168.1.3:8182/playlist.m3u8": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024/10/26 15:15:25.847026 [ERR] Failed to request m3u for SamsungTVPlusGracenote: Get "http://192.168.1.3:8182/playlist.m3u8": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
Anyone else experiencing this?