Skip to content

Exception getting hosted resource hashes #14

@pax0707

Description

@pax0707

After bit of playing around to get things working I'm stuck at this:

2022-01-20 15:14:52,398 (e60) :  INFO (core:349) - Starting framework core - Version: 2.6.3, Build: eb46d07 (Tue Jan 18 11:48:14 UTC 2022)
2022-01-20 15:14:52,398 (e60) :  DEBUG (core:361) - Using the elevated policy
2022-01-20 15:14:52,398 (e60) :  DEBUG (core:450) - Starting runtime component.
2022-01-20 15:14:52,403 (e60) :  DEBUG (core:450) - Starting caching component.
2022-01-20 15:14:52,403 (e60) :  DEBUG (core:450) - Starting data component.
2022-01-20 15:14:52,404 (e60) :  DEBUG (core:450) - Starting networking component.
2022-01-20 15:14:52,404 (e60) :  DEBUG (networking:261) - Loaded HTTP cookies
2022-01-20 15:14:52,404 (e60) :  DEBUG (networking:428) - Setting the default network timeout to 20.0
2022-01-20 15:14:52,405 (e60) :  DEBUG (core:450) - Starting localization component.
2022-01-20 15:14:52,405 (e60) :  INFO (localization:409) - Setting the default locale to en-us
2022-01-20 15:14:52,407 (e60) :  DEBUG (core:450) - Starting messaging component.
2022-01-20 15:14:52,407 (e60) :  DEBUG (core:450) - Starting debugging component.
2022-01-20 15:14:52,407 (e60) :  DEBUG (core:450) - Starting services component.
2022-01-20 15:14:52,407 (e60) :  DEBUG (core:450) - Starting myplex component.
2022-01-20 15:14:52,408 (9e4) :  DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/system/messaging/clear_events/com.plexapp.agents.tgc'
2022-01-20 15:14:52,408 (e60) :  DEBUG (core:450) - Starting notifications component.
2022-01-20 15:14:52,532 (e60) :  DEBUG (accessor:68) - Creating a new model access point for provider com.plexapp.agents.tgc in namespace 'metadata'
2022-01-20 15:14:52,538 (e60) :  DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes'
2022-01-20 15:14:52,680 (e60) :  ERROR (networking:196) - Error opening URL 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes'
2022-01-20 15:14:52,684 (e60) :  CRITICAL (core:574) - Exception getting hosted resource hashes (most recent call last):
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-eb46d070e\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\runtime.py", line 1293, in get_resource_hashes
    json = self._core.networking.http_request("http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes", timeout=10).content
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-eb46d070e\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\networking.py", line 242, in content
    return self.__str__()
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-eb46d070e\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\networking.py", line 220, in __str__
    self.load()
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-eb46d070e\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\networking.py", line 158, in load
    f = self._opener.open(req, timeout=self._timeout)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 435, in open
    response = meth(req, response)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found

2022-01-20 15:14:52,691 (2a1c) :  DEBUG (services:265) - Plug-in is not daemonized - loading services from system
2022-01-20 15:14:52,691 (e60) :  DEBUG (runtime:1117) - Created a thread named 'load_all_services'
2022-01-20 15:14:52,694 (e60) :  DEBUG (runtime:1117) - Created a thread named 'get_server_info'
2022-01-20 15:14:52,694 (2a1c) :  DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0J1bmRsZVNlcnZpY2U6QWxsU2VydmljZXM_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMApyMAo_'
2022-01-20 15:14:52,694 (e60) :  DEBUG (core:150) - Finished starting framework core
2022-01-20 15:14:52,694 (e48) :  DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400'
2022-01-20 15:14:52,696 (e60) :  DEBUG (core:560) - Loading plug-in code
2022-01-20 15:14:52,719 (e48) :  DEBUG (core:538) - Machine identifier is b7e44a0f264efbd1bd9b732f1bee1d83f480b1dc
2022-01-20 15:14:52,720 (e48) :  DEBUG (core:539) - Server version is 1.25.4.5426-eb46d070e
2022-01-20 15:14:53,042 (2a1c) :  DEBUG (services:362) - Loaded services
2022-01-20 15:14:53,049 (2988) :  DEBUG (services:438) - No shared code to load
2022-01-20 15:14:53,059 (e60) :  DEBUG (core:566) - Finished loading plug-in code
2022-01-20 15:14:53,756 (e60) :  DEBUG (agentkit:1132) - Creating new agent class called TGCAgent
2022-01-20 15:14:53,756 (e60) :  DEBUG (agentkit:937) - Updating agent information: [{'media_types': ['TV_Show'], 'accepts_from': ['com.plexapp.agents.localmedia'], 'fallback_agent': None, 'contributes_to': None, 'languages': ['en'], 'persist_stored_files': True, 'version': 0, 'primary_provider': True, 'prefs': False, 'name': 'TGC'}]
2022-01-20 15:14:53,759 (e60) :  DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0FnZW50U2VydmljZTpVcGRhdGVJbmZv/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQo2CmRpY3QKbGlzdApkaWN0Cmxpc3QKbGlzdApsaXN0CjIKczIyCmNvbS5wbGV4YXBwLmFnZW50cy50Z2NzMTAKaWRlbnRpZmllcnIxCnMxMAphZ2VudF9pbmZvMQpyMgoxMApyMwpzMTEKbWVkaWFfdHlwZXNyNApzMTIKYWNjZXB0c19mcm9tbnMxNApmYWxsYmFja19hZ2VudG5zMTQKY29udHJpYnV0ZXNfdG9yNQpzOQpsYW5ndWFnZXNiMXMyMApwZXJzaXN0X3N0b3JlZF9maWxlc2kwCnM3CnZlcnNpb25iMXMxNgpwcmltYXJ5X3Byb3ZpZGVyYjBzNQpwcmVmc3MzClRHQ3M0Cm5hbWUxCnM3ClRWX1Nob3cxCnMyOQpjb20ucGxleGFwcC5hZ2VudHMubG9jYWxtZWRpYTEKczIKZW5yMAo_'
2022-01-20 15:14:53,799 (e60) :  INFO (logkit:16) - ImageMagick is installed.
2022-01-20 15:14:53,900 (e60) :  INFO (logkit:16) - Geckodriver is installed.
2022-01-20 15:14:53,901 (e60) :  INFO (logkit:16) - Staring Selenium driver...
2022-01-20 15:14:56,203 (e60) :  CRITICAL (core:574) - Exception when calling function 'Start' (most recent call last):
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-eb46d070e\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\code\sandbox.py", line 294, in call_named_function
    result = f(*args, **kwargs)
  File "C:\PLEX\Plex Media Server\Plug-ins\TGC.bundle\Contents\Code\__init__.py", line 151, in Start
    driver = startWebDriver()
  File "C:\PLEX\Plex Media Server\Plug-ins\TGC.bundle\Contents\Code\__init__.py", line 170, in startWebDriver
    driver = webdriver.Firefox(profile, options=options, executable_path=gecko_binary, firefox_binary=firefox_binary)
  File "C:\PLEX\Plex Media Server\Plug-ins\TGC.bundle\Contents\Libraries\Shared\selenium\webdriver\firefox\webdriver.py", line 164, in __init__
    self.service.start()
  File "C:\PLEX\Plex Media Server\Plug-ins\TGC.bundle\Contents\Libraries\Shared\selenium\webdriver\common\service.py", line 83, in start
    os.path.basename(self.path), self.start_error_message)
WebDriverException: Message: 'geckodriver' executable needs to be in PATH. 


2022-01-20 15:14:56,203 (e60) :  INFO (core:611) - Started plug-in
2022-01-20 15:14:56,203 (e60) :  DEBUG (socketinterface:160) - Starting socket server
2022-01-20 15:14:56,204 (e60) :  DEBUG (runtime:1117) - Created a thread named 'start'
2022-01-20 15:14:56,204 (e60) :  INFO (socketinterface:184) - Socket server started on port 65011
2022-01-20 15:14:56,204 (e60) :  INFO (pipeinterface:25) - Entering run loop
2022-01-20 15:14:56,206 (e60) :  DEBUG (runtime:717) - Handling request GET /:/prefixes
2022-01-20 15:14:56,207 (e60) :  DEBUG (runtime:814) - Found route matching /:/prefixes
2022-01-20 15:14:56,207 (e60) :  DEBUG (runtime:924) - Response: [200] MediaContainer, 147 bytes
2022-01-20 15:14:57,559 (2130) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.tgc/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKZW5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNgo2MjI5NjRzNApkYmlkaTAKczcKdmVyc2lvbm5zMTAKcGFyZW50R1VJRG5zOApwYXJlbnRJRHM3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZXM3NQpjb20ucGxleGFwcC5hZ2VudHMudGdjOi8vRXNzZW50aWFscyBvZiBUYWkgQ2hpIGFuZCBRaWdvbmcgKFRHQzE5MDgpP2xhbmc9ZW5zNApndWlkczQyCkVzc2VudGlhbHMgb2YgVGFpIENoaSBhbmQgUWlnb25nIChUR0MxOTA4KXMyCmlkcjAK
2022-01-20 15:14:57,571 (2130) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.tgc/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKZW5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNgo2MjI5NjRzNApkYmlkaTAKczcKdmVyc2lvbm5zMTAKcGFyZW50R1VJRG5zOApwYXJlbnRJRHM3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZXM3NQpjb20ucGxleGFwcC5hZ2VudHMudGdjOi8vRXNzZW50aWFscyBvZiBUYWkgQ2hpIGFuZCBRaWdvbmcgKFRHQzE5MDgpP2xhbmc9ZW5zNApndWlkczQyCkVzc2VudGlhbHMgb2YgVGFpIENoaSBhbmQgUWlnb25nIChUR0MxOTA4KXMyCmlkcjAK
2022-01-20 15:14:57,572 (2130) :  DEBUG (model:32) - Loading model with GUID com.plexapp.agents.tgc://Essentials of Tai Chi and Qigong (TGC1908)?lang=en
2022-01-20 15:14:57,573 (2130) :  DEBUG (model:234) - Deserializing from C:\PLEX\Plex Media Server\Metadata\TV Shows\7\b9ecd9b0a6b6d916aa85b681390471dd9b602bc.bundle\Contents\com.plexapp.agents.tgc\Info.xml
2022-01-20 15:14:57,575 (2130) :  DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/library/metadata/622964/tree'
2022-01-20 15:14:57,595 (2694) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.tgc/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKZW5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNgo2MjI5MzdzNApkYmlkaTAKczcKdmVyc2lvbm5zMTAKcGFyZW50R1VJRG5zOApwYXJlbnRJRHM3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZXM2OApjb20ucGxleGFwcC5hZ2VudHMudGdjOi8vTWFydGlhbCBBcnRzIGZvciBZb3VyIE1pbmQgYW5kIEJvZHk%40bGFuZz1lbnM0Cmd1aWRzMzUKTWFydGlhbCBBcnRzIGZvciBZb3VyIE1pbmQgYW5kIEJvZHlzMgppZHIwCg__
2022-01-20 15:14:57,598 (2694) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.tgc/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKZW5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNgo2MjI5MzdzNApkYmlkaTAKczcKdmVyc2lvbm5zMTAKcGFyZW50R1VJRG5zOApwYXJlbnRJRHM3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZXM2OApjb20ucGxleGFwcC5hZ2VudHMudGdjOi8vTWFydGlhbCBBcnRzIGZvciBZb3VyIE1pbmQgYW5kIEJvZHk@bGFuZz1lbnM0Cmd1aWRzMzUKTWFydGlhbCBBcnRzIGZvciBZb3VyIE1pbmQgYW5kIEJvZHlzMgppZHIwCg__
2022-01-20 15:14:57,598 (2694) :  DEBUG (model:32) - Loading model with GUID com.plexapp.agents.tgc://Martial Arts for Your Mind and Body?lang=en
2022-01-20 15:14:57,599 (2694) :  DEBUG (model:234) - Deserializing from C:\PLEX\Plex Media Server\Metadata\TV Shows\c\1ba54209321b1ad9a77b189e1aa70842dd47484.bundle\Contents\com.plexapp.agents.tgc\Info.xml
2022-01-20 15:14:57,604 (2694) :  DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/library/metadata/622937/tree'
2022-01-20 15:14:57,615 (2130) :  INFO (logkit:16) - def update()
2022-01-20 15:14:57,618 (2130) :  CRITICAL (core:574) - Exception in the update function of agent named 'TGC', called with guid 'com.plexapp.agents.tgc://Essentials of Tai Chi and Qigong (TGC1908)?lang=en' (most recent call last):
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-eb46d070e\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\agentkit.py", line 1093, in _update
    agent.update(obj, media, lang, **kwargs)
  File "C:\PLEX\Plex Media Server\Plug-ins\TGC.bundle\Contents\Code\__init__.py", line 720, in update
    TABCOUNT += 1
NameError: global name 'TABCOUNT' is not defined

2022-01-20 15:14:57,618 (2130) :  DEBUG (model:229) - Serializing to C:\PLEX\Plex Media Server\Metadata\TV Shows\7\b9ecd9b0a6b6d916aa85b681390471dd9b602bc.bundle\Contents\com.plexapp.agents.tgc\Info.xml
2022-01-20 15:14:57,622 (2130) :  DEBUG (runtime:88) - Sending packed state data (103 bytes)
2022-01-20 15:14:57,624 (2130) :  DEBUG (runtime:924) - Response: [200] str, 16 bytes
2022-01-20 15:14:57,645 (2694) :  INFO (logkit:16) - def update()
2022-01-20 15:14:57,645 (2694) :  CRITICAL (core:574) - Exception in the update function of agent named 'TGC', called with guid 'com.plexapp.agents.tgc://Martial Arts for Your Mind and Body?lang=en' (most recent call last):
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-eb46d070e\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\agentkit.py", line 1093, in _update
    agent.update(obj, media, lang, **kwargs)
  File "C:\PLEX\Plex Media Server\Plug-ins\TGC.bundle\Contents\Code\__init__.py", line 720, in update
    TABCOUNT += 1
NameError: global name 'TABCOUNT' is not defined

2022-01-20 15:14:57,648 (2694) :  DEBUG (model:229) - Serializing to C:\PLEX\Plex Media Server\Metadata\TV Shows\c\1ba54209321b1ad9a77b189e1aa70842dd47484.bundle\Contents\com.plexapp.agents.tgc\Info.xml
2022-01-20 15:14:57,651 (2694) :  DEBUG (runtime:88) - Sending packed state data (103 bytes)
2022-01-20 15:14:57,651 (2694) :  DEBUG (runtime:924) - Response: [200] str, 16 bytes

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions