Qbittorrent won't download to mounted USB drive.

Having issues with your DietPi installation or found a bug? Post it here.
bitpi2
Posts: 12
Joined: Wed Jan 13, 2021 8:54 pm

Qbittorrent won't download to mounted USB drive.

Post by bitpi2 »

Hi guys,

First, thanks for this great piece of software, you are doing an amazing job!

I have RPi 3B+ and the latest dietpi. I'm running qbittorrent v4.1.5 and downloads are working fine if I download to a default path

Code: Select all

/mnt/dietpi_userdata/downloads/
Since microSD card is 16GB only, I've mounted USB drive and I see its content at

Code: Select all

/mnt/E449-0ACD
, tried creating and deleting txt file with nano and it works fine. But when I try downloading a file with qbittorrent at the same location, it starts "fake" download ie. it starts with some speed for a couple seconds and then goes to 0, but the progress is always 0.0% even that a file is 1MB, has a lot of seeders and I see the content of a torrent. It doesn't create any file either.

If I type

Code: Select all

ls -l
in that folder, I get

Code: Select all

drwxr-xr-x 2 root root 4096 Jan  1
for every single file in that folder. Can someone tell me how to fix this please?


edit: qbittorrent reported it downloaded one of test files I'm trying to download to USB drive and moved it to seeding torrents, but I don't see the file at all in terminal when I type 'ls' or 'ls -a'.

edit2: I've tried adding qbittorrent user to root group and it's now in dietpi and root groups, but the progress is still stalled.
User avatar
trendy
Posts: 220
Joined: Tue Feb 25, 2020 2:54 pm

Re: Qbittorrent won't download to mounted USB drive.

Post by trendy »

The user of the torrent client doesn't have permissions to write in the folder.
Adding the user in the root group is not a very good idea, remove it.
Instead change the permissions of the folder to dietpi

Code: Select all

sudo chgrp -R dietpi /mnt/E449-0ACD
Then change the owner of the folder to group dietpi

Code: Select all

sudo chmod 2775 /mnt/E449-0ACD
User avatar
Joulinar
Posts: 3688
Joined: Sat Nov 16, 2019 12:49 am

Re: Qbittorrent won't download to mounted USB drive.

Post by Joulinar »

Indeed adding the user to root group is not a good idea. Pls remove it. As well it's not fixing your issue as you don't have write permission on the folder

Code: Select all

drwxr-xr-x 2 root root 4096 Jan  1
At the moment, root user is the only one who is allowed to write to this folder. Best way is to change group ownership to dietpi group and allow write permission on group level for this folder. Normally Qbittorrent should be member of dietpi group already.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
bitpi2
Posts: 12
Joined: Wed Jan 13, 2021 8:54 pm

Re: Qbittorrent won't download to mounted USB drive.

Post by bitpi2 »

trendy wrote: Thu Jan 14, 2021 9:50 am The user of the torrent client doesn't have permissions to write in the folder.
Adding the user in the root group is not a very good idea, remove it.
Instead change the permissions of the folder to dietpi

Code: Select all

sudo chgrp -R dietpi /mnt/E449-0ACD
Then change the owner of the folder to group dietpi

Code: Select all

sudo chmod 2775 /mnt/E449-0ACD
Thanks for answering! I've tried the first command and I get:

Code: Select all

chgrp: changing group of '/mnt/E449-0ACD/x': Operation not permitted
for all files in the directory. Found on stackoverflow: "You must be a member of the group to which you are changing ownership to.", so I added root to dietpi group, but still the same error. I'm not sure what's wrong?

Joulinar wrote: Thu Jan 14, 2021 11:24 am Indeed adding the user to root group is not a good idea. Pls remove it. As well it's not fixing your issue as you don't have write permission on the folder

Code: Select all

drwxr-xr-x 2 root root 4096 Jan 1
At the moment, root user is the only one who is allowed to write to this folder. Best way is to change group ownership to dietpi group and allow write permission on group level for this folder. Normally Qbittorrent should be member of dietpi group already.
Thanks for answering! I removed qbittorrent from root group. I'm new to linux and these groups/permissions stuff, that's why I picked dietpi, since it's noob-friendly. It was a breeze to set it up and running. Although, I now have this issue.
User avatar
Joulinar
Posts: 3688
Joined: Sat Nov 16, 2019 12:49 am

Re: Qbittorrent won't download to mounted USB drive.

Post by Joulinar »

can you share following now ls -la /mnt/E449-0ACD
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
bitpi2
Posts: 12
Joined: Wed Jan 13, 2021 8:54 pm

Re: Qbittorrent won't download to mounted USB drive.

Post by bitpi2 »

Sure. Here it is:
total 32
drwxr-xr-x 7 root root 8192 Jan 1 1970 .
drwxr-xr-x 7 root root 4096 Jan 13 19:26 ..
drwxr-xr-x 2 root root 4096 Jan 1 13:18 x
drwxr-xr-x 2 root root 4096 Jan 1 16:01 x
drwxr-xr-x 2 root root 4096 Jan 1 13:21 x
User avatar
Joulinar
Posts: 3688
Joined: Sat Nov 16, 2019 12:49 am

Re: Qbittorrent won't download to mounted USB drive.

Post by Joulinar »

what is the name of the folder you like to download to?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
trendy
Posts: 220
Joined: Tue Feb 25, 2020 2:54 pm

Re: Qbittorrent won't download to mounted USB drive.

Post by trendy »

bitpi2 wrote: Thu Jan 14, 2021 11:33 pm Thanks for answering! I've tried the first command and I get:

Code: Select all

chgrp: changing group of '/mnt/E449-0ACD/x': Operation not permitted

for all files in the directory. Found on stackoverflow: "You must be a member of the group to which you are changing ownership to.", so I added root to dietpi group, but still the same error. I'm not sure what's wrong?
Did you use the sudo at the beginning of the command?
I cannot tell like this, you should paste here the whole commands and the errors you are getting from the ssh terminal.
bitpi2
Posts: 12
Joined: Wed Jan 13, 2021 8:54 pm

Re: Qbittorrent won't download to mounted USB drive.

Post by bitpi2 »

Joulinar wrote: Fri Jan 15, 2021 12:44 am what is the name of the folder you like to download to?
I would like to download to /mnt/E449-0ACD. If it matters, there are files already which I want to seed, so I'm trying to make qbittorrent "see" them and start seeding. That's why I put those x-es "drwxr-xr-x 2 root root 4096 Jan 1 13:18 x" in the previous post.
trendy wrote: Fri Jan 15, 2021 9:38 am Did you use the sudo at the beginning of the command?
I cannot tell like this, you should paste here the whole commands and the errors you are getting from the ssh terminal.
Yes, of course.
root@DietPi:~# sudo chgrp -R dietpi /mnt/E449-0ACD
chgrp: changing group of '/mnt/E449-0ACD/System Volume Information/WPSettings.dat': Operation not permitted
chgrp: changing group of '/mnt/E449-0ACD/System Volume Information': Operation not permitted
chgrp: changing group of '/mnt/E449-0ACD/ubuntu.iso': Operation not permitted
chgrp: changing group of '/mnt/E449-0ACD/ubuntu1.iso': Operation not permitted
chgrp: changing group of '/mnt/E449-0ACD/ubuntu2.iso': Operation not permitted
chgrp: changing group of '/mnt/E449-0ACD/ubuntu3.iso': Operation not permitted
chgrp: changing group of '/mnt/E449-0ACD/ubuntu4.iso': Operation not permitted
chgrp: changing group of '/mnt/E449-0ACD/ubuntu5.iso': Operation not permitted
chgrp: changing group of '/mnt/E449-0ACD': Operation not permitted
root@DietPi:~#
File system type is NTFS. If I type

Code: Select all

root@DietPi:/mnt# ls -l
I get:
drwxr-xr-x 7 root root 8192 Jan 1 1970 E449-0ACD
drwxrwxr-x 6 dietpi dietpi 4096 Dec 3 20:19 dietpi_userdata
drwxrwxr-x 2 dietpi dietpi 4096 Sep 10 13:28 ftp_client
drwxrwxr-x 2 dietpi dietpi 4096 Sep 10 13:30 nfs_client
drwxrwxr-x 2 dietpi dietpi 4096 Sep 10 13:30 samba
it confirms it didn't change the group to dietpi.
User avatar
Joulinar
Posts: 3688
Joined: Sat Nov 16, 2019 12:49 am

Re: Qbittorrent won't download to mounted USB drive.

Post by Joulinar »

Is there a specific reason for using NTFS? Why not using ext4 as file system format?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply