Docker help needed for MLB.TV for Channels

Here's the Channels log:

2021/07/19 21:22:02.157297 [M3U] stream timestamps: mlb-stl: start_at=2021-07-19T17:44:57-05:00 current_at=2021-07-19T21:21:40-05:00 end_at=2021-07-19T21:21:50-05:00
2021/07/19 21:22:02.157297 [TNR] Opened connection to M3U-MLBtv for ch788 St Louis Cardinals
2021/07/19 21:32:48.755730 [TNR] Closed connection to M3U-MLBtv for ch788 St Louis Cardinals
2021/07/19 21:39:30.223162 [TNR] Opened connection to TVE-Hulu for ch6004 KETC
2021/07/19 21:39:55.141894 [TNR] Closed connection to TVE-Hulu for ch6004 KETC
2021/07/19 21:40:12.488062 [TVE] stream timestamps: tntp: start_at=2021-07-19T21:30:10-05:00 current_at=2021-07-19T21:39:47-05:00 end_at=2021-07-19T21:39:59-05:00
2021/07/19 21:40:12.488062 [TNR] Opened connection to TVE-Hulu for ch6036 TNTP
2021/07/19 22:00:25.778052 [TNR] Closed connection to TVE-Hulu for ch6036 TNTP
2021/07/19 22:00:32.363796 [M3U] stream timestamps: mlb-stl: start_at=2021-07-19T17:44:57-05:00 current_at=2021-07-19T22:00:13-05:00 end_at=2021-07-19T22:00:23-05:00
2021/07/19 22:00:32.363796 [TNR] Opened connection to M3U-MLBtv for ch788 St Louis Cardinals
2021/07/19 22:01:10.664038 [TNR] Closed connection to M3U-MLBtv for ch788 St Louis Cardinals
2021/07/19 22:03:18.983084 [ERR] Could not start stream for M3U-MLBtv ch788 St Louis Cardinals: M3U: Could not fetch playlist: http://192.168.68.93:8080/playlist/STL: Get "http://192.168.68.93:8080/playlist/STL": dial tcp 192.168.68.93:8080: connectex: No connection could be made because the target machine actively refused it.
2021/07/19 22:03:25.024062 [ERR] Could not start stream for M3U-MLBtv ch788 St Louis Cardinals: M3U: Could not fetch playlist: http://192.168.68.93:8080/playlist/STL: Get "http://192.168.68.93:8080/playlist/STL": dial tcp 192.168.68.93:8080: connectex: No connection could be made because the target machine actively refused it.

Some additional context: The Closed streams were all user-initiated because the stream had hung. The “Could not fetch playlist” errors were when I tried to pull up the stream after it hung and was shown the error in the photo above.

What device is using IP address 192.168.68.93? Is it set with a static address? Looks like it’s hard coded into your m3u?

I have a headless Mini PC that’s running Channels and Docker.

So the 192.168.68.93 address is permanent for it?

I ask because the error messages indicate connectivity issues to the server at that address. Just trying to make sure it’s not changing IP addresses.

It's permanent – hard-wired into a gigabit switch and assigned by my router.

So both TVE and m3u streams hang?

Something (at least in the MLB docker) is closing the connection as if the docker container hung or a firewall/virus scanner is preventing access if that's the IP:port of the container.

dial tcp 192.168.68.93:8080: connectex: No connection could be made because the target machine actively refused it.

Did you check your Docker logs and the Docker Container logs for errors?

Possibly Windows Docker issue

alright, where are the docker experts? now I need your help...my dev server that I run this container on keeps randomly shutting down the container overnight. I look at the logs and it says there was a sigterm sent, and the container shuts down... it's happening to ALL of my containers.

anyone have any idea what the hell is going on and how I get it to stop doing that?

I am seeing the following in my log, but nothing appears when I go to http://192.168.1.108:8089/m3u or http://192.168.1.108:8089/epg

2022-03-27 18:10:37,602 INFO supervisord started with pid 1
2022-03-27 18:10:38,609 INFO spawned: 'nginx' with pid 9
2022-03-27 18:10:38,617 INFO spawned: 'php-fpm' with pid 10
[27-Mar-2022 18:10:39] NOTICE: fpm is running, pid 10
[27-Mar-2022 18:10:39] NOTICE: ready to handle connections
2022-03-27 18:10:40,200 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-03-27 18:10:40,200 INFO success: php-fpm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

1 Like

channels runs on port 8089. you should be looking at the port you have your mlb container on, not 8089.

Thanks. No change though after redeploying it as 8087 instead. I get the same message on the log and nothing then i go to the URL.

something definitely isn't right then, but i'm not a docker expert to be able to tell you where to look next. i'll let someone else weigh in with any pertinent questions, hopefully we can get it sorted out...

in the meanwhile, can you post your docker-compose file here (remove any MLB credentials, of course)? that's probably a good place to start...

Thanks for the suggestion. I ran the following command using PuTTY from my Win 10 laptop to my ReadyNAS drive that has Docker installed.

docker run \
       -p 8087:8087 --name channels-baseball \
       -v storage_app:/var/www/html/storage/app \
       -v storage_logs:/var/www/html/storage/logs \
       -e APP_URL='http://192.168.1.108:8087' \
       -e MLB_USERNAME='xxx' -e MLB_PASSWORD='xxx' \
       -e MLB_PLAYLIST_FIRST_CHANNEL='777' \
       -e MLB_TEAM_ORDER='NYM,SDP,PIT,LAA,ATL,MIA,PHI,WAS,CHC,CIN,MIL,STL,ARI,COL,LAD,SFG,BAL,BOS,NYY,TBR,TOR,CWS,CLE,DET,KCR,MIN,HOU,OAK,SEA,TEX' \
       -e MLB_BITRATE='5600' \
       -e MLB_TIMEZONE='America/Los_Angeles' \
       matty8199/channels-baseball:1.6.1

try changing the port option from 8087:8087 to 8087:8080 and leave everything else the same.

That seemed to help! But I'm not there yet. Now when I tune to a live game in Channels, i get the following screen that says "You are not entitled to view this stream." Is this a known issue? The stream works in the mlb.tv app.

What issue? Have you paid your subscription? It is a known issue that If you don’t pay, you don’t get to play.

Or it thinks it’s a blackout?

The Mets fans are all over this thread right now! Probably because SNY is broken and we're trying to figure out alternatives.
I just subscribed to the 7 day trial and the stream i am trying to play, plays both in the MLB app on my phone and on the MLB.tv app on my Apple tv. But no luck getting any stream working in Channels for the first time

No idea. I can’t do anything until free mlb from T-Mobile next week.

Are you located in the NYC metro area? It may be a still be a blackout. See if you can view other teams without issue. If it is a blackout issue PM me (and anyone else that has the issue) and I will help you correct it. No VPN's, modified code or anything illegal. (I'm not going to give instructions here because the author of the docker container asked me not to so I want to respect his wishes but I will gladly help with in-market issues).

1 Like

7 day trial brings you right up to the tmobile Tuesday day

1 Like

But he said it works in the mlb.tv app, so that wouldn't explain it...