debridmediamanager / zurg-testing

A self-hosted Real-Debrid webdav server you can use with Infuse. Together with rclone it can mount your Real-Debrid torrent library into your filesystem and load it to Plex or Jellyfin.
480 stars 36 forks source link

Bug: Network Issue with Gluetun #37

Closed maxexcloo closed 9 months ago

maxexcloo commented 9 months ago

Expected Behavior I'm attempting to use Gluetun (https://github.com/qdm12/gluetun-wiki/tree/main) to tunnel zurg through Cloudflare.

Actual Behavior Zurg is not connecting. I've verified that it connects without Gluetun.

Detailed Steps Run Docker Compose and check logs.

Operating System Debian 11

Environment Setup docker-compose.yml:

---
name: oracle
services:
  gluetun:
    cap_add:
      - NET_ADMIN
      - SYS_MODULE
    container_name: gluetun
    environment:
      - VPN_ENDPOINT_IP=162.159.192.1
      - VPN_ENDPOINT_PORT=2408
      - VPN_SERVICE_PROVIDER=custom
      - VPN_TYPE=wireguard
      - WIREGUARD_ADDRESSES=172.16.0.2/32
      - WIREGUARD_PRIVATE_KEY=XXXX
      - WIREGUARD_PUBLIC_KEY=XXXX
    port:
      - 9999:9999
    image: qmcgaw/gluetun
    restart: unless-stopped
    volumes:
      - /lib/modules:/lib/modules:ro
  zurg:
    container_name: zurg
    image: ghcr.io/debridmediamanager/zurg-testing
    network_mode: service:gluetun
    volumes:
      - ./zurg/config.yml:/app/config.yml
      - ./zurg/data:/app/data
    restart: unless-stopped

Logs

Logging to logs/zurg-2024-01-18.log
2024-01-18T13:39:31.471Z    ERROR   httpclient  Client request error: Get "https://api.real-debrid.com/rest/1.0/user": dial tcp: lookup api.real-debrid.com on 127.0.0.11:53: server misbehaving
2024-01-18T13:39:31.471Z    ERROR   httpclient  Client request error: Get "https://api.real-debrid.com/rest/1.0/torrents?limit=1000&page=1": dial tcp: lookup api.real-debrid.com on 127.0.0.11:53: server misbehaving
2024-01-18T13:39:31.471Z    ERROR   httpclient  Client request error: Get "https://api.real-debrid.com/rest/1.0/downloads?limit=1000&offset=0&page=1": dial tcp: lookup api.real-debrid.com on 127.0.0.11:53: server misbehaving

Zurg Configuration

concurrent_workers: 200
enable_repair: true
network_buffer_size: 1048576
token: XXXX
use_download_cache: true
zurg: v1
directories:
  Movies:
    group: media
    group_order: 20
    only_show_the_biggest_file: true
    filters:
      - regex: /.*/
  Shows:
    group: media
    group_order: 10
    filters:
      - has_episodes: true
itsnebulalol commented 9 months ago

Try and set your DNS to 1.1.1.1. This may be able to be done with the following on both containers:

dns:
  - 1.1.1.1
  - 1.0.0.1
maxexcloo commented 9 months ago

Adding it on the Gluetun container seemed to work - thanks!