Qbittorrent and stalled downloads Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
gasto
Posts: 44
Joined: Fri Dec 04, 2020 2:24 am

Qbittorrent and stalled downloads

Post by gasto »

Hi there,

I connected an external HDD and mounted it on mnt/ext and then created a few folders on Windows using Samba. My samba conf looks like this for this:

[External Drive]
path = /mnt/ext
browseable = yes
writeable=Yes
create mask=0777
directory mask=0777
public=yes


I have Qbittorrent installed and I forwarded its port on my router settings on my Dietpi local IP.
As I have already created a Downloads folder, I set qbittorrent download folder to mnt/ext/Downloads

However, as soon as I add a new torrent, it mght connect to 1 or 2 peers and then everything drops to 0 and the torrent gets stalled. Am I missing something?

I searched on the forum and found this topic, which describes the same situation I´m having: viewtopic.php?t=6902

Thanks!
User avatar
Joulinar
Posts: 4823
Joined: Sat Nov 16, 2019 12:49 am

Re: Qbittorrent and stalled downloads

Post by Joulinar »

Hi,

did you tried changing download directory to some other place like /mnt/dietpi_userdata/downloads to rule out issues with the external device.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
gasto
Posts: 44
Joined: Fri Dec 04, 2020 2:24 am

Re: Qbittorrent and stalled downloads

Post by gasto »

Yep, with a local location like that one it works. But not with the external drive. On the bottom of qBitorrent where it says the drive capacity it says "unknown", so a connection with it between qBitorrent and the external drive is not being established I guess.
gasto
Posts: 44
Joined: Fri Dec 04, 2020 2:24 am

Re: Qbittorrent and stalled downloads

Post by gasto »

Just solved it by chmoding 777 the folder!
User avatar
Joulinar
Posts: 4823
Joined: Sat Nov 16, 2019 12:49 am

Re: Qbittorrent and stalled downloads

Post by Joulinar »

what file system format you are using on your disk? ext4? You would need to ensure write permission of Qbittorrent user. Yes 777 is an option but not really secure ;)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
gasto
Posts: 44
Joined: Fri Dec 04, 2020 2:24 am

Re: Qbittorrent and stalled downloads

Post by gasto »

Hi Joulinar, thanks for your asnwer.

I´m indeed using EXT4 on my external drive, but not sure what you say I should do instead of the chmod 777.
Thanks
User avatar
Joulinar
Posts: 4823
Joined: Sat Nov 16, 2019 12:49 am

Re: Qbittorrent and stalled downloads

Post by Joulinar »

can you provide following

Code: Select all

ls -la /mnt/ext/
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
gasto
Posts: 44
Joined: Fri Dec 04, 2020 2:24 am

Re: Qbittorrent and stalled downloads

Post by gasto »

Sure, here you go:

total 44
drwxrwxr-x 8 root users 4096 Dec 17 01:57 .
drwxr-xr-x 7 root root 4096 Dec 16 21:25 ..
drwxrwxr-x 2 root users 4096 Dec 17 01:08 Backups
drwxrwxrwx 4 root users 4096 Dec 17 19:42 Downloads
drwxrwxr-x 2 root users 4096 Dec 17 01:08 Movies
drwxrwxr-x 2 root users 4096 Dec 17 01:07 Pictures
drwxrwxr-x 2 root users 4096 Dec 17 01:08 TV
drwxrwxr-x 2 root users 16384 Dec 16 17:21 lost+found
User avatar
Joulinar
Posts: 4823
Joined: Sat Nov 16, 2019 12:49 am

Re: Qbittorrent and stalled downloads

Post by Joulinar »

ok all files and directories are owned by user root and group user. For sure Qbittorrent is not able to write to your disk. You could change group ownership to group dietpi and ensure that Qbittorrent is part of this group.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
gasto
Posts: 44
Joined: Fri Dec 04, 2020 2:24 am

Re: Qbittorrent and stalled downloads

Post by gasto »

Thank you, I´ll see if I can find on Google how to change group ownership and add qBitorrent to that group.
Regards!
Post Reply