AdrienPoupa / docker-compose-nas

Simple Docker Compose NAS featuring Sonarr, Radarr, Prowlarr, Jellyfin, qBittorrent, PIA VPN and Traefik with SSL support
989 stars 127 forks source link

qBittorrent connection refused. #36

Closed rayoplateado closed 11 months ago

rayoplateado commented 11 months ago

Hey!

I'm having an issue to see qBittorrent. This is the error I can see from the homepage:

API Error: Unknown error
URL: http://vpn:8080/api/v2/torrents/info
Raw Error:
{
    "errno": -111,
    "code": "ECONNREFUSED",
    "syscall": "connect",
    "address": "172.20.0.2",
    "port": 8080
}

Everything is under a subdomain. I've created an A record pointing to my local IP. Let's encrypt is returning certs and everything seems ok... except qBittorrent. I also notice the service is restarting after a while (maybe 1 minute or so)

Some logs:

VPN:

docker logs vpn
Fetching next-gen PIA server list
Verified OK
Verified server list
Registering public key with PIA endpoint; id: spain, cn: madrid403, ip: ***
Generating /etc/wireguard/wg0.conf
Using PIA DNS servers: 10.0.0.243,10.0.0.242
Port forwarding is available at this location
Successfully generated /etc/wireguard/wg0.conf
Fri Nov  3 11:06:04 UTC 2023: Bringing up WireGuard interface wg0
[#] ip link add wg0 type wireguard
[#] wg setconf wg0 /dev/fd/63
[#] ip -4 address add 10.1.243.244 dev wg0
[#] ip link set mtu 1420 up dev wg0
[#] resolvconf -a wg0 -m 0 -x
[#] wg set wg0 fwmark 51820
[#] ip -4 route add 0.0.0.0/0 dev wg0 table 51820
[#] ip -4 rule add not fwmark 51820 table 51820
[#] ip -4 rule add table main suppress_prefixlength 0
[#] iptables-restore -n

interface: wg0
  public key: ***
  private key: (hidden)
  listening port: 55182
  fwmark: 0xca6c

peer: ***
  endpoint: 212.102.49.186:1337
  allowed ips: 0.0.0.0/0

Fri Nov  3 11:06:04 UTC 2023: WireGuard successfully started
Fri Nov  3 11:06:04 UTC 2023: Allowing network access to 172.20.0.2/16 on eth0
Fri Nov  3 11:06:04 UTC 2023: Firewall enabled: Blocking non-WireGuard traffic
Fri Nov  3 11:06:04 UTC 2023: Allowing network access to 192.168.0.0/16 on eth0
Fri Nov  3 11:06:04 UTC 2023: Adding route to 192.168.0.0/16
Fri Nov  3 11:06:04 UTC 2023: Starting port forward script
Fri Nov  3 11:06:04 UTC 2023: Verifying API requests. CN: madrid403
Fri Nov  3 11:06:04 UTC 2023: Getting PF token
Fri Nov  3 11:06:04 UTC 2023: Reusing previous PF token
Fri Nov  3 11:06:04 UTC 2023: Obtained PF token. Expires at 2024-01-03T05:26:30.973490606Z
Fri Nov  3 11:06:04 UTC 2023: Server accepted PF bind
Fri Nov  3 11:06:04 UTC 2023: Forwarding on port 38678
Fri Nov  3 11:06:04 UTC 2023: Rebind interval: 900 seconds
Fri Nov  3 11:06:04 UTC 2023: Port dumped to /pia-shared/port.dat
Fri Nov  3 11:06:04 UTC 2023: This script should remain running to keep the forwarded port alive
Fri Nov  3 11:06:04 UTC 2023: Press Ctrl+C to exit
Fri Nov  3 11:06:04 UTC 2023: Running /scripts/pf_success.sh
Fri Nov  3 11:06:04 UTC 2023: Allowing incoming traffic on port 38678
Fri Nov  3 11:06:04 UTC 2023: Running user-defined command: /pia-shared/portupdate-qbittorrent.sh
Setting qBittorrent port settings (38678)...
Ok.qBittorrent port updated successfully (38678)...

And qBittorrent:

******** Information ********
To control qBittorrent, access the WebUI at: http://localhost:8080

The Web UI administrator username is: admin
The Web UI administrator password has not been changed from the default: adminadmin
This is a security risk, please change your password in program preferences.
[migrations] started
[migrations] no migrations found
usermod: no changes
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1000
User GID:    1000
───────────────────────────────────────

[custom-init] No custom files found, skipping...
WebUI will be started shortly after internal preparations. Please wait...
[ls.io-init] done.

A hand is more than welcome!

Thank you for this project. You saved me a lot of time! Kudos to you!

rayoplateado commented 11 months ago

Solved doing this: https://github.com/AdrienPoupa/docker-compose-nas/issues/35