Communication error! Cannot establish connection to NZBGet

  • I'm at a loss. I've been working on this for about a week and can't find a solution.


    Installed OMV 5 on RPi4 8GB Oct '19 and has been running great for 6+ months. Rebooted approximately 3/24, after several OMV/Debian, bootloader/eeprom updates. Now I'm getting an error in the Nzgbet GUI when an nzb is sent from Sonarr or Radarr to Nzbget:

    Communication error!

    Cannot establish connection to NZBGet.


    Observations:

    Other apps run ok: Ombi, Mealie, Radarr, Docker, Portainer, Sonarr, Tautulli, Heimdall, etc-Trying to rule out Docker

    The history and/or stats file in queue directory appear to be the cause-Both are readable in Notepad

    Deleting history/stats file in Nzbget queue directory allows Nzbget GUI to work

    Clicking download client test from within Sonarr and Radarr are successful

    Nzbget downloads continue ok but renaming and moving fail


    Nzbget startup message in GUI with "(null)" when it is usually "nzbget 21.0 server-mode":

    INFO Thu Apr 01 2021 12:05:48 (null)


    Errors in Radarr and Sonarr


    Error inside Sonarr UI:

    Unable to communicate with Nzbget. Unable to connect to NzbGet. Error getting response stream (ReadDoneAsync2): ReceiveFailure: 'http://192.168.1.24:6789/jsonrpc'


    Sonarr logs:

    21-4-1 00:04:46.7|Warn|DownloadMonitoringService|Unable to retrieve queue and history items from Nzbget


    [v3.0.6.1196] NzbDrone.Core.Download.Clients.DownloadClientUnavailableException: Unable to connect to NzbGet. Error getting response stream (ReadDoneAsync2): ReceiveFailure: 'http://192.168.1.24:6789/jsonrpc' ---> System.Net.WebException: Error getting response stream (ReadDoneAsync2): ReceiveFailure: 'http://192.168.1.24:6789/jsonrpc' ---> System.Net.WebException: Error getting response stream (ReadDoneAsync2): ReceiveFailure

    at System.Net.WebResponseStream.InitReadAsync (System.Threading.CancellationToken cancellationToken) [0x000f3] in <91935ad653254a93b9d73a9f8f2f7a2d>:0

    at System.Net.WebOperation.Run () [0x001d9] in <91935ad653254a93b9d73a9f8f2f7a2d>:0

    at System.Net.WebCompletionSource`1[T].WaitForCompletion () [0x00094] in <91935ad653254a93b9d73a9f8f2f7a2d>:0

    at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task`1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func`1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000f8] in <91935ad653254a93b9d73a9f8f2f7a2d>:0

    at System.Net.HttpWebRequest.GetResponse () [0x00016] in <91935ad653254a93b9d73a9f8f2f7a2d>:0

    at NzbDrone.Common.Http.Dispatchers.ManagedHttpDispatcher.GetResponse (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookies) [0x00123] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Common\Http\Dispatchers\ManagedHttpDispatcher.cs:81

    --- End of inner exception stack trace ---

    at NzbDrone.Common.Http.Dispatchers.ManagedHttpDispatcher.GetResponse (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookies) [0x001bb] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Common\Http\Dispatchers\ManagedHttpDispatcher.cs:107

    at NzbDrone.Common.Http.HttpClient.ExecuteRequest (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookieContainer) [0x00086] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Common\Http\HttpClient.cs:126

    at NzbDrone.Common.Http.HttpClient.Execute (NzbDrone.Common.Http.HttpRequest request) [0x00008] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Common\Http\HttpClient.cs:59

    at NzbDrone.Core.Download.Clients.Nzbget.NzbgetProxy.ProcessRequest[T] (NzbDrone.Core.Download.Clients.Nzbget.NzbgetSettings settings, System.String method, System.Object[] parameters) [0x0003b] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Download\Clients\Nzbget\NzbgetProxy.cs:241

    --- End of inner exception stack trace ---

    at NzbDrone.Core.Download.Clients.Nzbget.NzbgetProxy.ProcessRequest[T] (NzbDrone.Core.Download.Clients.Nzbget.NzbgetSettings settings, System.String method, System.Object[] parameters) [0x00087] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Download\Clients\Nzbget\NzbgetProxy.cs:254

    at NzbDrone.Core.Download.Clients.Nzbget.NzbgetProxy.GetHistory (NzbDrone.Core.Download.Clients.Nzbget.NzbgetSettings settings) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Download\Clients\Nzbget\NzbgetProxy.cs:144

    at NzbDrone.Core.Download.Clients.Nzbget.Nzbget.GetHistory () [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Download\Clients\Nzbget\Nzbget.cs:111

    at NzbDrone.Core.Download.Clients.Nzbget.Nzbget.GetItems () [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Download\Clients\Nzbget\Nzbget.cs:191

    at NzbDrone.Core.Download.TrackedDownloads.DownloadMonitoringService.ProcessClientDownloads (NzbDrone.Core.Download.IDownloadClient downloadClient) [0x0000c] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Download\TrackedDownloads\DownloadMonitoringService.cs:93


    Error inside Radarr UI:

    Unable to communicate with NZBGet. Unable to connect to NzbGet. Connection refused Connection refused: 'http://192.168.1.24:6789/jsonrpc'


    Radarr logs:

    2021-4-1 00:05:57.1|Warn|DownloadMonitoringService|Unable to retrieve queue and history items from NZBGet


    [v3.0.2.4552] NzbDrone.Core.Download.Clients.DownloadClientUnavailableException: Unable to connect to NzbGet. An error occurred while sending the request. The response ended prematurely.: 'http://192.168.1.24:6789/jsonrpc'

    ---> System.Net.WebException: An error occurred while sending the request. The response ended prematurely.: 'http://192.168.1.24:6789/jsonrpc'

    ---> System.Net.WebException: An error occurred while sending the request. The response ended prematurely.

    ---> System.Net.Http.HttpRequestException: An error occurred while sending the request.

    ---> System.IO.IOException: The response ended prematurely.

    at System.Net.Http.HttpConnection.FillAsync()

    at System.Net.Http.HttpConnection.ReadNextResponseHeaderLineAsync(Boolean foldedHeadersAllowed)

    at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)

    --- End of inner exception stack trace ---

    at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)

    at System.Net.Http.HttpConnectionPool.SendWithNtConnectionAuthAsync(HttpConnection connection, HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)

    at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)

    at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)

    at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)

    at System.Net.HttpWebRequest.SendRequest()

    at System.Net.HttpWebRequest.GetResponse()

    --- End of inner exception stack trace ---

    at System.Net.HttpWebRequest.GetResponse()

    at NzbDrone.Common.Http.Dispatchers.ManagedHttpDispatcher.GetResponse(HttpRequest request, CookieContainer cookies) in D:\a\1\s\src\NzbDrone.Common\Http\Dispatchers\ManagedHttpDispatcher.cs:line 146

    --- End of inner exception stack trace ---

    at NzbDrone.Common.Http.Dispatchers.ManagedHttpDispatcher.GetResponse(HttpRequest request, CookieContainer cookies) in D:\a\1\s\src\NzbDrone.Common\Http\Dispatchers\ManagedHttpDispatcher.cs:line 146

    at NzbDrone.Common.Http.HttpClient.ExecuteRequest(HttpRequest request, CookieContainer cookieContainer) in D:\a\1\s\src\NzbDrone.Common\Http\HttpClient.cs:line 121

    at NzbDrone.Common.Http.HttpClient.Execute(HttpRequest request) in D:\a\1\s\src\NzbDrone.Common\Http\HttpClient.cs:line 57

    at NzbDrone.Core.Download.Clients.Nzbget.NzbgetProxy.ProcessRequest[T](NzbgetSettings settings, String method, Object[] parameters) in D:\a\1\s\src\NzbDrone.Core\Download\Clients\Nzbget\NzbgetProxy.cs:line 252

    --- End of inner exception stack trace ---

    at NzbDrone.Core.Download.Clients.Nzbget.NzbgetProxy.ProcessRequest[T](NzbgetSettings settings, String method, Object[] parameters) in D:\a\1\s\src\NzbDrone.Core\Download\Clients\Nzbget\NzbgetProxy.cs:line 252

    at NzbDrone.Core.Download.Clients.Nzbget.NzbgetProxy.GetHistory(NzbgetSettings settings) in D:\a\1\s\src\NzbDrone.Core\Download\Clients\Nzbget\NzbgetProxy.cs:line 145

    at NzbDrone.Core.Download.Clients.Nzbget.Nzbget.GetHistory() in D:\a\1\s\src\NzbDrone.Core\Download\Clients\Nzbget\Nzbget.cs:line 115

    at NzbDrone.Core.Download.Clients.Nzbget.Nzbget.GetItems() in D:\a\1\s\src\NzbDrone.Core\Download\Clients\Nzbget\Nzbget.cs:line 188

    at NzbDrone.Core.Download.TrackedDownloads.DownloadMonitoringService.ProcessClientDownloads(IDownloadClient downloadClient) in D:\a\1\s\src\NzbDrone.Core\Download\TrackedDownloads\DownloadMonitoringService.cs:line 89


    Host System:

    RPI4 8GB Rasp Lite 32Bit

    OpenMediaValut 5.6.2-1 (Usul) on SD card with flash plugin / Data drive 8TB External USB

    Processor ARMv& rev 3 (v71)

    Kernel Linux 5.10.17-v71+

    Debian backports installed-libseccomp2_2.5.1-1_armhf.deb

    All updates via OMV current 3/31/21


    Docker version:

    5:20.10.5~3-0~debian-buster


    Nzbget container:

    linuxserver/nzbget:latest

    build_version Linuxserver.io version:- v21.0-ls75 Build-date:- 2021-03-18T06:34:58-04:00

    maintainer thelamer


    Nzbget version:

    21.0


    Failed corrective actions:

    Win 10 Home 64Bit-Client - Cleared browser and tried in incognito - chrome Version 89.0.4389.90 (Official Build) (64-bit)-No change

    Changed permissions on all files and directories to 777 - No change

    Moved backups of good history/stats to queue directory - No change

    Reimaged different SD card and formatted external USB drive and followed OMV guides for reinstall - No Change



    Any help is greatly appreciated!

  • I think you used a wrong tag (latest) for your RPI.
    Not sure which you have to use, it's arm32v7-latest or arm64v8-latest I think.

    Hewlett-Packard HP t630 (AMD Embedded G-Series GX-420GI | QuadCore | 8GB)
    omv 5.6.5-2 (Usul) | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6

  • I had exactly the same problem with NZBGet on OMV5, which started about 2 months ago (c. January 2021).


    Since then I have done a complete re-install from scratch, but not OMV5 - Ubuntu 18.04. I have installed all the containers using dockstarter.


    And I still get exactly the same problem - NZBGet appears fine, until you attempt to pull something via radarr or Sonarr. Then get this error message in that application and if you try to log into NZBGet it reports that a connection cannot be established.


    Have found that the problem can be cleared by deleting the NZBGet queue directory, but only until you attempt to pull another how/movie.


    Unable to find any solution. Any help appreciated.

  • Same error as the OP - Practically same config too, OMV from a clean build on top of 32bit Raspi OS on 8GB Pi4.


    Current docker builds for Sonarr, Radarr and Lidarr all fail with the same message:


    Quote

    Unable to communicate with Nzbget. Unable to connect to NzbGet. Error getting response stream (ReadDoneAsync2): ReceiveFailure: 'http://192.168.1.24:6789/jsonrpc'


    Nzbget WebUI


    Quote

    Communication error!

    Cannot establish connection to NZBGet.


    Tested with Firefox v87.0 on Linux with error message above, completely fails on Chrome v89.x


    As an aside I run exactly the same versions of NZBget/Sonarr/Radarr/Lidarr as Jails on a separate x86 PC with Truenas 12.02-U2 without issue.

  • Update:


    I've found this older version of the container to work ok. No more errors.


    docker pull ghcr.io/linuxserver/nzbget:arm32v7-v21.0-ls70

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!