I am trying to load EPG from ErsatzTV. It works… For a while… Then I get the error “No Channels Currently Available.” I go in to Live TV Setup and see 2 channels (9 enabled). I don’t have 9 channels. I did – a long time ago – but I don’t now.
When I click on “9 enabled” I see 7 blank channels and the two I want to map at the bottom but not mapped. I map them and save. And everything works…
Until it doesn’t… and I have to do this whole process all over again.
This is the closest think I found to an error in the logs:
I will happily provide full logs but I can’t figure this out. I take ErsatzTV out of the equation and run just my HDHomeRun tuner using native EPG downloaded from my zip code and same results… works for a while… then always back to “9 enabled”
Yes. I’ve even deleted all tuners from the database manually. I’ve added just my HDHomeRun which has 40+ channels. No matter what tuner I use or how many channels it always fails back to 9 channels. Something is buried in the system somewhere that knows about the original 9 channels I had from years ago.
You want to perform this SQL query on the main plex database file (while the server is not running!):
Careful! It removes everything DVR-related. DELETE FROM media_provider_resources
This is strictly unsupported! It may have side effects.
You can also delete the database files which contain the EPG data.
Simply remove all files with names beginning with tv.plex.providers.epg.cloud... from the database folder.
(But only these files! Otherwise you can say goodbye to all libraries and metadata.)
I have done both of these things to no avail. The channel mappings are stored somewhere else. Media_provider_resources only stores the actual tuners themselves. tv.plex.providers.epg.cloud – don’t know what else it stores besides EPG data… But it doesn’t store mapping data.
Again, the EPG isn’t the problem. The MAPPING between tuner channels and EPG channels is the issue. When I do the mapping manually everything works fine… Until something happens in plex and that mapping is overwritten. It seems like plex is just “recomparing” the mapping.
But, to speak directly… I have uninstalled ErsatzTV. I’ve changed the IP address, changed the UUID, set up firewall rules to allow ANY traffic from Plex to ErsatzTV (just in case there was a firewall rule I didn’t see).
Something inside Plex is holding on to the fact that months ago I had an xteve source with 9 channels. Every tuner I try, regardless of the number of channels presented, always goes back to “9 Enabled”
10:26am - I fixed the channel mapping
10:56am - Channel mapping is still correct
11:29am - Channel mapping is invalid again
I’m assuming (still more testing) that some process runs on Plex once an hour to reconfirm the channel mapping and that process is breaking the mapping.
This last iteration (pre 10:26am):
I deleted the contents of media_provider_resources
I stopped the docker container
I deleted the tv.plex.providers.*
I restarted the container
I readded the tuner and accompanying xml EPG
10:26am - I matched the tuner channels to the EPG channels. (2 channels - 2 enabled)
11:29am - When I checked, error loading channels (2 channels - 9 enabled) again
When this fails again, can you download, zip, and attach the Ersatz XMLTV file from its web interface?
Also, as part of your recovery procedure, you might want to include a DELETE FROM media_subscriptions. This will remove any scheduled recordings if you have them.
I think I may have figured it out. Apparently I still had a disqueTV instance running and, unbeknownst to me, this thing ran something hourly that messed with plex’s guide. I stopped that container and the guide has been solid for 1 hour and 49 minutes so far.
DisqueTV was not supposed to interact directly with the Plex EPG at all… apparently it does. Will keep this thread up to date after several more hours.