Qbittorrent won't download to mounted USB drive.

Having issues with your DietPi installation or found a bug? Post it here.
User avatar
Joulinar
Posts: 5115
Joined: Sat Nov 16, 2019 12:49 am

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

Post by Joulinar »

MichaIng wrote: Sun Jan 17, 2021 12:44 am I don't understand why they did not integrate an ext4 driver natively into the Windows kernel 10 years ago,
That would be too obvious
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 »

I switched the usb drive for the larger one and now qbittorrent doesn't download again, although with different error. I followed the same procedure. Formatted the drive as ext4 and copied the files. Mounted it with drive_manager at /mnt/torrent. I can see the files at that location, but when I want to download the torrent to that location, qBittorent reports "Errored" as a status. I checked qBittorrent's log and it says:
An I/O error occurred, ... error: Permission denied
And this is results for ls -l
root@DietPi:/mnt# ls -l
total 20
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
drwx------ 13 dietpi dietpi 4096 Jan 16 17:50 torrent
root@DietPi:/mnt# cd torrent
root@DietPi:/mnt/torrent# ls -l
total 52
drwxrwxrwx 8 dietpi dietpi 4096 Jan 1 12:25 ubuntu.iso
drwxrwxrwx 8 dietpi dietpi 4096 Jan 1 15:15 ubuntu1.iso
drwxrwxrwx 2 dietpi dietpi 4096 Jan 1 12:18 ubuntu2.iso
drwxrwxrwx 2 dietpi dietpi 4096 Jan 1 15:01 ubuntu3.iso
drwxrwxrwx 8 dietpi dietpi 4096 Jan 1 14:43 ubuntu4.iso
drwxrwxrwx 2 dietpi dietpi 4096 Jan 1 12:21 ubuntu5.iso
drwxrwxrwx 2 dietpi dietpi 4096 Jan 1 14:54 ubuntu6.iso
drwxrwxrwx 10 dietpi dietpi 4096 Jan 1 15:56 ubuntu7.iso
drwxrwxrwx 2 dietpi dietpi 4096 Jan 1 14:48 ubuntu8.iso
drwx------ 2 root root 16384 Jan 16 16:10 lost+found
root@DietPi:/mnt/torrent#
qBittorrent is already the member of dietpi group. I also tried to restart its process as well as the whole RPi and did unmount/mount the usb drive again. Do you maybe know what the problem is?
User avatar
Joulinar
Posts: 5115
Joined: Sat Nov 16, 2019 12:49 am

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

Post by Joulinar »

at the moment torrent folder has permission for the user dietpi only. there is no permission for a group at all

Code: Select all

drwx------ 13 dietpi dietpi 4096 Jan 16 17:50 torrent
You would need to allow group r/w access as well chmod 760 /mnt/torrent
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 »

Now it is:
drwxrw---- 13 dietpi dietpi 4096 Jan 16 17:50 torrent
but I'm still getting the same error. qBittorrent status "errored" and the same I/O error in the log. Is the problem those last four dashes before 13?
User avatar
Joulinar
Posts: 5115
Joined: Sat Nov 16, 2019 12:49 am

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

Post by Joulinar »

no because this would be everybody permission. you could try by doing chmod 777 /mnt/torrent. Usually something to be avoided as it will jeopardize security concept. And probably a reboot is needed to take effect for all processes.
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 »

I did a complete reboot after chmod 760 /mnt/torrent, but it still was showing the same error. It started working when I executed chmod 777 /mnt/torrent (thank you for that!), but now I'm not sure should I be concerned about jeopardizing the security concept as you said.
User avatar
Joulinar
Posts: 5115
Joined: Sat Nov 16, 2019 12:49 am

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

Post by Joulinar »

Once you download a file, can you share again ls -la /mnt/torrent. Let's check how permission looks like for the new file
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:
drwxrwxr-x 2 qbittorrent dietpi 4096 Jan 17 13:46 kubuntu.iso
User avatar
Joulinar
Posts: 5115
Joined: Sat Nov 16, 2019 12:49 am

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

Post by Joulinar »

let's check group membership of user qbittorrent

Code: Select all

groups qbittorrent
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 »

root@DietPi:/mnt/torrent# groups qbittorrent
qbittorrent : dietpi
Post Reply