jamorin / Sonarr.bundle

A Sonarr channel plugin for the Plex Media Server.
95 stars 14 forks source link

Channel not responding (log attatched) #5

Open brandonjjon opened 8 years ago

brandonjjon commented 8 years ago

I get a channel not responding error with the plugin.

2015-10-27 20:56:56,983 (7f39e1779700) :  INFO (core:347) - Starting framework core - Version: 2.6.2, Build: 4ffb9d5 (Mon Aug 17 09:49:09 UTC 2015)
2015-10-27 20:56:56,983 (7f39e1779700) :  DEBUG (core:359) - Using the elevated policy
2015-10-27 20:56:56,984 (7f39e1779700) :  DEBUG (core:448) - Starting runtime component.
2015-10-27 20:56:56,985 (7f39e1779700) :  DEBUG (core:448) - Starting caching component.
2015-10-27 20:56:56,985 (7f39e1779700) :  DEBUG (core:448) - Starting data component.
2015-10-27 20:56:56,985 (7f39e1779700) :  DEBUG (core:448) - Starting networking component.
2015-10-27 20:56:56,986 (7f39e1779700) :  DEBUG (networking:282) - Loaded HTTP cookies
2015-10-27 20:56:56,986 (7f39e1779700) :  DEBUG (networking:450) - Setting the default network timeout to 20.0
2015-10-27 20:56:56,986 (7f39e1779700) :  DEBUG (core:448) - Starting localization component.
2015-10-27 20:56:56,986 (7f39e1779700) :  INFO (localization:408) - Setting the default locale to en-us
2015-10-27 20:56:56,987 (7f39e1779700) :  DEBUG (localization:426) - Loaded en strings
2015-10-27 20:56:56,987 (7f39e1779700) :  DEBUG (core:448) - Starting messaging component.
2015-10-27 20:56:56,987 (7f39c9ffb700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/system/messaging/clear_events/com.plexapp.plugins.sonarr'
2015-10-27 20:56:56,987 (7f39e1779700) :  DEBUG (core:448) - Starting debugging component.
2015-10-27 20:56:56,988 (7f39e1779700) :  DEBUG (core:448) - Starting services component.
2015-10-27 20:56:56,989 (7f39e1779700) :  DEBUG (core:448) - Starting myplex component.
2015-10-27 20:56:56,989 (7f39e1779700) :  DEBUG (core:448) - Starting notifications component.
2015-10-27 20:56:57,060 (7f39e1779700) :  DEBUG (accessor:68) - Creating a new model access point for provider com.plexapp.plugins.sonarr in namespace 'metadata'
2015-10-27 20:56:57,063 (7f39e1779700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes'
2015-10-27 20:56:57,075 (7f39c9ffb700) :  DEBUG (services:265) - Plug-in is not daemonized - loading services from system
2015-10-27 20:56:57,075 (7f39e1779700) :  DEBUG (runtime:1111) - Created a thread named 'load_all_services'
2015-10-27 20:56:57,076 (7f39c9ffb700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0J1bmRsZVNlcnZpY2U6QWxsU2VydmljZXM_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMApyMAo_'
2015-10-27 20:56:57,076 (7f39e1779700) :  DEBUG (runtime:1111) - Created a thread named 'get_server_info'
2015-10-27 20:56:57,077 (7f39c8ff9700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400'
2015-10-27 20:56:57,077 (7f39e1779700) :  DEBUG (core:150) - Finished starting framework core
2015-10-27 20:56:57,079 (7f39e1779700) :  DEBUG (core:558) - Loading plug-in code
2015-10-27 20:56:57,113 (7f39c8ff9700) :  DEBUG (core:536) - Machine identifier is 91303d7dab8c50661f29a80c87ee5c7d701a687d
2015-10-27 20:56:57,113 (7f39c8ff9700) :  DEBUG (core:537) - Server version is 0.9.12.13.1464-4ccd2ca
2015-10-27 20:56:57,373 (7f39c9ffb700) :  DEBUG (services:362) - Loaded services
2015-10-27 20:56:57,382 (7f39c97fa700) :  DEBUG (services:438) - No shared code to load
2015-10-27 20:56:57,406 (7f39e1779700) :  DEBUG (core:564) - Finished loading plug-in code
2015-10-27 20:56:57,446 (7f39e1779700) :  DEBUG (runtime:640) - Adding a prefix handler for 'Sonarr' ('/video/sonarr')
2015-10-27 20:56:57,448 (7f39e1779700) :  DEBUG (__init__:19) - UTC Offset: -1 day, 17:00:00
2015-10-27 20:56:57,448 (7f39e1779700) :  DEBUG (preferences:258) - Loaded preferences from DefaultPrefs.json
2015-10-27 20:56:57,449 (7f39e1779700) :  DEBUG (preferences:178) - Loaded the user preferences for com.plexapp.plugins.sonarr
2015-10-27 20:56:57,449 (7f39e1779700) :  CRITICAL (sandbox:303) - Exception when calling function 'Start' (most recent call last):
  File "bundles-release/Framework.bundle-dist/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 294, in call_named_function
  File "/opt/tretflix/appdata/plexmediaserver/Plex Media Server/Plug-ins/Sonarr.bundle/Contents/Code/__init__.py", line 21, in Start
    ValidatePrefs()
  File "/opt/tretflix/appdata/plexmediaserver/Plex Media Server/Plug-ins/Sonarr.bundle/Contents/Code/__init__.py", line 27, in ValidatePrefs
    apiUrl = "{}/api/".format(endpoint + Prefs["base"])
TypeError: cannot concatenate 'str' and 'NoneType' objects

2015-10-27 20:56:57,450 (7f39e1779700) :  INFO (core:609) - Started plug-in
2015-10-27 20:56:57,450 (7f39e1779700) :  DEBUG (socketinterface:160) - Starting socket server
2015-10-27 20:56:57,450 (7f39e1779700) :  DEBUG (runtime:1111) - Created a thread named 'start'
2015-10-27 20:56:57,450 (7f39e1779700) :  INFO (socketinterface:184) - Socket server started on port 47359
2015-10-27 20:56:57,450 (7f39e1779700) :  INFO (pipeinterface:25) - Entering run loop
2015-10-27 20:56:57,451 (7f39e1779700) :  DEBUG (runtime:717) - Handling request GET /:/prefixes
2015-10-27 20:56:57,451 (7f39e1779700) :  DEBUG (runtime:814) - Found route matching /:/prefixes
2015-10-27 20:56:57,452 (7f39e1779700) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 421 bytes
2015-10-27 20:57:09,527 (7f39c9ffb700) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.plugins.sonarr/resources/1024.png?t=1446004616
2015-10-27 20:57:09,535 (7f39c9ffb700) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.plugins.sonarr/resources/1024.png
2015-10-27 20:57:09,537 (7f39c9ffb700) :  DEBUG (runtime:106) - Sending packed state data (107 bytes)
2015-10-27 20:57:09,537 (7f39c9ffb700) :  DEBUG (runtime:918) - Response: [200] DataObject, 63552 bytes
2015-10-27 20:57:48,670 (7f39c9ffb700) :  DEBUG (runtime:717) - Handling request GET /video/sonarr
2015-10-27 20:57:48,674 (7f39c9ffb700) :  DEBUG (runtime:814) - Found route matching /video/sonarr
2015-10-27 20:57:48,675 (7f39c9ffb700) :  DEBUG (base:117) - Checking if com.plexapp.plugins.sonarr is broken
2015-10-27 20:57:48,676 (7f39c9ffb700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMjYKY29tLnBsZXhhcHAucGx1Z2lucy5zb25hcnJzMTAKaWRlbnRpZmllcnIwCg__'
2015-10-27 20:57:48,681 (7f39c9ffb700) :  DEBUG (runtime:106) - Sending packed state data (107 bytes)
2015-10-27 20:57:48,681 (7f39c9ffb700) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 1489 bytes
2015-10-27 20:57:48,783 (7f39c9ffb700) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.plugins.sonarr/resources/play.png?t=1446004616
2015-10-27 20:57:48,784 (7f39c9ffb700) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.plugins.sonarr/resources/play.png
2015-10-27 20:57:48,785 (7f39c9ffb700) :  DEBUG (runtime:106) - Sending packed state data (107 bytes)
2015-10-27 20:57:48,785 (7f39c9ffb700) :  DEBUG (runtime:918) - Response: [200] DataObject, 13658 bytes
2015-10-27 20:57:48,869 (7f39c9ffb700) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.plugins.sonarr/resources/logo.png?t=1446004616
2015-10-27 20:57:48,871 (7f39c9ffb700) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.plugins.sonarr/resources/logo.png
2015-10-27 20:57:48,872 (7f39c9ffb700) :  DEBUG (runtime:106) - Sending packed state data (107 bytes)
2015-10-27 20:57:48,872 (7f39c9ffb700) :  DEBUG (runtime:918) - Response: [200] DataObject, 51444 bytes
2015-10-27 20:57:48,927 (7f39c9ffb700) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.plugins.sonarr/resources/calendar.png?t=1446004616
2015-10-27 20:57:48,928 (7f39c9ffb700) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.plugins.sonarr/resources/calendar.png
2015-10-27 20:57:48,928 (7f39c9ffb700) :  DEBUG (runtime:106) - Sending packed state data (107 bytes)
2015-10-27 20:57:48,928 (7f39c9ffb700) :  DEBUG (runtime:918) - Response: [200] DataObject, 13595 bytes
2015-10-27 20:57:49,026 (7f39c9ffb700) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.plugins.sonarr/resources/cloud.png?t=1446004616
2015-10-27 20:57:49,028 (7f39c9ffb700) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.plugins.sonarr/resources/cloud.png
2015-10-27 20:57:49,029 (7f39c9ffb700) :  DEBUG (runtime:106) - Sending packed state data (107 bytes)
2015-10-27 20:57:49,029 (7f39c8ff9700) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.plugins.sonarr/resources/history.png?t=1446004616
2015-10-27 20:57:49,030 (7f39c9ffb700) :  DEBUG (runtime:918) - Response: [200] DataObject, 16994 bytes
2015-10-27 20:57:49,031 (7f39c8ff9700) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.plugins.sonarr/resources/history.png
2015-10-27 20:57:49,033 (7f39c8ff9700) :  DEBUG (runtime:106) - Sending packed state data (107 bytes)
2015-10-27 20:57:49,033 (7f39c8ff9700) :  DEBUG (runtime:918) - Response: [200] DataObject, 27786 bytes
2015-10-27 20:57:49,078 (7f39c8ff9700) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.plugins.sonarr/resources/exclamation-triangle.png?t=1446004616
2015-10-27 20:57:49,079 (7f39c8ff9700) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.plugins.sonarr/resources/exclamation-triangle.png
2015-10-27 20:57:49,080 (7f39c8ff9700) :  DEBUG (runtime:106) - Sending packed state data (107 bytes)
2015-10-27 20:57:49,080 (7f39c8ff9700) :  DEBUG (runtime:918) - Response: [200] DataObject, 22155 bytes
2015-10-27 20:57:51,661 (7f39c8ff9700) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.plugins.sonarr/prefs
2015-10-27 20:57:51,663 (7f39c8ff9700) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.plugins.sonarr/prefs
2015-10-27 20:57:51,664 (7f39c8ff9700) :  DEBUG (runtime:106) - Sending packed state data (107 bytes)
2015-10-27 20:57:51,664 (7f39c8ff9700) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 1366 bytes
2015-10-27 20:57:55,930 (7f39c8ff9700) :  DEBUG (runtime:717) - Handling request GET /video/sonarr
2015-10-27 20:57:55,931 (7f39c8ff9700) :  DEBUG (runtime:814) - Found route matching /video/sonarr
2015-10-27 20:57:55,932 (7f39c8ff9700) :  DEBUG (base:117) - Checking if com.plexapp.plugins.sonarr is broken
2015-10-27 20:57:55,932 (7f39c8ff9700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMjYKY29tLnBsZXhhcHAucGx1Z2lucy5zb25hcnJzMTAKaWRlbnRpZmllcnIwCg__'
2015-10-27 20:57:55,938 (7f39c8ff9700) :  DEBUG (runtime:106) - Sending packed state data (107 bytes)
2015-10-27 20:57:55,938 (7f39c8ff9700) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 1489 bytes
2015-10-27 20:57:55,965 (7f39c8ff9700) :  DEBUG (runtime:717) - Handling request GET /video/sonarr/series/list
2015-10-27 20:57:55,966 (7f39c8ff9700) :  DEBUG (runtime:814) - Found route matching /video/sonarr/series/list
2015-10-27 20:57:55,966 (7f39c8ff9700) :  CRITICAL (runtime:883) - Exception (most recent call last):
  File "bundles-release/Framework.bundle-dist/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 843, in handle_request
  File "/opt/tretflix/appdata/plexmediaserver/Plex Media Server/Plug-ins/Sonarr.bundle/Contents/Code/__init__.py", line 409, in series
    url = apiUrl + "series"
NameError: global name 'apiUrl' is not defined

2015-10-27 20:57:55,968 (7f39c8ff9700) :  DEBUG (runtime:106) - Sending packed state data (107 bytes)
2015-10-27 20:57:55,968 (7f39c8ff9700) :  DEBUG (runtime:918) - Response: [500] 546 bytes
2015-10-27 20:57:57,798 (7f39c8ff9700) :  DEBUG (runtime:717) - Handling request GET /video/sonarr
2015-10-27 20:57:57,799 (7f39c8ff9700) :  DEBUG (runtime:814) - Found route matching /video/sonarr
2015-10-27 20:57:57,800 (7f39c8ff9700) :  DEBUG (base:117) - Checking if com.plexapp.plugins.sonarr is broken
2015-10-27 20:57:57,800 (7f39c8ff9700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMjYKY29tLnBsZXhhcHAucGx1Z2lucy5zb25hcnJzMTAKaWRlbnRpZmllcnIwCg__'
2015-10-27 20:57:57,806 (7f39c8ff9700) :  DEBUG (runtime:106) - Sending packed state data (107 bytes)
2015-10-27 20:57:57,806 (7f39c8ff9700) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 1489 bytes
2015-10-27 21:04:36,795 (7f39c8ff9700) :  DEBUG (runtime:717) - Handling request GET /video/sonarr
2015-10-27 21:04:36,797 (7f39c8ff9700) :  DEBUG (runtime:814) - Found route matching /video/sonarr
2015-10-27 21:04:36,798 (7f39c8ff9700) :  DEBUG (base:117) - Checking if com.plexapp.plugins.sonarr is broken
2015-10-27 21:04:36,798 (7f39c8ff9700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMjYKY29tLnBsZXhhcHAucGx1Z2lucy5zb25hcnJzMTAKaWRlbnRpZmllcnIwCg__'
2015-10-27 21:04:36,804 (7f39c8ff9700) :  DEBUG (runtime:106) - Sending packed state data (107 bytes)
2015-10-27 21:04:36,804 (7f39c8ff9700) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 1489 bytes
2015-10-27 21:04:36,852 (7f39c8ff9700) :  DEBUG (runtime:717) - Handling request GET /video/sonarr/series/list
2015-10-27 21:04:36,853 (7f39c8ff9700) :  DEBUG (runtime:814) - Found route matching /video/sonarr/series/list
2015-10-27 21:04:36,853 (7f39c8ff9700) :  CRITICAL (runtime:883) - Exception (most recent call last):
  File "bundles-release/Framework.bundle-dist/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 843, in handle_request
  File "/opt/tretflix/appdata/plexmediaserver/Plex Media Server/Plug-ins/Sonarr.bundle/Contents/Code/__init__.py", line 409, in series
    url = apiUrl + "series"
NameError: global name 'apiUrl' is not defined

2015-10-27 21:04:36,854 (7f39c8ff9700) :  DEBUG (runtime:106) - Sending packed state data (107 bytes)
2015-10-27 21:04:36,855 (7f39c8ff9700) :  DEBUG (runtime:918) - Response: [500] 546 bytes
pedrovanzella commented 8 years ago

On settings, add '/' to Base URL.

brandonjjon commented 8 years ago

That did the trick, thanks. How difficult would it be to add in the ability to manually search episodes like Sonarr does? The automatic doesn't always work, so the manual option is nice to have in those cases.

brunnels commented 8 years ago

I had the same issue and this resolved it for me. Perhaps the / could be a default value?

jamorin commented 8 years ago

Oops, defaults to a "/" now.

Unfortunately, Sonarr doesn't have an API endpoint for doing manual searches, at least I can't find it documented anywhere. I would love this feature too..