Jump to content
binhex

[Support] binhex - rTorrentVPN

1386 posts in this topic Last Reply

Recommended Posts

5 minutes ago, binhex said:

you might have dodgy memory on your host, try running memtest for 24 hours, if you see ANY errors then thats your issue.

I'm running ECC memory.

 

Restoring the sessions folder to the one from the previous docker has allowed everything to work again.

 

I'll see what happens when I reach 200 again.

Edited by Spies

Share this post


Link to post
6 minutes ago, Spies said:

I'm running ECC memory.

just cos its ECC doesn't mean it cant go bad, excellent that you got it running again, but you gotta ask the question, why did the sessions file get corrupted, and bad ram is one of those causes.

Share this post


Link to post

Would I not see corruption elsewhere?

 

I can't easily take the server down for 24 hours whilst I run a memtest.

 

I use these advanced settings, I don't know if they may be detrimental to rtorrent in a docker environment?

 

# Advanced Settings

pieces.memory.max.set = 2048M

network.http.max_open.set = 99

trackers.numwant.set = 100

network.receive_buffer.size.set = 4M

network.send_buffer.size.set = 12M

pieces.preload.type.set = 2

pieces.preload.min_size.set = 262144

pieces.preload.min_rate.set = 5120

Edited by Spies

Share this post


Link to post
10 minutes ago, Spies said:

Would I not see corruption elsewhere?

possibly/possibly not, depends on how bad the memory is.

 

11 minutes ago, Spies said:

I don't know if they may be detrimental to rtorrent in a docker environment?

it might be, i dont use any of those options so i cant say for sure.

Share this post


Link to post
just cos its ECC doesn't mean it cant go bad, excellent that you got it running again, but you gotta ask the question, why did the sessions file get corrupted, and bad ram is one of those causes.

ECC can go bad, but it won't corrupt data, if it can correct the error it will and the system works normally, if it can't it halts the system to avoid data corruption, at least that's how it's supposed to work

 

 

  • Like 1

Share this post


Link to post

What does this work out to? Is that 6GB that rtorrent is using? Or are the units, bytes?

 

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
15868 nobody    20   0 6391876 331620 185344 S  11.6   1.0  41:03.18 rtorrent main

 

Edited by Spies

Share this post


Link to post

When I change the default download dir to anything other than /data/incomplete, torrents will not start downloading - in the default folder they start and download fine. The files are created in the new default directory but the download does not start. I tried changing the default in flood, rutorrent, and rtorrent.rc, and the docker mappings. Here are the permissions for the directories I have tried mapping. @binhex any idea what im doing wrong?

red@debian:[/opt/appdata]$ stat floodvpn/data/incomplete/
  File: floodvpn/data/incomplete/
  Size: 154       	Blocks: 0          IO Block: 4096   directory
Device: 16h/22d	Inode: 48797731    Links: 1
Access: (0777/drwxrwxrwx)  Uid: ( 1050/dockeruser)   Gid: ( 1050/dockergroup)
Access: 2019-01-19 21:27:23.852216694 -0500
Modify: 2019-01-19 21:40:51.463159008 -0500
Change: 2019-01-19 21:40:51.463159008 -0500
 Birth: -
red@debian:[/opt/appdata]$ stat /mnt/storage/downloads/torrents/
  File: /mnt/storage/downloads/torrents/
  Size: 277       	Blocks: 0          IO Block: 4096   directory
Device: 2bh/43d	Inode: 419420      Links: 5
Access: (0777/drwxrwxrwx)  Uid: ( 1050/dockeruser)   Gid: ( 1050/dockergroup)
Access: 2019-01-19 21:17:02.610047337 -0500
Modify: 2019-01-19 21:44:10.819890708 -0500
Change: 2019-01-19 21:44:10.819890708 -0500
 Birth: -
red@debian:[/opt/appdata]$ docker exec -it floodvpn /bin/bash
[root@b348ffa01826 /]# stat /data/incomplete/
  File: /data/incomplete/
  Size: 154       	Blocks: 0          IO Block: 4096   directory
Device: 16h/22d	Inode: 48797731    Links: 1
Access: (0777/drwxrwxrwx)  Uid: ( 1050/  nobody)   Gid: ( 1050/   users)
Access: 2019-01-19 21:27:23.852216694 -0500
Modify: 2019-01-19 21:40:51.463159008 -0500
Change: 2019-01-19 21:40:51.463159008 -0500
 Birth: -
[root@b348ffa01826 /]# stat /downloads
  File: /downloads
  Size: 277       	Blocks: 0          IO Block: 4096   directory
Device: 2bh/43d	Inode: 419420      Links: 5
Access: (0777/drwxrwxrwx)  Uid: ( 1050/  nobody)   Gid: ( 1050/   users)
Access: 2019-01-19 21:17:02.610047337 -0500
Modify: 2019-01-19 21:44:10.819890708 -0500
Change: 2019-01-19 21:44:10.819890708 -0500
 Birth: -
floodvpn:
    cap_add:
        - NET_ADMIN
    ports:
        - '192.168.1.43:9080:9080'
        - '192.168.1.43:9443:9443'
        - '192.168.1.43:8118:8118'
        - '192.168.1.43:3000:3000'
    container_name: floodvpn
    volumes:
        - '/opt/appdata/floodvpn/data:/data'
        - '/opt/appdata/floodvpn/config:/config'
        - '/mnt/storage/downloads/torrents:/downloads'
        - '/etc/localtime:/etc/localtime:ro'
        #- '/mnt/storage/test:/data'
        - '/mnt/split-parity/parity1-disk5/test:/test'
    environment:
        - VPN_ENABLED=yes
        - VPN_USER=
        - VPN_PASS=
        - VPN_PROV=custom
        - STRICT_PORT_FORWARD=yes
        - ENABLE_PRIVOXY=yes
        - ENABLE_FLOOD=both
        - ENABLE_AUTODL_IRSSI=yes
        - LAN_NETWORK=192.168.1.0/24
        - 'NAME_SERVERS=209.222.18.222,37.235.1.174,1.1.1.1,8.8.8.8,209.222.18.218,37.235.1.177,1.0.0.1,8.8.4.4'
        - DEBUG=false
        - PHP_TZ=America/New_York
        - UMASK=000
        - PUID=1050
        - PGID=1050
    image: binhex/arch-rtorrentvpn
Created by...
___.   .__       .__                   
\_ |__ |__| ____ |  |__   ____ ___  ___
 | __ \|  |/    \|  |  \_/ __ \\  \/  /
 | \_\ \  |   |  \   Y  \  ___/ >    < 
 |___  /__|___|  /___|  /\___  >__/\_ \
     \/        \/     \/     \/      \/
   https://hub.docker.com/u/binhex/

2019-01-20 15:26:10.500503 [info] System information Linux c94398d3c9b3 4.9.0-5-amd64 #1 SMP Debian 4.9.65-3+deb9u2 (2018-01-04) x86_64 GNU/Linux
2019-01-20 15:26:10.569758 [info] PUID defined as '1050'
2019-01-20 15:26:10.853064 [info] PGID defined as '1050'
2019-01-20 15:26:10.934481 [info] UMASK defined as '000'
2019-01-20 15:26:11.002232 [info] Permissions already set for volume mappings
2019-01-20 15:26:11.083515 [info] VPN_ENABLED defined as 'yes'
2019-01-20 15:26:11.169101 [info] OpenVPN config file (ovpn extension) is located at /config/openvpn/vpn.ovpn
dos2unix: converting file /config/openvpn/vpn.ovpn to Unix format...
2019-01-20 15:26:11.267485 [info] VPN remote line defined as 'remote 45.33.81.117 443 udp'
2019-01-20 15:26:11.337013 [info] VPN_REMOTE defined as '45.33.81.117'
2019-01-20 15:26:11.406559 [info] VPN_PORT defined as '443'
2019-01-20 15:26:11.483677 [info] VPN_PROTOCOL defined as 'udp'
2019-01-20 15:26:11.555022 [info] VPN_DEVICE_TYPE defined as 'tun0'
2019-01-20 15:26:11.621570 [info] VPN_PROV defined as 'custom'
2019-01-20 15:26:11.686070 [info] LAN_NETWORK defined as '192.168.1.0/24'
2019-01-20 15:26:11.757194 [info] NAME_SERVERS defined as '192.168.1.1,209.222.18.222,37.235.1.174,1.1.1.1,8.8.8.8,209.222.18.218,37.235.1.177,1.0.0.1,8.8.4.4'
2019-01-20 15:26:11.826444 [info] VPN_USER defined as 'xxxx'
2019-01-20 15:26:11.896608 [info] VPN_PASS defined as 'xxxx'
2019-01-20 15:26:11.963048 [info] VPN_OPTIONS not defined (via -e VPN_OPTIONS)
2019-01-20 15:26:12.029681 [info] ENABLE_PRIVOXY defined as 'yes'
2019-01-20 15:26:12.098545 [info] ENABLE_FLOOD defined as 'both'
2019-01-20 15:26:12.168738 [info] ENABLE_AUTODL_IRSSI defined as 'yes'
2019-01-20 15:26:13.233888 [info] Starting Supervisor...
2019-01-20 15:26:13,749 INFO Included extra file "/etc/supervisor/conf.d/rtorrent.conf" during parsing
2019-01-20 15:26:13,749 INFO Set uid to user 0 succeeded
2019-01-20 15:26:13,754 INFO supervisord started with pid 7
2019-01-20 15:26:14,758 INFO spawned: 'start-script' with pid 151
2019-01-20 15:26:14,761 INFO spawned: 'rutorrent-script' with pid 152
2019-01-20 15:26:14,764 INFO spawned: 'flood-script' with pid 153
2019-01-20 15:26:14,768 INFO spawned: 'irssi-script' with pid 154
2019-01-20 15:26:14,771 INFO spawned: 'watchdog-script' with pid 155
2019-01-20 15:26:14,774 INFO spawned: 'privoxy-script' with pid 156
2019-01-20 15:26:14,774 INFO reaped unknown pid 8
2019-01-20 15:26:14,775 DEBG 'start-script' stdout output:
[info] VPN is enabled, beginning configuration of VPN

2019-01-20 15:26:14,776 INFO success: start-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2019-01-20 15:26:14,776 INFO success: rutorrent-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2019-01-20 15:26:14,776 INFO success: flood-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2019-01-20 15:26:14,776 INFO success: irssi-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2019-01-20 15:26:14,776 INFO success: watchdog-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2019-01-20 15:26:14,776 INFO success: privoxy-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2019-01-20 15:26:14,780 DEBG 'flood-script' stdout output:
[info] Flood enabled
[info] Waiting for rTorrent process to start listening on port 5000...

2019-01-20 15:26:14,787 DEBG 'watchdog-script' stdout output:
[info] rTorrent config file already exists, skipping copy

2019-01-20 15:26:14,788 DEBG 'start-script' stdout output:
[warn] Username contains characters which could cause authentication issues, please consider changing this if possible

2019-01-20 15:26:14,814 DEBG 'watchdog-script' stderr output:
dos2unix: converting file /config/rtorrent/config/rtorrent.rc to Unix format...

2019-01-20 15:26:14,870 DEBG 'start-script' stdout output:
[info] Default route for container is 172.18.0.1

2019-01-20 15:26:14,878 DEBG 'start-script' stdout output:
[info] Adding 192.168.1.1 to /etc/resolv.conf

2019-01-20 15:26:14,886 DEBG 'start-script' stdout output:
[info] Adding 209.222.18.222 to /etc/resolv.conf

2019-01-20 15:26:14,894 DEBG 'start-script' stdout output:
[info] Adding 37.235.1.174 to /etc/resolv.conf

2019-01-20 15:26:14,901 DEBG 'start-script' stdout output:
[info] Adding 1.1.1.1 to /etc/resolv.conf

2019-01-20 15:26:14,907 DEBG 'start-script' stdout output:
[info] Adding 8.8.8.8 to /etc/resolv.conf

2019-01-20 15:26:14,912 DEBG 'start-script' stdout output:
[info] Adding 209.222.18.218 to /etc/resolv.conf

2019-01-20 15:26:14,918 DEBG 'start-script' stdout output:
[info] Adding 37.235.1.177 to /etc/resolv.conf

2019-01-20 15:26:14,923 DEBG 'start-script' stdout output:
[info] Adding 1.0.0.1 to /etc/resolv.conf

2019-01-20 15:26:14,929 DEBG 'start-script' stdout output:
[info] Adding 8.8.4.4 to /etc/resolv.conf

2019-01-20 15:26:14,933 DEBG 'start-script' stdout output:
45.33.81.117

2019-01-20 15:26:14,959 DEBG 'start-script' stdout output:
[info] Attempting to load iptable_mangle module...

2019-01-20 15:26:14,961 DEBG 'start-script' stderr output:
modprobe: FATAL: Module iptable_mangle not found in directory /lib/modules/4.9.0-5-amd64

2019-01-20 15:26:14,961 DEBG 'start-script' stdout output:
[warn] Unable to load iptable_mangle module using modprobe, trying insmod...

2019-01-20 15:26:14,962 DEBG 'start-script' stderr output:
insmod: ERROR: could not load module /lib/modules/iptable_mangle.ko: No such file or directory

2019-01-20 15:26:14,963 DEBG 'start-script' stdout output:
[warn] Unable to load iptable_mangle module, you will not be able to connect to the applications Web UI or Privoxy outside of your LAN
[info] unRAID/Ubuntu users: Please attempt to load the module by executing the following on your host: '/sbin/modprobe iptable_mangle'
[info] Synology users: Please attempt to load the module by executing the following on your host: 'insmod /lib/modules/iptable_mangle.ko'

2019-01-20 15:26:14,992 DEBG 'start-script' stdout output:
[info] Docker network defined as    172.18.0.0/16

2019-01-20 15:26:14,998 DEBG 'start-script' stdout output:
[info] Adding 192.168.1.0/24 as route via docker eth0

2019-01-20 15:26:15,000 DEBG 'start-script' stdout output:
[info] ip route defined as follows...
--------------------

2019-01-20 15:26:15,001 DEBG 'start-script' stdout output:
default via 172.18.0.1 dev eth0 
172.18.0.0/16 dev eth0 proto kernel scope link src 172.18.0.23 
192.168.1.0/24 via 172.18.0.1 dev eth0 

2019-01-20 15:26:15,001 DEBG 'start-script' stdout output:
--------------------

2019-01-20 15:26:15,095 DEBG 'start-script' stdout output:
[info] iptables defined as follows...
--------------------

2019-01-20 15:26:15,098 DEBG 'start-script' stdout output:
-P INPUT DROP
-P FORWARD ACCEPT
-P OUTPUT DROP
-A INPUT -i tun0 -j ACCEPT
-A INPUT -s 172.18.0.0/16 -d 172.18.0.0/16 -j ACCEPT
-A INPUT -i eth0 -p udp -m udp --sport 443 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 9080 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --sport 9080 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 9443 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --sport 9443 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 3000 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --sport 3000 -j ACCEPT
-A INPUT -s 192.168.1.0/24 -i eth0 -p tcp -m tcp --dport 5000 -j ACCEPT
-A INPUT -s 192.168.1.0/24 -d 172.18.0.0/16 -i eth0 -p tcp -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 0 -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A OUTPUT -o tun0 -j ACCEPT
-A OUTPUT -s 172.18.0.0/16 -d 172.18.0.0/16 -j ACCEPT
-A OUTPUT -o eth0 -p udp -m udp --dport 443 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --dport 9080 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --sport 9080 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --dport 9443 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --sport 9443 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --dport 3000 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --sport 3000 -j ACCEPT
-A OUTPUT -d 192.168.1.0/24 -o eth0 -p tcp -m tcp --sport 5000 -j ACCEPT
-A OUTPUT -s 172.18.0.0/16 -d 192.168.1.0/24 -o eth0 -p tcp -j ACCEPT
-A OUTPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT
-A OUTPUT -o lo -j ACCEPT

2019-01-20 15:26:15,098 DEBG 'start-script' stdout output:
--------------------

2019-01-20 15:26:15,099 DEBG 'start-script' stdout output:
[info] Starting OpenVPN...

2019-01-20 15:26:15,151 DEBG 'start-script' stdout output:
Sun Jan 20 15:26:15 2019 WARNING: file 'credentials.conf' is group or others accessible
Sun Jan 20 15:26:15 2019 OpenVPN 2.4.6 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Apr 24 2018
Sun Jan 20 15:26:15 2019 library versions: OpenSSL 1.1.1a  20 Nov 2018, LZO 2.10

2019-01-20 15:26:15,152 DEBG 'start-script' stdout output:
[info] OpenVPN started

2019-01-20 15:26:15,153 DEBG 'start-script' stdout output:
Sun Jan 20 15:26:15 2019 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts

2019-01-20 15:26:15,154 DEBG 'start-script' stdout output:
Sun Jan 20 15:26:15 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]45.33.81.117:443
Sun Jan 20 15:26:15 2019 Socket Buffers: R=[212992->212992] S=[212992->212992]
Sun Jan 20 15:26:15 2019 UDP link local: (not bound)

2019-01-20 15:26:15,154 DEBG 'start-script' stdout output:
Sun Jan 20 15:26:15 2019 UDP link remote: [AF_INET]45.33.81.117:443

2019-01-20 15:26:15,160 DEBG 'start-script' stdout output:
Sun Jan 20 15:26:15 2019 TLS: Initial packet from [AF_INET]45.33.81.117:443, sid=22cf555d cb76c73e

2019-01-20 15:26:15,182 DEBG 'start-script' stdout output:
Sun Jan 20 15:26:15 2019 VERIFY OK: depth=1, C=US, ST=CA, L=VPN, O=VPN, OU=VPN, CN=VPN, name=VPN, emailAddress=VPN

2019-01-20 15:26:15,182 DEBG 'start-script' stdout output:
Sun Jan 20 15:26:15 2019 VERIFY KU OK
Sun Jan 20 15:26:15 2019 Validating certificate extended key usage
Sun Jan 20 15:26:15 2019 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
Sun Jan 20 15:26:15 2019 VERIFY EKU OK
Sun Jan 20 15:26:15 2019 VERIFY OK: depth=0, C=US, ST=VPN, L=VPN, O=VPN, OU=VPN, CN=VPN, name=VPN, emailAddress=VPN

2019-01-20 15:26:15,261 DEBG 'start-script' stdout output:
Sun Jan 20 15:26:15 2019 Control Channel: TLSv1.2, cipher TLSv1.2 DHE-RSA-AES256-GCM-SHA384, 2048 bit RSA
Sun Jan 20 15:26:15 2019 [VPN] Peer Connection Initiated with [AF_INET]45.33.81.117:443

2019-01-20 15:26:16,474 DEBG 'start-script' stdout output:
Sun Jan 20 15:26:16 2019 SENT CONTROL [VPN]: 'PUSH_REQUEST' (status=1)

2019-01-20 15:26:16,479 DEBG 'start-script' stdout output:
Sun Jan 20 15:26:16 2019 PUSH: Received control message: 'PUSH_REPLY,dhcp-option DNS 10.10.8.1,route 10.10.8.1,topology net30,ping 10,ping-restart 30,ifconfig 10.10.8.6 10.10.8.5'
Sun Jan 20 15:26:16 2019 OPTIONS IMPORT: timers and/or timeouts modified
Sun Jan 20 15:26:16 2019 OPTIONS IMPORT: --ifconfig/up options modified
Sun Jan 20 15:26:16 2019 OPTIONS IMPORT: route options modified
Sun Jan 20 15:26:16 2019 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified

2019-01-20 15:26:16,479 DEBG 'start-script' stdout output:
Sun Jan 20 15:26:16 2019 Outgoing Data Channel: Cipher 'AES-256-CBC' initialized with 256 bit key
Sun Jan 20 15:26:16 2019 Outgoing Data Channel: Using 160 bit message hash 'SHA1' for HMAC authentication
Sun Jan 20 15:26:16 2019 Incoming Data Channel: Cipher 'AES-256-CBC' initialized with 256 bit key
Sun Jan 20 15:26:16 2019 Incoming Data Channel: Using 160 bit message hash 'SHA1' for HMAC authentication
Sun Jan 20 15:26:16 2019 ROUTE_GATEWAY 172.18.0.1/255.255.0.0 IFACE=eth0 HWADDR=02:42:ac:12:00:17

2019-01-20 15:26:16,480 DEBG 'start-script' stdout output:
Sun Jan 20 15:26:16 2019 TUN/TAP device tun0 opened
Sun Jan 20 15:26:16 2019 TUN/TAP TX queue length set to 100
Sun Jan 20 15:26:16 2019 do_ifconfig, tt->did_ifconfig_ipv6_setup=0

2019-01-20 15:26:16,481 DEBG 'start-script' stdout output:
Sun Jan 20 15:26:16 2019 /usr/bin/ip link set dev tun0 up mtu 1500

2019-01-20 15:26:16,483 DEBG 'start-script' stdout output:
Sun Jan 20 15:26:16 2019 /usr/bin/ip addr add dev tun0 local 10.10.8.6 peer 10.10.8.5

2019-01-20 15:26:16,486 DEBG 'start-script' stdout output:
Sun Jan 20 15:26:16 2019 /root/openvpnup.sh tun0 1500 1557 10.10.8.6 10.10.8.5 init

2019-01-20 15:26:16,491 DEBG 'start-script' stdout output:
Sun Jan 20 15:26:16 2019 /usr/bin/ip route add 45.33.81.117/32 via 172.18.0.1

2019-01-20 15:26:16,493 DEBG 'start-script' stdout output:
Sun Jan 20 15:26:16 2019 /usr/bin/ip route del 0.0.0.0/0

2019-01-20 15:26:16,496 DEBG 'start-script' stdout output:
Sun Jan 20 15:26:16 2019 /usr/bin/ip route add 0.0.0.0/0 via 10.10.8.5

2019-01-20 15:26:16,499 DEBG 'start-script' stdout output:
Sun Jan 20 15:26:16 2019 /usr/bin/ip route add 10.10.8.1/32 via 10.10.8.5

2019-01-20 15:26:16,502 DEBG 'start-script' stdout output:
Sun Jan 20 15:26:16 2019 Initialization Sequence Completed

2019-01-20 15:26:16,512 DEBG 'privoxy-script' stdout output:
[info] Configuring Privoxy...

2019-01-20 15:26:16,517 DEBG 'irssi-script' stdout output:
Script started, file is /home/nobody/typescript

2019-01-20 15:26:16,532 DEBG 'privoxy-script' stdout output:
[info] All checks complete, starting Privoxy...

2019-01-20 15:26:16,534 DEBG 'watchdog-script' stdout output:
[info] rTorrent listening interface IP 0.0.0.0 and VPN provider IP 10.10.8.6 different, marking for reconfigure

2019-01-20 15:26:16,535 DEBG 'privoxy-script' stderr output:
2019-01-20 15:26:16.535 7f7d16e2f100 Info: Privoxy version 3.0.26
2019-01-20 15:26:16.535 7f7d16e2f100 Info: Program name: /usr/bin/privoxy

2019-01-20 15:26:16,539 DEBG 'watchdog-script' stdout output:
[info] rTorrent not running

2019-01-20 15:26:16,548 DEBG 'irssi-script' stdout output:
Script done, file is /home/nobody/typescript

2019-01-20 15:26:16,558 DEBG fd 22 closed, stopped monitoring <POutputDispatcher at 140565914123512 for <Subprocess at 140565914121136 with name irssi-script in state RUNNING> (stdout)>
2019-01-20 15:26:16,558 DEBG fd 26 closed, stopped monitoring <POutputDispatcher at 140565914123800 for <Subprocess at 140565914121136 with name irssi-script in state RUNNING> (stderr)>
2019-01-20 15:26:16,558 INFO exited: irssi-script (exit status 0; expected)
2019-01-20 15:26:16,559 DEBG received SIGCLD indicating a child quit
2019-01-20 15:26:16,791 DEBG 'start-script' stdout output:
[info] Successfully retrieved external IP address 45.33.81.117

2019-01-20 15:26:16,846 DEBG 'watchdog-script' stdout output:
[info] Removing any rTorrent session lock files left over from the previous run...

2019-01-20 15:26:16,848 DEBG 'watchdog-script' stdout output:
[info] Attempting to start rTorrent...

2019-01-20 15:26:16,851 DEBG 'watchdog-script' stdout output:
Script started, file is /home/nobody/typescript

2019-01-20 15:26:16,877 DEBG 'watchdog-script' stdout output:
Script done, file is /home/nobody/typescript

2019-01-20 15:26:17,660 DEBG 'rutorrent-script' stdout output:
[info] rtorrent started, setting up rutorrent...
[info] Setting PHP timezone to America/New_York...

2019-01-20 15:26:17,663 DEBG 'flood-script' stdout output:
[info] Configuring Flood...
[info] Copying Flood config file /config/flood/config/config.js back to container...

2019-01-20 15:26:17,666 DEBG 'rutorrent-script' stdout output:
[info] nginx cert files already exists, skipping copy
[info] nginx security file already exists, skipping copy

2019-01-20 15:26:17,666 DEBG 'rutorrent-script' stdout output:
[info] nginx config file already exists, skipping copy

2019-01-20 15:26:17,668 DEBG 'flood-script' stdout output:
[info] Starting Flood...

2019-01-20 15:26:17,672 DEBG 'rutorrent-script' stdout output:
[info] rutorrent conf folder already exists, skipping copy

2019-01-20 15:26:17,690 DEBG 'rutorrent-script' stdout output:
[info] running rsync to copy rutorrent user plugins to the plugins folder inside the container...

2019-01-20 15:26:17,709 DEBG 'rutorrent-script' stdout output:
sending incremental file list

2019-01-20 15:26:17,710 DEBG 'rutorrent-script' stdout output:
README.txt

2019-01-20 15:26:17,710 DEBG 'rutorrent-script' stdout output:
theme/themes/README.txt

2019-01-20 15:26:17,712 DEBG 'rutorrent-script' stdout output:

sent 431 bytes  received 64 bytes  990.00 bytes/sec
total size is 237  speedup is 0.48

2019-01-20 15:26:17,715 DEBG 'rutorrent-script' stdout output:
[info] rutorrent share folder already exists, skipping copy

2019-01-20 15:26:17,716 DEBG 'rutorrent-script' stdout output:
[info] starting php-fpm...

2019-01-20 15:26:17,852 DEBG 'rutorrent-script' stderr output:
[NOTICE] [pool www] 'user' directive is ignored when FPM is not running as root
[NOTICE] [pool www] 'group' directive is ignored when FPM is not running as root

2019-01-20 15:26:17,857 DEBG 'rutorrent-script' stdout output:
[info] starting nginx...

2019-01-20 15:26:18,906 DEBG 'watchdog-script' stdout output:
[info] rTorrent process started
[info] Waiting for rTorrent process to start listening on port 5000...

2019-01-20 15:26:18,921 DEBG 'watchdog-script' stdout output:
[info] rTorrent process listening

2019-01-20 15:26:18,933 DEBG 'watchdog-script' stdout output:
[info] Initialising ruTorrent plugins (checking rTorrent is running)...

2019-01-20 15:26:18,947 DEBG 'watchdog-script' stdout output:
[info] rTorrent running
[info] Initialising ruTorrent plugins (checking nginx is running)...

2019-01-20 15:26:18,960 DEBG 'watchdog-script' stdout output:
[info] nginx running
[info] Initialising ruTorrent plugins...

2019-01-20 15:26:19,488 DEBG 'watchdog-script' stdout output:
[info] ruTorrent plugins initialised

 

Edited by nullredvector

Share this post


Link to post

217 torrents and everything is queued/not seeding again.

 

Can I get any meaningful logs to get to the bottom of this?

 

Edit: it's the web server which is failing as rtorrent is still running, what web server is it running under and what resources are allocated to it?

 

Edit edit: increased the rpc timeout under rutorrent/config/config.php to 60s from 5s default. I don't think 5s is enough to pull the data for 200 torrents from rtorrent.

Edited by Spies

Share this post


Link to post
13 hours ago, Spies said:

Edit edit: increased the rpc timeout under rutorrent/config/config.php to 60s from 5s default. I don't think 5s is enough to pull the data for 200 torrents from rtorrent.

thanks for this, i can include that in the build so it tweaks that specific setting.

Share this post


Link to post

I saw a couple of you fancy people asking about a reverse proxy setup (for the searchers: nginx, LetsEncrypt, Organizr, 404, page not found), and only saw one config posted earlier that someone got to work (it didn't for me), so I wanted to throw my $.02 in. This config works for me under a standard Organizr/LetsEncrypt combo setup:

 

in default.conf:

location /rutorrent {
auth_request /auth-1;
include /config/nginx/proxy-confs/rutorrent.conf;
}

in rutorrent.conf:

# RUTORRENT reverse proxy
location /rutorrent/ {
    proxy_pass http://192.168.XXX.XXX:9080;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection keep-alive;
    proxy_set_header Host $host;
    proxy_cache_bypass $http_upgrade;
}

Please note, the closing '/' in the above config file. Without that closing '/' it will not route through properly, even if it prompts for credentials and they are entered correctly, it will nginx 404 error.

 

Anywho, hope it helps somebody!

  • Like 1

Share this post


Link to post
4 hours ago, binhex said:

thanks for this, i can include that in the build so it tweaks that specific setting.

Still got issues, as soon as I get anywhere near 200 torrents, even if they're inactive, it takes a massive nosedive, speeds have dropped right off and everything has stalled out.

 

Here is the top command from inside the docker:

 

%Cpu(s):  2.9 us,  2.4 sy,  0.0 ni, 94.2 id,  0.3 wa,  0.0 hi,  0.1 si,  0.0 st
MiB Mem :  32174.8 total,    341.4 free,  17434.0 used,  14399.4 buff/cache
MiB Swap:      0.0 total,      0.0 free,      0.0 used.  13382.7 avail Mem
 Unknown command - try 'h' for help
  PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
  967 nobody    20   0 6899984 185408  23292 S   1.0   0.6  31:41.85 rtorrent main
    1 root      20   0    2300     60      0 S   0.0   0.0   0:01.57 tini
    9 root      20   0   85976  14048    852 S   0.0   0.0   0:15.24 supervisord
  151 root      20   0    9316   1952   1352 S   0.0   0.0   0:01.50 start.sh
  152 nobody    20   0    9184    508      4 S   0.0   0.0   0:00.03 rutorrent.sh
  155 nobody    20   0    9312   2472   1928 S   0.0   0.0   0:11.42 watchdog.sh
  156 nobody    20   0    9184    480      4 S   0.0   0.0   0:00.03 privoxy.sh
  488 root      20   0   25816   2796   1420 S   0.0   0.0 114:19.02 openvpn
  884 nobody    20   0 3558100   7872   2528 S   0.0   0.0   1:11.25 privoxy
  966 nobody    20   0   12380   2016   1112 S   0.0   0.0   0:04.97 tmux: server
 1006 nobody    20   0   99116   6004    148 S   0.0   0.0   0:01.98 php-fpm
 1008 nobody    20   0   99992  12352   6232 S   0.0   0.0   0:04.97 php-fpm
 1009 nobody    20   0   16244   1268     32 S   0.0   0.0   0:00.02 nginx
 1012 nobody    20   0   17100   3736   1736 S   0.0   0.0   0:04.22 nginx
 1013 nobody    20   0   16696   3196   1528 S   0.0   0.0   0:00.02 nginx
 1014 nobody    20   0   16696   3560   1892 S   0.0   0.0   0:00.00 nginx
 1015 nobody    20   0   16696   1600      0 S   0.0   0.0   0:00.00 nginx
 1016 nobody    20   0   16696   1600      0 S   0.0   0.0   0:00.00 nginx
 1017 nobody    20   0   16696   1600      0 S   0.0   0.0   0:00.00 nginx
 1018 nobody    20   0   16696   1600      0 S   0.0   0.0   0:00.00 nginx
 1019 nobody    20   0   16696   1600      0 S   0.0   0.0   0:00.00 nginx
 1020 nobody    20   0   16696   1600      0 S   0.0   0.0   0:00.00 nginx
 1021 nobody    20   0   16696   1600      0 S   0.0   0.0   0:00.00 nginx
 1022 nobody    20   0   16696   1600      0 S   0.0   0.0   0:00.00 nginx
 1023 nobody    20   0   16696   1600      0 S   0.0   0.0   0:00.00 nginx
 1024 nobody    20   0   16696   1600      0 S   0.0   0.0   0:00.00 nginx
 1025 nobody    20   0   16696   1600      0 S   0.0   0.0   0:00.00 nginx
 1026 nobody    20   0   16696   1600      0 S   0.0   0.0   0:00.00 nginx
 1027 nobody    20   0   16696   1600      0 S   0.0   0.0   0:00.00 nginx
 1028 nobody    20   0   16696   1600      0 S   0.0   0.0   0:00.00 nginx
 1029 nobody    20   0   16696   1600      0 S   0.0   0.0   0:00.00 nginx
 1030 nobody    20   0   16696   1600      0 S   0.0   0.0   0:00.00 nginx
 1031 nobody    20   0   16696   1600      0 S   0.0   0.0   0:00.00 nginx

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now