binhex / arch-qbittorrentvpn

Docker build script for Arch Linux base with qBittorrent, Privoxy and OpenVPN
GNU General Public License v3.0
478 stars 49 forks source link

error in removing torrent with files #272

Open Darkmagister opened 1 month ago

Darkmagister commented 1 month ago

i'm using this container, and it download the file to a nfs folder, i set the permission of the folder to 777 to test, run this container with PUID=0 and PGID=0 and UMASK=776 and the file it's been downloaded no problem (so i can write in the folder) also the temp file are written under a subdir tmp/ and when it finish the file it's been moved to the root folder, but when i try to delete a torrent and check the the remove files box, the torrent it's removed but the file it's still there and the log say: Failed to remove torrent content. Torrent: "TORRENT NAME". Error: "Bad file descriptor"

what can i do? i don;t think it's a permission problem ... but i don't know, i tried to exclude any possible issue here running everything by root and having some loose permission but still.

thanks

SadPepeIRL commented 1 month ago

I was having this issue as well! I thought it was just a me problem. I was running this as a "custom app" on truenas, moved to a beta version of their OS and was running it natively and in dockge with the same issues. I created a dataset (forced the OS to make the folder) and set a custom user/group on that and set qbt pgid/puid to match. Was still able to write, but removing torrent from the client. I tried a different qbt docker image and i'm not having that issue. I don't see any recent changes to this image so I'm not sure :(

Ofearghail commented 1 month ago

can confirm this is happening to me too ever since the v5 update. the logs show this error:

Failed to remove torrent content. Torrent: "[Torrent Name Here]". Error: "Bad file descriptor"

Ofearghail commented 1 month ago

Found a solution! In the qbittorrent.conf file add this line under the [Bittorrent] section:

Session\TorrentContentRemoveOption=Delete

I found the solution in this reditt post: https://www.reddit.com/r/qBittorrent/comments/1b1eyx8/faq_sticky_help_post/

This happens because the changes in v5 send the files to the trash by default rather than deleting permanently. Since no trash folder exists it errors. The added line changes it back to permanently deleting it.

SadPepeIRL commented 1 month ago

@Ofearghail Hey that helped another problem with a different image I was using. The image I was using, was allowing me to delete files, but it would make a invisible folder. This fixed that issue! Thank you for commenting and digging into it! <3

dessalines commented 1 month ago

Please bump this up somewhere, or make it the default, it was really difficult to find.

shomilsaini commented 1 month ago

had the same issue today. thanks for the tip.

Found a solution! In the qbittorrent.conf file add this line under the [Bittorrent] section:

Session\TorrentContentRemoveOption=Delete

I found the solution in this reditt post: https://www.reddit.com/r/qBittorrent/comments/1b1eyx8/faq_sticky_help_post/

This happens because the changes in v5 send the files to the trash by default rather than deleting permanently. Since no trash folder exists it errors. The added line changes it back to permanently deleting it.