garbear / kodi-steamlink

Steam Link port of Kodi
Other
436 stars 36 forks source link

Kodi 17.5 Plex plugin won't connect. #8

Open GravitySandwichh opened 7 years ago

GravitySandwichh commented 7 years ago

Installing Plex TV Plugin and opening it results in no internet connection error. Internet does work fine in other places. Just not this plugin.

garbear commented 7 years ago

Does Plex TV Plugin work in 17.4 on the Steam Link? Does it work in 17.5 on another platform?

GravitySandwichh commented 7 years ago

I just tried it with 17.5 on my Laptop and that seems to be fine. Will downgrade the Steam Link to 17.4 to see if the error still occurs. Will report back in an hour or so.

GravitySandwichh commented 7 years ago

17.4 is having the exact same issue.

"Can't connect to plex.tv, please check your internet connection and try again"

garbear commented 7 years ago

Then it's a problem with the steam link build. Can you upload a debug log?

GravitySandwichh commented 7 years ago

Ok well this is weird. I upgraded back to 17.5 from 17.4 and wanted to debug after that. But now it suddenly all works and stays working. Only issue is that the plugin does not run video playback smoothly but i think that is a hardware limitation.

Anyhow, it's fixed i guess.

garbear commented 7 years ago

Thanks. I'm headed to Kodi's DevCon in a few hours. I'll look into this next weekend (if I forget drop me a friendly ping)

drampelt commented 7 years ago

Also having issues with the Plex addon, looks like mine might be because the system date resets to 0 (January 1, 1970) each time it boots up, then it can't validate SSL certificates correctly. Is it possible to keep the date in sync somehow?

00:00:58.220 T:2521248720   ERROR: /home/apps/kodi/.home/.kodi/addons/script.module.urllib3/lib/urllib3/connection.py:306: SystemTimeWarning: System time is way off (before 2016-01-01). This will probably lead to SSL verification errors
                                              SystemTimeWarning
00:00:58.589 T:2521248720   ERROR: _________________________________________________________________________________
00:00:58.589 T:2521248720   ERROR: script.plex: ERROR:
00:00:58.589 T:2521248720   ERROR:     Traceback (most recent call last):
00:00:58.589 T:2521248720   ERROR:       File "/home/apps/kodi/.home/.kodi/addons/script.plex/lib/plex.py", line 341, in authorize
00:00:58.589 T:2521248720   ERROR:         pl = myplex.PinLogin()
00:00:58.590 T:2521248720   ERROR:       File "/home/apps/kodi/.home/.kodi/addons/script.plex/lib/_included_packages/plexnet/myplex.py", line 30, in __init__
00:00:58.592 T:2521248720   ERROR:         self._init()
00:00:58.592 T:2521248720   ERROR:       File "/home/apps/kodi/.home/.kodi/addons/script.plex/lib/_included_packages/plexnet/myplex.py", line 33, in _init
00:00:58.592 T:2521248720   ERROR:         response = http.POST(self.INIT)
00:00:58.592 T:2521248720   ERROR:       File "/home/apps/kodi/.home/.kodi/addons/script.plex/lib/_included_packages/plexnet/http.py", line 31, in POST
00:00:58.593 T:2521248720   ERROR:         return requests.post(*args, headers=util.BASE_HEADERS.copy(), timeout=util.TIMEOUT, **kwargs)
00:00:58.593 T:2521248720   ERROR:       File "/home/apps/kodi/.home/.kodi/addons/script.module.requests/lib/requests/api.py", line 112, in post
00:00:58.593 T:2521248720   ERROR:         return request('post', url, data=data, json=json, **kwargs)
00:00:58.593 T:2521248720   ERROR:       File "/home/apps/kodi/.home/.kodi/addons/script.module.requests/lib/requests/api.py", line 58, in request
00:00:58.593 T:2521248720   ERROR:         return session.request(method=method, url=url, **kwargs)
00:00:58.593 T:2521248720   ERROR:       File "/home/apps/kodi/.home/.kodi/addons/script.module.requests/lib/requests/sessions.py", line 508, in request
00:00:58.593 T:2521248720   ERROR:         resp = self.send(prep, **send_kwargs)
00:00:58.593 T:2521248720   ERROR:       File "/home/apps/kodi/.home/.kodi/addons/script.module.requests/lib/requests/sessions.py", line 618, in send
00:00:58.593 T:2521248720   ERROR:         r = adapter.send(request, **kwargs)
00:00:58.593 T:2521248720   ERROR:       File "/home/apps/kodi/.home/.kodi/addons/script.module.requests/lib/requests/adapters.py", line 506, in send
00:00:58.593 T:2521248720   ERROR:         raise SSLError(e, request=request)
00:00:58.593 T:2521248720   ERROR:     SSLError: HTTPSConnectionPool(host='plex.tv', port=443): Max retries exceeded with url: /pins.xml (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)'),))
00:00:58.593 T:2521248720   ERROR: _________________________________________________________________________________
00:00:58.593 T:2521248720   ERROR: `
niai commented 6 years ago

Can confirm it is a time and date issue I managed to set the right time on my link with

date 042600102018.00

formatted MM DD HH MM YYYY .SS

for some reason this was the only way that would work tried with -set in a few ways. Also hwclock will not work due to missing "/dev/misc/rtc" I tried looking for rtc else where to syslink it but couldn't find it.

Couldn't get plexkodiconnect to work it gave me a code, I put it in to plex.tv/link it accepted it then told me I wasn't linked, also clicked try user and pass and it wouldn't load the window. I tried the plex script, put in my code and it worked I could play thing, but the audio was about 10 sec out of sync and the picture was blocky.

sausje commented 6 years ago

Any update to this? I bought the thing for 2 things mainly, playing games without the annoying enabling 3rd display and battle with overscaling. And for watching my plex movies/series easier. Sadly due to kodi resetting it's time (and no option in menu to manually set it), it fails to connect to plex.tv and thus doesn't work at all.

I would really appreciate it if this could get fixed.

JuggyMcNutty commented 6 years ago

im looking into solutions to this as well

m4tzess commented 6 years ago

Had this problem as well, fixed it with setting the dns nameservers in /etc/resolv.conf to Google's 8.8.8.8. You can also set the date and time via the ntpd file.

Cheers, -Mathis