Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in removing torrent with files #272

Open
Darkmagister opened this issue Oct 4, 2024 · 6 comments
Open

error in removing torrent with files #272

Darkmagister opened this issue Oct 4, 2024 · 6 comments

Comments

@Darkmagister
Copy link

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
Copy link

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
Copy link

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
Copy link

Ofearghail commented Oct 6, 2024

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
Copy link

@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
Copy link

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

@shomilsaini
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants