ruTorrent icon indicating copy to clipboard operation
ruTorrent copied to clipboard

ruTorrent not deleting data

Open got3nks opened this issue 11 months ago • 7 comments

Please complete the following tasks.

  • [x] Web browser cache cleared
  • [x] Link provided to install script if applicable
  • [x] Not using broken rtinst install script
  • [x] Web browser, ruTorrent, PHP and OS version provided

Tell us about your environment

Web browser: Firefox 136.0.2 (aarch64) ruTorrent: version 5.1.2 PHP: 8.1.2-1ubuntu2.20 OS: Ubuntu 22.04.1 LTS

Tell us how you installed ruTorrent

Downloaded the release from github

Describe the bug

When using the "delete torrent and data" feature, the downloaded data won't be deleted. The log/execute.log file doesn't show any error as well as the event tab in the ruTorrent web interface. How do I debug what's going on?

Steps to reproduce

No response

Expected behavior

No response

Additional context

No response

got3nks avatar Mar 26 '25 13:03 got3nks

The erasedata plugin is located here: https://github.com/Novik/ruTorrent/tree/master/plugins/erasedata

Check conf.php to ensure it's configured to delete data. You can also enable debug through that file.

Also ensure fin.sh has excitable permissions to delete torrent data. Furthermore, check file permissions on your file system.

stickz avatar Mar 26 '25 13:03 stickz

Yes, the fin.sh file has executable permissions.

This is the content of the plugins/erasedata/conf.php file:

<?php

        // interval for schedule command of garbage checker in seconds
        $garbageCheckInterval = 15;
        $enableForceDeletion = false;

        $erasedebug_enabled = true;

        // Replaces "remove" option in torrent menu to always delete with data
        // Refrains from showing other options on web interface
        $replaceRemoveTorrent = false;

Where do I find the debugging log?

All I see is the full path of the file being added to the file share/settings/erasedata/50399.tmp but it's not deleted.

EDIT: From what I can tell after taking a look at the source code, the fin.sh is not being called at all. The tmp file is being created by rTorrent. There is no logging information in the $log_file = /tmp/errors.log file, as the .list file is not being created at all.

got3nks avatar Mar 26 '25 14:03 got3nks

This is the same issue as reported in https://github.com/Novik/ruTorrent/issues/1675.

Removing the branch=d.custom5= part fixed it. Unlikely it's been reported in the ticket, it seems to delete the data ONLY IF you select the "and delete data" option.

I think the erasedata plugin has to be fixed.

got3nks avatar Mar 27 '25 11:03 got3nks

You are correct. The erasedata plugin can be improved. A suggestion I have is to:

  1. Remove the submenu for "and delete data".
  2. Rename remove to remove torrent.
  3. Rename remove and to remove data.

stickz avatar Apr 11 '25 11:04 stickz

You are correct. The erasedata plugin can be improved. A suggestion I have is to:

1. Remove the submenu for "and delete data".

2. Rename `remove` to `remove torrent`.

3. Rename `remove and` to `remove data`.

@got3nks Thanks for the information. I can try to tackle this in the next few weeks. I intend to finish the work on check_port first.

cantalupo555 avatar Jun 14 '25 12:06 cantalupo555

@got3nks I've had a problem like this before, but I can't remember how to reproduce it. 🤐 If you still remember anything, please let me know.

I plan to rework this plugin soon.

cantalupo555 avatar Jul 09 '25 16:07 cantalupo555

@got3nks I've had a problem like this before, but I can't remember how to reproduce it. 🤐 If you still remember anything, please let me know.

I plan to rework this plugin soon.

I didn’t do anything special, just used the remove torrent and data feature from the ruTorrent web UI.

got3nks avatar Jul 09 '25 17:07 got3nks