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

Hello, fellow torrenters! Having a problem after trying to update to 5.1.4-7
Update ended with error
2026-02-05 13:34:48.700 ERROR (MainThread) [supervisor.addons.addon] Add-on db21ed7f_qbittorrent has invalid options: does not match regular expression ^\w+\.conf$.
Addon is not starting, says invalid configuration. Please help.

Config file name is more restrcictve now. I’ll look to change back to how it was

Sadly, after updating to 5.1.4-8 i get error when trying to start addon
does not match regular expression ^[A-Za-z0-9._-]+\.conf$.
Maybe there is smth wrong with my setup? To be clear i never used vpn with my qbt+ha setup.

Ah your wireguard config is null which perhaps causes the issue just type anything and it should go away. Weird

Edit : I meant to type config.conf in the wireguard config field

That helped, thanks a lot for quick response and for your awesome work on this!

Hey Guys

Looking for some idea or help, i’m trying to set up Airvpn on the qbittorent addon (openvpn works on it).

I’ve tried changing port, ipv6 / 4 nothing change.
If someone know how to solve that, or have any idea, that would be amazing

[Interface]
Address = xxxxx
PrivateKey = xxxxx
MTU = 1280
DNS = 10.128.0.1

[Peer]
PublicKey = xxxxx
PresharedKey = xxxxx
Endpoint = xxxxx:47107
AllowedIPs = 0.0.0.0/0
PersistentKeepalive = 15

interface: wg0
  public key: xxxxxx
  private key: (hidden)
  listening port: 51820

peer: xxxxxx
  endpoint: xxx.xxx.xxx.xxx:47107
  allowed ips: 0.0.0.0/0
  transfer: 0 B received, 148 B sent
  persistent keepalive: every 15 seconds
[custom-init] No custom files found, skipping...
crond: crond (busybox 1.37.0) started, log level 8
[12:32:10] INFO: Using Wireguard configuration file: /var/run/wireguard/wg0.conf
[12:32:10] INFO: Starting WireGuard on interface wg0...
[12:32:10] WARNING: This script force Wireguard to ignore any routes and DNS settings.
[12:32:10] WARNING: Default route will be inserted into custom routing table: 1000
[12:32:10] WARNING: This routing table will be used for traffic from the VPN interface and to the configured DNS servers.
[12:32:10] WARNING: Qbittorrent bittorrent client shall be set to use the VPN interface wg0 only.
[12:32:10] INFO: Adding routing rules for VPN interface wg0...
[12:32:10] INFO: Updating /etc/resolv.conf with VPN DNS servers.
[12:32:10] INFO: WireGuard interface wg0 is up.
[12:32:10] INFO: Starting qBittorrent...
WebUI will be started shortly after internal preparations. Please wait...
******** Information ********
To control qBittorrent, access the WebUI at: http://localhost:8080
Connection to localhost (::1) 8080 port [tcp/http-alt] succeeded!
[12:32:12] INFO: Starting nginx...
[12:32:12] INFO: VPN monitor set to query external IP through interface wg0 (interface binding).
[12:32:12] INFO: Real (non-VPN) IP from /currentip: 8x.xx.xx.xx
[ls.io-init] done.
[12:32:12] INFO: VPN detected; enabling IP leak protection and periodic monitoring.
[12:32:42] WARNING: Unable to determine external IP from fallback IP services.
[12:32:42] WARNING: Unable to query external IP (attempt 1/5).
[12:33:17] WARNING: Unable to determine external IP from fallback IP services.
[12:33:17] WARNING: Unable to query external IP (attempt 2/5).
[12:33:52] WARNING: Unable to determine external IP from fallback IP services.
[12:33:52] WARNING: Unable to query external IP (attempt 3/5).
[12:34:27] WARNING: Unable to determine external IP from fallback IP services.
[12:34:27] WARNING: Unable to query external IP (attempt 4/5).
[12:35:02] WARNING: Unable to determine external IP from fallback IP services.
[12:35:02] WARNING: Unable to query external IP (attempt 5/5).
[12:35:07] ERROR: Unable to obtain a VPN external IP different from real IP. Stopping add-on.
if: fatal: unable to spawn s6-test: No such file or directory
Catching signal: SIGTERM
Exiting cleanly

Are you sure your vpn is valid ? I had the same when using an invalid config

Yeah, downloaded directly from airvpn, and same config file is working on my desktop computer

Hi, I’ve bought a airvpn pass and will make it work.

First issue is that airvpn config filenames are more than 15 characters and therefore can’t work. This will be fixed in next version.

Second issue is why it doesn’t connect, I still need to understand and will look a bit deeper

Fixed in latest

Hi @alexbelgium Since the last update, the add-on has been using a lot of CPU (around 67%). In previous versions, it was around 10-12% (at most). Have you noticed this too, or could it be a problem with my configuration? Because the configuration is the same as in previous versions. At first, CPU usage is normal, but after a few hours of running, the CPU usage increases significantly.

Hi, could you could please specify the versions having the issue or not ? Thanks

the version is the 5.1.4-15 but now after I’ve reduced the field about the physical memory ( before it was 2048) to 1024 ( like the default) it seems solved.

never mind that wasn’t the problem because I woke up and it was back at , 68% CPU usage.I use wireguard, could it be due to that?

In the past there were some issues with qbittorrent and I had set an automation to automatically restart the addon during the night ; this might be a temporary solution. I’ll try to replicate on my system

@alexbelgium I tried using vpn_upnp_enabled as I use WireGuard with Proton VPN and the port for NAT forwarding changes, so I thought this option would solve the problem, but I keep seeing the following in the logs:

[11:51:45] INFO: qBittorrent SessionID not set, getting new SessionID
[11:51:45] ERROR: Failed getting new SessionID from qBittorrent
[11:51:45] ERROR: NAT-PMP/UPnP Failed

How can I fix this? Is it a configuration issue on my end or a bug with the feature?

I’ll push a new version that should solve it now