Pluto for Channels

I have been running Pluto on Docker on my Mac since it was first released and never touched it. No issues. Today I installed Stirr for Docker and that went fine, but afterwards I lost my Guide data for Pluto. In an effort to try and fix things, I stopped Pluto on Docker and then deleted it from Docker Desktop. I then re-ran the command to load it again and it started up. If I go to http://127.0.0.1:8080 , I get the Pluto page with links to m3u and epg. It says V1.0.17, (V1.2 available). When I click on either link to m3u or epg, I get 404 errrors. I've tried repeating this and same result. Any idea what is causing this? This is the url/port I was using before.

Did you change the port for STIRR? in this command:
docker run -d --restart unless-stopped --name stirr-for-channels -p 8080:80 robbiet480/stirr-for-channels
If not you are going to have issues - I changed it to 8081 and no issues with Pluto or STIRR

I think the confusion is how do u change the port? I couldn't figure it out for the life of me.

I followed the Stirr instructions on GitHub which uses port 8181, so that should be fine.

1 Like

I deleted everything for Pluto and Stirr and started over and its all working OK now. Seems like its possible for something to get out of whack and that seems to be the resolution I'm seeing several people say from time to time. I'm just glad that it remembers the collections across deleting a source and adding it back like this.

I did the same with stirr, deleted everything & re added it back. Now no issues.

Getting errors now grabbing EPG from Pluto in the console logs. Did they make an API change ?

    [INFO] Grabbing EPG...                                                                                                                                                                                                                  

http://api.pluto.tv/v2/channels?start=2021-05-03%2000%3A00%3A00.000%2B0000&stop=2021-05-03%2006%3A00%3A00.000%2B0000
http://api.pluto.tv/v2/channels?start=2021-05-03%2006%3A00%3A00.000%2B0000&stop=2021-05-03%2012%3A00%3A00.000%2B0000
http://api.pluto.tv/v2/channels?start=2021-05-03%2012%3A00%3A00.000%2B0000&stop=2021-05-03%2018%3A00%3A00.000%2B0000
http://api.pluto.tv/v2/channels?start=2021-05-03%2018%3A00%3A00.000%2B0000&stop=2021-05-04%2000%3A00%3A00.000%2B0000
undefined:1
undefined
^

SyntaxError: Unexpected token u in JSON at position 0
at JSON.parse ()
at Request._callback (/usr/src/app/index.js:120:26)
at self.callback (/usr/src/app/node_modules/request/request.js:185:22)
at Request.emit (events.js:210:5)
at Request.onRequestError (/usr/src/app/node_modules/request/request.js:877:8)
at ClientRequest.emit (events.js:210:5)
at Socket.socketErrorListener (_http_client.js:407:9)
at Socket.emit (events.js:210:5)
at emitErrorNT (internal/streams/destroy.js:84:8)
at processTicksAndRejections (internal/process/task_queues.js:80:21)

Hi
My EPG is not updating.
Error from docker logs is>

PS C:\Windows\system32> docker logs pluto-for-channels
[INFO] Grabbing EPG...
http://api.pluto.tv/v2/channels?start=2021-05-03%2013%3A00%3A00.000%2B0000&stop=2021-05-03%2019%3A00%3A00.000%2B0000
http://api.pluto.tv/v2/channels?start=2021-05-03%2019%3A00%3A00.000%2B0000&stop=2021-05-04%2001%3A00%3A00.000%2B0000
http://api.pluto.tv/v2/channels?start=2021-05-04%2001%3A00%3A00.000%2B0000&stop=2021-05-04%2007%3A00%3A00.000%2B0000
http://api.pluto.tv/v2/channels?start=2021-05-04%2007%3A00%3A00.000%2B0000&stop=2021-05-04%2013%3A00%3A00.000%2B0000
undefined:1
undefined
^

SyntaxError: Unexpected token u in JSON at position 0
at JSON.parse ()
at Request._callback (/usr/src/app/index.js:120:26)
at self.callback (/usr/src/app/node_modules/request/request.js:185:22)
at Request.emit (events.js:210:5)
at Request.onRequestError (/usr/src/app/node_modules/request/request.js:877:8)
at ClientRequest.emit (events.js:210:5)
at Socket.socketErrorListener (_http_client.js:407:9)
at Socket.emit (events.js:210:5)
at emitErrorNT (internal/streams/destroy.js:84:8)
at processTicksAndRejections (internal/process/task_queues.js:80:21)

mv: can't rename '*playlist.m3u': No such file or directory
Last ran: Mon May 3 13:37:17 UTC 2021
mv: can't rename '*epg.xml': No such file or directory
2021/05/03 13:37:41 [error] 10#10: *1 open() "/usr/share/nginx/html/playlist.m3u" failed (2: No such file or directory), client: 192.168.1.250, server: localhost, request: "GET /playlist.m3u HTTP/1.1", host: "192.168.1.250:7979"
192.168.1.250 - - [03/May/2021:13:37:41 +0000] "GET /playlist.m3u HTTP/1.1" 404 153 "-" "Go-http-client/1.1" "-"
2021/05/03 13:38:02 [error] 10#10: *2 open() "/usr/share/nginx/html/epg.xml" failed (2: No such file or directory), client: 192.168.1.250, server: localhost, request: "GET /epg.xml HTTP/1.1", host: "192.168.1.250:7979"
192.168.1.250 - - [03/May/2021:13:38:02 +0000] "GET /epg.xml HTTP/1.1" 404 153 "-" "Mozilla/5.0 ChannelsDVR+XMLTV/1.0" "-"
192.168.1.250 - - [03/May/2021:13:42:38 +0000] "GET /playlist.m3u HTTP/1.1" 404 153 "-" "Go-http-client/1.1" "-"
2021/05/03 13:42:38 [error] 10#10: *3 open() "/usr/share/nginx/html/playlist.m3u" failed (2: No such file or directory), client: 192.168.1.250, server: localhost, request: "GET /playlist.m3u HTTP/1.1", host: "192.168.1.250:7979"
192.168.1.250 - - [03/May/2021:13:42:41 +0000] "GET /epg.xml HTTP/1.1" 404 153 "-" "Mozilla/5.0 ChannelsDVR+XMLTV/1.0" "-"
2021/05/03 13:42:41 [error] 10#10: *4 open() "/usr/share/nginx/html/epg.xml" failed (2: No such file or directory), client: 192.168.1.250, server: localhost, request: "GET /epg.xml HTTP/1.1", host: "192.168.1.250:7979"

My guide data isn’t loading at all. Even if I reload M3u or redownload guide data. I’m getting nothing.

This error looks like it’s not able to write out the final text files it creates. This would make me wonder about a permissions problem or possibly disk space/quota issue.

I just checked and my Pluto guide data is still working fine so whatever the issue is, it’s not affecting everybody.

Hi
It’s strange, because it was working just fine till yesterday.
Nothing change on my side. It’s working on a Windows server 2019 for a long time.
If developer could share thoughts on this we appreciated.
Thank you very much

This is the error you will get if the download from Pluto doesn't get any data (cache.json is empty). Either a glitch with Pluto (but it would have to be something like a CDN problem, since others aren't having a problem) or something happened with the internet access from your server.

In my case I'm getting the same error and I can manually wget each of the same URLs it is trying without issues. I realize CDNs can change quickly but it would be strange for the container to have issues while the container host has none.

So your container can't access the urls. Maybe something with the container networking. Or DNS not working. The container can't reach a localhost DNS without configuration changes. So if your Pi is your DNS server, that could cause issue. You can change the container DNS from the docker run command.

For me it is QNAP's Container Station - they've broken something with virtual switches again. I moved the container to another host and it works fine now.

2 Likes

Thank you all for your help.
Don’t know what happened in my case.
I just end up removing Pluto for channels docker and installing again , and it just work ok.
Crazy Windows probably messed up something :confused:

1 Like

Docker sometimes closes itself on my Windows 10 machine. Anyone else notice this happening?

Windows does strange things sometimes. But docker containers often don't stay up forever on any OS. Once in awhile my Pi container restarts do to some issue, but always just restarts automatically on my RPi. Currently up for 8 days.

1 Like

The mini PC I am using (Deskmini first generation) has some known flaky issues, especially in silent mode where it can run a bit warm. Running a few servers and docker it stays cool to the touch as expected. I will keep an eye on docker and see if there is a pattern or maybe schedule a task to make sure it stays open.

New release is out. This new version attempts to pull in the season/episode information that some airings put into their episode description. Some descriptions look like this now:

(S04E05) Sarah does her best to find the killer while Bill eats donuts and plays Minecraft all day.

Version: 1.2.1

Notes

  • Does a better job capturing season and episode numbers when episodes provide them in their description.
6 Likes