Torrents apparently silently disappeared, bunch of 0 byte resume files. #12754

Open
opened 2026-02-21 23:08:03 -05:00 by deekerman · 27 comments
Owner

Originally created by @mzso on GitHub (Jan 8, 2022).

qBittorrent & operating system versions

4.4.0
Win10 21h2 10.0.19044

What is the problem?

Because of the crashing issues and such I checked out the log.

And I noticed around 16 red items with items similar to this.
"2022. 01. 08. 21:02 - Unable to resume torrent '1eebce1a15e8003e773d19ee75228a8abc1b9acc'."

So I checked some of them out and all had 0 byte resume files.
(One also has a third "1d1ce6aca3cffbf3e3c39c4ed1e9009854069c8d.fastresume.IcgsbO" format file present, with an extra extension. Which was non zero, nut sure what this is)

I restored a couple resumes from an old backup and they worked fine. (Also I'm unlikely to have removed these torrents, because they from a tracker that I usually don't)

I can only guess that these got corrupted some time and QB didn't gave notice other than in the log, which one doesn't normally look at.
My best guess is that QB tried to write them but there was no space, and created 0 bytes files. (I sometimes run out of space when a torrents ends up on the wrong drive or such.)

Steps to reproduce

I don't know how it happens, I only have the guesses above

Additional context

This is really not nice. Torrents might silently disappear over time, without the user ever noticing. Unless someone actively watches for them.

I think QB should definitely display an alert if it fails to write some important files, so the user can resolve it before loss of data occurs. (I have no other ideas how the 0b files happened.)
In any ways it should try to write files if there's no space and shouldn't thrash the file before attempting to write.

QB should also display an alert if it fails to load torrents since the last session.
I guess this might require some more effort if it only loads .fastresume files from BT_backup, because at least the number of torrents need to be stored (preferably a list of them to be checked). Otherwise there's no way to tell when the torrents started failing.

All in all the accumulating detritus is not at all a good thing. I for one only check the log if I have noticeable problems, like right now with 4.4.0. But apparently I have been loosing torrents for a good while.

Log(s) & preferences file(s)

No response

Originally created by @mzso on GitHub (Jan 8, 2022). ### qBittorrent & operating system versions 4.4.0 Win10 21h2 10.0.19044 ### What is the problem? Because of the crashing issues and such I checked out the log. And I noticed around 16 red items with items similar to this. "2022. 01. 08. 21:02 - Unable to resume torrent '1eebce1a15e8003e773d19ee75228a8abc1b9acc'." So I checked some of them out and all had 0 byte resume files. (One also has a third "1d1ce6aca3cffbf3e3c39c4ed1e9009854069c8d.fastresume.IcgsbO" format file present, with an extra extension. Which was non zero, nut sure what this is) I restored a couple resumes from an old backup and they worked fine. (Also I'm unlikely to have removed these torrents, because they from a tracker that I usually don't) I can only guess that these got corrupted some time and QB didn't gave notice other than in the log, which one doesn't normally look at. My best guess is that QB tried to write them but there was no space, and created 0 bytes files. (I sometimes run out of space when a torrents ends up on the wrong drive or such.) ### Steps to reproduce I don't know how it happens, I only have the guesses above ### Additional context This is really not nice. Torrents might silently disappear over time, without the user ever noticing. Unless someone actively watches for them. I think QB should definitely display an alert if it fails to write some important files, so the user can resolve it before loss of data occurs. (I have no other ideas how the 0b files happened.) In any ways it should try to write files if there's no space and shouldn't thrash the file before attempting to write. QB should also display an alert if it fails to load torrents since the last session. I guess this might require some more effort if it only loads .fastresume files from BT_backup, because at least the number of torrents need to be stored (preferably a list of them to be checked). Otherwise there's no way to tell when the torrents started failing. All in all the accumulating detritus is not at all a good thing. I for one only check the log if I have noticeable problems, like right now with 4.4.0. But apparently I have been loosing torrents for a good while. ### Log(s) & preferences file(s) _No response_
Author
Owner

@mzso commented on GitHub (Jan 8, 2022):

Incidentally:
I realized while submitting this bug that I don't have a logfile enabled.
Since it had an appdata folder (but I'm using QB in portable mode), maybe inherited from when it was a local instance. I added the appropriate folder like this: ".\profile\qBittorrent\data\logs"
Which resulted in some strange behavior. Logs were created there, BUT QB also created empty folders corresponding to this path: .\profile\qBittorrent\data\logs\profile\qBittorrent\data\logs
Essentially "doubled" the relative path to the log, but never put anything there.

@mzso commented on GitHub (Jan 8, 2022): Incidentally: I realized while submitting this bug that I don't have a logfile enabled. Since it had an appdata folder (but I'm using QB in portable mode), maybe inherited from when it was a local instance. I added the appropriate folder like this: ".\profile\qBittorrent\data\logs\" Which resulted in some strange behavior. Logs were created there, BUT QB also created empty folders corresponding to this path: .\profile\qBittorrent\data\logs\profile\qBittorrent\data\logs\ Essentially "doubled" the relative path to the log, but never put anything there.
Author
Owner

@mzso commented on GitHub (Jan 8, 2022):

I examined relative paths a bit more and added .\profile\torrents to the "copy .torrent files to" feature. Which completely ceased functioning. Curiously the "finished torrents" folder also ceased functioning, even though I kept the absolute path that was there.

I guess QB sorely needs some improvements with relative paths.

EDIT
Scratch that. Now I notice that the last torrent copied was in 01-07 after midnight. Later torrents were not added, all of which are after I upgraded. So it seems like yet another bug of 4.4.0

EDIT2:
Downgrading to RC1 immediately made it working.

@mzso commented on GitHub (Jan 8, 2022): <s>I examined relative paths a bit more and added .\profile\torrents to the "copy .torrent files to" feature. Which completely ceased functioning. Curiously the "finished torrents" folder also ceased functioning, even though I kept the absolute path that was there. I guess QB sorely needs some improvements with relative paths.</s> **EDIT** Scratch that. Now I notice that the last torrent copied was in 01-07 after midnight. Later torrents were not added, all of which are after I upgraded. **_So it seems like yet another bug of 4.4.0_** **EDIT2:** Downgrading to RC1 immediately made it working.
Author
Owner

@Dnkhatri commented on GitHub (Jan 8, 2022):

Are you using MySQL in advanced settings?

@Dnkhatri commented on GitHub (Jan 8, 2022): Are you using MySQL in advanced settings?
Author
Owner

@mzso commented on GitHub (Jan 9, 2022):

So managed to dig up 81 out of 111 fastresume files from backups instead of the destroyed ones. All of these resumed seeding so plainly their resume files got overwritten with zero byte ones. (Apart from this I only had five that wouldn't resume because of missing files.)

@Dnkhatri commented on 2022. jan. 9. 03:21 CET:

Are you using MySQL in advanced settings?

No. What is that good for, by the way?

@mzso commented on GitHub (Jan 9, 2022): So managed to dig up 81 out of 111 fastresume files from backups instead of the destroyed ones. All of these resumed seeding so plainly their resume files got overwritten with zero byte ones. (Apart from this I only had five that wouldn't resume because of missing files.) [**@Dnkhatri**](https://github.com/Dnkhatri) commented on [2022. jan. 9. 03:21 CET](https://github.com/qbittorrent/qBittorrent/issues/15997#issuecomment-1008214763 "2022-01-09T02:21:30Z - Replied by Github Reply Comments"): > Are you using MySQL in advanced settings? No. What is that good for, by the way?
Author
Owner

@Dnkhatri commented on GitHub (Jan 9, 2022):

So managed to dig up 81 out of 111 fastresume files from backups instead of the destroyed ones. All of these resumed seeding so plainly their resume files got overwritten with zero byte ones. (Apart from this I only had five that wouldn't resume because of missing files.)

@Dnkhatri commented on 2022. jan. 9. 03:21 CET:

Are you using MySQL in advanced settings?

No. What is that good for, by the way?

That uses 1 sql file instead of 100s of fastresume files. [Its supposed to speed up starting and stopping of qbittorrent.
https://github.com/qbittorrent/qBittorrent/pull/14726

@Dnkhatri commented on GitHub (Jan 9, 2022): > So managed to dig up 81 out of 111 fastresume files from backups instead of the destroyed ones. All of these resumed seeding so plainly their resume files got overwritten with zero byte ones. (Apart from this I only had five that wouldn't resume because of missing files.) > > [**@Dnkhatri**](https://github.com/Dnkhatri) commented on [2022. jan. 9. 03:21 CET](https://github.com/qbittorrent/qBittorrent/issues/15997#issuecomment-1008214763): > > > Are you using MySQL in advanced settings? > > No. What is that good for, by the way? That uses 1 sql file instead of 100s of fastresume files. [Its supposed to speed up starting and stopping of qbittorrent. https://github.com/qbittorrent/qBittorrent/pull/14726
Author
Owner

@mzso commented on GitHub (Jan 9, 2022):

@Dnkhatri
I was not aware of that. Is it an alfa/beta feature? Does it run without much issue (particularly data loss)? And is switching to it trouble free?

@mzso commented on GitHub (Jan 9, 2022): @Dnkhatri I was not aware of that. Is it an alfa/beta feature? Does it run without much issue (particularly data loss)? And is switching to it trouble free?
Author
Owner

@mzso commented on GitHub (Jan 9, 2022):

Can it add new torrents if I copy torrent/resume files from a different instance?

@mzso commented on GitHub (Jan 9, 2022): Can it add new torrents if I copy torrent/resume files from a different instance?
Author
Owner

@Dnkhatri commented on GitHub (Jan 9, 2022):

Can it add new torrents if I copy torrent/resume files from a different instance?

No idea I just started using it when the 4.4 version dropped its an advanced alpha beta option so I don't know much about it. @glassez would be the one to ask.

@Dnkhatri commented on GitHub (Jan 9, 2022): > Can it add new torrents if I copy torrent/resume files from a different instance? No idea I just started using it when the 4.4 version dropped its an advanced alpha beta option so I don't know much about it. @glassez would be the one to ask.
Author
Owner

@LittleVulpix commented on GitHub (Jan 9, 2022):

My torrents simply disappear if I restart qbittorrent now. Reverting back to 4.3.9 fixes the problem.

@LittleVulpix commented on GitHub (Jan 9, 2022): My torrents simply disappear if I restart qbittorrent now. Reverting back to 4.3.9 fixes the problem.
Author
Owner

@glassez commented on GitHub (Jan 9, 2022):

My torrents simply disappear if I restart qbittorrent now.

Could you provide log for such a run?

@glassez commented on GitHub (Jan 9, 2022): > My torrents simply disappear if I restart qbittorrent now. Could you provide log for such a run?
Author
Owner

@mzso commented on GitHub (Jan 9, 2022):

@Dnkhatri commented on 2022. jan. 9. 14:23 CET:

Can it add new torrents if I copy torrent/resume files from a different instance?

No idea I just started using it when the 4.4 version dropped its an advanced alpha beta option so I don't know much about it. @glassez would be the one to ask.

I guess the crucial point is what happens when disk space runs out, which is an easy mistake to make. One would hope that something SQL based might handle that without undue dataloss.

@mzso commented on GitHub (Jan 9, 2022): [**@Dnkhatri**](https://github.com/Dnkhatri) commented on [2022. jan. 9. 14:23 CET](https://github.com/qbittorrent/qBittorrent/issues/15997#issuecomment-1008297497 "2022-01-09T13:23:23Z - Replied by Github Reply Comments"): > > Can it add new torrents if I copy torrent/resume files from a different instance? > > No idea I just started using it when the 4.4 version dropped its an advanced alpha beta option so I don't know much about it. [@glassez](https://github.com/glassez) would be the one to ask. I guess the crucial point is what happens when disk space runs out, which is an easy mistake to make. One would hope that something SQL based might handle that without undue dataloss.
Author
Owner

@LittleVulpix commented on GitHub (Jan 9, 2022):

My torrents simply disappear if I restart qbittorrent now.

Could you provide log for such a run?

I checked the log - there is a single message related to this (upon startup) that says:

(C) 2022-01-10T02:57:42 - Unable to resume torrent 'b6434b6ab1bf60c21f6fd441d56575b62703c008'.

I checked the fastresume file, it's quite large; almost 754MB.

Not sure if it matters, but I made this as torrent v2 (also with bittorrent v4.4.0).

Another annoying thing is - when I do torrent recheck, it uses up all of my computer's available memory.
It helps if I use sysinternals' rammap to "empty working sets", then it fills back up and starts swapping horribly, causing slower hashing speeds and load on the disk hosting pagefile.
Does not happen on 4.3.9 with the same settings. Moreover, 4.3.9 is much faster (about 3x faster - ~650MB/s vs ~211MB/s. I kind of expect this due to the new hash algo of torrent v2 but the memleak is not nice)

image

Every drop is after I press the "empty working sets" function in rammap.

@LittleVulpix commented on GitHub (Jan 9, 2022): > > My torrents simply disappear if I restart qbittorrent now. > > Could you provide log for such a run? I checked the log - there is a single message related to this (upon startup) that says: `(C) 2022-01-10T02:57:42 - Unable to resume torrent 'b6434b6ab1bf60c21f6fd441d56575b62703c008'.` I checked the fastresume file, it's quite large; almost 754MB. Not sure if it matters, but I made this as torrent v2 (also with bittorrent v4.4.0). Another annoying thing is - when I do torrent recheck, it uses up all of my computer's available memory. It helps if I use sysinternals' rammap to "empty working sets", then it fills back up and starts swapping horribly, causing slower hashing speeds and load on the disk hosting pagefile. Does not happen on 4.3.9 with the same settings. Moreover, 4.3.9 is much faster (about 3x faster - ~650MB/s vs ~211MB/s. I kind of expect this due to the new hash algo of torrent v2 but the memleak is not nice) ![image](https://user-images.githubusercontent.com/8679333/148694297-5feb5487-855a-4177-8a42-12c3aee85ed5.png) Every drop is after I press the "empty working sets" function in rammap.
Author
Owner

@mzso commented on GitHub (Jan 9, 2022):

@littlevulpix
"about 3x faster - ~650MB/s vs ~211MB/s. I kind of expect this due to the new hash algo of torrent v2 but the memleak is not nice"
I don't think has algorithms are likely to effect transfer speeds. But if there's a lot of swapping it might.

@mzso commented on GitHub (Jan 9, 2022): @littlevulpix "about 3x faster - ~650MB/s vs ~211MB/s. I kind of expect this due to the new hash algo of torrent v2 but the memleak is not nice" I don't think has algorithms are likely to effect transfer speeds. But if there's a lot of swapping it might.
Author
Owner

@LittleVulpix commented on GitHub (Jan 10, 2022):

@LittleVulpix "about 3x faster - ~650MB/s vs ~211MB/s. I kind of expect this due to the new hash algo of torrent v2 but the memleak is not nice" I don't think has algorithms are likely to effect transfer speeds. But if there's a lot of swapping it might.

No no, not transfer speed. Hashing speed.

@LittleVulpix commented on GitHub (Jan 10, 2022): > @LittleVulpix "about 3x faster - ~650MB/s vs ~211MB/s. I kind of expect this due to the new hash algo of torrent v2 but the memleak is not nice" I don't think has algorithms are likely to effect transfer speeds. But if there's a lot of swapping it might. No no, not transfer speed. Hashing speed.
Author
Owner

@ted423 commented on GitHub (Apr 3, 2023):

same here qb 4.5.2 on ubuntu

image
image
image

apt list --installed|grep qb

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

qbittorrent/jammy,now 1:4.5.2.99~202302282217-7873-97853f31f~ubuntu22.04.1 amd64 [已安装]
@ted423 commented on GitHub (Apr 3, 2023): same here qb 4.5.2 on ubuntu ![image](https://user-images.githubusercontent.com/7042766/229456241-977f8bd9-9b64-4f01-9bd4-fa18f809296c.png) ![image](https://user-images.githubusercontent.com/7042766/229456250-fe46d802-4ffb-4534-977d-89fbc0ce6242.png) ![image](https://user-images.githubusercontent.com/7042766/229456265-4c45ff2d-c82b-44d6-9393-19d731932386.png) ``` apt list --installed|grep qb WARNING: apt does not have a stable CLI interface. Use with caution in scripts. qbittorrent/jammy,now 1:4.5.2.99~202302282217-7873-97853f31f~ubuntu22.04.1 amd64 [已安装] ```
Author
Owner

@ted423 commented on GitHub (Apr 3, 2023):

i think qb may show error stat and let user recheck torrent

@ted423 commented on GitHub (Apr 3, 2023): i think qb may show error stat and let user recheck torrent
Author
Owner

@ted423 commented on GitHub (Apr 3, 2023):

i delete the 0b file(500+),and seems the torrent lost in qb and not show in the log

@ted423 commented on GitHub (Apr 3, 2023): i delete the 0b file(500+),and seems the torrent lost in qb and not show in the log
Author
Owner

@ted423 commented on GitHub (Apr 3, 2023):

the gui can't add such torrent (seems too long)
so I and to watched folder
image

and get this
image

@ted423 commented on GitHub (Apr 3, 2023): the gui can't add such torrent (seems too long) so I and to watched folder ![image](https://user-images.githubusercontent.com/7042766/229459884-cef68df8-b423-4fc7-aa68-f9821662cfd2.png) and get this ![image](https://user-images.githubusercontent.com/7042766/229459969-9df340e4-8e23-401e-be73-1410b4b9d751.png)
Author
Owner

@mzso commented on GitHub (Apr 3, 2023):

@ted423 Not sure what you're trying to accomplish here. Of course QB won't load 0B fastresume files, because they have no data.

The automatically add torrents setting is to add new downloads via .torrent files. Fastresume is only used internally.

@mzso commented on GitHub (Apr 3, 2023): @ted423 Not sure what you're trying to accomplish here. Of course QB won't load 0B fastresume files, because they have no data. The automatically add torrents setting is to add new downloads via .torrent files. Fastresume is only used internally.
Author
Owner

@ted423 commented on GitHub (Apr 4, 2023):

lost more than 500 torrent. you can check that only in logs.
For torrent management, I want some way to know those thing in webui or some other way

@ted423 commented on GitHub (Apr 4, 2023): lost more than 500 torrent. you can check that only in logs. For torrent management, I want some way to know those thing in webui or some other way
Author
Owner

@ted423 commented on GitHub (Apr 4, 2023):

I need to check which torrent are disappeared, and I found this way

the gui can't add such torrent (seems too long) so I and to watched folder image

and get this image

@ted423 commented on GitHub (Apr 4, 2023): I need to check which torrent are disappeared, and I found this way > the gui can't add such torrent (seems too long) so I and to watched folder ![image](https://user-images.githubusercontent.com/7042766/229459884-cef68df8-b423-4fc7-aa68-f9821662cfd2.png) > > and get this ![image](https://user-images.githubusercontent.com/7042766/229459969-9df340e4-8e23-401e-be73-1410b4b9d751.png)
Author
Owner

@ted423 commented on GitHub (Apr 10, 2023):

I need to check which torrent are disappeared, and I found this way

the gui can't add such torrent (seems too long) so I and to watched folder image
and get this image

it seems need copy all torrent out that folder to add watched, my .torrent file all lost in that folder and make all torrent 0B

@ted423 commented on GitHub (Apr 10, 2023): > I need to check which torrent are disappeared, and I found this way > > > the gui can't add such torrent (seems too long) so I and to watched folder ![image](https://user-images.githubusercontent.com/7042766/229459884-cef68df8-b423-4fc7-aa68-f9821662cfd2.png) > > and get this ![image](https://user-images.githubusercontent.com/7042766/229459969-9df340e4-8e23-401e-be73-1410b4b9d751.png) it seems need copy all torrent out that folder to add watched, my .torrent file all lost in that folder and make all torrent 0B
Author
Owner

@SanderBouwhuis commented on GitHub (Apr 28, 2023):

@ted423
This all sounds very scary! Is the cause known? Or is your problem no longer occurring?

@SanderBouwhuis commented on GitHub (Apr 28, 2023): @ted423 This all sounds very scary! Is the cause known? Or is your problem no longer occurring?
Author
Owner

@ted423 commented on GitHub (May 3, 2023):

@ted423 This all sounds very scary! Is the cause known? Or is your problem no longer occurring?

It seems happened in half a year ago, accroding the file's data.

The follow-up situation is after trying to restore these torrent files, I post here to avoid detours for others

@ted423 commented on GitHub (May 3, 2023): > @ted423 This all sounds very scary! Is the cause known? Or is your problem no longer occurring? It seems happened in half a year ago, accroding the file's data. The follow-up situation is after trying to restore these torrent files, I post here to avoid detours for others
Author
Owner

@qBittUser commented on GitHub (Mar 26, 2025):

Can anyone reproduce with latest version?

Does Execution log tab (you can open qBit>View>Logs to enable it) show if qBit failed to load any previous sessions torrent transfers?

@qBittUser commented on GitHub (Mar 26, 2025): Can anyone reproduce with latest version? Does `Execution log` tab (you can open qBit>View>Logs to enable it) show if qBit failed to load any previous sessions torrent transfers?
Author
Owner

@ted423 commented on GitHub (Mar 26, 2025):

I guess it's a problem caused by an earlier version upgrade

@ted423 commented on GitHub (Mar 26, 2025): I guess it's a problem caused by an earlier version upgrade
Author
Owner

@mzso commented on GitHub (Aug 20, 2025):

@ted423 This all sounds very scary! Is the cause known? Or is your problem no longer occurring?

This issue most likely happens when running out of disk space. QB tries to write these data files without checking, and it fails, so the data gets destroyed. And you'll have no sign of it until you notice missing torrents in the client.

@mzso commented on GitHub (Aug 20, 2025): > [@ted423](https://github.com/ted423) This all sounds very scary! Is the cause known? Or is your problem no longer occurring? This issue most likely happens when running out of disk space. QB tries to write these data files without checking, and it fails, so the data gets destroyed. And you'll have no sign of it until you notice missing torrents in the client.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/qBittorrent#12754
No description provided.