Error when going to ‘Live TV & DVR’ setting:
There was an unexpected error
Please visit our forums if you continue to experience problems.
This solution is tailored for windows but should work for any of the other installations.
Do this at your own risk. You can mess your entire installation up and have to rebuild from scratch. Also note this will delete the entire tuner, so it will have to be set back up.
Open command prompt. Press the windows key and type cmd.
Change directory to the databases folder. Usually at this location, however, you may have changed it to a custom location.
a. cd %LOCALAPPDATA%\Plex Media Server\Plug-in Support\Databases
Make a backup of the database
a. copy com.plexapp.plugins.library.db com.plexapp.plugins.library.db.bak
Delete the media provider resources. Note this will delete all tuner data.
a. Drag the sqlite3.exe into the command prompt.
b. Paste DELETE FROM media-provider-resources
c. It will look like this:
d. C:\Users\USERNAME\Downloads\sqlite-tools-win32-x86-3370000\sqlite3.exe com.plexapp.plugins.library.db "DELETE FROM media_provider_resources"
e. Verify that there is no errors.
Restart plex
Go to the ‘Live TV & DVR’ setting.
Hopefully this works for you and allows you to add your tuner back.
If you encounter any issues you can delete the entire database and remove the .bak from the copy. This will revert any changes you made with the sqlite tool.
Good that you found a way round the problem - but would love to actually see the diagnostics for what the problem was that needed that the table is reset
The table holds DVR info and channels
I see you have cross referenced other threads - but if you have debug server logs of the actual issue and contents of the media_provider_resources table at the time, then that would allow me to look into it
Thanks for this… My install is in a Docker, so I had to modify your steps a bit. What I did was share(on unraid)/mount(in windows) my appdata directory where Plex docker container lives, then in windows navigated to the db location. My Docker install in unRAID db locations was (z is appdata)
“Z:\plex\Library\Application Support\Plex Media Server\Plug-in Support\Databases”
From there I manually created the sql command pointing to where I extracted it (moved it to c: root for easier access) running the following command after backing up the db.
"c:\sqlite\sqlite3.exe com.plexapp.plugins.library.db “DELETE FROM media_provider_resources”
Also, I deleted the tv.plex.providers.epg files before restarting plex. After restart, I was able to readd the tuner.
@JimmmyTHANK YOU!
I’m in process of cutting the cord and wanted to employ my previously configured DVR in Plex. But kept running into this non-descriptive error.
Server Version: 1.25.2.5319
Tuner: HDHomeRun CONNECT
I tried a bunch of different things and nothing worked. Thank you for the well-written explanation of how to delete the tuner data using sqlite3!
I am trying to follow your guide, but getting no change in the result. This sucks I was just trying to work on my DVR and now its totally broken…
I have done this over and over with no change in my results. Can someone help me out here?
Does the Plex team have an ETA for something easier than this?
Just wanted to say HUGE THANKS!! this worked for me. I was dreading having to uninstall and reinstall Plex, losing all my watched history, etc. These instructions allowed me to then change my Live TV/DVR settings.
A fix for the Unexpected Error when selecting DVR Settings has just been released in hosted Plex Web App version 4.74.1 available through https://app.plex.tv/desktop
See Release Notice
Fixed the DVR and LiveTV settings error if DVR has old and no longer existing lineup
With this fix the settings page will load an allow you to delete the old DVR