rdt-client icon indicating copy to clipboard operation
rdt-client copied to clipboard

Downloads being marked as finished but single files not being completely downloaded

Open dmk00 opened this issue 2 years ago • 7 comments

What version are you using? I just installed from Unraid Dockerhub integration. Repo = rogerfar/rdtclient What OS are you running? I am running on Unraid 6.12.0-rc4 Are you using Docker or as a service? Docker on Unraid

Hello, I've encountered a big issue yesterday: I was running a few downloads over night. When I looked through the downloads I started my usual process to rename the files and move them to their final directory. While doing this I discovered that some of the downloaded files differed immensely in file size from other video files in the same folder. I looked at the download list on rdtclient: every file was marked as "finished". I looked at some of the "failed" files, they had automatic retries but were also marked as finished.

I had to delete everything that I've downloaded in the last few days (about 1.5TB) as I could not be sure if there were any more corrupted files or not. Is this an issue that's known? I have been using my sonarr/radarr integration. I noticed this with Anime downloads that have been requested by my sonarr integration.

dmk00 avatar May 10 '23 07:05 dmk00

Add some logs in debug mode please.

rogerfar avatar May 10 '23 13:05 rogerfar

I've included the debug log and 2 screenshots:

  • First screenshot is the finished status in rdtclient for both affected files
  • Second screenshot are the two incomplete/partial files (episode 1 and episode 2 in this case)

This was my second experiment, the first one was without debug mode and there it was different files that were affected. Both files should be roundabout 1.4GB, but they are nowhere near that number as you can see on the screenshot.

rdtclient.log rdtclient 1 - torrents finished rdtclient 2 - partial files

dmk00 avatar May 10 '23 14:05 dmk00

Unfortunately very hard to say what happened here, logs don't include those files in particular.

Is this still occurring?

rogerfar avatar Jun 11 '23 17:06 rogerfar

Same experience here. Partial downloads from prem being marked as complete.

hieronymu avatar Jun 18 '23 20:06 hieronymu

I don't know how to read the logs, but searching for "Mawaru" gives me many results.

dmk00 avatar Jun 23 '23 15:06 dmk00

I'm still experiencing this. I looked thru @shengdom's logs and found the following in case there are any hints here.

2023-05-10 16:24:12.900 +02:00 [DBG] RdtClient.Service.Services.TorrentClients.AllDebridTorrentClient: Mawaru.Penguindrum.S01E06.1080p-Hi10p.BluRay.FLAC2.0.x264-CTR.[7088E5E6].mkv (1733570812b) https://<redacted>/7dciaj7ex35m, contains files:
/Mawaru.Penguindrum.S01E06.1080p-Hi10p.BluRay.FLAC2.0.x264-CTR.[7088E5E6].mkv
2023-05-10 16:26:17.195 +02:00 [DBG] RdtClient.Service.Services.TorrentRunner: Marking download as started for download Mawaru.Penguindrum.S01E06.1080p-Hi10p.BluRay.FLAC2.0.x264-CTR.[7088E5E6].mkv 0% (bf551d75-c7ec-442e-844c-d360929042d2) for torrent Mawaru.Penguindrum.S01.1080p-Hi10p.BluRay.FLAC2.0.x264-CTR (189089200 - Ready 100%) (82a18e42-3e0a-4abd-81b1-9cc9bd9bd538)
2023-05-10 16:26:17.196 +02:00 [DBG] RdtClient.Service.Services.TorrentRunner: Setting download path to /downloads for download Mawaru.Penguindrum.S01E06.1080p-Hi10p.BluRay.FLAC2.0.x264-CTR.[7088E5E6].mkv 0% (bf551d75-c7ec-442e-844c-d360929042d2) for torrent Mawaru.Penguindrum.S01.1080p-Hi10p.BluRay.FLAC2.0.x264-CTR (189089200 - Ready 100%) (82a18e42-3e0a-4abd-81b1-9cc9bd9bd538)
2023-05-10 16:26:17.196 +02:00 [DBG] RdtClient.Service.Services.TorrentRunner: Starting download for download Mawaru.Penguindrum.S01E06.1080p-Hi10p.BluRay.FLAC2.0.x264-CTR.[7088E5E6].mkv 0% (bf551d75-c7ec-442e-844c-d360929042d2) for torrent Mawaru.Penguindrum.S01.1080p-Hi10p.BluRay.FLAC2.0.x264-CTR (189089200 - Ready 100%) (82a18e42-3e0a-4abd-81b1-9cc9bd9bd538)
2023-05-10 16:26:17.197 +02:00 [DBG] RdtClient.Service.Services.Downloaders.InternalDownloader: Starting download of https://<redacted>/dl/2rhudfac43d/Mawaru.Penguindrum.S01E06.1080p-Hi10p.BluRay.FLAC2.0.x264-CTR.%5B7088E5E6%5D.mkv, writing to path: /downloads/Mawaru.Penguindrum.S01.1080p-Hi10p.BluRay.FLAC2.0.x264-CTR/Mawaru.Penguindrum.S01E06.1080p-Hi10p.BluRay.FLAC2.0.x264-CTR.[7088E5E6].mkv
2023-05-10 16:26:18.197 +02:00 [DBG] RdtClient.Service.Services.TorrentRunner: No ID received for download Mawaru.Penguindrum.S01E06.1080p-Hi10p.BluRay.FLAC2.0.x264-CTR.[7088E5E6].mkv 0% (bf551d75-c7ec-442e-844c-d360929042d2) for torrent Mawaru.Penguindrum.S01.1080p-Hi10p.BluRay.FLAC2.0.x264-CTR (189089200 - Ready 100%) (82a18e42-3e0a-4abd-81b1-9cc9bd9bd538)
2023-05-10 16:27:05.980 +02:00 [DBG] RdtClient.Service.Services.Torrents: Cancelling download for download Mawaru.Penguindrum.S01E06.1080p-Hi10p.BluRay.FLAC2.0.x264-CTR.[7088E5E6].mkv 0% (bf551d75-c7ec-442e-844c-d360929042d2) for torrent Mawaru.Penguindrum.S01.1080p-Hi10p.BluRay.FLAC2.0.x264-CTR (189089200 - Ready 100%) (82a18e42-3e0a-4abd-81b1-9cc9bd9bd538)
2023-05-10 16:27:05.980 +02:00 [DBG] RdtClient.Service.Services.Downloaders.InternalDownloader: Cancelling download https://<redacted>/dl/2rhudfac43d/Mawaru.Penguindrum.S01E06.1080p-Hi10p.BluRay.FLAC2.0.x264-CTR.%5B7088E5E6%5D.mkv
2023-05-10 16:27:06.016 +02:00 [DBG] RdtClient.Service.Services.TorrentRunner: Processing download for download Mawaru.Penguindrum.S01E06.1080p-Hi10p.BluRay.FLAC2.0.x264-CTR.[7088E5E6].mkv 0% (bf551d75-c7ec-442e-844c-d360929042d2) for torrent Mawaru.Penguindrum.S01.1080p-Hi10p.BluRay.FLAC2.0.x264-CTR (189089200 - Ready 100%) (82a18e42-3e0a-4abd-81b1-9cc9bd9bd538)
2023-05-10 16:27:06.016 +02:00 [DBG] RdtClient.Service.Services.TorrentRunner: Download finished successfully for download Mawaru.Penguindrum.S01E06.1080p-Hi10p.BluRay.FLAC2.0.x264-CTR.[7088E5E6].mkv 0% (bf551d75-c7ec-442e-844c-d360929042d2) for torrent Mawaru.Penguindrum.S01.1080p-Hi10p.BluRay.FLAC2.0.x264-CTR (189089200 - Ready 100%) (82a18e42-3e0a-4abd-81b1-9cc9bd9bd538)
2023-05-10 16:27:06.018 +02:00 [DBG] RdtClient.Service.Services.TorrentRunner: Removed from ActiveDownloadClients for download Mawaru.Penguindrum.S01E06.1080p-Hi10p.BluRay.FLAC2.0.x264-CTR.[7088E5E6].mkv 0% (bf551d75-c7ec-442e-844c-d360929042d2) for torrent Mawaru.Penguindrum.S01.1080p-Hi10p.BluRay.FLAC2.0.x264-CTR (189089200 - Ready 100%) (82a18e42-3e0a-4abd-81b1-9cc9bd9bd538)

hieronymu avatar Sep 06 '23 23:09 hieronymu

@hieronymu I see in your log Cancelling download, but I don't see anything that can cause this. Do you have a full log?

@shengdom when I look in your logs at the end I see: RdtClient.Service.Services.Torrents: Deleting for torrent Mawaru.Penguindrum

This even can only come from:

  • Deleting it from the web interface
  • If AutoDelete is set, and the torrent was deleted from RealDebrid
  • Deleted from the qBittorrent API (Sonarr/Radarr).

Because this event was triggered, the downloaders cancel and keep whatever there is downloaded.

In the next version I added a bit more logging to see exactly where this request would come from.

rogerfar avatar Sep 21 '23 02:09 rogerfar

If it's still an issue please file a new issue with new logs.

rogerfar avatar Mar 06 '24 02:03 rogerfar