Sonarr is moving incomplete files from Deluge

I am using sonarr on Windows with Deluge. Sonarr is grabbing and sending torrents to Deluge properly. However, if I turn off my computer before a download has finished, when I start it up again Deluge sets the status to “checking”. Now when this happens, sonarr appears to think that the download is finished, because I get a “download completed” push notification and sonarr moves and renames the downloaded file. Note that it leaves the torrent in Deluge, which it doesn’t do if the download completes normally. Deluge then starts downloading the file again, although I am not sure if sonarr picks up when the file actually completes when this happens.

Is there a way to get sonarr to ignore downloads with the status of “checking” in Deluge?

Thanks for your help and for some great software!

Update: I found out that sonarr will also remove the file and torrent (i.e. in Deluge) of an incomplete download if I pause the downloads in Deluge.

Advice?

Sounds like deluge is reporting the status in a way Sonarr does not expect and possibly that the ratio its set to seed to is low that Deluge tells Sonarr its finished seeding when it hasn’t even finished downloading.

We’ll need trace logs of both scenarios to see what Deluge is sending to Sonarr to investigate further.

Thanks for the reply.

I hope these are the logs you are looking for: http://pastebin.com/1mkh1Mbs They should reflect an instance where sonarr read an incomplete file, after a restart, as complete. I think the relevant part is around line 267 (file is ‘The.Blacklist.S03E09.720p.HDTV.x264-FLEET.mkv’)

There will probably always be race conditions when a file is being written to. I suggest setting up Deluge so that it uses an Incomplete folder while it’s busy (if such functionality exists). I’ve had similar issues using Transmission and the Black hole downloaders.

I do use an ‘Incomplete folder’. The path “D:\Torrents\Downloads” is that. Completed files get moved elsewhere, for example ‘D:\Torrents\TV’.

Unfortunately Deluge’s response to Sonarr is not logged, so its still a mystery why Deluge’s state is treated as completed.

We’ll need to add additional logging for this.

Which version of Deluge?

Deluge 1.3.12.

I’ll see if I can add extra logs as it happens.

Thanks.

1 Like

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