Qbittorrent and stalled downloads Topic is solved

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

Re: Qbittorrent and stalled downloads

Post by gasto »

I executed this: chown -Rv root:dietpi /mnt/ext

Now the output shows:

drwxrwxr-x 8 root dietpi 4096 Dec 18 15:25 .
drwxr-xr-x 7 root root 4096 Dec 16 21:25 ..
drwxrwxr-x 3 root dietpi 4096 Dec 18 15:28 Backups
drwxrwxrwx 4 root dietpi 4096 Dec 18 15:30 Downloads
drwxrwxr-x 2 root dietpi 4096 Dec 17 01:08 Movies
drwxrwxr-x 2 root dietpi 4096 Dec 17 01:07 Pictures
drwxrwxr-x 2 root dietpi 4096 Dec 17 01:08 TV
drwxrwxr-x 2 root dietpi 16384 Dec 16 17:21 lost+found

Would that be correct? Now I would need to see how to add qBitorrent to dietpi group, right?
User avatar
Joulinar
Posts: 5115
Joined: Sat Nov 16, 2019 12:49 am

Re: Qbittorrent and stalled downloads

Post by Joulinar »

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

Re: Qbittorrent and stalled downloads

Post by gasto »

Thanks, I think I did it now.

qbittorrent.service:

Code: Select all

[Unit]
Description=qBittorrent (DietPi)
Documentation=man:qbittorrent-nox(1)
Wants=network-online.target
After=network-online.target dietpi-boot.service

[Service]
User=dietpi
Group=dietpi
UMask=002
ExecStart=/usr/bin/qbittorrent-nox
Restart=on-failure

[Install]
WantedBy=multi-user.target

ls -la /mnt/ext/:

Code: Select all

drwxrwxr-x 8 root dietpi 4096 Dec 18 15:25 .
drwxr-xr-x 7 root root 4096 Dec 16 21:25 ..
drwxrwxr-x 3 root dietpi 4096 Dec 18 15:28 Backups
drwxrwxrwx 4 root dietpi 4096 Dec 18 15:30 Downloads
drwxrwxr-x 2 root dietpi 4096 Dec 17 01:08 Movies
drwxrwxr-x 2 root dietpi 4096 Dec 17 01:07 Pictures
drwxrwxr-x 2 root dietpi 4096 Dec 17 01:08 TV
drwxrwxr-x 2 root dietpi 16384 Dec 16 17:21 lost+found
User avatar
Joulinar
Posts: 5115
Joined: Sat Nov 16, 2019 12:49 am

Re: Qbittorrent and stalled downloads

Post by Joulinar »

usually it's not needed to change qbittorrent.service. It's totally fine to have it running as user qbittorrent. Important thing is to have user qbittorrent being a member of user group dietpi. This can be checked as follow

Code: Select all

groups qbittorrent
It should return dietpi as group membership.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
gasto
Posts: 45
Joined: Fri Dec 04, 2020 2:24 am

Re: Qbittorrent and stalled downloads

Post by gasto »

Thank you Joulinar, it does return dietpi now :)
User avatar
Joulinar
Posts: 5115
Joined: Sat Nov 16, 2019 12:49 am

Re: Qbittorrent and stalled downloads

Post by Joulinar »

if you like, you could remove 777 permission from Downloads folder an d set it to something like 664. This should give rw access
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply