[Support] binhex - rTorrentVPN


Recommended Posts

I actually switched from Deluge for the same reasons, Binhex. Since switching to rtorrent, I am seeing the same type of speeds I was seeing with Transmission....which I only switched from because of this docker having OpenVPN built in.

 

The only annoying thing is that all the torrents I renamed in Transmission and Deluge cant be linked back up with rTorrent without changing the file names back...or in my case, deleting hundreds of symlinks and relinking with the correct name of the torrent.

 

Its been a real drag, I have done over 1500 torrents since last week and I have about 800 more to check.  Once its done, I will be good :)

 

 

 

Btw, Emby works now. I just had to reboot my server. Thanks for these great dockers for my server!

Link to comment

another un scientific test carried out by me, fired up deluge, downloaded two very well seeded torrents, added them to delugevpn and rtorrentvpn, started delugevpn, tweaked half open connections and set it to unlimited connections, saw  speed approach 1.5MB/s, not bad, a bit better than i normally have been seeing, which is around the 1.1 to 1.3MB/s mark.

 

so time to try rtorrent, kicked off the same torrents and saw the speed climb quickly to reach 2.0MB/s and hold there, hmm impressive, my connection can reach 2.3MB/s, but with the overhead of encryption, thats pretty darn good.

 

so there ya go, yes im fully aware deluge and rtorrent could (probably did) connect to different peers and thus speeds will differ, but this is very typical of what im seeing on average.

Link to comment

Hi All,

 

Has anyone managed to work out a way to implement a "Minimum seed time"?

 

I am using the extratio plugin to set my ratio's based on public\private trackers.

 

I have a few ratio's set up, and they work fine, but the Ratio plugin doesn't have a min seed time, the "Time,h" is the max seed time.

 

So as such if my ratio is about set % my torrent will be removed, regardless if it has only just finished downloading. This can cause some issue with various trackers.

 

This thread (http://www.torrent-invites.com/showthread.php?t=252590) tells me an option is command line tool rtcontrol (https://code.google.com/archive/p/pyroscope/wikis/RtControlExamples.wiki) but I am hoping there is some trick within rutorrent that I can't work out.

 

Thanks,

Wob

 

Link to comment

Which PIA server are you using? I just tried your settings (unlimited connections, I always use unlimited speed) and I had no better results downloading ubuntu 15.10.

nl.privateinternetaccess.com

 

Just tested with ubuntu 15.10 with unlimited speed, and I got 9.0MB/s. I have seen 10MB/s with multiple torrents.

width=200http://i.imgur.com/UpMD0bN.png[/img]

 

How did you get it to run on Ubuntu? I just tried in a Ubuntu Server VM and I get the same permissions issue on /var/log/nginx as I did on OMV.

Link to comment

How did you get it to run on Ubuntu? I just tried in a Ubuntu Server VM and I get the same permissions issue on /var/log/nginx as I did on OMV.

 

I think he meant that was the torrent he was downloading, as per the image, not the OS he was using.

Link to comment

How did you get it to run on Ubuntu? I just tried in a Ubuntu Server VM and I get the same permissions issue on /var/log/nginx as I did on OMV.

 

I think he meant that was the torrent he was downloading, as per the image, not the OS he was using.

Lol I'm blind.

Link to comment

How did you get it to run on Ubuntu? I just tried in a Ubuntu Server VM and I get the same permissions issue on /var/log/nginx as I did on OMV.

 

I think he meant that was the torrent he was downloading, as per the image, not the OS he was using.

Lol I'm blind.

 

Interestingly though I did do a test on Ubuntu yesterday and the docker runs up perfectly, no issues with nginx, so I'm still not able to reproduce your issue deagle

Link to comment

Works now, thank you very much!

 

I'm trying to set it up the way I had it before, did something happen to 'automove based on label'? I don't see the option to set up the label filter anymore or tell it how to create the nested folders.

Link to comment

I am still seeing an error rated to the ngnix.conf file

 

[emerg] 703#0: open() "/etc/nginx/nginx.conf" failed (13: Permission denied)

 

I have deleted and repulled the docker, deleted and allowed the container to recreate all files.  Here is my docker run command

docker run -d \
--privileged=true \
-p 9080:9080 \
-p 9443:9443 \
-p 8118:8118 \
--name=rtorrentvpn \
-v /volume2/data:/data \
-v /volume2/docker/rtorrent/config:/config \
-v /etc/localtime:/etc/localtime:ro \
-e VPN_ENABLED=yes \
-e VPN_USER=p****** \
-e VPN_PASS=******** \
-e VPN_REMOTE=ca-toronto.privateinternetaccess.com \
-e VPN_PORT=1194 \
-e VPN_PROTOCOL=udp \
-e VPN_PROV=pia \
-e ENABLE_PRIVOXY=yes \
-e LAN_NETWORK=192.168.1.0/24 \
-e DEBUG=false \
-e PUID=1030 \
-e PGID=100 \
binhex/arch-rtorrentvpn

 

I have tried the same with airvpn config as well and get the same error.  I also have tried running it with PUID = 0 PGID = 0 to no avail.  I am attaching full logs.

rtorrentvpn.txt

Link to comment

I am still seeing an error rated to the ngnix.conf file

 

[emerg] 703#0: open() "/etc/nginx/nginx.conf" failed (13: Permission denied)

 

I have deleted and repulled the docker, deleted and allowed the container to recreate all files.  Here is my docker run command

docker run -d \
--privileged=true \
-p 9080:9080 \
-p 9443:9443 \
-p 8118:8118 \
--name=rtorrentvpn \
-v /volume2/data:/data \
-v /volume2/docker/rtorrent/config:/config \
-v /etc/localtime:/etc/localtime:ro \
-e VPN_ENABLED=yes \
-e VPN_USER=p****** \
-e VPN_PASS=******** \
-e VPN_REMOTE=ca-toronto.privateinternetaccess.com \
-e VPN_PORT=1194 \
-e VPN_PROTOCOL=udp \
-e VPN_PROV=pia \
-e ENABLE_PRIVOXY=yes \
-e LAN_NETWORK=192.168.1.0/24 \
-e DEBUG=false \
-e PUID=1030 \
-e PGID=100 \
binhex/arch-rtorrentvpn

 

I have tried the same with airvpn config as well and get the same error.  I also have tried running it with PUID = 0 PGID = 0 to no avail.  I am attaching full logs.

 

so the nginx.conf file is copied from the container to your host system and then symlinked back in (only if it doesnt already exist), you need to make sure you dont have any permissions issues, esp if you have been switching the user account the docker is running as, this could of screwed up permissions, run the following on your host and let me know the output:-

 

ls -al /volume2/docker/rtorrent/config/nginx/config/

 

the permissions displayed from the above command must match the UID and GID for the user account your running the container as. If you want to reset permissions then you can simply stop the container, then delete the file /volume2/docker/rtorrent/config/perms.txt, then start the container.

Link to comment

so the nginx.conf file is copied from the container to your host system and then symlinked back in (only if it doesnt already exist), you need to make sure you dont have any permissions issues, esp if you have been switching the user account the docker is running as, this could of screwed up permissions, run the following on your host and let me know the output:-

 

ls -al /volume2/docker/rtorrent/config/nginx/config/

 

the permissions displayed from the above command must match the UID and GID for the user account your running the container as. If you want to reset permissions then you can simply stop the container, then delete the file /volume2/docker/rtorrent/config/perms.txt, then start the container.

 

ls -al /volume2/docker/rtorrent/config/nginx/config/
total 4
drwxrwxr-x 1 rtorrent users   20 Apr 13 11:13 .
drwxrwxr-x 1 rtorrent users   38 Apr 13 11:13 ..
-rwxrwxr-x 1 rtorrent users 3083 Apr 14 09:21 nginx.conf

 

I chown rtorrent:users the whole /volume2/docker/rtorrent/* just to be sure, and deleted the perms.txt and reran the container and got the same result.  I am going to delete the whole config folder, pull the container again, and start over to see what happens.

 

Link to comment

You would have to run chown with the -R flag for recursive likely. (might be -r, can't recal).

 

ya it is -R.  Still did not work.

 

Deleting the entire config directory and standing up a new container also did not work.  I tried the latest docker as root, UID=0 GID=0, and that also did not work.

Link to comment

You would have to run chown with the -R flag for recursive likely. (might be -r, can't recal).

 

ya it is -R.  Still did not work.

 

Deleting the entire config directory and standing up a new container also did not work.  I tried the latest docker as root, UID=0 GID=0, and that also did not work.

 

what version of docker are you running on your synology box?

Link to comment

what version of docker are you running on your synology box?

 

docker version
Client:
Version:      1.9.1
API version:  1.21
Go version:   go1.4.2
Git commit:   d91c7b3
Built:        Fri Mar 18 04:44:54 UTC 2016
OS/Arch:      linux/amd64

Server:
Version:      1.9.1
API version:  1.21
Go version:   go1.4.2
Git commit:   d91c7b3
Built:        Fri Mar 18 04:44:54 UTC 2016
OS/Arch:      linux/amd64

 

On a side note, I have been running your Deluge container with no issue for the past couple weeks until I can get this working.  That one works perfectly, however I noticed it does not use nginx.

Link to comment

Hello,

 

tried to install this docker several times, removing the docker director fully each time, but am not having any success getting it to run.  Was wondering if there was anything I was doing wrong since I'm getting an invalid port specification.  The log file is and thanks for any guidance:

 

[info] Env var PUID defined as 99
[info] Env var PGID defined as 100
[info] Setting permissions recursively on /config...
Changing shell for nobody.
Shell changed.
[info] Starting Supervisor...
2016-04-14 21:22:48,495 CRIT Set uid to user 0
2016-04-14 21:22:48,495 WARN Included extra file "/etc/supervisor/conf.d/rtorrent.conf" during parsing
2016-04-14 21:22:48,528 INFO supervisord started with pid 16
2016-04-14 21:22:49,530 INFO spawned: 'start-script' with pid 19
2016-04-14 21:22:49,532 INFO spawned: 'rtorrent-script' with pid 20
2016-04-14 21:22:49,535 INFO spawned: 'webui-script' with pid 21
2016-04-14 21:22:49,538 INFO spawned: 'privoxy-script' with pid 22
2016-04-14 21:22:49,556 DEBG 'privoxy-script' stdout output:
[info] VPN is enabled, checking VPN tunnel local ip is valid

2016-04-14 21:22:49,556 INFO success: start-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2016-04-14 21:22:49,557 INFO success: rtorrent-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2016-04-14 21:22:49,557 INFO success: webui-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2016-04-14 21:22:49,557 INFO success: privoxy-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2016-04-14 21:22:49,559 DEBG 'rtorrent-script' stdout output:
[info] rTorrent config file doesnt exist, copying default to /config/rtorrent/config/...

2016-04-14 21:22:49,566 DEBG 'start-script' stdout output:
[info] VPN is enabled, beginning configuration of VPN

2016-04-14 21:22:49,600 DEBG 'start-script' stderr output:
chmod: cannot access '/config/openvpn/*': No such file or directory

2016-04-14 21:22:49,654 DEBG 'start-script' stdout output:
[info] VPN provider defined as pia

2016-04-14 21:22:49,701 DEBG 'start-script' stdout output:
[info] VPN config file (ovpn extension) is located at /config/openvpn/openvpn.ovpn

2016-04-14 21:22:49,730 DEBG 'rtorrent-script' stdout output:
[info] Removing any rtorrent session lock files left over from the previous run...

2016-04-14 21:22:49,745 DEBG 'start-script' stdout output:
[info] Env vars defined via docker -e flags for remote host, port and protocol, writing values to ovpn file...

2016-04-14 21:22:49,763 DEBG 'start-script' stdout output:
[debug] Contents of ovpn file /config/openvpn/openvpn.ovpn as follows...

2016-04-14 21:22:49,810 DEBG 'start-script' stdout output:
client
dev tun
remote us-california.privateinternetaccess.com 1194 udp
ping 300
ping-restart 600
resolv-retry infinite
nobind
persist-key
ca ca.crt
tls-client
remote-cert-tls server
auth-user-pass credentials.conf
comp-lzo
verb 1
reneg-sec 0
crl-verify crl.pem



2016-04-14 21:22:49,811 DEBG 'start-script' stdout output:
[debug] Environment variables defined as follows...

2016-04-14 21:22:49,821 DEBG 'start-script' stdout output:
HOSTNAME=ac194e7581e9
PUID=99
TERM=xterm
PHP_TZ=UTC
PGID=100
VPN_PORT=1194
VPN_USER=[redacted]
VPN_PASS=[redacted]
VPN_ENABLED=yes
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SUPERVISOR_GROUP_NAME=start-script
PWD=/
LANG=en_GB.UTF-8
TZ=America/Los_Angeles
VPN_PROTOCOL=udp
SUPERVISOR_ENABLED=1
SHLVL=2
HOME=/home/nobody
LAN_NETWORK=192.168.11.0/24
VPN_REMOTE=us-california.privateinternetaccess.com
SUPERVISOR_PROCESS_NAME=start-script
DEBUG=true
VPN_PROV=pia
ENABLE_PRIVOXY=yes
_=/usr/sbin/printenv

2016-04-14 21:22:49,822 DEBG 'start-script' stdout output:
[info] VPN provider remote gateway defined as us-california.privateinternetaccess.com
[info] VPN provider remote port defined as 1194
[info] VPN provider remote protocol defined as udp

2016-04-14 21:22:49,833 DEBG 'start-script' stdout output:
[info] VPN provider username defined as p7528177

2016-04-14 21:22:49,838 DEBG 'start-script' stdout output:
[info] VPN provider password defined as jQ1GxX^9C0

2016-04-14 21:22:49,856 DEBG 'rtorrent-script' stdout output:
[info] VPN is enabled, checking VPN tunnel local ip is valid

2016-04-14 21:22:49,881 DEBG 'start-script' stdout output:
[info] Default route for container is 172.17.42.1

2016-04-14 21:22:49,890 DEBG 'start-script' stdout output:
[info] Adding 192.168.11.0/24 as route via docker eth0

2016-04-14 21:22:49,890 DEBG 'start-script' stdout output:
[info] ip route defined as follows...
--------------------

2016-04-14 21:22:49,891 DEBG 'start-script' stdout output:
default via 172.17.42.1 dev eth0 

2016-04-14 21:22:49,891 DEBG 'start-script' stdout output:
172.17.0.0/16 dev eth0 proto kernel scope link src 172.17.0.19 
192.168.11.0/24 via 172.17.42.1 dev eth0 
--------------------

2016-04-14 21:22:49,895 DEBG 'start-script' stdout output:
[debug] Modules currently loaded for kernel

2016-04-14 21:22:49,896 DEBG 'start-script' stdout output:
Module Size Used by
iptable_mangle 1376 1
tun 16465 4
xt_nat 1665 9
veth 4401 0
ipt_MASQUERADE 981 10
nf_nat_masquerade_ipv4 1649 1 ipt_MASQUERADE
iptable_nat 1615 1
nf_conntrack_ipv4 5626 2
nf_nat_ipv4 4111 1 iptable_nat
iptable_filter 1280 2
ip_tables 9310 3 iptable_filter,iptable_mangle,iptable_nat
nf_nat 9789 3 nf_nat_ipv4,xt_nat,nf_nat_masquerade_ipv4
md_mod 30680 12
e1000e 140774 0
ptp 8780 1 e1000e
ahci 24107 0
libahci 18687 1 ahci
i2c_i801 8917 0
pps_core 5672 1 ptp
mvsas 44104 16
libsas 51480 1 mvsas
scsi_transport_sas 21182 2 mvsas,libsas

2016-04-14 21:22:49,897 DEBG 'start-script' stdout output:
[info] iptable_mangle support detected, adding fwmark for tables

2016-04-14 21:22:50,010 DEBG 'start-script' stdout output:
[info] iptables defined as follows...
--------------------

2016-04-14 21:22:50,011 DEBG 'start-script' stdout output:
-P INPUT DROP
-P FORWARD ACCEPT
-P OUTPUT DROP
-A INPUT -i tun0 -j ACCEPT
-A INPUT -s 172.17.0.0/16 -d 172.17.0.0/16 -j ACCEPT
-A INPUT -i eth0 -p udp -m udp --sport 1194 -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 8118 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --sport 8118 -j ACCEPT
-A INPUT -s 192.168.11.0/24 -i eth0 -p tcp -m tcp --dport 5000 -j ACCEPT
-A INPUT -p udp -m udp --sport 53 -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.17.0.0/16 -d 172.17.0.0/16 -j ACCEPT
-A OUTPUT -o eth0 -p udp -m udp --dport 1194 -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 8118 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --sport 8118 -j ACCEPT
-A OUTPUT -d 192.168.11.0/24 -o eth0 -p tcp -m tcp --sport 5000 -j ACCEPT
-A OUTPUT -p udp -m udp --dport 53 -j ACCEPT
-A OUTPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT
-A OUTPUT -o lo -j ACCEPT

2016-04-14 21:22:50,011 DEBG 'start-script' stdout output:
--------------------

2016-04-14 21:22:50,012 DEBG 'start-script' stdout output:
[info] nameservers

2016-04-14 21:22:50,012 DEBG 'start-script' stdout output:
nameserver 8.8.8.8
nameserver 8.8.4.4

2016-04-14 21:22:50,012 DEBG 'start-script' stdout output:
--------------------

2016-04-14 21:22:50,013 DEBG 'start-script' stdout output:
[info] Starting OpenVPN...

2016-04-14 21:22:50,121 DEBG 'start-script' stdout output:
Thu Apr 14 21:22:50 2016 OpenVPN 2.3.9 x86_64-unknown-linux-gnu [sSL (OpenSSL)] [LZO] [EPOLL] [MH] [iPv6] built on Dec 24 2015
Thu Apr 14 21:22:50 2016 library versions: OpenSSL 1.0.2f 28 Jan 2016, LZO 2.09
Thu Apr 14 21:22:50 2016 WARNING: file 'credentials.conf' is group or others accessible

2016-04-14 21:22:50,204 DEBG 'start-script' stdout output:
Thu Apr 14 21:22:50 2016 UDPv4 link local: [undef]
Thu Apr 14 21:22:50 2016 UDPv4 link remote: [AF_INET]107.152.98.164:1194

2016-04-14 21:22:50,226 DEBG 'start-script' stdout output:
Thu Apr 14 21:22:50 2016 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this

2016-04-14 21:22:50,336 DEBG 'start-script' stdout output:
Thu Apr 14 21:22:50 2016 [Private Internet Access] Peer Connection Initiated with [AF_INET]107.152.98.164:1194

2016-04-14 21:22:52,491 DEBG 'start-script' stdout output:
Thu Apr 14 21:22:52 2016 TUN/TAP device tun0 opened
Thu Apr 14 21:22:52 2016 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Thu Apr 14 21:22:52 2016 /usr/bin/ip link set dev tun0 up mtu 1500

2016-04-14 21:22:52,492 DEBG 'start-script' stdout output:
Thu Apr 14 21:22:52 2016 /usr/bin/ip addr add dev tun0 local 10.190.1.6 peer 10.190.1.5

2016-04-14 21:22:52,497 DEBG 'start-script' stdout output:
Thu Apr 14 21:22:52 2016 Initialization Sequence Completed

2016-04-14 21:22:52,526 DEBG 'privoxy-script' stdout output:
[info] Configuring Privoxy...

2016-04-14 21:22:52,627 DEBG 'rtorrent-script' stdout output:
[info] First run detected, setting rTorrent listening interface 10.190.1.6

2016-04-14 21:22:52,706 DEBG 'privoxy-script' stdout output:
[info] All checks complete, starting Privoxy...

2016-04-14 21:22:52,731 DEBG 'privoxy-script' stderr output:
2016-04-14 21:22:52.731 2b9103fa9dc0 Info: Privoxy version 3.0.24
2016-04-14 21:22:52.731 2b9103fa9dc0 Info: Program name: /usr/bin/privoxy

2016-04-14 21:22:53,332 DEBG 'rtorrent-script' stdout output:
[info] First run detected, setting rTorrent incoming port 

2016-04-14 21:22:53,332 DEBG 'rtorrent-script' stdout output:
[warn] PIA incoming port is not an integer, downloads will be slow, does PIA remote gateway supports port forwarding?
[info] All checks complete, starting rTorrent...

2016-04-14 21:22:53,352 DEBG 'rtorrent-script' stdout output:
Script started, file is /home/nobody/typescript

2016-04-14 21:22:53,373 DEBG 'rtorrent-script' stdout output:
Script done, file is /home/nobody/typescript

2016-04-14 21:22:53,416 DEBG 'rtorrent-script' stdout output:
[info] Sleeping for 5 mins before rechecking listen interface and port (port checking is for PIA only)

2016-04-14 21:27:53,480 DEBG 'rtorrent-script' stdout output:
[info] rTorrent listening interface IP 10.190.1.6 and VPN provider IP 10.190.1.6 match

2016-04-14 21:27:53,791 DEBG 'rtorrent-script' stderr output:
Error: Invalid port specification: 

Link to comment

Hello,

 

tried to install this docker several times, removing the docker director fully each time, but am not having any success getting it to run.  Was wondering if there was anything I was doing wrong since I'm getting an invalid port specification.  The log file is and thanks for any guidance:

 

[info] Env var PUID defined as 99
[info] Env var PGID defined as 100
[info] Setting permissions recursively on /config...
Changing shell for nobody.
Shell changed.
[info] Starting Supervisor...
2016-04-14 21:22:48,495 CRIT Set uid to user 0
2016-04-14 21:22:48,495 WARN Included extra file "/etc/supervisor/conf.d/rtorrent.conf" during parsing
2016-04-14 21:22:48,528 INFO supervisord started with pid 16
2016-04-14 21:22:49,530 INFO spawned: 'start-script' with pid 19
2016-04-14 21:22:49,532 INFO spawned: 'rtorrent-script' with pid 20
2016-04-14 21:22:49,535 INFO spawned: 'webui-script' with pid 21
2016-04-14 21:22:49,538 INFO spawned: 'privoxy-script' with pid 22
2016-04-14 21:22:49,556 DEBG 'privoxy-script' stdout output:
[info] VPN is enabled, checking VPN tunnel local ip is valid

2016-04-14 21:22:49,556 INFO success: start-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2016-04-14 21:22:49,557 INFO success: rtorrent-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2016-04-14 21:22:49,557 INFO success: webui-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2016-04-14 21:22:49,557 INFO success: privoxy-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2016-04-14 21:22:49,559 DEBG 'rtorrent-script' stdout output:
[info] rTorrent config file doesnt exist, copying default to /config/rtorrent/config/...

2016-04-14 21:22:49,566 DEBG 'start-script' stdout output:
[info] VPN is enabled, beginning configuration of VPN

2016-04-14 21:22:49,600 DEBG 'start-script' stderr output:
chmod: cannot access '/config/openvpn/*': No such file or directory

2016-04-14 21:22:49,654 DEBG 'start-script' stdout output:
[info] VPN provider defined as pia

2016-04-14 21:22:49,701 DEBG 'start-script' stdout output:
[info] VPN config file (ovpn extension) is located at /config/openvpn/openvpn.ovpn

2016-04-14 21:22:49,730 DEBG 'rtorrent-script' stdout output:
[info] Removing any rtorrent session lock files left over from the previous run...

2016-04-14 21:22:49,745 DEBG 'start-script' stdout output:
[info] Env vars defined via docker -e flags for remote host, port and protocol, writing values to ovpn file...

2016-04-14 21:22:49,763 DEBG 'start-script' stdout output:
[debug] Contents of ovpn file /config/openvpn/openvpn.ovpn as follows...

2016-04-14 21:22:49,810 DEBG 'start-script' stdout output:
client
dev tun
remote us-california.privateinternetaccess.com 1194 udp
ping 300
ping-restart 600
resolv-retry infinite
nobind
persist-key
ca ca.crt
tls-client
remote-cert-tls server
auth-user-pass credentials.conf
comp-lzo
verb 1
reneg-sec 0
crl-verify crl.pem



2016-04-14 21:22:49,811 DEBG 'start-script' stdout output:
[debug] Environment variables defined as follows...

2016-04-14 21:22:49,821 DEBG 'start-script' stdout output:
HOSTNAME=ac194e7581e9
PUID=99
TERM=xterm
PHP_TZ=UTC
PGID=100
VPN_PORT=1194
VPN_USER=[redacted]
VPN_PASS=[redacted]
VPN_ENABLED=yes
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SUPERVISOR_GROUP_NAME=start-script
PWD=/
LANG=en_GB.UTF-8
TZ=America/Los_Angeles
VPN_PROTOCOL=udp
SUPERVISOR_ENABLED=1
SHLVL=2
HOME=/home/nobody
LAN_NETWORK=192.168.11.0/24
VPN_REMOTE=us-california.privateinternetaccess.com
SUPERVISOR_PROCESS_NAME=start-script
DEBUG=true
VPN_PROV=pia
ENABLE_PRIVOXY=yes
_=/usr/sbin/printenv

2016-04-14 21:22:49,822 DEBG 'start-script' stdout output:
[info] VPN provider remote gateway defined as us-california.privateinternetaccess.com
[info] VPN provider remote port defined as 1194
[info] VPN provider remote protocol defined as udp

2016-04-14 21:22:49,833 DEBG 'start-script' stdout output:
[info] VPN provider username defined as p7528177

2016-04-14 21:22:49,838 DEBG 'start-script' stdout output:
[info] VPN provider password defined as jQ1GxX^9C0

2016-04-14 21:22:49,856 DEBG 'rtorrent-script' stdout output:
[info] VPN is enabled, checking VPN tunnel local ip is valid

2016-04-14 21:22:49,881 DEBG 'start-script' stdout output:
[info] Default route for container is 172.17.42.1

2016-04-14 21:22:49,890 DEBG 'start-script' stdout output:
[info] Adding 192.168.11.0/24 as route via docker eth0

2016-04-14 21:22:49,890 DEBG 'start-script' stdout output:
[info] ip route defined as follows...
--------------------

2016-04-14 21:22:49,891 DEBG 'start-script' stdout output:
default via 172.17.42.1 dev eth0 

2016-04-14 21:22:49,891 DEBG 'start-script' stdout output:
172.17.0.0/16 dev eth0 proto kernel scope link src 172.17.0.19 
192.168.11.0/24 via 172.17.42.1 dev eth0 
--------------------

2016-04-14 21:22:49,895 DEBG 'start-script' stdout output:
[debug] Modules currently loaded for kernel

2016-04-14 21:22:49,896 DEBG 'start-script' stdout output:
Module Size Used by
iptable_mangle 1376 1
tun 16465 4
xt_nat 1665 9
veth 4401 0
ipt_MASQUERADE 981 10
nf_nat_masquerade_ipv4 1649 1 ipt_MASQUERADE
iptable_nat 1615 1
nf_conntrack_ipv4 5626 2
nf_nat_ipv4 4111 1 iptable_nat
iptable_filter 1280 2
ip_tables 9310 3 iptable_filter,iptable_mangle,iptable_nat
nf_nat 9789 3 nf_nat_ipv4,xt_nat,nf_nat_masquerade_ipv4
md_mod 30680 12
e1000e 140774 0
ptp 8780 1 e1000e
ahci 24107 0
libahci 18687 1 ahci
i2c_i801 8917 0
pps_core 5672 1 ptp
mvsas 44104 16
libsas 51480 1 mvsas
scsi_transport_sas 21182 2 mvsas,libsas

2016-04-14 21:22:49,897 DEBG 'start-script' stdout output:
[info] iptable_mangle support detected, adding fwmark for tables

2016-04-14 21:22:50,010 DEBG 'start-script' stdout output:
[info] iptables defined as follows...
--------------------

2016-04-14 21:22:50,011 DEBG 'start-script' stdout output:
-P INPUT DROP
-P FORWARD ACCEPT
-P OUTPUT DROP
-A INPUT -i tun0 -j ACCEPT
-A INPUT -s 172.17.0.0/16 -d 172.17.0.0/16 -j ACCEPT
-A INPUT -i eth0 -p udp -m udp --sport 1194 -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 8118 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --sport 8118 -j ACCEPT
-A INPUT -s 192.168.11.0/24 -i eth0 -p tcp -m tcp --dport 5000 -j ACCEPT
-A INPUT -p udp -m udp --sport 53 -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.17.0.0/16 -d 172.17.0.0/16 -j ACCEPT
-A OUTPUT -o eth0 -p udp -m udp --dport 1194 -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 8118 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --sport 8118 -j ACCEPT
-A OUTPUT -d 192.168.11.0/24 -o eth0 -p tcp -m tcp --sport 5000 -j ACCEPT
-A OUTPUT -p udp -m udp --dport 53 -j ACCEPT
-A OUTPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT
-A OUTPUT -o lo -j ACCEPT

2016-04-14 21:22:50,011 DEBG 'start-script' stdout output:
--------------------

2016-04-14 21:22:50,012 DEBG 'start-script' stdout output:
[info] nameservers

2016-04-14 21:22:50,012 DEBG 'start-script' stdout output:
nameserver 8.8.8.8
nameserver 8.8.4.4

2016-04-14 21:22:50,012 DEBG 'start-script' stdout output:
--------------------

2016-04-14 21:22:50,013 DEBG 'start-script' stdout output:
[info] Starting OpenVPN...

2016-04-14 21:22:50,121 DEBG 'start-script' stdout output:
Thu Apr 14 21:22:50 2016 OpenVPN 2.3.9 x86_64-unknown-linux-gnu [sSL (OpenSSL)] [LZO] [EPOLL] [MH] [iPv6] built on Dec 24 2015
Thu Apr 14 21:22:50 2016 library versions: OpenSSL 1.0.2f 28 Jan 2016, LZO 2.09
Thu Apr 14 21:22:50 2016 WARNING: file 'credentials.conf' is group or others accessible

2016-04-14 21:22:50,204 DEBG 'start-script' stdout output:
Thu Apr 14 21:22:50 2016 UDPv4 link local: [undef]
Thu Apr 14 21:22:50 2016 UDPv4 link remote: [AF_INET]107.152.98.164:1194

2016-04-14 21:22:50,226 DEBG 'start-script' stdout output:
Thu Apr 14 21:22:50 2016 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this

2016-04-14 21:22:50,336 DEBG 'start-script' stdout output:
Thu Apr 14 21:22:50 2016 [Private Internet Access] Peer Connection Initiated with [AF_INET]107.152.98.164:1194

2016-04-14 21:22:52,491 DEBG 'start-script' stdout output:
Thu Apr 14 21:22:52 2016 TUN/TAP device tun0 opened
Thu Apr 14 21:22:52 2016 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Thu Apr 14 21:22:52 2016 /usr/bin/ip link set dev tun0 up mtu 1500

2016-04-14 21:22:52,492 DEBG 'start-script' stdout output:
Thu Apr 14 21:22:52 2016 /usr/bin/ip addr add dev tun0 local 10.190.1.6 peer 10.190.1.5

2016-04-14 21:22:52,497 DEBG 'start-script' stdout output:
Thu Apr 14 21:22:52 2016 Initialization Sequence Completed

2016-04-14 21:22:52,526 DEBG 'privoxy-script' stdout output:
[info] Configuring Privoxy...

2016-04-14 21:22:52,627 DEBG 'rtorrent-script' stdout output:
[info] First run detected, setting rTorrent listening interface 10.190.1.6

2016-04-14 21:22:52,706 DEBG 'privoxy-script' stdout output:
[info] All checks complete, starting Privoxy...

2016-04-14 21:22:52,731 DEBG 'privoxy-script' stderr output:
2016-04-14 21:22:52.731 2b9103fa9dc0 Info: Privoxy version 3.0.24
2016-04-14 21:22:52.731 2b9103fa9dc0 Info: Program name: /usr/bin/privoxy

2016-04-14 21:22:53,332 DEBG 'rtorrent-script' stdout output:
[info] First run detected, setting rTorrent incoming port 

2016-04-14 21:22:53,332 DEBG 'rtorrent-script' stdout output:
[warn] PIA incoming port is not an integer, downloads will be slow, does PIA remote gateway supports port forwarding?
[info] All checks complete, starting rTorrent...

2016-04-14 21:22:53,352 DEBG 'rtorrent-script' stdout output:
Script started, file is /home/nobody/typescript

2016-04-14 21:22:53,373 DEBG 'rtorrent-script' stdout output:
Script done, file is /home/nobody/typescript

2016-04-14 21:22:53,416 DEBG 'rtorrent-script' stdout output:
[info] Sleeping for 5 mins before rechecking listen interface and port (port checking is for PIA only)

2016-04-14 21:27:53,480 DEBG 'rtorrent-script' stdout output:
[info] rTorrent listening interface IP 10.190.1.6 and VPN provider IP 10.190.1.6 match

2016-04-14 21:27:53,791 DEBG 'rtorrent-script' stderr output:
Error: Invalid port specification: 

 

Hi, so ive spotted the issue, here is the important line:-

 

[warn] PIA incoming port is not an integer, downloads will be slow, does PIA remote gateway supports port forwarding?

 

So you have choosen PIA as your vpn provider but the endpoint your connecting to does not support incoming ports, whilst this shouldn't be mandatory for this docker to run, it is highly recommended otherwise your download speeds will be slow. There is a code change i can make to allow for PIA selected without incoming port detected, but i would strongly recommend you try connecting to a endpoint that does support incoming port.

Link to comment

what version of docker are you running on your synology box?

 

docker version
Client:
Version:      1.9.1
API version:  1.21
Go version:   go1.4.2
Git commit:   d91c7b3
Built:        Fri Mar 18 04:44:54 UTC 2016
OS/Arch:      linux/amd64

Server:
Version:      1.9.1
API version:  1.21
Go version:   go1.4.2
Git commit:   d91c7b3
Built:        Fri Mar 18 04:44:54 UTC 2016
OS/Arch:      linux/amd64

 

On a side note, I have been running your Deluge container with no issue for the past couple weeks until I can get this working.  That one works perfectly, however I noticed it does not use nginx.

 

yeah the deluge container is a completely different beast tbh, rtorrent is a much more complex app to get setup as there are a lot of moving parts involved. im going to do some testing using a ubuntu vm with the version of docker your running and see if i can reproduce the issue.

Link to comment

So you have choosen PIA as your vpn provider but the endpoint your connecting to does not support incoming ports, whilst this shouldn't be mandatory for this docker to run, it is highly recommended otherwise your download speeds will be slow. There is a code change i can make to allow for PIA selected without incoming port detected, but i would strongly recommend you try connecting to a endpoint that does support incoming port.

 

Thanks for the speedy response.  Changing the gateway worked to get it running.  However, I'm getting some other errors and was wondering how I can remove them.

 

2016-04-15 08:51:21,666 DEBG 'rtorrent-script' stderr output:
PHP Warning: require_once(../plugins/rss/init.php): failed to open stream: No such file or directory in /usr/share/webapps/rutorrent/php/initplugins.php on line 227
PHP Fatal error: require_once(): Failed opening required '../plugins/rss/init.php' (include_path='.:') in /usr/share/webapps/rutorrent/php/initplugins.php on line 227

2016-04-15 08:51:21,669 DEBG 'rtorrent-script' stdout output:
[info] Sleeping for 5 mins before rechecking listen interface and port (port checking is for PIA only)

2016-04-15 08:51:22,112 DEBG 'webui-script' stdout output:
[info] starting php-fpm...

2016-04-15 08:51:22,179 DEBG 'webui-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

2016-04-15 08:51:22,182 DEBG 'webui-script' stdout output:
[info] starting nginx...

2016-04-15 08:52:05,346 DEBG 'webui-script' stderr output:
2016/04/15 08:52:05 [error] 715#0: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fopen(/usr/share/webapps/rutorrent/share/users/admin/settings/uisettings.json): failed to open stream: No such file or directory in /usr/share/webapps/rutorrent/php/getsettings.php on line 7" while reading response header from upstream, client: 25.161.153.240, server: localhost, request: "POST /php/getsettings.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:7777", host: "25.19.28.19:9080", referrer: "http://25.19.28.19:9080/"

2016-04-15 08:52:07,897 DEBG 'webui-script' stderr output:
2016/04/15 08:52:07 [error] 715#0: *3 FastCGI sent in stderr: "PHP message: PHP Notice: Only variables should be passed by reference in /usr/share/webapps/rutorrent/php/util.php on line 546" while reading response header from upstream, client: 25.161.153.240, server: localhost, request: "GET /plugins/tracklabels/action.php?label=nlb HTTP/1.1", upstream: "fastcgi://127.0.0.1:7777", host: "25.19.28.19:9080", referrer: "http://25.19.28.19:9080/"

 

and also:

 

 

Screen_Shot_2016-04-15_at_9_04.30_AM.png.dba053458a1596bd07f0a13c1c09fcbc.png

Link to comment

So you have choosen PIA as your vpn provider but the endpoint your connecting to does not support incoming ports, whilst this shouldn't be mandatory for this docker to run, it is highly recommended otherwise your download speeds will be slow. There is a code change i can make to allow for PIA selected without incoming port detected, but i would strongly recommend you try connecting to a endpoint that does support incoming port.

 

Thanks for the speedy response.  Changing the gateway worked to get it running.  However, I'm getting some other errors and was wondering how I can remove them.

 

2016-04-15 08:51:21,666 DEBG 'rtorrent-script' stderr output:
PHP Warning: require_once(../plugins/rss/init.php): failed to open stream: No such file or directory in /usr/share/webapps/rutorrent/php/initplugins.php on line 227
PHP Fatal error: require_once(): Failed opening required '../plugins/rss/init.php' (include_path='.:') in /usr/share/webapps/rutorrent/php/initplugins.php on line 227

2016-04-15 08:51:21,669 DEBG 'rtorrent-script' stdout output:
[info] Sleeping for 5 mins before rechecking listen interface and port (port checking is for PIA only)

2016-04-15 08:51:22,112 DEBG 'webui-script' stdout output:
[info] starting php-fpm...

2016-04-15 08:51:22,179 DEBG 'webui-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

2016-04-15 08:51:22,182 DEBG 'webui-script' stdout output:
[info] starting nginx...

2016-04-15 08:52:05,346 DEBG 'webui-script' stderr output:
2016/04/15 08:52:05 [error] 715#0: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fopen(/usr/share/webapps/rutorrent/share/users/admin/settings/uisettings.json): failed to open stream: No such file or directory in /usr/share/webapps/rutorrent/php/getsettings.php on line 7" while reading response header from upstream, client: 25.161.153.240, server: localhost, request: "POST /php/getsettings.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:7777", host: "25.19.28.19:9080", referrer: "http://25.19.28.19:9080/"

2016-04-15 08:52:07,897 DEBG 'webui-script' stderr output:
2016/04/15 08:52:07 [error] 715#0: *3 FastCGI sent in stderr: "PHP message: PHP Notice: Only variables should be passed by reference in /usr/share/webapps/rutorrent/php/util.php on line 546" while reading response header from upstream, client: 25.161.153.240, server: localhost, request: "GET /plugins/tracklabels/action.php?label=nlb HTTP/1.1", upstream: "fastcgi://127.0.0.1:7777", host: "25.19.28.19:9080", referrer: "http://25.19.28.19:9080/"

 

and also:

 

this can be ignored, im seeing the same thing, i think one or more of the plugins bundled with rutorrent is either out of date or has a bug in it, at some point i will look into it, but fot now dont loose any sleep over it :-)

Link to comment

Hi binhex,

 

Something seems to have changed with the latest update. Any torrent I have with a ratio over 1 is being paused, I have most of my torrents set by ratio group to autodelete at 1.5 or 2.0 but they will not make it as they get paused. I unpause them and a second later they are paused again.

 

The issue only started this morning when I pulled down a docker update. Is there a log file that will tell me why they are being paused?

 

Thanks,

Wob

 

Update: As a test I pulled down binhex/arch-rtorrentvpn:0.9.6-3-25 and it is working without the pausing issue. Scratch that, still effects 0.9.6-3-25.

 

Update 2: OK, I have waiting a bit longer this time, have been running 0.9.6-3-24 for 20min and it hasn't yet pasued them yet, I'll update if it does but that seems to be the version before whatever changed.

Link to comment

Hi binhex,

 

Something seems to have changed with the latest update. Any torrent I have with a ratio over 1 is being paused, I have most of my torrents set by ratio group to autodelete at 1.5 or 2.0 but they will not make it as they get paused. I unpause them and a second later they are paused again.

 

The issue only started this morning when I pulled down a docker update. Is there a log file that will tell me why they are being paused?

 

Thanks,

Wob

 

Update: As a test I pulled down binhex/arch-rtorrentvpn:0.9.6-3-25 and it is working without the pausing issue. Scratch that, still effects 0.9.6-3-25.

 

Update 2: OK, I have waiting a bit longer this time, have been running 0.9.6-3-24 for 20min and it hasn't yet pasued them yet, I'll update if it does but that seems to be the version before whatever changed.

 

no changes from me in regards to plugins, one thought though, have you modified the rtorrent.rc file by any chance and re-enabled the watched section? if so this can conflict with the rutorrent "autotools" plugin, so just double check you havent got this happening. This caused me some headaches as downloading torrents would suddenly just disappear halfway through a download, took me a while to realise these two things are in conflict, i know this is different to your problem but you might want to double check all the same.

Link to comment

Hi binhex,

 

Something seems to have changed with the latest update. Any torrent I have with a ratio over 1 is being paused, I have most of my torrents set by ratio group to autodelete at 1.5 or 2.0 but they will not make it as they get paused. I unpause them and a second later they are paused again.

 

The issue only started this morning when I pulled down a docker update. Is there a log file that will tell me why they are being paused?

 

Thanks,

Wob

 

Update: As a test I pulled down binhex/arch-rtorrentvpn:0.9.6-3-25 and it is working without the pausing issue. Scratch that, still effects 0.9.6-3-25.

 

Update 2: OK, I have waiting a bit longer this time, have been running 0.9.6-3-24 for 20min and it hasn't yet pasued them yet, I'll update if it does but that seems to be the version before whatever changed.

 

no changes from me in regards to plugins, one thought though, have you modified the rtorrent.rc file by any chance and re-enabled the watched section? if so this can conflict with the rutorrent "autotools" plugin, so just double check you havent got this happening. This caused me some headaches as downloading torrents would suddenly just disappear halfway through a download, took me a while to realise these two things are in conflict, i know this is different to your problem but you might want to double check all the same.

 

Hi, It's still working fine using 0.9.6-3-24, so not sure what has changed, just double checked my rtorrent.rc file and watched section is still all commented out.

 

# Watch a directory for new torrents, and stop those that have been
# deleted. Note please ensure you disable the "AutoMove" in rutorrent
# otherwise there could be a conflict that can cause deletion
# of partially downloaded torrents.
#execute = {/bin/bash,-c,mkdir -p /downloads/watched}
#schedule = watch_directory,5,5,load_start=/downloads/watched/*.torrent
#schedule = untied_directory,5,5,stop_untied=
#schedule = untied_directory,5,5,remove_untied=

 

Any other suggestions, or a way I can debug what is pausing them?

 

Thanks,

Wob

 

Link to comment
  • binhex locked this topic
Guest
This topic is now closed to further replies.