Deluge is failing to respond in a timely matter when Sonarr attempts to connect to the daemon through the web API

Sonarr version (exact version): 2.0.0.3953
OS: Windows 10 x64
((Debug logs)) (posted to hastebin or similar): http://pastebin.com/zP0e4NTh
Description of issue: Sonarr throws an authentication error if the password is wrong while setting up connect. If the password is correct, an unknown error is thrown in the UI

You’ll have to check the deluged log. The Web api times out when the daemon runs into an error.

This is what I am getting. I enabled Trace logging. One thing I noticed, is the web UI for deluge is working. When i try to start the daemon or i guess server, it refuses to start. I ran deluge-web.exe manually and I am able to start the server from the web UI.

16-5-6 09:30:23.7|Debug|RestSharpExtensions|Validating Responses from [POST] [http://localhost:8112/json] status: [OK]
16-5-6 09:30:23.7|Trace|RestSharpExtensions|Response: {"id": 15, "result": null, "error": {"message": "Unknown method", "code": 2}}
16-5-6 09:30:23.7|Debug|DelugeProxy|Url: http://localhost:8112/json Action: auth.login
16-5-6 09:30:23.7|Debug|RestSharpExtensions|Validating Responses from [POST] [http://localhost:8112/json] status: [OK]
16-5-6 09:30:23.7|Trace|RestSharpExtensions|Response: {"id": 16, "result": true, "error": null}
16-5-6 09:30:23.7|Debug|DelugeProxy|Deluge authentication succeeded.
16-5-6 09:30:23.7|Debug|DelugeProxy|Url: http://localhost:8112/json Action: web.connected
16-5-6 09:30:23.7|Debug|RestSharpExtensions|Validating Responses from [POST] [http://localhost:8112/json] status: [OK]
16-5-6 09:30:23.7|Trace|RestSharpExtensions|Response: {"id": 17, "result": false, "error": null}
16-5-6 09:30:23.8|Debug|DelugeProxy|Url: http://localhost:8112/json Action: web.get_hosts
16-5-6 09:30:23.8|Debug|RestSharpExtensions|Validating Responses from [POST] [http://localhost:8112/json] status: [OK]
16-5-6 09:30:23.8|Trace|RestSharpExtensions|Response: {"id": 18, "result": [["6508fa1eebc1306f817234237803bde2589afd20", "127.0.0.1", 58846, "Offline"]], "error": null}
16-5-6 09:30:23.8|Debug|DelugeProxy|Url: http://localhost:8112/json Action: web.connect
16-5-6 09:30:27.9|Trace|Scheduler|Pending Tasks: 0
16-5-6 09:30:38.8|Debug|RestSharpExtensions|Validating Responses from [POST] [http://localhost:8112/json] status: [0]
16-5-6 09:30:38.8|Error|RestSharpExtensions|Error communicating with server

[v2.0.0.3953] System.Net.WebException: The request was aborted: The operation has timed out.
   at System.Net.HttpWebRequest.GetResponse()
   at RestSharp.Http.GetRawResponse(HttpWebRequest request)
   at RestSharp.Http.GetResponse(HttpWebRequest request)

16-5-6 09:30:38.8|Error|Deluge|The request was aborted: The operation has timed out.

[v2.0.0.3953] System.Net.WebException: The request was aborted: The operation has timed out.
   at NzbDrone.Core.Rest.RestSharpExtensions.ValidateResponse(IRestResponse response, IRestClient restClient) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Rest\RestSharpExtensions.cs:line 33
   at NzbDrone.Core.Rest.RestSharpExtensions.Read[T](IRestResponse restResponse, IRestClient restClient) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Rest\RestSharpExtensions.cs:line 60
   at NzbDrone.Core.Rest.RestSharpExtensions.ExecuteAndValidate[T](IRestClient client, IRestRequest request) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Rest\RestSharpExtensions.cs:line 72
   at NzbDrone.Core.Download.Clients.Deluge.DelugeProxy.ProcessRequest[TResult](IRestClient client, String action, Object[] arguments) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\Clients\Deluge\DelugeProxy.cs:line 226
   at NzbDrone.Core.Download.Clients.Deluge.DelugeProxy.ConnectDaemon(IRestClient restClient) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\Clients\Deluge\DelugeProxy.cs:line 296
   at NzbDrone.Core.Download.Clients.Deluge.DelugeProxy.AuthenticateClient(IRestClient restClient) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\Clients\Deluge\DelugeProxy.cs:line 275
   at NzbDrone.Core.Download.Clients.Deluge.DelugeProxy.ProcessRequest[TResult](DelugeSettings settings, String action, Object[] arguments) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\Clients\Deluge\DelugeProxy.cs:line 189
   at NzbDrone.Core.Download.Clients.Deluge.DelugeProxy.GetVersion(DelugeSettings settings) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\Clients\Deluge\DelugeProxy.cs:line 50
   at NzbDrone.Core.Download.Clients.Deluge.Deluge.TestConnection() in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\Clients\Deluge\Deluge.cs:line 203

16-5-6 09:30:38.8|Trace|NzbDroneErrorPipeline|Handling Exception
16-5-6 09:30:38.8|Warn|NzbDroneErrorPipeline|Invalid request Validation failed: 
 -- Unknown exception: The request was aborted: The operation has timed out.

I’m talking about Deluge Daemon logs, not the Sonarr logs.

Ahh sorry

So it looks like deluge is running now. I removed it completely. I realized there is a Python 2.6v and a 2.7v I am running 2.7 so I installed the correct version. I am able to get the Deluge Daemon running correctly now but for some reason I cannot get any plugins to enable.

Sonarr now complains that the label plugin isnt running. Ill take this to the deluge forums!!

There are separate plugin versions for 2.6 and 2.7. google will get you a link to both versions.

Yup

I see that. I have it all up and running now!! Sonarr is happy. Deluge is downloading.

Thanks for your help!

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