PLex with TVheadend - Not connectable

Hi Forum
I started my first plex server (after many different systems through time)
Plex Server - Version 1.19.1.2645 - Ubuntu18.04
I have 2 TVheadend servers ( one on Ubuntu16.04 one on 18.04)
All in the same subnet 172.16.20.0/24

I have installed the plugins LiveTVH on the PLex server and tvhProxy on each TVHeadend Server - I can see the tvhProxy is running on each TVH server.

$ netstat -tang |grep 5004
tcp6       0      0 :::5004                 :::*                    LISTEN

When I connect to the server - I cannot see any channel or scanning for channels.
image
In Danish it means there was a problem when downloading channels

In Plex media Server log I’m getting this:

Apr 11, 2020 10:18:48.635 [0x7fe2fd7fa700] INFO - Grabber: The device was already discovered at http://172.16.20.101:5004, updating URI
Apr 11, 2020 10:18:48.660 [0x7fe31247f700] ERROR - Error issuing curl_easy_perform(handle): 60
Apr 11, 2020 10:20:41.155 [0x7fe2feffd700] INFO - Grabber: The device was already discovered at http://172.16.20.101:5004, updating URI
Apr 11, 2020 10:20:41.176 [0x7fe2c3fff700] ERROR - Error issuing curl_easy_perform(handle): 60

On the tvHeadend Server I’m finding this in my syslog:

Apr 11 12:28:27 maincore rc.local[1014]: 2020-04-11 12:28:27.602 [  ERROR] http: 127.0.0.1: HTTP/1.1 GET (1) /api/channel/grid -- 403
Apr 11 12:28:27 maincore python[804]: [2020-04-11 12:28:27,604] ERROR in app: Exception on /lineup.json [GET]
Apr 11 12:28:27 maincore python[804]: Traceback (most recent call last):
Apr 11 12:28:27 maincore python[804]:   File "/home/tvh/tvhProxy/venv/local/lib/python2.7/site-packages/flask/app.py", line 2447, in wsgi_app
Apr 11 12:28:27 maincore python[804]:     response = self.full_dispatch_request()
Apr 11 12:28:27 maincore python[804]:   File "/home/tvh/tvhProxy/venv/local/lib/python2.7/site-packages/flask/app.py", line 1952, in full_dispatch_request
Apr 11 12:28:27 maincore python[804]:     rv = self.handle_user_exception(e)
Apr 11 12:28:27 maincore python[804]:   File "/home/tvh/tvhProxy/venv/local/lib/python2.7/site-packages/flask/app.py", line 1821, in handle_user_exception
Apr 11 12:28:27 maincore python[804]:     reraise(exc_type, exc_value, tb)
Apr 11 12:28:27 maincore python[804]:   File "/home/tvh/tvhProxy/venv/local/lib/python2.7/site-packages/flask/app.py", line 1950, in full_dispatch_request
Apr 11 12:28:27 maincore python[804]:     rv = self.dispatch_request()
Apr 11 12:28:27 maincore python[804]:   File "/home/tvh/tvhProxy/venv/local/lib/python2.7/site-packages/flask/app.py", line 1936, in dispatch_request
Apr 11 12:28:27 maincore python[804]:     return self.view_functions[rule.endpoint](**req.view_args)
Apr 11 12:28:27 maincore python[804]:   File "/home/tvh/tvhProxy/tvhProxy.py", line 54, in lineup
Apr 11 12:28:27 maincore python[804]:     for c in _get_channels():
Apr 11 12:28:27 maincore python[804]: TypeError: 'NoneType' object is not iterable
Apr 11 12:28:27 maincore python[804]: ::ffff:172.16.20.80 - - [2020-04-11 12:28:27] "GET /lineup.json HTTP/1.0" 500 445 0.006806

Or like this
Apr 11 12:33:01 maincore python[2224]: ::ffff:172.16.20.80 - - [2020-04-11 12:33:01] "GET /discover.json HTTP/1.0" 200 406 0.000884
Apr 11 12:33:01 maincore python[2224]: ::ffff:172.16.20.80 - - [2020-04-11 12:33:01] "GET /lineup_status.json HTTP/1.0" 200 205 0.000726
Apr 11 12:33:04 maincore python[2224]: ::ffff:172.16.20.80 - - [2020-04-11 12:33:04] "GET /discover.json HTTP/1.0" 200 406 0.000755
Apr 11 12:33:04 maincore python[2224]: ::ffff:172.16.20.80 - - [2020-04-11 12:33:04] "GET /lineup_status.json HTTP/1.0" 200 205 0.000696

I have the TVHeadned servers running - watching TV through KODI - so the TVHeadend server are working - But really strange that I cannot make the connection and se the different channels from the TVHeadend server

Did you find a solution? I’m getting same error also from DK using DVB-C

This seems to be an error with tvhproxy, not with plex. Also, this is not an official ox supported tuner, so support by Plex itself will he limited. Is there a tvh proxy thread where you can ask for help?

IIRC, the plugins are no longer supported or even usable.

I have a collapsed server, with PMS, tvHeadend, tvhProxy (as well as sonarr, radarr and nzbgetd,) on a single host running CentOS 7. The systemd unit file for tvhProxy does need to be conditioned to fork tvhProxy after tvheadend starts. I’ve had this running for a year & a half.

You don’t need the LiveTVH plugin at all.
Plex is not getting a channel list - I suspect this is the reason:
In the first line of your TVH output you have a response code 403 which is an authentication problem. What user are you using in the tvhProxy configuration? Does this user have appropriate access rights in TVH? When you have the user set up, you can check it yourself from any browser with a URL like: (replace username, password,tvhhostIP)
http://username:password@tvhhostIP:9981/api/channel/grid
You should see a heap of data and not response 403

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.