mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-03-02 22:57:32 -05:00
qBittorrent always creates .torrent.invalid files #6020
Labels
No labels
Accessibility
AppImage
Bounty
Build system
CI
Can't reproduce
Code cleanup
Confirmed bug
Confirmed bug
Core
Crash
Data loss
Discussion
Docker
Documentation
Duplicate
Feature
Feature request
Feature request
Feature request
Filters
Flatpak
GUI
Has workaround
I2P
Invalid
Libtorrent
Look and feel
Meta
NSIS
Network
Not an issue
OS: *BSD
OS: Linux
OS: Windows
OS: macOS
PPA
Performance
Project management
Proxy/VPN
Qt bugs
Qt6 compat
RSS
Search engine
Security
Temp folder
Themes
Translations
Triggers
Waiting diagnosis
Waiting info
Waiting upstream
Waiting web implementation
Watched folders
WebAPI
WebUI
autoCloseOldIssue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/qBittorrent#6020
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub (Sep 6, 2017).
Hi, I'm running qBittorrent 3.3.15 on Windows 10 Build 15063.540 (version 1703). Someone had the same issue back in 2014 but the discussion there seems to be "closed".
Windows 10 10.0.15063
I set qB to monitor the desktop, which is the directory every download from the web browser goes to. By the way, I'm using Firefox 55, but the same happens with Chrome. So I download a .torrent file, it gets auto-added to the client and the actual files download regularly. Upon finishing, the downloaded file(s) is(are) correctly moved to the folder I set to move the completed downloads.
However, after the download is finished (not the simple.torrent file, but the actual download), instead of disappearing, the .torrent files sitting on the desktop will be renamed to
file.torrent.invalid.There are no other problems except that I have to manually remove them, which is not good.
How to solve it?
@ihendriks commented on GitHub (Jan 31, 2018):
This is an issue for me as well.
Not a huge issue since the torrents still work just fine, just somewhat annoying.
@ghost commented on GitHub (Jan 31, 2018):
What a coincidence. I just formated my PC and decided to give qBittorrent another chance (installing a new version) to replace my good and old uTorrent 2.2.1. qBittorrent is indeed more advanced than that version of uT, and I don't plan to use the newer versions of uT for many reasons.
I still get the torrent.invalid error. I set my desktop as my monitored folder, and my browser is set to download directly to the desktop. Always worked like that. Now, instead of moving the newly downloaded .torrent file to the folder I set to store the .torrent files, it renames itself to name.torrent.invalid. This is very annoying, I mean, very! :(
Edit: I'm running qBittorrent 4.0.3 64b on Windows 10 latest version as of now.
@ihendriks commented on GitHub (Feb 11, 2018):
I did some searching when I replied to this post last week, and apparently it has to do with how firefox downloads files.
I believe firefox makes two files, and after it's finished downloading it renames/removes the one it doesn't need anymore. qBittorrent, however, manages to snatch the torrent file before firefox gets the chance to rename/remove and you end up with that invalid 0kb file.
The issue doesn't happen in chrome because it doesn't make 2 files, it just makes one and renames it when it's finished. Don't think there's anything qbittorrent can do about it, since it's a firefox-related "issue" (a feature, I guess).
@ghost commented on GitHub (Feb 11, 2018):
Are you sure, man? Because a similar behaviour was supposed to occur with uTorrent 2.2.1 when downloading with Firefox to the monitored folder. I believe both torrent applications work essentially the same way when it comes to auto-add-torrents-from-the-monitored-folder, but uTorrent doesn't create .invalid files, even when downloading with Firefox.
@ihendriks commented on GitHub (Feb 11, 2018):
I'm not 100% sure, no, but it does appear to be this way.
To be exact, the sequence appears to be:
filename.torrent)filename.torrent.part)filename.torrent.part)filename.torrent.partas a torrent file and adds it to it's queue (possibly moving or deleting the file from your original download location).partfile, it has nothing to replace the placeholderfilename.torrentfile with, and it leaves that empty 0kb file therefilename.torrentfile tofilename.torrent.invalidto indicate that it's not a valid torrent fileBasically qBittorrent snatches the .part file before firefox is able to replace the placeholder file.
It doesn't happen in chrome because it doesn't make a placeholder, it only makes the .part file and renames after it finishes.
It might not happen with uTorrent because it only looks for .torrent files, which allows Firefox to finish it's job.
You can see the .part behaviour if you download a somewhat bigger file while looking at the folder's contents.
@FranciscoPombal commented on GitHub (Sep 13, 2020):
No longer applicable/fixed in recent versions.