Deleted torrent/file back every program start.

Bug #483223 reported by Martina Neumayer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qBittorrent
Fix Released
Undecided
Christophe Dumez

Bug Description

When i delete file (movie, program etc.) or torrent, next i'm restarting qbittorrent, file is back in download.
Im trying deleting it in qbittorrent or directly from operating system, endeffect is that same -- file/torrent is back again.
Completly reinstalling "QBT" don't help :(
My system: Ubuntu 9.10, kernel: 2.6.31-15
qBittorrent v1.5.5
Sorry for my english.

description: updated
description: updated
Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Did you enable folder scanning feature in program preferences?
If you add a scanned folder that is in read only, this behavior can happen. qBittorrent will detect the torrent files and download them then tries to delete the torrents from the directory (and it can't).

Changed in qbittorrent:
assignee: nobody → Christophe Dumez (hydr0g3n)
status: New → Incomplete
Revision history for this message
Martina Neumayer (martina.neumayer) wrote : Re: [Bug 483223] Re: Deleted torrent/file back every program start.

> Did you enable folder scanning feature in program preferences?
No, i don't.
I'm adding new torrents by normal doubleclick on torrent file from hdd,
or directly from Firefox 3.5.5 by "open in qBittorrent".
Folder permissions are ok. (working folder for download and temp folder).

> If you add a scanned folder that is in read only, this behavior can happen. qBittorrent will detect the torrent files and download them then tries to delete the torrents from the directory (and it can't).
>
> ** Changed in: qbittorrent
> Status: New => Incomplete
>
> ** Changed in: qbittorrent
> Assignee: (unassigned) => Christophe Dumez (hydr0g3n)
>
> --
> Deleted torrent/file back every program start.
> https://bugs.launchpad.net/bugs/483223
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in qBittorrent - An advanced bittorrent client in C++ / Qt4: Incomplete
>
> Bug description:
> When i delete file (movie, program etc.) or torrent, next i'm restarting qbittorrent, file is back in download.
> Im trying deleting it in qbittorrent or directly from operating system, endeffect is that same -- file/torrent is back again.
> Completly reinstalling "QBT" don't help :(
> My system: Ubuntu 9.10, kernel: 2.6.31-15
> qBittorrent v1.5.5
> Sorry for my english.
>
>
>

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Thank you for the feedback. Torrent files are saved in ~/.qbittorrent/BT_backup folder. Could you remove the torrents, close qBittorrent and see what happens in this folder? (torrent files should be deleted).

Also, please run qBittorrent in a terminal so that you can see possible error output on stdout/stderr. The only reason I can see for this happening would be that qBT does not have the right to delete the *.torrent files in ~/.qbittorrent/BT_backup.

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

I meant "remove the torrents" from qBittorrent user interface (not from the BT_backup folder).

Revision history for this message
Martina Neumayer (martina.neumayer) wrote :

I know now where was this problem :)
I run qBittorrent as root in terminal - (sudo qbittorrent),
and now file is completly deleted.

uuff.. :)

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Well, if you run qBittorrent as root, the user changes and thus qBittorrent folders too:
/root/.qbittorrent
/root/.config/qBittorrent
/root/qBT_dir

Then, of course, the torrents of your former user will not be downloaded by root. Torrents cannot be shared among users. I think that maybe you should have a look at the permissions in ~/.qbittorrent/BT_backup

Revision history for this message
Martina Neumayer (martina.neumayer) wrote :

"...I think that maybe you
should have a look at the permissions in ~/.qbittorrent/BT_backup ...".

Yes, exactly that.
And second problem was with permissions for folder:
"/home/user_name/qBT_dir/temp".

For my user_name, or root was ok, but not for my user_group.
Now all working fine, without "sudo".

Thnx :)
Best regards from Poland.
eMcE.

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Good news. I'm closing this bug report then. Please do not hesitate to file reports if you experience any problem.

Changed in qbittorrent:
status: Incomplete → Invalid
Revision history for this message
Martina Neumayer (martina.neumayer) wrote :

> Good news. I'm closing this bug report then. Please do not hesitate to
> file reports if you experience any problem.
>
> ** Changed in: qbittorrent
> Status: Incomplete => Invalid

Ok.. but i think this is something wrong with installation process of QBT.
On second machine was that same issue.
New system installed on fresh hdd + new qBittorrent.

Those permissions should be ok from the beginning.

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

I don't know what to tell you. The default behavior on a Linux distribution should be that qBittorrent is allowed to read and write to folders in the user home directory.

qBittorrent creates .qbittorrent folder in the user home directory and then it expects that this folder content will be writable (which is a reasonable assumption). qBittorrent does not change any folder permission.

As a consequence, I believe that the default configuration of your linux distro is rather strange (if it is really a fresh and clean install).

So, I have the following questions (and then I will see what I can do in qBittorrent):
1. What Linux distribution is this?
2. You are talking about qBittorrent installation process. How are you installing qBittorrent? Manually or are you using provided packages? If so, where did you get them?
3. What is the permission in your home directory?
ls -l /home/ | grep $USER
drwxr-xr-x 110 chris chris 4096 2009-11-16 15:22 chris

4. If you create a directory in your home folder, what is its permission?
mkdir ~/.testfolder
ls -la ~ | grep testfolder
drwxr-xr-x 2 chris chris 4096 2009-11-16 15:33 .testfolder

5. How did you fix the permission manually? What commands did you use (and using which user (sudo or not) ?

Changed in qbittorrent:
status: Invalid → Incomplete
milestone: none → 1.5.6
Revision history for this message
Martina Neumayer (martina.neumayer) wrote :

> I don't know what to tell you. The default behavior on a Linux
> distribution should be that qBittorrent is allowed to read and write to
> folders in the user home directory.
>
> qBittorrent creates .qbittorrent folder in the user home directory and
> then it expects that this folder content will be writable (which is a
> reasonable assumption). qBittorrent does not change any folder
> permission.
>
> As a consequence, I believe that the default configuration of your linux
> distro is rather strange (if it is really a fresh and clean install).
>
> So, I have the following questions (and then I will see what I can do in qBittorrent):
> 1. What Linux distribution is this?

Is standard distro Ubuntu 9.10 Karmic Koala from here:
http://ftp.heanet.ie/pub/ubuntu-cdimage/releases/karmic/release/ubuntu-9.10-dvd-i386.iso

> 2. You are talking about qBittorrent installation process. How are you installing qBittorrent? Manually or are you using provided packages? If so, where did you get them?

Is from official website: http://qbittorrent.sourceforge.net/download.php
Im installing as usual. Adding PPA, adding key and then..
"sudo apt-get update && sudo apt-get install qbittorrent"

> 3. What is the permission in your home directory?
> ls -l /home/ | grep $USER
> drwxr-xr-x 110 chris chris 4096 2009-11-16 15:22 chris

drwxr-xr-x 58 emce emce 4096 2009-11-16 11:15 emce

>
> 4. If you create a directory in your home folder, what is its permission?
> mkdir ~/.testfolder
> ls -la ~ | grep testfolder
> drwxr-xr-x 2 chris chris 4096 2009-11-16 15:33 .testfolder
>

drwxr-xr-x 2 emce emce 4096 2009-11-16 15:17 .testfolder

> 5. How did you fix the permission manually? What commands did you use
> (and using which user (sudo or not) ?

To edit permissions Im using GNOME Commander v. 1.2.8.3 in normal mode - not admin.

I changed permissions for folder: /home/emce/qBT_dir/ to 770,
for user "emce" and group "emce".
That same for:
/home/emce/.qbittorrent/BT_backup

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Well, I'm using the same distro and same packages as you so there must be something else...

Moreover, the rights in your home folder are correct... Your user 'emce' has write permission and qBittorrent should be running as this user.

 I will try to delete my .qbittorrent folder and rerun qBittorrent to see what happens.

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Hmmm. Could you help me reproduce this?

1. I closed qBT
2. > rm -rf ~/.qbittorrent
3 > qbittorrent
4 ~/.qbittorrent/ folder is created with perm: drwxr-xr-x 5 chris chris 4096 2009-11-16 17:04 .qbittorrent, which is sufficient
5. I add a torrent to the list and ~/.qbittorrent/BT_backup is created with these sufficient perms: drwxr-xr-x 2 chris chris 4096 2009-11-16 17:04 BT_backup
6 and inside I have my torrent, also with sufficient perms: -rw-r--r-- 1 chris chris 14159 2009-11-16 17:04 c95d9a676995e6e59bc59fc7b09020f492b7f283.torrent

You said in a previous message than "For my user_name, or root was ok, but not for my user_group.". qBittorrent should be run with your username so the group permissions don't apply anyway.

My qbittorrent is running with user 'chris' so it has write permission in my home folder.
$ ps aux | grep qbittorrent
chris 29621 8.7 0.7 126800 28712 pts/7 Sl+ 17:13 0:00 src/qbittorrent

Changed in qbittorrent:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.