Restarting loses all torrents

Asked by Brian Hartson

I downloaded a number of .torrents and they were listed on the download page in various stages of being downloaded, paused and waiting to be downloaded. The upload tab listed a number of files available for upload. I closed the application and restarted it sometime later. There are now no files listed in the tabs. The .qbittorrent/BT_backup directory has many files with the following format 'hash code'.fastresume, 'same hash code'.priorities, .savepath, .trackers. Going into preferences and setting the load torrents on start from does not help. I am running version 1.5.4.

What can I do to recover from this issue?

Regards

Brian

Question information

Language:
English Edit question
Status:
Open
For:
qBittorrent Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Christophe Dumez (hydr0g3n) said :
#1

Hi, sorry to hear about that.

This should add your torrents again:
qbittorrent ~/.qbittorrent/BT_backup/*.torrent

I don't understand how it is possible to loose the torrents yet. Was qBittorrent closed cleanly (it still runs in the term for some time to notify the trackers after you graphically close it) ?

Revision history for this message
Christophe Dumez (hydr0g3n) said :
#2

Note that recent versions of qbittorrent uses this file:
~/.config/qBittorrent/qBittorrent-resume.conf

to resume the torrents. If you lost your torrents, I guess this means that this file was not written or that your lost for some reason. I'm not clear why yet but I'm investigating. What I suspect is:

You did not close qBittorrent cleanly, qBittorrent-resume.conf might be written on clean exit only (I'm not sure and I have to check) so the file was not written for you. In any case, this is a bug and it should be more robust and I need to make sure what the problem is first.

Revision history for this message
Brian Hartson (brian-hartson) said :
#3

I tried the command start of the app like you suggested with no joy. The file ~/.config/qBittorrent/qBittorrent-resume.conf does exist however its time stamp is from earlier in the day even though I have opened and closed the app several times since then. The file is not human readable. By the way it is not good form or security to store passwords in config files in clear text. I know a nit pic but still.

Regards and thanks for the quick response.

Revision history for this message
Brian Hartson (brian-hartson) said :
#4

Also the directory ~/.qbittorrent/BT_backup/ does not contain any files with the .torrent extension. Just file groups like this along with many that are just 'hash'.fastresume.

fd53a9cd7ecab934d4a42b0b99aa89e7093374ea.fastresume
fd53a9cd7ecab934d4a42b0b99aa89e7093374ea.priorities
fd53a9cd7ecab934d4a42b0b99aa89e7093374ea.savepath
fd53a9cd7ecab934d4a42b0b99aa89e7093374ea.trackers

Revision history for this message
Christophe Dumez (hydr0g3n) said :
#5

Well, this is extremely odd... I've just had a quick look at the code and I don't understand yet how it is possible that .torrent files are not there. I do copy the torrent to the backup folder when the torrent is added.

The torrents must have been deleted by qBittorrent at some point. I will have a deeper look in the code this evening because I'm at work right now. Thank you for the information, I hope this will help me find the issue in qBittorrent.

Revision history for this message
István Kondor (kondor) said :
#6

It might be related somehow: when I shut down qBittorrent with its exit button it asks if I really want to quit since I have torrents in the downloading tab. I push yes and it seems to quit, but unfortunately it doesn't. If I once start up qBittorrent during a session Ubuntu always warns me that it is running but not responding before I shut down the machine. I can also see qBittorrent in system monitor. I tried to pause all the torrents, then quit, but it didn't help either. I also get this behaviour if I wait hours between quitting and shutting down, so it seems it's not the background communication with the trackers. Though, I don't lose any data.
Could it be related or should I file a separate bug for this?
Thanks,
Istvan

Revision history for this message
Christophe Dumez (hydr0g3n) said :
#7

István Kondor> It is normal for qBittorrent to keep running in background after you graphically exit. qBittorrent tries to contact the trackers to tell them good bye before exiting and it can take around 10-30 seconds (if you reach the timeout because some trackers are unreachable for example).

If you see that qBittorrent keeps running more than 30 seconds after you ask for the exit then this is a bug in libtorrent-rasterbar. In that case, you should contact libtorrent author and explain the problem: "Arvid Norberg" <email address hidden>. Please mention your libtorrent-rasterbar version number (qBittorrent version does not matter).

qBittorrent does not loose data on your box and it is not supposed to. Everything is saved at regular interval and on exit (even when killed).

Revision history for this message
Christophe Dumez (hydr0g3n) said :
#8

Brian Hartson> I'm still trying to figure out how .torrent could be deleted without your knowledge. Did you edit program preferences and activated any 'non-default' features? For example, did you enable directory scanning (feature which scan a directory for torrents and automatically adds them to download list)?

Revision history for this message
Christophe Dumez (hydr0g3n) said :
#9

Also, .priorities, .savepath, .trackers files should no longer exist with qBittorrent v1.5.x (they were replaced by ~/.config/qBittorrent/*.conf) actually.

I think that maybe you experienced an upgrade problem from qBittorrent v1.4.x to v1.5.x? From which exact version to which exact version did you first make the upgrade? (I know you are using v1.5.4 now but did you install directly this bugfix version?).

The torrents that you lost, did you start downloading them with another version of qBittorrent than v1.5.4?

Revision history for this message
Brian Hartson (brian-hartson) said :
#10

Christophe,

I did upgrade. I loaded the version that was on tha Canaoical
distribution servers a 1.4 version not sure of the exact version. After
running it for a couple of days I went to the application web site saw
that a new version was available and using the method on the website
added the sources to apt and loaded the new version. Everthing went well
and the previous downloads were in the download and upload tabs. It
wasn't until a few days later that I had the issue.

Btw I am running Ubuntu 9.04LTS AMD 64bit if it makes ad ifference.

Brian

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of
Christophe Dumez
Sent: Wednesday, November 04, 2009 2:19 AM
To: Hartson, Brian
Subject: Re: [Question #88249]: Restarting loses all torrents

Your question #88249 on qBittorrent changed:
https://answers.launchpad.net/qbittorrent/+question/88249

Christophe Dumez requested for more information:
Also, .priorities, .savepath, .trackers files should no longer exist
with qBittorrent v1.5.x (they were replaced by
~/.config/qBittorrent/*.conf) actually.

I think that maybe you experienced an upgrade problem from qBittorrent
v1.4.x to v1.5.x? From which exact version to which exact version did
you first make the upgrade? (I know you are using v1.5.4 now but did you
install directly this bugfix version?).

The torrents that you lost, did you start downloading them with another
version of qBittorrent than v1.5.4?

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/qbittorrent/+question/88249

You received this question notification because you are a direct
subscriber of the question.

Revision history for this message
Brian Hartson (brian-hartson) said :
#11

Christophe,

I turned on the scanning feature only after I lost the downloads.

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of
Christophe Dumez
Sent: Wednesday, November 04, 2009 2:02 AM
To: Hartson, Brian
Subject: Re: [Question #88249]: Restarting loses all torrents

Your question #88249 on qBittorrent changed:
https://answers.launchpad.net/qbittorrent/+question/88249

Christophe Dumez requested for more information:
Brian Hartson> I'm still trying to figure out how .torrent could be
deleted without your knowledge. Did you edit program preferences and
activated any 'non-default' features? For example, did you enable
directory scanning (feature which scan a directory for torrents and
automatically adds them to download list)?

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/qbittorrent/+question/88249

You received this question notification because you are a direct
subscriber of the question.

Revision history for this message
Christophe Dumez (hydr0g3n) said :
#12

And what did you choose as a scan dir? You did not use "~/.qbittorrent/BT_backup/" did you? Because this would delete the .torrent files (up until today because I have now fixed the bug in SVN).

I know you enabled this after you lost the torrents but I'm trying to figure out if you lost the .torrent files after or not.

Revision history for this message
Brian Hartson (brian-hartson) said :
#13

Christophe,

Yes I did. That probably explains why the .torrent files were gone.

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of
Christophe Dumez
Sent: Wednesday, November 04, 2009 9:33 AM
To: Hartson, Brian
Subject: RE: [Question #88249]: Restarting loses all torrents

Your question #88249 on qBittorrent changed:
https://answers.launchpad.net/qbittorrent/+question/88249

    Status: Open => Needs information

Christophe Dumez requested for more information:
And what did you choose as a scan dir? You did not use
"~/.qbittorrent/BT_backup/" did you? Because this would delete the
.torrent files (up until today because I have now fixed the bug in SVN).

I know you enabled this after you lost the torrents but I'm trying to
figure out if you lost the .torrent files after or not.

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/qbittorrent/+question/88249

You received this question notification because you are a direct
subscriber of the question.

Revision history for this message
Christophe Dumez (hydr0g3n) said :
#14

Ok. At least now we know why .torrent files disappeared. So you 're certain you enabled directory scanning *after* you lost your torrents, right?

If so, I have to find another bug now (I fixed one though, which is nice already).

Revision history for this message
Brian Hartson (brian-hartson) said :
#15

Yes afterward in an attempt to get the downloads restarted without
having to go back and get all the torrents over again and possbly having
to start each from the beginning.

It might be helpful to have separate directiories for partials and
completed downloads.

Brian

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of
Christophe Dumez
Sent: Wednesday, November 04, 2009 10:32 AM
To: Hartson, Brian
Subject: RE: [Question #88249]: Restarting loses all torrents

Your question #88249 on qBittorrent changed:
https://answers.launchpad.net/qbittorrent/+question/88249

    Status: Open => Answered

Christophe Dumez proposed the following answer:
Ok. At least now we know why .torrent files disappeared. So you 're
certain you enabled directory scanning *after* you lost your torrents,
right?

If so, I have to find another bug now (I fixed one though, which is nice
already).

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/qbittorrent/+question/88249/+confirm?answe
r_id=13

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/qbittorrent/+question/88249

You received this question notification because you are a direct
subscriber of the question.

Revision history for this message
fdsh tgdb (oalei84) said :
#16

Its the similar type of problem that I faced some years ago after restarting but you can visit here https://sethoxreviews.com/ to make your data secure for the next time.

Can you help with this problem?

Provide an answer of your own, or ask Brian Hartson for more information if necessary.

To post a message you must log in.