Home Assistant addon : qbittorrent (supports openvpn & smb mounts)

Ok, so what I did is
in config/addons_config/qBittorent/qBittorent.conf
I added this:

[Other]
networkdisks: "//192.168.0.200/raid5
cifsusername: "xxxx"
cifspassword: "xxxx"

And modified the configuration to SavePath to this:
image

After this I tried a download and again it’s not showing up anywhere so I went back to the config file and noticed my modifications were gone.

it seems every time I restart the addons the modifications are erased. Is this the correct place to put them?

Thanks!

Hi, those three elements must be put in the addon configs, not the qbittorrent
conf

If successful, there will be a message in the log saying it was mounted, and where.

For some reason I am unable to use any other webUI than Vue. If I choose any other I get stuck at the login screen. Even though I am inputting the correct username and password described in the logs absolutely nothing happens when I press “Login” or press enter.

When I choose Vue as webUI I am automatically logged in and don’t need to input a username or password.

I have whitelisted my internal IP which is probably why I don’t need to enter anything for Vue, but I don’t understand why it’s not the same for the other webUI?

Below logs are after I’ve tried to login once after restarting the addon:

[migrations] started
[migrations] no migrations found
cont-init: info: running /etc/cont-init.d/00-banner.sh
-----------------------------------------------------------
-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/
Brought to you by linuxserver.io
-------------------------------------
To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------
User uid:    0
User gid:    0
-------------------------------------
 Add-on: Qbittorrent
 qBittorrent is a bittorrent client
-----------------------------------------------------------
 Add-on version: 4.5.0-r1-ls242
 You are running the latest version of this add-on.
 System: Home Assistant OS 9.5  (aarch64 / raspberrypi4-64)
 Home Assistant Core: 2023.2.2
 Home Assistant Supervisor: 2023.01.1
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums
 https://github.com/alexbelgium/hassio-addons
-----------------------------------------------------------
cont-init: info: /etc/cont-init.d/00-banner.sh exited 0
cont-init: info: running /etc/cont-init.d/00-folders.sh
cont-init: info: /etc/cont-init.d/00-folders.sh exited 0
cont-init: info: running /etc/cont-init.d/01-custom_script.sh
[12:03:42] INFO: Execute /config/addons_autoscripts/qbittorrent.sh if existing
[12:03:42] INFO: ... no script found
cont-init: info: /etc/cont-init.d/01-custom_script.sh exited 0
cont-init: info: running /etc/cont-init.d/30-nginx.sh
cont-init: info: /etc/cont-init.d/30-nginx.sh exited 0
cont-init: info: running /etc/cont-init.d/90-dns_set.sh
[12:03:45] INFO: DNS SERVERS set to 1.1.1.1 8.8.8.8 
cont-init: info: /etc/cont-init.d/90-dns_set.sh exited 0
cont-init: info: running /etc/cont-init.d/91-qbittorrent_configuration.sh
sed: unmatched '|'
[12:03:46] INFO: Downloads can be found in /share/qBittorrent
[12:03:46] INFO: Whitelisted subsets will not require a password : localhost,127.0.0.1,172.30.0.0/16,192.168.0.0/16,192.168.1.95
[12:03:46] INFO: WEBUI username set to admin
[12:03:47] INFO: Alternate UI enabled : qbit-matUI. If webui don't work, disable this option
[12:03:49] INFO: Default username/password : admin/adminadmin
[12:03:49] INFO: Configuration can be found in /config/addons_config/qBittorrent
cont-init: info: /etc/cont-init.d/91-qbittorrent_configuration.sh exited 0
cont-init: info: running /etc/cont-init.d/92-local_mounts.sh
cont-init: info: /etc/cont-init.d/92-local_mounts.sh exited 0
cont-init: info: running /etc/cont-init.d/92-smb_mounts.sh
cont-init: info: /etc/cont-init.d/92-smb_mounts.sh exited 0
cont-init: info: running /etc/cont-init.d/93-openvpn.sh
[12:03:49] INFO: Direct connection without VPN enabled
cont-init: info: /etc/cont-init.d/93-openvpn.sh exited 0
[custom-init] No custom files found, skipping...
WebUI will be started shortly after internal preparations. Please wait...
services-up: info: copying legacy longrun nginx (no readiness notification)
[ls.io-init] done.
[12:03:51] INFO: Starting NGinx...
[05/Feb/2023:12:04:27 +0100] 200 192.168.1.95, 172.30.32.1(172.30.32.2) GET /assets/index.0d275cd0.js HTTP/1.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Safari/605.1.15)
[05/Feb/2023:12:04:27 +0100] 401 192.168.1.95, 172.30.32.1(172.30.32.2) GET /api/v2/app/version HTTP/1.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Safari/605.1.15)
[05/Feb/2023:12:04:27 +0100] 200 192.168.1.95, 172.30.32.1(172.30.32.2) GET /assets/roboto-latin-300.29f6da0a.woff2 HTTP/1.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Safari/605.1.15)
[05/Feb/2023:12:04:27 +0100] 200 192.168.1.95, 172.30.32.1(172.30.32.2) GET /assets/roboto-latin-500.24369e1b.woff2 HTTP/1.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Safari/605.1.15)
[05/Feb/2023:12:04:27 +0100] 200 192.168.1.95, 172.30.32.1(172.30.32.2) GET /assets/roboto-mono-latin-700.44a99279.woff2 HTTP/1.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Safari/605.1.15)
[05/Feb/2023:12:04:27 +0100] 200 192.168.1.95, 172.30.32.1(172.30.32.2) GET /assets/roboto-latin-400.48c3fa6f.woff2 HTTP/1.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Safari/605.1.15)
[05/Feb/2023:12:04:27 +0100] 200 192.168.1.95, 172.30.32.1(172.30.32.2) GET /assets/roboto-latin-700.b4d07892.woff2 HTTP/1.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Safari/605.1.15)
[05/Feb/2023:12:04:28 +0100] 200 192.168.1.95, 172.30.32.1(172.30.32.2) GET /sw.js HTTP/1.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Safari/605.1.15)
[05/Feb/2023:12:04:28 +0100] 200 192.168.1.95, 172.30.32.1(172.30.32.2) GET /workbox-3625d7b0.js HTTP/1.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Safari/605.1.15)
[05/Feb/2023:12:04:39 +0100] 401 192.168.1.95, 172.30.32.1(172.30.32.2) POST /api/v2/auth/login HTTP/1.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Safari/605.1.15)

Hi, if you use ingress, it only supports vue. Changing the webui affects the connection with ip:port but you must then use your password and makd sure to clear your browser cache to remove references to the previous ui

1 Like

Hi,

Is the UPNP feature expected to work? Or should we forward ports manually?

Thanks,

Motik

I think ports must be forwarded manually. As i understand it, for upnp to work i should link the addon to the host network but that causes other issues

1 Like

Thanks Alex, that’s what I suspected.

Maybe there should be a warning about this in the documentation (or there already is and I missed it?) because not opening the qBittorrent port prevents most clients from connecting, which somehow defeats the purpose of torrenting :slightly_smiling_face:

1 Like

Documentation is not my strong point :wink: but indeed I’ll look at it

1 Like

Hi! I am using the addon “Samba NAS” to mount an external HDD so it can be found on my network.

How do I make qBittorrent able to download directly to that external HDD?

Hi, use the info from samba nas to fill the networkdisks, cifsusername and cifspassword fields in the addon options

1 Like

Thank you!

I totally missed that there was a ckeckbox to show optional settings in the qBittorrent addon. I feel stupid!

I filled in the username and password I have for the Samba NAS share and the IP and now it works!

Another question: Regarding RSS, vueTorrent UI has a very simple RSS support. Do you know if it would be possible to set up advanced RSS rules on my PC (macOS) and import them into the qBittorrent addon? Like maybe just transferring over the rss.json file somewhere?

Thanks!

1 Like

I have no idea for rss… I have never used it for qbittorrent sorry

I will answer myself.

The default webUI has support for advanced RSS settings that is needed for proper RSS usage. At first I wasn’t able to gain access to anything but vueTorrent UI but somehow the default webUI now works. :+1:

vueTorrent is good looking and fits well with the look of Home Assistant, but unfortunately isn’t an option for RSS usage. It lacks basic features like different download folders for different RSS content, filters and more. Just a heads up if anyone looks for this in the future.

1 Like

Thanks very much! I’ve tried again to switch the webui at the ingress stage but actually not all webui are written the same and some have hardlinks to domain which is not compatible with ingress.

There are two solutions there : either I reduce the number of webui to only ones compatible with ingress, or I force vuetorrent. Currently I’ve chose the second option ; knowing that people can use whatever UI they want if they access with ip:port

I have a potentially dumb question - but how is everyone managing the actual files after they are downloaded? How do you move the files between folders? I have the torrented files go into a qBittorrent folder but I need to now move those files into the Plex folder structure. I can’t figure out how to do that…

I’m using the ls 242 version of the addon which works fine for me. But updating to the version after this one kills my web interface, i just get an Unauthorized in my browser.

image

I noticed that the whitelisted ips in qbittorrent settings are gone, but even adding them again does not work, via browser i have no access to the webui. Ingress still works.
Does anyone else have problems with the ls246 for example and the webui?

@AlecD You could make an SMB share folder in your plex folder structure and mount this one in the addon (and set it as the default save path). So it would download directly into your plex folders, wouldn’t that be an idea?

Hi!
I’m new with Yours addons and have problem (installed yesterday) with these 2 versions of qBit:

4.5.1-r1-ls245 (19-02-2023)

4.5.1-r1-ls246 (25-02-2023)

Addon works great, but i have constan problem with login:
LOG showing that for login i should us admin/adminadmin. When trying to login i have error that password or login not match (red onit at the right bottom).
To use it (qBittorrent) i have 2 options:

  • delete, from qbittorrent.conf line: WebUI\Username=admin and restart addon
  • put in whitelist my IP with subnet /16 or /24 (dont udertend fully this subnet)
    Then getting to WebUI and everything works fine.
    After reboot situation repeat. I can once again delete “WebUI\Username=admin” from *.conf or change /16 to /24 or /24 to /16.
    Maybe You have solution for that behavior?

Hi, thanks… I can’t replicate though, just tried to remove my ip from whitelist and admin/adminadmin works as username/password…

Both with my current setting, and after deleting my own qbittorrent.conf file to start from scratch. Perhaps try to reset the addon options?

And same for whitelists, it works here. Could you please post a full log? Thanks

cont-init: info: running /etc/cont-init.d/00-banner.sh
[migrations] started
[migrations] no migrations found
-----------------------------------------------------------
 Add-on: Qbittorrent
 qBittorrent is a bittorrent client
-----------------------------------------------------------
-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/
Brought to you by linuxserver.io
-------------------------------------
To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------
User uid:    0
User gid:    0
-------------------------------------
 Add-on version: 4.5.1-r1-ls246-2
 You are running the latest version of this add-on.
 System: Home Assistant OS 9.5  (amd64 / generic-x86-64)
 Home Assistant Core: 2023.2.5
 Home Assistant Supervisor: 2023.01.1
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums
 https://github.com/alexbelgium/hassio-addons
-----------------------------------------------------------
cont-init: info: /etc/cont-init.d/00-banner.sh exited 0
cont-init: info: running /etc/cont-init.d/00-folders.sh
cont-init: info: /etc/cont-init.d/00-folders.sh exited 0
cont-init: info: running /etc/cont-init.d/01-custom_script.sh
[21:44:08] INFO: Execute /config/addons_autoscripts/qbittorrent.sh if existing
[21:44:08] INFO: ... no script found
cont-init: info: /etc/cont-init.d/01-custom_script.sh exited 0
cont-init: info: running /etc/cont-init.d/30-nginx.sh
cont-init: info: /etc/cont-init.d/30-nginx.sh exited 0
cont-init: info: running /etc/cont-init.d/90-dns_set.sh
[21:44:08] INFO: DNS SERVERS set to 1.1.1.1 8.8.8.8 
cont-init: info: /etc/cont-init.d/90-dns_set.sh exited 0
cont-init: info: running /etc/cont-init.d/91-qbittorrent_configuration.sh
sed: unmatched '|'
[21:44:08] INFO: Downloads can be found in /mnt/samsung/downloads
[21:44:08] INFO: Whitelisted subsets will not require a password : localhost,127.0.0.1,172.30.0.0/16,192.168.0.0/16,192.168.38.0/16
[21:44:08] INFO: WEBUI username set to admin
[21:44:08] INFO: Alternate UI enabled : vuetorrent. If webui don't work, disable this option
[21:44:10] INFO: Default username/password : admin/adminadmin
[21:44:10] INFO: Configuration can be found in /config/addons_config/qBittorrent
cont-init: info: /etc/cont-init.d/91-qbittorrent_configuration.sh exited 0
cont-init: info: running /etc/cont-init.d/92-local_mounts.sh
Local Disks mounting...
[21:44:10] INFO: Mounting samsung of type ext4
Using PUID 0 and PGID 0
[21:44:11] INFO: Success! samsung mounted to /mnt/samsung
[21:44:11] INFO: Mounting goodram of type ext4
Using PUID 0 and PGID 0
[21:44:11] INFO: Success! goodram mounted to /mnt/goodram
cont-init: info: /etc/cont-init.d/92-local_mounts.sh exited 0
cont-init: info: running /etc/cont-init.d/92-smb_mounts.sh
cont-init: info: /etc/cont-init.d/92-smb_mounts.sh exited 0
cont-init: info: running /etc/cont-init.d/93-openvpn.sh
[21:44:11] INFO: Direct connection without VPN enabled
cont-init: info: /etc/cont-init.d/93-openvpn.sh exited 0
[custom-init] No custom files found, skipping...
WebUI will be started shortly after internal preparations. Please wait...
services-up: info: copying legacy longrun nginx (no readiness notification)
[ls.io-init] done.
[21:44:12] INFO: Starting NGinx...

I also have similar problem to Madface:
When trying to access from web browser sometimes i have “Unauthorized” error

Hi, is it corrected in latest version?