Radarr / Radarr

Movie organizer/manager for usenet and torrent users.
https://radarr.video
GNU General Public License v3.0
10.35k stars 998 forks source link

TorrentDownloadStation : error 160 Unable to retrieve queue and history items #2371

Closed sephrat closed 6 years ago

sephrat commented 6 years ago

Description: I have Radarr installed on my NAS, and I use Download Station (namely Synology-DS in Radarr). The torrents are downloaded into some subfolder in /common/Vidéos/. Once a torrent is finished downloading (and only then), everything breaks down: error 160 This shouldn't be a permission issue, as I manage to manually add movies from that same folder. Manual add The activity feature does work fine - I'm able to see the download progress.

Please note that internally, the full path is /volume1/common/Vidéos (Synology infrastructure). diskstation - synology diskstation - google chrome Internal path

Radarr Version: 0.2.0.910

Logs:

17-12-27 19:37:27.7|Debug|FileStationProxy|Trying to get info of /common
17-12-27 19:37:27.8|Error|FileStationProxy|Failed to get info of /common. Reason: 160 - Unknown error
17-12-27 19:37:27.9|Warn|SharedFolderResolver|Failed to get shared folder /common from Disk Station 127.0.0.1:5000

[v0.2.0.910] NzbDrone.Core.Download.Clients.DownloadClientException: Failed to get info of /common. Reason: 160 - Unknown error
  at NzbDrone.Core.Download.Clients.DownloadStation.Proxies.DiskStationProxyBase.ProcessRequest[T] (NzbDrone.Common.Http.HttpRequestBuilder requestBuilder, System.String operation, NzbDrone.Core.Download.Clients.DownloadStation.DiskStationApi api, NzbDrone.Core.Download.Clients.DownloadStation.DownloadStationSettings settings) [0x000a9] in C:\projects\radarr-usby1\src\NzbDrone.Core\Download\Clients\DownloadStation\Proxies\DiskStationProxyBase.cs:107 
  at NzbDrone.Core.Download.Clients.DownloadStation.Proxies.DiskStationProxyBase.ProcessRequest[T] (NzbDrone.Common.Http.HttpRequestBuilder requestBuilder, System.String operation, NzbDrone.Core.Download.Clients.DownloadStation.DownloadStationSettings settings) [0x00000] in C:\projects\radarr-usby1\src\NzbDrone.Core\Download\Clients\DownloadStation\Proxies\DiskStationProxyBase.cs:66 
  at NzbDrone.Core.Download.Clients.DownloadStation.Proxies.FileStationProxy.GetInfoFileOrDirectory (System.String path, NzbDrone.Core.Download.Clients.DownloadStation.DownloadStationSettings settings) [0x0003d] in C:\projects\radarr-usby1\src\NzbDrone.Core\Download\Clients\DownloadStation\Proxies\FileStationProxy.cs:41 
  at NzbDrone.Core.Download.Clients.DownloadStation.Proxies.FileStationProxy.GetSharedFolderMapping (System.String sharedFolder, NzbDrone.Core.Download.Clients.DownloadStation.DownloadStationSettings settings) [0x00000] in C:\projects\radarr-usby1\src\NzbDrone.Core\Download\Clients\DownloadStation\Proxies\FileStationProxy.cs:28 
  at NzbDrone.Core.Download.Clients.DownloadStation.SharedFolderResolver.GetPhysicalPath (NzbDrone.Common.Disk.OsPath sharedFolder, NzbDrone.Core.Download.Clients.DownloadStation.DownloadStationSettings settings) [0x00000] in C:\projects\radarr-usby1\src\NzbDrone.Core\Download\Clients\DownloadStation\SharedFolderResolver.cs:33 

17-12-27 19:37:28.2|Warn|DownloadMonitoringService|Unable to retrieve queue and history items from Synology-DS

[v0.2.0.910] NzbDrone.Core.Download.Clients.DownloadClientException: Failed to get info of /common. Reason: 160 - Unknown error
  at NzbDrone.Core.Download.Clients.DownloadStation.Proxies.DiskStationProxyBase.ProcessRequest[T] (NzbDrone.Common.Http.HttpRequestBuilder requestBuilder, System.String operation, NzbDrone.Core.Download.Clients.DownloadStation.DiskStationApi api, NzbDrone.Core.Download.Clients.DownloadStation.DownloadStationSettings settings) [0x000a9] in C:\projects\radarr-usby1\src\NzbDrone.Core\Download\Clients\DownloadStation\Proxies\DiskStationProxyBase.cs:107 
  at NzbDrone.Core.Download.Clients.DownloadStation.Proxies.DiskStationProxyBase.ProcessRequest[T] (NzbDrone.Common.Http.HttpRequestBuilder requestBuilder, System.String operation, NzbDrone.Core.Download.Clients.DownloadStation.DownloadStationSettings settings) [0x00000] in C:\projects\radarr-usby1\src\NzbDrone.Core\Download\Clients\DownloadStation\Proxies\DiskStationProxyBase.cs:66 
  at NzbDrone.Core.Download.Clients.DownloadStation.Proxies.FileStationProxy.GetInfoFileOrDirectory (System.String path, NzbDrone.Core.Download.Clients.DownloadStation.DownloadStationSettings settings) [0x0003d] in C:\projects\radarr-usby1\src\NzbDrone.Core\Download\Clients\DownloadStation\Proxies\FileStationProxy.cs:41 
  at NzbDrone.Core.Download.Clients.DownloadStation.Proxies.FileStationProxy.GetSharedFolderMapping (System.String sharedFolder, NzbDrone.Core.Download.Clients.DownloadStation.DownloadStationSettings settings) [0x00000] in C:\projects\radarr-usby1\src\NzbDrone.Core\Download\Clients\DownloadStation\Proxies\FileStationProxy.cs:28 
  at NzbDrone.Core.Download.Clients.DownloadStation.SharedFolderResolver.GetPhysicalPath (NzbDrone.Common.Disk.OsPath sharedFolder, NzbDrone.Core.Download.Clients.DownloadStation.DownloadStationSettings settings) [0x00000] in C:\projects\radarr-usby1\src\NzbDrone.Core\Download\Clients\DownloadStation\SharedFolderResolver.cs:33 
sephrat commented 6 years ago

For the record, it seems to occur in Sonarr as well (not tested myself): https://github.com/Sonarr/Sonarr/issues/1758

JKetelaar commented 6 years ago

I'm facing the same issue, has anyone found a solution to this yet?

galli-leo commented 6 years ago

Not really, since this isn't a documented error code, not much we can do.

JKetelaar commented 6 years ago

I managed to debug the error from my side and solve it (at least for me). Here are the two solutions that made it work:

  1. Make sure that the account accessing your Synology from Radarr/Sonarr doesn't just have download-station access. It also needs file-station access, as the API calls the file-station after the download is finished within the download-station.

  2. Within the download client section I have added a Remote Path Mapping:

    Host: host set as in the download client
    Remote Path: `/volume1/your_path/on_the/synology` (`/volume1/video/Series/Downloads/` for me)
    Local path: `/your_path/without/volume1` (`/video/Series/Downloads/` for me)

Hope this helps anyone!

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. Please verify that this is still an issue with the latest version of Radarr and report back. Otherwise this issue will be closed.