binhex / arch-rtorrentvpn

Docker build script for Arch Linux base with ruTorrent, rTorrent, autodl-irssi, Privoxy and OpenVPN
GNU General Public License v3.0
238 stars 35 forks source link

Container process keeps hanging and disconnecting CIFS share #178

Open g4m3r7ag opened 3 years ago

g4m3r7ag commented 3 years ago

I recently setup the rtorrentvpn container with AirVPN. The container runs initially without issue, connects to the VPN and appears to be working great. But then frequently hangs, the rutorrent UI times out and then after a couple of minutes it reconnects. It's also causing my mounted CIFS share to hang, and then reconnect. The CIFS share issue started directly after setting up this container. I've currently stopped the container just to verify the CIFS issue also stops. Below is a screenshot of the Ubuntu 18.04 console a few minutes after rebooting. If I leave the container running the console just keeps repeating this at random intervals it seems. I've also included my compose config for the container. Any ideas?

Screenshot from 2021-04-03 04-54-06

    rtorrent:
      image: binhex/arch-rtorrentvpn
      container_name: rtorrent
      cap_add:
        - NET_ADMIN
      environment:
        - PUID=1000
        - PGID=1000
        - VPN_ENABLED=yes
        - VPN_PROV=airvpn
        - VPN_CLIENT=openvpn
        - ENABLE_PRIVOXY=yes
        - ENABLE_RPC2=yes
        - ENABLE_RPC2_AUTH=yes
        - ENABLE_WEBUI_AUTH=yes
        - RPC2_USER=user
        - RPC2_PASS=pass
        - WEBUI_USER=user
        - WEBUI_PASS=pass
        - LAN_NETWORK=192.168.1.0/24,192.168.40.0/24
        - NAME_SERVERS=10.4.0.1 (this is the AirVPN DNS server) 
        - PHP_TZ=America/New_York
        - UMASK=022
      ports:
        - 38110:9080
        - 8118:8118
      restart: unless-stopped
      volumes:
        - /docker-data/dl-stack/rtorrent:/config
        - /mnt:/mnt
        - /etc/localtime:/etc/localtime:ro
DionVermeulen commented 3 years ago

Same problem here.

Kernel version doesn't matter. Also changing cifs version has no effect.

DionVermeulen commented 3 years ago

@g4m3r7ag look at my post on the unraid topic: https://forums.unraid.net/topic/46127-support-binhex-rtorrentvpn/?do=findComment&comment=975323

That is probably also your issue.

g4m3r7ag commented 3 years ago

Interesting, I may have had multiple issues then? I switched my CIFS mount to NFS and the UI hangs completely stopped from what I can tell. I'm also not getting any NFS errors in the console like I was with the CIFS. However I do see torrents change to a red icon because of a tracker error frequently, but just assumed that was due to them being public trackers. Wondering if the CIFS issue compounded the DNS issue with UDP trackers and because it's "better" now I'm assuming it's fixed.