ruTorrent icon indicating copy to clipboard operation
ruTorrent copied to clipboard

erasedata randomly fails to delete folders

Open Antorell opened this issue 3 years ago • 0 comments

Please complete the following tasks.

  • [X] Web browser cache cleared
  • [X] Link provided to install script if applicable
  • [X] Web browser, ruTorrent, PHP and OS version provided

Tell us about your environment

Firefox 4.0 8.1 (Nginx) Linux Ubuntu 22.04

Tell us how you installed ruTorrent

git clone https://github.com/Novik/ruTorrent.git

Describe the bug

The erasedata plugin randomly fails to delete the folder of a downloaded torrent. It happens randomly, and I can't figure out what causes it.

Steps to reproduce

Download a torrent or several torrents that have files inside folders,

When the torrents have finished downloading and seeding, delete using the remove and -> delete data

Expected behavior

Delete files as well as the folders created by torrents.

Additional context

The torrent had finished downloading and seeding like an hour before I delete the files.

I remember having a similar issue with 3.10 and removing the "> /dev/null 2>&1 &" from the fin.sh (if I remember well) that was added sometimes in 2019 (95d2d6b7a6b5c9bb1b163393875a26a0c76b06ac) fixed the issue. I did not remove "> /dev/null 2>&1 &" from the fin.sh in my Rutorrent 4.0 setup.

here an extract of the log [2022-08-16 23:49:14] erasedata: *** Parse item /var/www/html/ruTorrent/share/users/someuser/settings/erasedata/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA.list [2022-08-16 23:49:14] erasedata: Successfully delete file /home/someuser/torrents/FOLDER CREATED BY TORRENT/FILE CREATED BY TORRENT.mkv [2022-08-16 23:49:14] erasedata: Successfully delete file /home/someuser/torrents/FOLDER CREATED BY TORRENT/ OTHER FILE CREATED BY TORRENT.txt [2022-08-16 23:49:14] erasedata: FAIL Delete file /home/someuser/torrents/FOLDER CREATED BY TORRENT [2022-08-16 23:49:14] erasedata: FAIL Delete file 1 [2022-08-16 23:49:14] erasedata: FAIL Delete file 1 [2022-08-16 23:49:14] erasedata: Successfully delete file

edit: removed some folder names I forgot when I sanitized the log output.

Antorell avatar Aug 16 '22 22:08 Antorell