Tracker unreachable when running Deluge with Gluetun in Docker
I've been having an issue with my Deluge instance where random torrents on random trackers would either throw "skipping tracker announce (unreachable)" or "Tracker Error: timed out". It's a super generic error, and most of the time it's a temporary issue or an issue caused by user configuration, so it's really difficult to find solutions online.
However, I stumbled upon this form thread where mr.lite.touch provides a solution!
- Install the LTConfig plugin in Deluge
- Run
ip addr show
in both your Deluge & Gluetun containers. - Both containers should have a
tun0
interface with an IPv4 address that is the same. Note it down. - In Deluge, open Preferences > LTConfig
- Find
listen_interfaces
. - Set it to
<IP>:<PORT>
where the IP is the IPv4 address of yourtun0
interface & the Port is whatever was there before (42676
in my case) - Click "Apply" and "Ok"
- Select all errored torrents and right-click > Update Tracker
From what I understand, this forces libTorrent to use a specific interface when listening for tracker connections. By default, libTorrent will listen on all interfaces, which I think is why it wasn't working before & would randomly throw these errors.
flowchart LR
subgraph Container
Deluge -- tun0 --> Gluetun
end
Gluetun -- tun0 --> WAN
These changes immediately fix the issue for me. Hoping that it doesn't come back...