Transmission keeps seeding while file has been removed or deleted (!)

Discussion of Transmission that doesn't fit in the other categories
Post Reply
denniss
Posts: 4
Joined: Thu Jun 30, 2016 10:09 am

Transmission keeps seeding while file has been removed or deleted (!)

Post by denniss » Thu Jun 30, 2016 10:21 am

I have a very strange issue;

I am using Transmission on my Synology NAS,
when I have downloaded a file , I will move this or remove this from the download folder.
So, ususally you should expect an error of Transmission saying that the file could not be found anymore.
I do this because I do not wanna seed a lot due to Dutch laws.

But, since 2-3 months Transmission keeps uploading,
Even while the download has been moved or removed !
How is this even possible? Should be impossible.
When I click "Verify Local Data" , then Transmissions sees the file has been removed and will give the expected error.

I am not happy, I have seeded 2TB of data in the last 80 days,
I was unaware of this because I moved the downloads from the download folder.
I really dont know how this can be possible ?!

Does someone has any idea?

Br, Denniss

x190
Posts: 5094
Joined: Sun Nov 30, 2008 4:59 am

Re: Transmission keeps seeding while file has been removed or deleted (!)

Post by x190 » Thu Jun 30, 2016 3:43 pm

It isn't possible to know exactly what you're talking about, but since it is an attached device you likely need to manually delete the data, otherwise what you are doing is more like a 'copy' operation. Also, why don't you remove the torrent itself from Transmission?
The stone age didn’t end because we ran out of stones.
---The Great Disruption - by Paul Gilding
https://paulgilding.com/
-------------------------------------------------

denniss
Posts: 4
Joined: Thu Jun 30, 2016 10:09 am

Re: Transmission keeps seeding while file has been removed or deleted (!)

Post by denniss » Thu Jun 30, 2016 5:55 pm

No, its not a copy operation: The downloaded TV serie has been moved/removed from the shared folder.
Uploading shouldnt even be possible anymore. When I look in the folder I see the downloaded serie has been removed.
But, it keeps uploading/seeding.

It only stops when I click "verify local data" in Transmission,
then it looks like Transmission "suddenly sees" the data does not excist anymore.

I really cannot understand this issue. Maybe there is something of cashed data in the Transmission service?
I will make a screenrecording of the issue so you can see it.

( I can remove the torrent ofcourse, but I do not always login to transmission.
I just move downloads to my series folder. Before this problem upload stopped because of "cant find file error" )

x190
Posts: 5094
Joined: Sun Nov 30, 2008 4:59 am

Re: Transmission keeps seeding while file has been removed or deleted (!)

Post by x190 » Fri Jul 01, 2016 12:21 am

I just move downloads to my series folder.
If you do that while Transmission is running, it still has a 'handle' or 'file descriptor' for the data and won't 'see' that it has been moved until you restart Transmission or pause/restart the torrent. Try setting different 'incomplete' and 'download' locations within Transmission to accomplish your location goals without manually moving data while Transmission is running.
The stone age didn’t end because we ran out of stones.
---The Great Disruption - by Paul Gilding
https://paulgilding.com/
-------------------------------------------------

denniss
Posts: 4
Joined: Thu Jun 30, 2016 10:09 am

Re: Transmission keeps seeding while file has been removed or deleted (!)

Post by denniss » Fri Jul 01, 2016 7:27 am

Ok, but explain me: How could data still be uploaded while the whole file has been removed ??

The whole search/download/move to mediaserver procces goes automatically,
before it was no problem: Downloaded file has been moved to series folder (so removed from shared folder) and upload stops immediatly because data has been removed. Transmission is now uploading data while there is no file anymore.

x190
Posts: 5094
Joined: Sun Nov 30, 2008 4:59 am

Re: Transmission keeps seeding while file has been removed or deleted (!)

Post by x190 » Fri Jul 01, 2016 1:20 pm

It's just the way the OS works. An open file descriptor 'follows' the file around, if it is moved while the application is running and the torrent is active.

Obviously, you are not supposed to do that; Transmission has a 'Set Location' feature within the application.
The stone age didn’t end because we ran out of stones.
---The Great Disruption - by Paul Gilding
https://paulgilding.com/
-------------------------------------------------

blinding
Posts: 29
Joined: Mon Mar 07, 2016 12:48 am

Re: Transmission keeps seeding while file has been removed or deleted (!)

Post by blinding » Fri Jul 01, 2016 6:46 pm

On Unix/Linux systems files have "use" counts. If you remove a file while a program still has it open, I.E. transmission, then the directory entry is deleted but the actual data remains. The data and the name you use to find it are two different things. When the use count drops to zero then the file is removed freeing the space. This happens when the file is closed by the program, the program exits, or the system reboots.

Why are you not telling transmission to delete and remove? You are not supposed to be deleting the file manually! You should be copying the file and then telling transmission, via the GUI or Web interface, to remote the entry.

denniss
Posts: 4
Joined: Thu Jun 30, 2016 10:09 am

Re: Transmission keeps seeding while file has been removed or deleted (!)

Post by denniss » Tue Jul 05, 2016 1:06 pm

Why are you not telling transmission to delete and remove? You are not supposed to be deleting the file manually!

Because when the file is downloaded completly, my NAS automatically moves it from my shared "downloads" folder to my unshared folder named "series" . (series folder is indexed by Plex media server).

So I was thinking that when te file has been (re)moved from the download folder, the upload will stop because of missing file error
(In my view this happened before). I never knew this principle, I thought the file is gone from the download folder so uploading wont be possible anymore.

So I never login to Transmission on my NAS. I was shocked that I uploaed 2TB in the last 80 days!

blinding
Posts: 29
Joined: Mon Mar 07, 2016 12:48 am

Re: Transmission keeps seeding while file has been removed or deleted (!)

Post by blinding » Sat Jul 23, 2016 10:47 pm

You can set the default upload download ratio to limit how much you upload.

Would it work to configure transmission such that your "series" folder is where it moves completed torrents? In the settings.json configuration file these are called "incomplete-dir" and "download-dir". Then Transmission will know the file was moved. Will still upload though.

Post Reply