binhex / arch-qbittorrentvpn

Docker build script for Arch Linux base with qBittorrent, Privoxy and OpenVPN
GNU General Public License v3.0
397 stars 46 forks source link

Everything works and then gets stuck at "Downloading metadata" #151

Open temelj opened 1 year ago

temelj commented 1 year ago

Firstly I would like to point out that "everything works" means that I am able to successfully queue downloads and it downloads everything perfectly fine. However, after some time, when I add a new torrent it gets stuck at "downloading metadata". A restart docker-compose stop & docker-compose up -d resolves the issue but it keeps happening even though I keep the image up-to-date.

I am using docker-compose and below is the configuration that I have.

  # https://github.com/binhex/arch-qbittorrentvpn
  qbittorrentvpn:
    image: binhex/arch-qbittorrentvpn
    privileged: true
    ports:
      - "6888:8080" #  WebUI
      - "6881:6881" #  TCP Listening Port
      - "6881:6881/udp" #  UDP Listening Port
      - "8118:8118" #  Privoxy
    volumes:
      - "./config/qbittorrent:/config" # config directory
      - "./data/qbt-data:/data" # downloads folder
      - "./data/qbt-completed:/downloads"
    environment:
      VPN_ENABLED: 'yes'            
      VPN_CLIENT: 'wireguard'         
      VPN_PROV: 'custom'
      NAME_SERVERS: '1.1.1.1,1.0.0.1'
      PUID: 1000 # set this to the UID of your user
      PGID: 1000 # set this to the GID of your user
      ENABLE_PRIVOXY: 'yes'
      DEBUG: 'false'
    sysctls:
      - net.ipv4.conf.all.src_valid_mark=1
    restart: unless-stopped

Is there anything blatantly wrong with my configuration? Are there any logs that can provide more info? The qbittorrent client is not really informative when it comes to issues/errors.

Thank you in advance.

emogu2 commented 1 year ago

Just wanted to comment that I’m facing the same issue. Everything works fine, but torrents now get stuck at downloading metadata and don’t proceed any further. I’ve tried several different downloads, stopped and restarted the container, deleted the container and reinstalled it, and it always comes back to the same behavior.

tizmagik commented 1 year ago

I'm seeing this now too, using PIA VPN provider. Torrents that were downloading go to Stalled status, even though there are seeders available

emogu2 commented 1 year ago

I was able to resolve this by generating a new VPN tunnel and credentials with my provider (Mullvad) and replacing them in the compose file. Then I pulled a fresh install and that fixed it. So it was just the VPN credentials going bad. I've run into the stalled issue a couple times since then and it was resolved by deleting the container and image and pulling it fresh again. It seems to happen once every few weeks which isn't too bad. Hope that helps!

temelj commented 1 year ago

For me, a restart of the docker services usually resolves the issue.
I have just resorted to regularly stopping, updating and restarting my docker containers. That usually resolves this issue.

So you might be onto something about the VPN tunnel but probably going stale or losing connection rather than an issue with credentials.

helsan74 commented 1 year ago

Same issue here. Some where stuck in Downloading Metadata. But after a few minutes or if I restart the container they all go to Stalled. What could I look to try to resolve the issue. THanks