sometime in december an update broke the docker. ok, not broke - more changes on VPN_forward or so prevented my qbit to run. I have a wg0.conf with a mullvad wireguard config (was running fine until december) and the yaml looks like this
Container starts, but I can not connect to the gui
2026-01-28 21:27:36.547100+00:00s6-rc: info: service init-wireguard successfully started
2026-01-28 21:27:36.547757+00:00s6-rc: info: service service-unbound: starting
2026-01-28 21:27:36.547966+00:00s6-rc: info: service service-qbittorrent: starting
2026-01-28 21:27:36.548289+00:00s6-rc: info: service service-forwarder: starting
2026-01-28 21:27:36.552537+00:00s6-rc: info: service service-unbound successfully started
2026-01-28 21:27:36.552647+00:00s6-rc: info: service service-forwarder successfully started
2026-01-28 21:27:36.553491+00:00s6-rc: info: service service-qbittorrent successfully started
2026-01-28 21:27:36.553798+00:00s6-rc: info: service legacy-services: starting
2026-01-28 21:27:36.564995+00:00s6-rc: info: service legacy-services successfully started
2026-01-28 21:27:36.565130+00:00[2026-01-28 22:27:36] [INF] [QBITTORRENT] Delaying start until forwarded port is available.
2026-01-28 21:27:36.571042+00:00[2026-01-28 22:27:36] [INF] [UNBOUND] Adding nameserver [VPN][9.9.9.9].
2026-01-28 21:27:36.666900+00:00[1769635656] unbound[323:0] info: start of service (unbound 1.23.1).
2026-01-28 21:27:46.574090+00:00[2026-01-28 22:27:46] [WRN] [FORWARDER] The file [/config/wireguard/forwarded_port] was not found. Set [VPN_AUTO_PORT_FORWARD=false] if you don't plan on providing that file yourself.
any combination of VPN_AUTO_PORT_FORWARD I tried gives different errors - using 51820 (the only port in the wg0.conf), leaving it blank, a different number…
what should be changed in the yaml (i assume it is an variable in the yaml) to make it work again?
but I struggle with the tunnel, wireguard logs look like it is running, but qBit is indicating “firewalled” and shows no I/O traffic. I will report back
seems like I found the solution: I simply restartet the whole TrueNAS box. I have no idea why this fixed the wireguard when restarting the stack of qbit+wireguard or the single wireguard container did not.
Another lesson learned: I had to change the default download path from “/downloads” to the existing path “/media/Download”. There was a folder expected but not present and so I got a permission denied with resulted in errored status on test torrents even if I could see peers…
I followed https://wiki.serversatho.me/qBittorrent (in step 1 open the second tab “Linuxserver Wireguard”) and was able to start two containers. On my first try it did work. I am using mullvad. But since then I am struggleing again - wireguard starts, qbit starts and wireguards ditches. After some searching I found that mullvad restricted the use of port forwarding and maybe this can be the cause - but why it did work for at least 1 day is beyond me. In fact I was eyeing airVPN as a possible alternative to mullvad (especially because they mention being ok with port forwarding), but If you struggle as well to get a connection I don’t know anymore…
Could you check the YAML from the wiki.serversatho.me and give it a try and report back here if this was the solution for you?
I’ve got it working again. I switched back to the YAML for qubittorrent Hotio. The dual container solution (qbit+wireguard) did not work reliably for me. Sometimes wireguard would switch to “unhealthy” as soon as qbit started, I could not reach the qbit WebGUI and so on.
fixing the qbit from Hotio to the version 5.1.2 and ditching the extra wg0.conf-line with “postup…” (I commented it out with #) did it for me. The container came immediatly online, webgui could be reached and the old files were already there. Interface wg0 seems not to leak additional information so I am satisfied for the moment.