pannal/Kitana

Unable to connect to plugins: HTTPError: 500 Server Error

Wolf666 opened this issue · 12 comments

Running kitana 0.4.0-2 on docker (Synology DS1621+) and having this message when I select Trakt plugin:

requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://192-168-1-100.725690953ec14972b12e2efbf3cd7004.plex.direct:32400/video/trakt

I am able to login to Kitana, I can see the plugins but cannot access them when selected and error is triggered.
I tried to disable secure connection but nothing changed.
Log attached.
Log.txt

same here

That 500 error is passed through by Kitana. The Trakt plugin or the PMS are throwing this. Can you check whether you can access the plugin directly and/or check your PMS logs?

Don't have access at the moment but error is logged in the plugin, no error in the PMS logs that I could find.

In the trakt plugin logs it is a encountering a 401 error

That 500 error is passed through by Kitana. The Trakt plugin or the PMS are throwing this. Can you check whether you can access the plugin directly and/or check your PMS logs?

I can access to plugin WebTools directly from https://ds1621:33443. I look into logs to check more info.

This is Plex Server log:

Feb 26, 2021 15:07:08.598 [0x7fea49a0c700] DEBUG - Auth: authenticated user 1 as Wolf_666
Feb 26, 2021 15:07:08.598 [0x7fe9d2e6b700] DEBUG - Request: [172.17.0.4:39932 (WAN)] GET /channels/all (3 live) TLS GZIP Signed-in Token (Wolf_666)
Feb 26, 2021 15:07:08.598 [0x7fea49a0c700] DEBUG - Completed: [172.17.0.4:39932] 200 GET /channels/all (3 live) TLS GZIP 0ms 697 bytes (pipelined: 1)
Feb 26, 2021 15:07:11.416 [0x7fea49a0c700] DEBUG - Auth: authenticated user 1 as Wolf_666
Feb 26, 2021 15:07:11.416 [0x7fe9d2e6b700] DEBUG - Request: [172.17.0.4:39932 (WAN)] GET /channels/all (3 live) TLS GZIP Signed-in Token (Wolf_666)
Feb 26, 2021 15:07:11.417 [0x7fea49a0c700] DEBUG - Completed: [172.17.0.4:39932] 200 GET /channels/all (3 live) TLS GZIP 0ms 697 bytes (pipelined: 2)
Feb 26, 2021 15:07:11.431 [0x7fea49cfa700] DEBUG - Auth: authenticated user 1 as Wolf_666
Feb 26, 2021 15:07:11.431 [0x7fe9d2e6b700] DEBUG - Request: [172.17.0.4:39932 (WAN)] GET /video/trakt (3 live) TLS GZIP Signed-in Token (Wolf_666)
Feb 26, 2021 15:07:11.431 [0x7fe9d2e6b700] DEBUG - Plug-in com.plexapp.plugins.trakttv has been used 157 times.
Feb 26, 2021 15:07:11.431 [0x7fe9d2e6b700] DEBUG - [com.plexapp.plugins.trakttv] Sending command over HTTP (GET): /video/trakt
Feb 26, 2021 15:07:11.431 [0x7fe9d2e6b700] DEBUG - HTTP requesting GET http://127.0.0.1:43814/video/trakt
Feb 26, 2021 15:07:11.443 [0x7fe9d3fff700] DEBUG - Request: [127.0.0.1:44454 (Loopback)] GET /:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMjcKY29tLnBsZXhhcHAucGx1Z2lucy50cmFrdHR2czEwCmlkZW50aWZpZXJyMAo_ (4 live) GZIP Signed-in Token (Wolf_666)
Feb 26, 2021 15:07:11.443 [0x7fe9d3fff700] DEBUG - [com.plexapp.system] Sending command over HTTP (GET): /:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMjcKY29tLnBsZXhhcHAucGx1Z2lucy50cmFrdHR2czEwCmlkZW50aWZpZXJyMAo_
Feb 26, 2021 15:07:11.443 [0x7fe9d3fff700] DEBUG - HTTP requesting GET http://127.0.0.1:45787/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMjcKY29tLnBsZXhhcHAucGx1Z2lucy50cmFrdHR2czEwCmlkZW50aWZpZXJyMAo_
Feb 26, 2021 15:07:11.449 [0x7fe9d3fff700] DEBUG - HTTP 404 response from GET http://127.0.0.1:45787/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMjcKY29tLnBsZXhhcHAucGx1Z2lucy50cmFrdHR2czEwCmlkZW50aWZpZXJyMAo_
Feb 26, 2021 15:07:11.449 [0x7fe9d3fff700] DEBUG - [com.plexapp.system] HTTP reply status 404, with 0 bytes of content.
Feb 26, 2021 15:07:11.449 [0x7fea49cfa700] DEBUG - Completed: [127.0.0.1:44454] 404 GET /:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMjcKY29tLnBsZXhhcHAucGx1Z2lucy50cmFrdHR2czEwCmlkZW50aWZpZXJyMAo_ (4 live) GZIP 5ms 261 bytes
Feb 26, 2021 15:07:11.463 [0x7fe9d2e6b700] DEBUG - HTTP 500 response from GET http://127.0.0.1:43814/video/trakt
Feb 26, 2021 15:07:11.464 [0x7fe9d2e6b700] DEBUG - [com.plexapp.plugins.trakttv] HTTP reply status 500, with 2467 bytes of content.
Feb 26, 2021 15:07:11.464 [0x7fea49cfa700] DEBUG - Completed: [172.17.0.4:39932] 500 GET /video/trakt (3 live) TLS GZIP 33ms 1157 bytes (pipelined: 3)
Feb 26, 2021 15:07:11.978 [0x7fea49a0c700] DEBUG - Auth: authenticated user 1 as Wolf_666
Feb 26, 2021 15:07:11.978 [0x7fe9d3fff700] DEBUG - Request: [172.17.0.4:39932 (WAN)] GET /servers (3 live) TLS GZIP Signed-in Token (Wolf_666)
Feb 26, 2021 15:07:11.979 [0x7fea49a0c700] DEBUG - Completed: [172.17.0.4:39932] 200 GET /servers (3 live) TLS GZIP 0ms 486 bytes (pipelined: 4)
Feb 26, 2021 15:07:12.005 [0x7fea49cfa700] DEBUG - Auth: authenticated user 1 as Wolf_666
Feb 26, 2021 15:07:12.005 [0x7fe9d2e6b700] DEBUG - Request: [172.17.0.4:39932 (WAN)] GET /channels/all (3 live) TLS GZIP Signed-in Token (Wolf_666)
Feb 26, 2021 15:07:12.005 [0x7fea49cfa700] DEBUG - Completed: [172.17.0.4:39932] 200 GET /channels/all (3 live) TLS GZIP 0ms 696 bytes (pipelined: 5)

Trakt Plugin Log:

2021-02-26 15:21:26,235 - com.plexapp.plugins.trakttv      (7f98cd2c1700) :  DEBUG (com.plexapp.plugins.trakttv:717) - Handling request GET /video/trakt
2021-02-26 15:21:26,236 - com.plexapp.plugins.trakttv      (7f98cd2c1700) :  DEBUG (com.plexapp.plugins.trakttv:49) - Received packed state data (80 bytes)
2021-02-26 15:21:26,238 - com.plexapp.plugins.trakttv      (7f98cd2c1700) :  DEBUG (com.plexapp.plugins.trakttv:814) - Found route matching /video/trakt
2021-02-26 15:21:26,244 - com.plexapp.plugins.trakttv      (7f98cd2c1700) :  DEBUG (com.plexapp.plugins.trakttv:117) - Checking if com.plexapp.plugins.trakttv is broken
2021-02-26 15:21:26,245 - com.plexapp.plugins.trakttv      (7f98cd2c1700) :  DEBUG (com.plexapp.plugins.trakttv:143) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMjcKY29tLnBsZXhhcHAucGx1Z2lucy50cmFrdHR2czEwCmlkZW50aWZpZXJyMAo_'
2021-02-26 15:21:26,253 - com.plexapp.plugins.trakttv      (7f98cd2c1700) :  ERROR (com.plexapp.plugins.trakttv:196) - Error opening URL 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMjcKY29tLnBsZXhhcHAucGx1Z2lucy50cmFrdHR2czEwCmlkZW50aWZpZXJyMAo_'
2021-02-26 15:21:26,253 - com.plexapp.plugins.trakttv      (7f98cd2c1700) :  CRITICAL (com.plexapp.plugins.trakttv:889) - Exception (most recent call last):
  File "/volume1/@appstore/Plex Media Server/Resources/Plug-ins-1b7748a7b/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 843, in handle_request
    result = f(**d)
  File "/volume1/@appstore/Plex Media Server/Resources/Plug-ins-1b7748a7b/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/handlers/base.py", line 122, in call
    identifier = self._core.identifier
  File "/volume1/@appstore/Plex Media Server/Resources/Plug-ins-1b7748a7b/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/messaging.py", line 86, in call_external_function
    packed_result = self._core.networking.http_request(url, cacheTime=0, timeout=None, immediate=True).content
  File "/volume1/@appstore/Plex Media Server/Resources/Plug-ins-1b7748a7b/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 346, in http_request
    return HTTPRequest(self._core, url, data, h, url_cache, encoding, errors, timeout, immediate, sleep, opener, follow_redirects, method)
  File "/volume1/@appstore/Plex Media Server/Resources/Plug-ins-1b7748a7b/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 118, in __init__
    self.load()
  File "/volume1/@appstore/Plex Media Server/Resources/Plug-ins-1b7748a7b/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 158, in load
    f = self._opener.open(req, timeout=self._timeout)
  File "/volume1/@appstore/Plex Media Server/Resources/Python/lib/python2.7/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/volume1/@appstore/Plex Media Server/Resources/Python/lib/python2.7/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/volume1/@appstore/Plex Media Server/Resources/Python/lib/python2.7/urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "/volume1/@appstore/Plex Media Server/Resources/Python/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/volume1/@appstore/Plex Media Server/Resources/Python/lib/python2.7/urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found

2021-02-26 15:21:26,256 - plugin.managers.core.base        (7f98cd2c1700) :  DEBUG (plugin.managers.core.base:50) - or_create() - ex: IntegrityError('ConstraintError: UNIQUE constraint failed: message.type, message.exception_hash',)
2021-02-26 15:21:26,346 - com.plexapp.plugins.trakttv      (7f98cd2c1700) :  DEBUG (com.plexapp.plugins.trakttv:88) - Sending packed state data (108 bytes)
2021-02-26 15:21:26,347 - com.plexapp.plugins.trakttv      (7f98cd2c1700) :  DEBUG (com.plexapp.plugins.trakttv:924) - Response: [500] 2467 bytes
2021-02-26 15:21:26,347 - root                             (7f98cd2c1700) :  ERROR (root:828) - 500 GET /video/trakt (127.0.0.1) 112.18ms

2021-02-26 15:21:26,256 - plugin.managers.core.base        (7f98cd2c1700) :  DEBUG (plugin.managers.core.base:50) - or_create() - ex: IntegrityError('ConstraintError: UNIQUE constraint failed: message.type, message.exception_hash',)

I'd say this is out of scope for Kitana.

Hi pannal, sorry, I don't understand, I am not a code expert and for me it sounds exotic.

This seems to be a problem with the plugin, not Kitana.

Kitana only offers a way to access your plugins.

Means: I can't help you with this.

Ok, thanks. Just to say that I have 2 plugins, WebTools and Trakt. I can directly access Webtools. But I cannot access them from Kitana, same error. Just to explain better the behavior.

Yeah Webtools is special, it has its own remote interface, you don't use Kitana for that.

Hello
I have the same problem . Did you find a solution
thank

Hello,
no, i live with it, that its syncing only the new media i am watching...
It´s ok - you can manually put the watched option in trakt.
kind regards