There was an unexpected error

Currently, on the latest beta and stable (I’ve tried both) I’m not sure what has been causing this live TV issue lately, but I have rolled back to previous Plex versions with no luck.

Is there any way that I can blow away the Live TV settings without the web interface?

Logs: Oct 20, 2021 14:40:38.913 [0x7f1f43e79b38] INFO - Plex Tuner Service v1.0.0.0 - - Pastebin.com

same here on Version 1.24.4.5081

any opinion?

try the following
go to plex.tv into your account, Settings - Transcoding, find Disable video stream transcoding and unmark it

1 Like

hello @serge35 !

It is already unchecked in my settings.
But this is not a transcoding problem.

I have got the error message in Manage/Live TV and DVR. Got the same screen like BudigeBird.

Any other opinion?

M.

Can you see via console the exactly error message when it happens?

Oct 21, 2021 14:46:32.410 [0x7fac520e7b38] Debug — WebSocket: Performing handshake from origin https://app.plex.tv
Oct 21, 2021 14:46:32.411 [0x7fac520e7b38] Debug — Beginning read from WebSocket
Oct 21, 2021 14:46:32.463 [0x7fac50aebb38] Debug — Request: [192.168.1.1:61993 (Subnet)] GET /activities (11 live) TLS GZIP Signed-in Token (***)
Oct 21, 2021 14:46:32.464 [0x7fac50e9db38] Debug — Completed: [192.168.1.1:61993] 200 GET /activities (11 live) TLS GZIP 0ms 475 bytes (pipelined: 20)

thats all, no error message in console

Ok, i can find this in Plex Media Server.log:

Oct 21, 2021 15:20:17.121 [0x7fac50b31b38] DEBUG - Request: [192.168.1.1:51567 (Subnet)] GET /livetv/dvrs (11 live) TLS GZIP Signed-in Token ()
Oct 21, 2021 15:20:17.123 [0x7fac50e9db38] DEBUG - Completed: [192.168.1.1:51567] 200 GET /livetv/dvrs (11 live) TLS GZIP 2ms 2589 bytes (pipelined: 2)
Oct 21, 2021 15:20:17.157 [0x7fac50ae7b38] DEBUG - Request: [192.168.1.1:51567 (Subnet)] GET /livetv/dvrs (11 live) TLS GZIP Signed-in Token (
)
Oct 21, 2021 15:20:17.159 [0x7fac50e7ab38] DEBUG - Completed: [192.168.1.1:51567] 200 GET /livetv/dvrs (11 live) TLS GZIP 2ms 2568 bytes (pipelined: 3)
Oct 21, 2021 15:20:17.185 [0x7fac50a99b38] DEBUG - Request: [192.168.1.1:51567 (Subnet)] GET /livetv/epg/lineupchannels?lineup=lineup%3A%2F%2Ftv.plex.providers.epg.xmltv%2Fhttps%253A%252F%252Fguidex.ml%252Fall%252Fguide.xml%23MindigTV%2520Guide (11 live) TLS GZIP Signed-in Token ()
Oct 21, 2021 15:20:17.186 [0x7fac50b31b38] DEBUG - Request: [192.168.1.1:49383 (Subnet)] GET /media/grabbers/devices/1/channels (11 live) TLS GZIP Signed-in Token (
)
Oct 21, 2021 15:20:17.186 [0x7fac50a99b38] DEBUG - HTTP requesting GET https://guidex.ml/all/guide.xml
Oct 21, 2021 15:20:17.186 [0x7fac50ae7b38] DEBUG - Request: [192.168.1.1:50441 (Subnet)] GET /tv.plex.providers.epg.xmltv:46/lineups/dvr/channels (11 live) TLS GZIP Signed-in Token ()
Oct 21, 2021 15:20:17.186 [0x7fac50b31b38] DEBUG - HTTP requesting GET http://192.168.1.211:80/lineup.json
Oct 21, 2021 15:20:17.187 [0x7fac50ae7b38] DEBUG - HTTP requesting GET https://guidex.ml/all/guide.xml
Oct 21, 2021 15:20:17.199 [0x7fac50b31b38] DEBUG - HTTP/1.1 (0.0s) 200 response from GET http://192.168.1.211:80/lineup.json
Oct 21, 2021 15:20:17.200 [0x7fac50e7ab38] DEBUG - Completed: [192.168.1.1:49383] 200 GET /media/grabbers/devices/1/channels (11 live) TLS GZIP 14ms 753 bytes (pipelined: 2)
Oct 21, 2021 15:20:17.333 [0x7fac50ae7b38] DEBUG - HTTP/2.0 (0.1s) 200 response from GET https://guidex.ml/all/guide.xml
Oct 21, 2021 15:20:17.333 [0x7fac50ae7b38] DEBUG - EPG[tv.plex.providers.epg.xmltv]: successfully downloaded XMLTV data at https://guidex.ml/all/guide.xml to /var/packages/PlexMediaServer/shares/PlexMediaServer/AppData/tmp/7767-13eb-89a0-4cf4.xml
Oct 21, 2021 15:20:17.334 [0x7fac50ae7b38] ERROR - EPG[tv.plex.providers.epg.xmltv]: malformed data detected in XMLTV file /https%3A%2F%2Fguidex.ml%2Fall%2Fguide.xml
Oct 21, 2021 15:20:17.334 [0x7fac50e9db38] DEBUG - Completed: [192.168.1.1:50441] 200 GET /tv.plex.providers.epg.xmltv:46/lineups/dvr/channels (11 live) TLS GZIP 148ms 475 bytes (pipelined: 2)
Oct 21, 2021 15:20:17.361 [0x7fac50a99b38] DEBUG - HTTP/2.0 (0.2s) 200 response from GET https://guidex.ml/all/guide.xml
Oct 21, 2021 15:20:17.362 [0x7fac50a99b38] DEBUG - EPG[tv.plex.providers.epg.xmltv]: successfully downloaded XMLTV data at https://guidex.ml/all/guide.xml to /var/packages/PlexMediaServer/shares/PlexMediaServer/AppData/tmp/b6f3-327b-ae69-214f.xml
Oct 21, 2021 15:20:17.362 [0x7fac50a99b38] ERROR - EPG[tv.plex.providers.epg.xmltv]: malformed data detected in XMLTV file /https%3A%2F%2Fguidex.ml%2Fall%2Fguide.xml
Oct 21, 2021 15:20:17.362 [0x7fac50e9db38] DEBUG - Completed: [192.168.1.1:51567] 200 GET /livetv/epg/lineupchannels?lineup=lineup%3A%2F%2Ftv.plex.providers.epg.xmltv%2Fhttps%253A%252F%252Fguidex.ml%252Fall%252Fguide.xml%23MindigTV%2520Guide (11 live) TLS GZIP 177ms 589 bytes (pipelined: 4)
Oct 21, 2021 15:20:33.718 [0x7fac50e7ab38] DEBUG - Completed: [192.168.1.1:64658] 200 GET /player/proxy/poll?deviceClass=pc&protocolVersion=3&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (11 live) TLS GZIP 20001ms 5 bytes (pipelined: 22)
Oct 21, 2021 15:20:33.728 [0x7fac50a99b38] DEBUG - Request: [192.168.1.1:64658 (Subnet)] GET /player/proxy/poll?deviceClass=pc&protocolVersion=3&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (11 live) TLS GZIP Signed-in Token (
)
Oct 21, 2021 15:20:33.728 [0x7fac50a99b38] DEBUG - Content-Length is -1 (of total: -1).

I have checket, my epg link is broken. Maybe this causes the problem. But now I cant change the epge, cannot modify anythig, because I got the error message in UI.

M.

That’s where I’m at as well. I’ve re-started my Live TV m3u and tuner, which will get the TV streaming again in Plex but I cannot edit anything from the web settings.

my problem has been fixed, because epg link is working again.
But its a bug in plex!

M.

Hi - I’ve been experiencing the same thing as well. I originally set it up with xTeVe and all worked well but then everything stopped and the same error message comes up as BudgieBird above.

Rebuilt xTeVe but same thing. Interestingly when I restart plexmediaserver (running it on Ubuntu), then you go to the “Live TV & DVR”, it flashes up the screen showing the tuners for about half a second then goes to the error screen.

Any ideas on how I can manually delete the DVR without the Web interface? I’ve seen somewhere that you can remove and reference to DVR from the DB but I don’t want to be going in there and messing with that.

Thanks.

Same problem with xteve.

Also, upon restart, it does the same as flashing for about 1/2 a second and then goes to the error message.

I’d rather not blow it all away with a fresh install since scanning the database in again takes forever.

I see the same issue on my server regardless of the player and have for about two weeks now. I have rolled back to stable versions and updated to new beta releases of PMS in hopes that one of would fix it, but even just going to the guide on any device gives me the error above. Looking in the server console there is an error when a client tried to read the EPG:

Oct 25, 2021 08:19:11.442 [22272] Debug — Request: [x.x.x.x:xxxx (Allowed Network (Subnet))] GET /tv.plex.providers.epg.cloud:2/grid?beginsAt%3C=1635185951&endsAt%3E=1635160750&type=1%2C4 (24 live) TLS GZIP Signed-in Token (WxFisch)
Oct 25, 2021 08:19:11.443 [22272] Error — SQLITE3:0x8fc44e46, 11, database corruption at line 67183 of [1b256d97b5]
Oct 25, 2021 08:19:11.443 [22272] Error — SQLITE3:0x8fc44e46, 11, statement aborts at 31: [select distinct grandparents.id as metadata_items_grandparents_id,grandparents.title as metadata_items_grandparents_title,grandparents.user_thumb_url as metadata_items_grandparents_use
Oct 25, 2021 08:19:11.444 [22272] Error — Soci Exception handled: sqlite3_statement_backend::loadRS: database disk image is malformed
Oct 25, 2021 08:19:11.444 [18288] Debug — Completed: [x.x.x.x:xxxx] 500 GET /tv.plex.providers.epg.cloud:2/grid?beginsAt%3C=1635185951&endsAt%3E=1635160750&type=1%2C4 (24 live) TLS GZIP 2ms 405 bytes (pipelined: 7)
Oct 25, 2021 08:19:11.841 [19000] Debug — NetworkServiceBrowser: PLAYER arrived: 10.2.7.100

Which seems to indicate there is database corruption when the server attempts to build the EPG.

What is more frustrating than this however is that after 4 days of activity in this topic, a dev or support staff have not dropped by to even say “hey that is weird, we should maybe look into it”. Live TV/DVR is as usual ignored by plex. Probably going to have to look at other products here pretty soon since plex devs seem to not even want to fix bugs in this portion of their product any more.

1 Like

While you could use the repair procedures on the EPG database, it is usually easier to stop Plex server and delete the 3 tv.plex.providers.* files. I would still perform the repair on the main database to be sure it is healthy. A good indication that it isn’t would be if you don’t see backup files that occur every three days for the last 10 days.

Thanks, I have repaired both databases and still see the issue, I will try removing the epg databases to see if that helps.

Ok so I’ve removed the 3 files as well when plexmediaserver is stopped. repaired the DB but still nothing. Same thing.

I can’t believe there isn’t something in a config file or the DB which references your DVR which you can just delete.

Will keep searching…

Table is media_provider_resources in the main database.

1 Like

I have no idea if this is the right forum, but our local OTA provider for NBC changed from UHF to VHF and updated their guide numbers. Originally it was 11.1 for KARE-TV and now they’ve moved that to 11.11 and updated 11.1 to KARE-HD. I can watch the correct channel (11.1. 11.11 just plays a how-to video from the news channel on updating your channel guide) from my HDHR app on my computer, but when i try and play it through PLEX (before and after a full rescan) it still associates the guide channel 11.1 to 11.11.

Things i’ve tried:
clearing db cache
debugging the minified JS to modify the payloads coming back from certain endpoints.

The second step there i noticed that this endpoint:

https://[privatestuff].plex.direct:32400/media/grabbers/devices/1/channels?X-Plex-Product=Plex%20Web&X-Plex-Version=4.63.0&X-Plex-Client-Identifier=[private]&X-Plex-Platform=Chrome&X-Plex-Platform-Version=94.0&X-Plex-Sync-Version=2&X-Plex-Features=external-media%2Cindirect-media&X-Plex-Model=bundled&X-Plex-Device=Windows&X-Plex-Device-Name=Chrome&X-Plex-Device-Screen-Resolution=1920x579%2C1920x1080&X-Plex-Token=xxxxxxx&X-Plex-Language=en

was returning duplicate information based on the key:

<DeviceChannel key="triplet://0:1589:3" identifier="11.11" name="KARE-TV" drm="0" hd="0" favorite="0" signalStrength="99" signalQuality="88"/>

<DeviceChannel key="triplet://0:1589:3" identifier="11.1" name="KARE-HD" drm="0" hd="0" favorite="0" signalStrength="100" signalQuality="97"/>

I followed some oother endpoints and matched that key above to some more responses and noticed that there was 2 entries for the one key but one had missing information.

{
        "channelKey": "5fc76e23eb8098002d84fed2-5fc705f7088e7d002d4c718e",
        "deviceIdentifier": "triplet://0:1589:3",
        "favorite": "0",
        "lineupIdentifier": "11.1",
        "enabled": true
    },
    {
        "deviceIdentifier": "triplet://0:1589:3",
        "favorite": "0",
        "enabled": false
    },

I dont know where the first endpoint thats returning the xml is coming from but it does correspond to the information i see in the hdhomerun_setup.exe app. I have a pretty old tuner so i cant favorite or exclude channels and it seems like PLEX is doing some nifty matching based on deviceIdentifier and channelKey and is choosing the incorrect channel when i get to the point where i map channels to EPG.

Has anyone ran into this or have any ideas? Super annoying that i cant mux my own channels like i used to with tvheadend (albeit a super big pain).

From hdhomerun_config scan i see:

SCANNING: 575000000 (us-bcast:31)
LOCK: 8vsb (ss=100 snq=86 seq=100)
TSID: 0x0635
PROGRAM 3: 11.1 KARE-HD <-- the new one
PROGRAM 4: 11.2 CourtTV
PROGRAM 5: 11.3 Crime
PROGRAM 6: 11.4 Quest
PROGRAM 7: 11.5 Circle

SCANNING: 201000000 (us-bcast:11)
LOCK: 8vsb (ss=99 snq=84 seq=100)
TSID: 0x0635
PROGRAM 3: 11.11 KARE-TV <-- the old one

I also did submit the EPG guide inconsistency form with this information but havent heard back at all.

Moved to here: Rescan can't find channel that changed to UHF - #6 by janstadt

1 Like

Disregard, just needed to follow the link back to the full thread…

@janstadt show me what you’re channel mappings look like in your tuner setup.

example:

Thanks Tieberius - I’ve deleted the table media_provider_resources and both restarted plex media server and rebooted the entire server. Still the same error message.

I then copied back a backup of the DB and did the same again but left the table in place but just deleted all the records so I ended up with an empty table. Still the same error message.

Completely stuck now as plex knows there are no providers but still errors. I’m now walking through the DB to see if I can find anything obvious but its like looking for a needle in a haystack.

Plex Support - can you not look into this as it seems a lot of people have this issue and you push Live TV and DVR as way to sign people up to plex pass.