[Support] binhex - rTorrentVPN


Recommended Posts

Binhex, no idea how to get this working, so what if I were to manually add the details to the rt_tables file instead?  Would it stick?

 

If so, what details do I actually need to add in there?

 

ok so a bit of googling on your issue points to some sort of iptables issue on the synology host, other than a reboot to see if this re-enables the missing iptables on the host im not sure where to go with this, there is a ton of stuff you could dig into but it would eat hours. you could try updating your kernel (if possible), upgraing the version of docker your running, or contacting synology themselves and see if they can talk you through getting iptables working correctly for you. sorry i cant be much more help but ive kinda  come to the end of what i can guide you through from a container standpoint, im pretty confident the issue is on the host side so my advise is to look at that.

Link to comment

Binhex, no idea how to get this working, so what if I were to manually add the details to the rt_tables file instead?  Would it stick?

 

If so, what details do I actually need to add in there?

 

ok so a bit of googling on your issue points to some sort of iptables issue on the synology host, other than a reboot to see if this re-enables the missing iptables on the host im not sure where to go with this, there is a ton of stuff you could dig into but it would eat hours. you could try updating your kernel (if possible), upgraing the version of docker your running, or contacting synology themselves and see if they can talk you through getting iptables working correctly for you. sorry i cant be much more help but ive kinda  come to the end of what i can guide you through from a container standpoint, im pretty confident the issue is on the host side so my advise is to look at that.

 

No I definitely agree it's not a problem at your end.  I'm just wondering if I can manually edit the rt_tables file that your script is trying to add to, and just put in the details myself.  If I do that will the settings stick or does it need to be done more than once?

 

If I can do that, could you let me know what variables it wants in that file?

Link to comment

Any reason to choose one or the other between this and Deluge?

 

I like Deluge myself, but it has issues handling a lot (>400) of torrents.  The interface gets a bit sluggish, which I could live with, but the real problem is that communication with apps like Sonarr and Radarr becomes unreliable.  Rtorrent has been rock solid for me

Link to comment

Am stuck at loading again after latest update - It does not get far enough to write a supervisor.log file - here is from the docker log page:

2017-02-21 14:26:52,685 DEBG 'start-script' stdout output:
[info] VPN config file (ovpn extension) is located at /config/openvpn/AirVPN_US-Dallas-Texas_Alsafi_UDP-443.ovpn

2017-02-21 14:26:52,686 DEBG 'start-script' stderr output:
dos2unix: converting file /config/openvpn/AirVPN_US-Dallas-Texas_Alsafi_UDP-443.ovpn to Unix format...

2017-02-21 14:26:52,710 DEBG 'start-script' stdout output:
[info] Default route for container is 172.17.0.1

2017-02-21 14:26:52,713 DEBG 'start-script' stdout output:
[info] Adding 8.8.8.8 to /etc/resolv.conf

2017-02-21 14:26:52,716 DEBG 'start-script' stdout output:
[info] Adding 37.235.1.174 to /etc/resolv.conf

2017-02-21 14:26:52,718 DEBG 'start-script' stdout output:
[info] Adding 8.8.4.4 to /etc/resolv.conf

2017-02-21 14:26:52,721 DEBG 'start-script' stdout output:
[info] Adding 37.235.1.177 to /etc/resolv.conf

2017-02-21 14:26:52,721 DEBG 'start-script' stdout output:
[debug] Show name servers defined for container

2017-02-21 14:26:52,721 DEBG 'start-script' stdout output:
nameserver 8.8.8.8
nameserver 37.235.1.174
nameserver 8.8.4.4
nameserver 37.235.1.177

2017-02-21 14:26:52,722 DEBG 'start-script' stdout output:
[debug] Show name resolution for VPN endpoint alsafi.airservers.org

2017-02-21 14:26:52,836 DEBG 'start-script' stdout output:
;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 17611
;; flags: qr rd ra ; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;; alsafi.airservers.org.	IN	A

;; ANSWER SECTION:
alsafi.airservers.org.	3599	IN	A	107.183.238.194

;; AUTHORITY SECTION:

;; ADDITIONAL SECTION:

;; Query time: 108 msec
;; SERVER: 8.8.8.8
;; WHEN: Tue Feb 21 14:26:52 2017
;; MSG SIZE rcvd: 55

2017-02-21 14:26:52,841 DEBG 'start-script' stdout output:
[info] Adding 192.168.0.0/24 as route via docker eth0

2017-02-21 14:26:52,842 DEBG 'start-script' stdout output:
[info] ip route defined as follows...

2017-02-21 14:26:52,842 DEBG 'start-script' stdout output:
--------------------

2017-02-21 14:26:52,842 DEBG 'start-script' stdout output:
default via 172.17.0.1 dev eth0
172.17.0.0/16 dev eth0 proto kernel scope link src 172.17.0.2

2017-02-21 14:26:52,842 DEBG 'start-script' stdout output:
192.168.0.0/24 via 172.17.0.1 dev eth0
--------------------

2017-02-21 14:26:52,842 DEBG 'start-script' stdout output:
[debug] Modules currently loaded for kernel

2017-02-21 14:26:52,844 DEBG 'start-script' stdout output:
Module Size Used by
xt_nat 1913 10
veth 4966 0
xt_CHECKSUM 1335 1
iptable_mangle 1658 6
ipt_REJECT 1521 2
nf_reject_ipv4 2483 1 ipt_REJECT
ebtable_filter 1903 0
ebtables 14552 1 ebtable_filter
vhost_net 9091 0
tun 19240 4 vhost_net
vhost 19681 1 vhost_net
macvtap 11622 1 vhost_net
macvlan 12389 1 macvtap
ipt_MASQUERADE 1277 14
nf_nat_masquerade_ipv4 1865 1 ipt_MASQUERADE
iptable_nat 1897 1
nf_conntrack_ipv4 5874 3
nf_nat_ipv4 4199 1 iptable_nat
iptable_filter 1706 6
ip_tables 9853 3 iptable_mangle,iptable_filter,iptable_nat
nf_nat 11145 3 xt_nat,nf_nat_masquerade_ipv4,nf_nat_ipv4
md_mod 36572 16
nct6775 35380 0
hwmon_vid 2276 1 nct6775
jc42 3914 0
bonding 92464 0
e1000e 143207 0
ptp 9308 1 e1000e
pps_core 5928 1 ptp
x86_pkg_temp_thermal 4669 0
coretemp 5340 0
kvm_intel 160423 0
kvm 289582 1 kvm_intel
ahci 26326 2
i2c_i801 11888 0
i2c_smbus 3041 1 i2c_i801
libahci 19716 1 ahci
i2c_core 20390 3 jc42,i2c_i801,i2c_smbus
mvsas 44299 17
libsas 51216 1 mvsas
scsi_transport_sas 21714 2 libsas,mvsas
ipmi_si 36442 0
video 27138 0
backlight 5833 1 video
acpi_cpufreq 7054 0

2017-02-21 14:26:52,847 DEBG 'start-script' stdout output:
[info] iptable_mangle support detected, adding fwmark for tables

2017-02-21 14:26:52,877 DEBG 'start-script' stdout output:
[info] iptables defined as follows...
--------------------

2017-02-21 14:26:52,878 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 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 -s 192.168.0.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 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 -d 192.168.0.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

2017-02-21 14:26:52,878 DEBG 'start-script' stdout output:
--------------------

2017-02-21 14:26:52,879 DEBG 'start-script' stdout output:

command line '/usr/bin/openvpn --cd /config/openvpn --config /config/openvpn/AirVPN_US-Dallas-Texas_Alsafi_UDP-443.ovpn --daemon --dev tun0 --remote alsafi.airservers.org 443 --proto udp --reneg-sec 0 --mute-replay-warnings --auth-nocache --keepalive 10 60'

2017-02-21 14:26:52,879 DEBG 'start-script' stdout output:
[info] Starting OpenVPN...

2017-02-21 14:26:52,889 DEBG 'start-script' stdout output:
[info] OpenVPN started

2017-02-21 14:26:52,889 DEBG 'start-script' stdout output:
[debug] Waiting for valid IP address from tunnel...

2017-02-21 14:26:54,893 DEBG 'rtorrent-script' stdout output:
[debug] Valid IP address from tunnel acquired '10.4.12.128'

2017-02-21 14:26:54,893 DEBG 'start-script' stdout output:
[debug] Valid IP address from tunnel acquired '10.4.12.128'

2017-02-21 14:26:59,041 DEBG 'rtorrent-script' stdout output:
[debug] External IP address from tunnel is ''

2017-02-21 14:26:59,045 DEBG 'rtorrent-script' stdout output:
[info] rTorrent not running

2017-02-21 14:26:59,045 DEBG 'rtorrent-script' stdout output:
[info] rTorrent listening interface IP 0.0.0.0 and VPN provider IP 10.4.12.128 different, marking for reconfigure
[info] Removing any rtorrent session lock files left over from the previous run...

2017-02-21 14:26:59,046 DEBG 'rtorrent-script' stdout output:
[info] Attempting to start rTorrent...

2017-02-21 14:26:59,047 DEBG 'rtorrent-script' stdout output:
Script started, file is /home/nobody/typescript

2017-02-21 14:26:59,064 DEBG 'rtorrent-script' stdout output:
Script done, file is /home/nobody/typescript

2017-02-21 14:26:59,074 DEBG 'start-script' stdout output:
[debug] External IP address from tunnel is ''

I dont know what is going on, only thing that I did was a docker update when I saw the container had a update

 

Thanks

Myk

Link to comment
12 hours ago, MyKroFt said:

Am stuck at loading again after latest update - It does not get far enough to write a supervisor.log file - here is from the docker log page:


2017-02-21 14:26:52,685 DEBG 'start-script' stdout output:
[info] VPN config file (ovpn extension) is located at /config/openvpn/AirVPN_US-Dallas-Texas_Alsafi_UDP-443.ovpn

2017-02-21 14:26:52,686 DEBG 'start-script' stderr output:
dos2unix: converting file /config/openvpn/AirVPN_US-Dallas-Texas_Alsafi_UDP-443.ovpn to Unix format...

2017-02-21 14:26:52,710 DEBG 'start-script' stdout output:
[info] Default route for container is 172.17.0.1

2017-02-21 14:26:52,713 DEBG 'start-script' stdout output:
[info] Adding 8.8.8.8 to /etc/resolv.conf

2017-02-21 14:26:52,716 DEBG 'start-script' stdout output:
[info] Adding 37.235.1.174 to /etc/resolv.conf

2017-02-21 14:26:52,718 DEBG 'start-script' stdout output:
[info] Adding 8.8.4.4 to /etc/resolv.conf

2017-02-21 14:26:52,721 DEBG 'start-script' stdout output:
[info] Adding 37.235.1.177 to /etc/resolv.conf

2017-02-21 14:26:52,721 DEBG 'start-script' stdout output:
[debug] Show name servers defined for container

2017-02-21 14:26:52,721 DEBG 'start-script' stdout output:
nameserver 8.8.8.8
nameserver 37.235.1.174
nameserver 8.8.4.4
nameserver 37.235.1.177

2017-02-21 14:26:52,722 DEBG 'start-script' stdout output:
[debug] Show name resolution for VPN endpoint alsafi.airservers.org

2017-02-21 14:26:52,836 DEBG 'start-script' stdout output:
;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 17611
;; flags: qr rd ra ; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;; alsafi.airservers.org.	IN	A

;; ANSWER SECTION:
alsafi.airservers.org.	3599	IN	A	107.183.238.194

;; AUTHORITY SECTION:

;; ADDITIONAL SECTION:

;; Query time: 108 msec
;; SERVER: 8.8.8.8
;; WHEN: Tue Feb 21 14:26:52 2017
;; MSG SIZE rcvd: 55

2017-02-21 14:26:52,841 DEBG 'start-script' stdout output:
[info] Adding 192.168.0.0/24 as route via docker eth0

2017-02-21 14:26:52,842 DEBG 'start-script' stdout output:
[info] ip route defined as follows...

2017-02-21 14:26:52,842 DEBG 'start-script' stdout output:
--------------------

2017-02-21 14:26:52,842 DEBG 'start-script' stdout output:
default via 172.17.0.1 dev eth0
172.17.0.0/16 dev eth0 proto kernel scope link src 172.17.0.2

2017-02-21 14:26:52,842 DEBG 'start-script' stdout output:
192.168.0.0/24 via 172.17.0.1 dev eth0
--------------------

2017-02-21 14:26:52,842 DEBG 'start-script' stdout output:
[debug] Modules currently loaded for kernel

2017-02-21 14:26:52,844 DEBG 'start-script' stdout output:
Module Size Used by
xt_nat 1913 10
veth 4966 0
xt_CHECKSUM 1335 1
iptable_mangle 1658 6
ipt_REJECT 1521 2
nf_reject_ipv4 2483 1 ipt_REJECT
ebtable_filter 1903 0
ebtables 14552 1 ebtable_filter
vhost_net 9091 0
tun 19240 4 vhost_net
vhost 19681 1 vhost_net
macvtap 11622 1 vhost_net
macvlan 12389 1 macvtap
ipt_MASQUERADE 1277 14
nf_nat_masquerade_ipv4 1865 1 ipt_MASQUERADE
iptable_nat 1897 1
nf_conntrack_ipv4 5874 3
nf_nat_ipv4 4199 1 iptable_nat
iptable_filter 1706 6
ip_tables 9853 3 iptable_mangle,iptable_filter,iptable_nat
nf_nat 11145 3 xt_nat,nf_nat_masquerade_ipv4,nf_nat_ipv4
md_mod 36572 16
nct6775 35380 0
hwmon_vid 2276 1 nct6775
jc42 3914 0
bonding 92464 0
e1000e 143207 0
ptp 9308 1 e1000e
pps_core 5928 1 ptp
x86_pkg_temp_thermal 4669 0
coretemp 5340 0
kvm_intel 160423 0
kvm 289582 1 kvm_intel
ahci 26326 2
i2c_i801 11888 0
i2c_smbus 3041 1 i2c_i801
libahci 19716 1 ahci
i2c_core 20390 3 jc42,i2c_i801,i2c_smbus
mvsas 44299 17
libsas 51216 1 mvsas
scsi_transport_sas 21714 2 libsas,mvsas
ipmi_si 36442 0
video 27138 0
backlight 5833 1 video
acpi_cpufreq 7054 0

2017-02-21 14:26:52,847 DEBG 'start-script' stdout output:
[info] iptable_mangle support detected, adding fwmark for tables

2017-02-21 14:26:52,877 DEBG 'start-script' stdout output:
[info] iptables defined as follows...
--------------------

2017-02-21 14:26:52,878 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 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 -s 192.168.0.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 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 -d 192.168.0.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

2017-02-21 14:26:52,878 DEBG 'start-script' stdout output:
--------------------

2017-02-21 14:26:52,879 DEBG 'start-script' stdout output:

command line '/usr/bin/openvpn --cd /config/openvpn --config /config/openvpn/AirVPN_US-Dallas-Texas_Alsafi_UDP-443.ovpn --daemon --dev tun0 --remote alsafi.airservers.org 443 --proto udp --reneg-sec 0 --mute-replay-warnings --auth-nocache --keepalive 10 60'

2017-02-21 14:26:52,879 DEBG 'start-script' stdout output:
[info] Starting OpenVPN...

2017-02-21 14:26:52,889 DEBG 'start-script' stdout output:
[info] OpenVPN started

2017-02-21 14:26:52,889 DEBG 'start-script' stdout output:
[debug] Waiting for valid IP address from tunnel...

2017-02-21 14:26:54,893 DEBG 'rtorrent-script' stdout output:
[debug] Valid IP address from tunnel acquired '10.4.12.128'

2017-02-21 14:26:54,893 DEBG 'start-script' stdout output:
[debug] Valid IP address from tunnel acquired '10.4.12.128'

2017-02-21 14:26:59,041 DEBG 'rtorrent-script' stdout output:
[debug] External IP address from tunnel is ''

2017-02-21 14:26:59,045 DEBG 'rtorrent-script' stdout output:
[info] rTorrent not running

2017-02-21 14:26:59,045 DEBG 'rtorrent-script' stdout output:
[info] rTorrent listening interface IP 0.0.0.0 and VPN provider IP 10.4.12.128 different, marking for reconfigure
[info] Removing any rtorrent session lock files left over from the previous run...

2017-02-21 14:26:59,046 DEBG 'rtorrent-script' stdout output:
[info] Attempting to start rTorrent...

2017-02-21 14:26:59,047 DEBG 'rtorrent-script' stdout output:
Script started, file is /home/nobody/typescript

2017-02-21 14:26:59,064 DEBG 'rtorrent-script' stdout output:
Script done, file is /home/nobody/typescript

2017-02-21 14:26:59,074 DEBG 'start-script' stdout output:
[debug] External IP address from tunnel is ''

I dont know what is going on, only thing that I did was a docker update when I saw the container had a update

 

Thanks

Myk

 

well its the same issue again, no idea why its happening though, its as if your running an out of date version of the openvpn image, can you try the following for me and paste the output:-

 

1. ssh into unraid

2. type the following:-

docker exec <name of container> cat /home/nobody/getvpnip.sh

3. paste the output here.

Link to comment
root@Tower:~# docker exec binhex-rtorrentvpn cat /home/nobody/getvpnip.sh                                                                                                      
#!/bin/bash

# define websites to connect to in order to get external ip address
pri_external_ip_website="https://ipinfo.io/"
sec_external_ip_website="https://jsonip.com/"

# create function to get the external ip address for tunnel
get_external_ip() {

        # required to force return code from function
        set -e

        external_url="$1"

        # get external ip from website
        external_ip=$(curl --connect-timeout 5 --max-time 10 --retry 3 --retry-max-time 30 -s "${external_url}" |  jq -r '.ip')

        echo "${external_ip}"
        return 0
}

# create function to check local ip adress for tunnel is valid
check_valid_ip() {

        local_vpn_ip="$1"

        # check if the format looks right
        echo "${local_vpn_ip}" | egrep -qE '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' || return 1

        # check that each octect is less than or equal to 255
        echo "${local_vpn_ip}" | awk -F'.' '$1 <=255 && $2 <= 255 && $3 <=255 && $4 <= 255 {print "Y" } ' | grep -q Y || return 1

        return 0
}

if [[ "${DEBUG}" == "true" ]]; then
        echo "[debug] Waiting for valid IP address from tunnel..."
fi

# loop and wait until tunnel adapter local ip is valid
current_vpn_ip=""
while ! check_valid_ip "${current_vpn_ip}"
do
        sleep 0.1
        current_vpn_ip=$(ifconfig "${VPN_DEVICE_TYPE}0" 2>/dev/null | grep 'inet' | grep -P -o -m 1 '(?<=inet\s)[^\s]+')                                                       
done                                                                                                                                                                           
                                                                                                                                                                               
if [[ "${DEBUG}" == "true" ]]; then                                                                                                                                            
        echo "[debug] Valid IP address from tunnel acquired '${current_vpn_ip}'"                                                                                               
fi                                                                                                                                                                             
                                                                                                                                                                               
                                                                                                                                                                               
vpn_ip="${current_vpn_ip}"                                                                                                                                                     
# run function to get external ip address from ext site                                                                                                                        
external_ip="$(get_external_ip "${pri_external_ip_website}")"                                                                                                                  
exit_code="${?}"                                                                                                                                                               
                                                                                                                                                                               
# if function returns error then try alt ext site                                                                                                                              
if [ "${exit_code}" != "0" ]; then                                                                                                                                             
                                                                                                                                                                               
        echo "[warn] Cannot determine external IP address from '${pri_external_ip_website}', trying alternative site..."                                                       
                                                                                                                                                                               
        external_ip="$(get_external_ip "${sec_external_ip_website}")"                                                                                                          
        exit_code="${?}"                                                                                                                                                       
                                                                                                                                                                               
        if [ "${exit_code}" != "0" ]; then                                                                                                                                     
                                                                                                                                                                               
                echo "[warn] Cannot determine external IP address, possible connection issues at present."                                                                     
                                                                                                                                                                               
                external_ip="0.0.0.0"                                                                                                                                          
                return 1                                                                                                                                                       
                                                                                                                                                                               
        fi                                                                                                                                                                     
                                                                                                                                                                               
fi                                                                                                                                                                             
                                                                                                                                                                               
if [[ "${DEBUG}" == "true" ]]; then                                                                                                                                            
        echo "[debug] External IP address from tunnel is '${external_ip}'"                                                                                                     
fi                                    

 

Link to comment

ok well thats up to date, i can only assume the primary site returned "successfully" an empty page or empty ip string, and jq doesn't have correct error handling to capture the fact that it couldn't query the json. so ive just put in additional code to check for empty string returns, this should then force it to try the other site, ive been pummelling the primary site and i cant get it to fail, hmmm odd.

 

give it 30 mins from now and you should see the new image available.

Link to comment

I recently setup your delugevpn docker and it works great, today I discovered your rtorrentvpn docker image and I'm having some trouble getting it to work. It seems to get stuck somewhere around line 75 in rtorrent.sh.

 

It stops after... 


2017-03-03 12:27:30,662 DEBG 'rtorrent-script' stdout output:
[info] rTorrent not running
[info] rTorrent listening interface IP 0.0.0.0 and VPN provider IP 10.4.60.154 different, marking for reconfigure

Fri Mar  3 12:27:35 2017 /usr/bin/ip route add 184.75.221.34/32 via 172.17.0.1
Fri Mar  3 12:27:35 2017 /usr/bin/ip route add 0.0.0.0/1 via 10.4.0.1
Fri Mar  3 12:27:35 2017 /usr/bin/ip route add 128.0.0.0/1 via 10.4.0.1
Fri Mar  3 12:27:35 2017 Initialization Sequence Completed

 

My run command is:


sudo docker run -d \
    --cap-add=NET_ADMIN \
    -p 9080:9080 \
    -p 9443:9443 \
    --name=rtorrent-vpn \
    -v /data/torrents:/data \
    -v /data/torrents/.rtorrent:/config \
    -v /etc/localtime:/etc/localtime:ro \
    -e VPN_ENABLED=yes \
    -e VPN_REMOTE=america.vpn.airdns.org \
    -e VPN_PORT=443 \
    -e VPN_PROTOCOL=udp \
    -e VPN_DEVICE_TYPE=tun \
    -e VPN_PROV=airvpn \
    -e ENABLE_PRIVOXY=no \
    -e ENABLE_FLOOD=no \
    -e LAN_NETWORK=10.0.1.0/24 \
    -e NAME_SERVERS=8.8.8.8,8.8.4.4 \
    -e DEBUG=true \
    -e PHP_TZ=UTC \
    -e PUID=1007 \
    -e PGID=100 \
    binhex/arch-rtorrentvpn

 

Permissions of /config folder on parent host:


0 ✓ fryfrog@apollo /data/torrents/.rtorrent $ ls -alh
total 155K
drwxrwxr-x  4 rtorrent users   6 Mar  3 12:43 .
drwxrwxr-x 34 rtorrent users  55 Mar  3 10:28 ..
drwxrwxr-x  2 rtorrent users   3 Mar  3 12:43 openvpn
drwxrwxrwx  3 rtorrent users   3 Mar  3 12:43 rtorrent
-rw-r--r--  1 root     root  162 Mar  3 12:43 perms.txt
-rwxrwxr-x  1 rtorrent users 29K Mar  3 12:43 supervisord.log

 

And my full, redacted log file is: https://ptpb.pw/tNug

 

Edit: After docker exec /bin/bash into the container, I think it is actually waiting on getting an external IP.

 

Edit: Yup, logged in and ran...


[root@7d84a5e7d901 root]# bash -x getvpnextip.sh
+ source /root/checkvpnconn.sh google.com 443
++ check_site_hostname=google.com
++ check_site_port=443
++ counter=0
++ echo '[debug] Checking Internet connectivity...'
[debug] Checking Internet connectivity...
++ nc -z -w 1 google.com 443
++ echo '[debug] Successfully connected to hostname '\''google.com'\'' port '\''443'\'''
[debug] Successfully connected to hostname 'google.com' port '443'
+ pri_external_ip_ns=ns1.google.com
+ sec_external_ip_ns=resolver1.opendns.com
++ dig TXT +short o-o.myaddr.l.google.com @ns1.google.com
++ tr -d '"'
+ external_ip=199.19.94.16
+ exit_code=0
+ [[ 0 != 0 ]]
+ echo 199.19.94.16

 

And it seems to be firing right up. But why isn't that getting done automatically?

Edited by fryfrog
Link to comment
I recently setup your delugevpn docker and it works great, today I discovered your rtorrentvpn docker image and I'm having some trouble getting it to work. It seems to get stuck somewhere around line 75 in rtorrent.sh.
 
It stops after... 
2017-03-03 12:27:30,662 DEBG 'rtorrent-script' stdout output:[info] rTorrent not running[info] rTorrent listening interface IP 0.0.0.0 and VPN provider IP 10.4.60.154 different, marking for reconfigureFri Mar  3 12:27:35 2017 /usr/bin/ip route add 184.75.221.34/32 via 172.17.0.1Fri Mar  3 12:27:35 2017 /usr/bin/ip route add 0.0.0.0/1 via 10.4.0.1Fri Mar  3 12:27:35 2017 /usr/bin/ip route add 128.0.0.0/1 via 10.4.0.1Fri Mar  3 12:27:35 2017 Initialization Sequence Completed

 
My run command is:

sudo docker run -d \    --cap-add=NET_ADMIN \    -p 9080:9080 \    -p 9443:9443 \    --name=rtorrent-vpn \    -v /data/torrents:/data \    -v /data/torrents/.rtorrent:/config \    -v /etc/localtime:/etc/localtime:ro \    -e VPN_ENABLED=yes \    -e VPN_REMOTE=america.vpn.airdns.org \    -e VPN_PORT=443 \    -e VPN_PROTOCOL=udp \    -e VPN_DEVICE_TYPE=tun \    -e VPN_PROV=airvpn \    -e ENABLE_PRIVOXY=no \    -e ENABLE_FLOOD=no \    -e LAN_NETWORK=10.0.1.0/24 \    -e NAME_SERVERS=8.8.8.8,8.8.4.4 \    -e DEBUG=true \    -e PHP_TZ=UTC \    -e PUID=1007 \    -e PGID=100 \    binhex/arch-rtorrentvpn

 
Permissions of /config folder on parent host:

0 ✓ fryfrog@apollo /data/torrents/.rtorrent $ ls -alhtotal 155Kdrwxrwxr-x  4 rtorrent users   6 Mar  3 12:43 .drwxrwxr-x 34 rtorrent users  55 Mar  3 10:28 ..drwxrwxr-x  2 rtorrent users   3 Mar  3 12:43 openvpndrwxrwxrwx  3 rtorrent users   3 Mar  3 12:43 rtorrent-rw-r--r--  1 root     root  162 Mar  3 12:43 perms.txt-rwxrwxr-x  1 rtorrent users 29K Mar  3 12:43 supervisord.log

 
And my full, redacted log file is: https://ptpb.pw/tNug
 
Edit: After docker exec /bin/bash into the container, I think it is actually waiting on getting an external IP.
 
Edit: Yup, logged in and ran...

[root@7d84a5e7d901 root]# bash -x getvpnextip.sh+ source /root/checkvpnconn.sh google.com 443++ check_site_hostname=google.com++ check_site_port=443++ counter=0++ echo '[debug] Checking Internet connectivity...'[debug] Checking Internet connectivity...++ nc -z -w 1 google.com 443++ echo '[debug] Successfully connected to hostname '\''google.com'\'' port '\''443'\'''[debug] Successfully connected to hostname 'google.com' port '443'+ pri_external_ip_ns=ns1.google.com+ sec_external_ip_ns=resolver1.opendns.com++ dig TXT +short o-o.myaddr.l.google.com @ns1.google.com++ tr -d '"'+ external_ip=199.19.94.16+ exit_code=0+ [[ 0 != 0 ]]+ echo 199.19.94.16


 
And it seems to be firing right up. But why isn't that getting done automatically?


This was fixed last night, try pulling down the latest image.

Sent from my SM-G900F using Tapatalk

Link to comment

Where there any recent changes / fixes for flood? I set it to both, but it doesn't start. Exec'ing in and running flood.sh in ~nobody works.

 

Edit: It was permissions on the /config/flood/db/ directory being root:root instead of the uid/gid set in the run command.

Edited by fryfrog
Link to comment

Hello,

 

It looks like I have the same issue than "Hansel" during installation :

 

01:46:54        2017-03-09 02:46:54,448 DEBG 'start-script' stdout output:
    stdout
01:46:54
--------------------
stdout
01:46:54

 
stdout
01:46:54
2017-03-09 02:46:54,458 DEBG 'start-script' stdout output:
stdout
01:46:54
[info] iptable_mangle support detected, adding fwmark for tables
stdout
01:46:54

 
stdout
01:46:54
2017-03-09 02:46:54,519 DEBG 'start-script' stderr output:
stdout
01:46:54
iptables: No chain/target/match by that name.
stdout
01:46:54

 
stdout
01:46:54
2017-03-09 02:46:54,527 DEBG 'start-script' stderr output:
stdout
01:46:54
iptables: No chain/target/match by that name.
stdout
01:46:54

 
stdout
01:46:54
2017-03-09 02:46:54,535 DEBG 'start-script' stderr output:
stdout
01:46:54
iptables: No chain/target/match by that name.
stdout
01:46:54

 
stdout
01:46:54
2017-03-09 02:46:54,543 DEBG 'start-script' stderr output:
stdout
01:46:54
iptables: No chain/target/match by that name.
stdout
01:46:54

 
stdout
01:46:54
2017-03-09 02:46:54,572 DEBG 'start-script' stdout output:
stdout
01:46:54
[info] iptables defined as follows...
stdout
01:46:54
--------------------
stdout
01:46:54

 
stdout
01:46:54
2017-03-09 02:46:54,576 DEBG 'start-script' stdout output:
stdout
01:46:54
-P INPUT DROP
stdout
01:46:54
-P FORWARD ACCEPT
stdout
01:46:54
-P OUTPUT DROP
stdout
01:46:54
-A INPUT -i tun0 -j ACCEPT

 

 

Then I can't access to the web page, does anyone find a way to fix it ?

 

Here is my installation command, do you find something wrong ?

docker run -d \
    --cap-add=NET_ADMIN \
    -p 9080:9080 \
    -p 9443:9443 \
    -p 8118:8118 \
    --name=Rtorrent-OpenVPN \
    -v /volume2/RuTorrent:/data \
    -v /volume2/docker/Rutorrent-OpenVPN:/config \
    -v /etc/localtime:/etc/localtime:ro \
    -e VPN_ENABLED=yes \
    -e VPN_USER=xxx \
    -e VPN_PASS=xxx \
    -e VPN_REMOTE=fr1.vpn.goldenfrog.com \
    -e VPN_PORT=1194 \
    -e VPN_PROTOCOL=UDP \
    -e VPN_DEVICE_TYPE=tun \
    -e VPN_PROV=custom \
    -e STRONG_CERTS=no \
    -e ENABLE_PRIVOXY=no \
    -e ENABLE_FLOOD=no \
    -e LAN_NETWORK=192.168.1.0/24 \
    -e NAME_SERVERS=8.8.8.8,8.8.4.4 \
    -e DEBUG=false \
    -e PHP_TZ=UTC \
    -e PUID=1038 \
    -e PGID=100 \
    binhex/arch-rtorrentvpn

 

Thank you.

Link to comment
9 hours ago, V.. said:

Hello,

 

It looks like I have the same issue than "Hansel" during installation :

 


01:46:54        2017-03-09 02:46:54,448 DEBG 'start-script' stdout output:
    stdout
01:46:54

--------------------
stdout
01:46:54


 
stdout
01:46:54

2017-03-09 02:46:54,458 DEBG 'start-script' stdout output:
stdout
01:46:54

[info] iptable_mangle support detected, adding fwmark for tables
stdout
01:46:54


 
stdout
01:46:54

2017-03-09 02:46:54,519 DEBG 'start-script' stderr output:
stdout
01:46:54

iptables: No chain/target/match by that name.
stdout
01:46:54


 
stdout
01:46:54

2017-03-09 02:46:54,527 DEBG 'start-script' stderr output:
stdout
01:46:54

iptables: No chain/target/match by that name.
stdout
01:46:54


 
stdout
01:46:54

2017-03-09 02:46:54,535 DEBG 'start-script' stderr output:
stdout
01:46:54

iptables: No chain/target/match by that name.
stdout
01:46:54


 
stdout
01:46:54

2017-03-09 02:46:54,543 DEBG 'start-script' stderr output:
stdout
01:46:54

iptables: No chain/target/match by that name.
stdout
01:46:54


 
stdout
01:46:54

2017-03-09 02:46:54,572 DEBG 'start-script' stdout output:
stdout
01:46:54

[info] iptables defined as follows...
stdout
01:46:54

--------------------
stdout
01:46:54


 
stdout
01:46:54

2017-03-09 02:46:54,576 DEBG 'start-script' stdout output:
stdout
01:46:54

-P INPUT DROP
stdout
01:46:54

-P FORWARD ACCEPT
stdout
01:46:54

-P OUTPUT DROP
stdout
01:46:54

-A INPUT -i tun0 -j ACCEPT

 

 

Then I can't access to the web page, does anyone find a way to fix it ?

 

Im going to assume you're a Synology user, as you mentioned user Hansel, have a look at this post, as its by a fellow Synology user, its for the DelugeVPN image, but the modules required will be the same:-https://forums.lime-technology.com/topic/44109-support-binhex-delugevpn/?do=findComment&comment=542434

 

Link to comment

That post came out formatted badly, here it is again:-

 

 

Im going to assume you're a Synology user, as you mentioned user Hansel, have a look at this post, as its by a fellow Synology user, its for the DelugeVPN image, but the modules required will be the same:-

 

Edited by binhex
Link to comment

I'm now having issues connecting to rTorrent after an update today.  I'm an UnRaid user that switched to this until SickRage figures out the issue w/ Deluge. Here is my log output after I deleted the image and rebuilt from template.

 

ErrorWarningSystemArrayLogin


2017-03-10 10:28:07.479694 [info] Starting Supervisor...
2017-03-10 10:28:07,915 CRIT Set uid to user 0
2017-03-10 10:28:07,915 INFO Included extra file "/etc/supervisor/conf.d/rtorrent.conf" during parsing
2017-03-10 10:28:07,924 INFO supervisord started with pid 7
2017-03-10 10:28:08,927 INFO spawned: 'flood-script' with pid 119
2017-03-10 10:28:08,929 INFO spawned: 'start-script' with pid 120
2017-03-10 10:28:08,931 INFO spawned: 'rtorrent-script' with pid 121
2017-03-10 10:28:08,933 INFO spawned: 'rutorrent-script' with pid 122
2017-03-10 10:28:08,936 INFO spawned: 'privoxy-script' with pid 123
2017-03-10 10:28:08,938 DEBG 'flood-script' stdout output:
[info] Flood not enabled, skipping starting Flood Web UI

2017-03-10 10:28:08,938 INFO success: flood-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2017-03-10 10:28:08,939 INFO success: start-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2017-03-10 10:28:08,939 INFO success: rtorrent-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2017-03-10 10:28:08,940 INFO success: rutorrent-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2017-03-10 10:28:08,940 INFO success: privoxy-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2017-03-10 10:28:08,940 DEBG fd 8 closed, stopped monitoring <POutputDispatcher at 46963474132792 for <Subprocess at 46963474323576 with name flood-script in state RUNNING> (stdout)>
2017-03-10 10:28:08,940 DEBG fd 10 closed, stopped monitoring <POutputDispatcher at 46963474132648 for <Subprocess at 46963474323576 with name flood-script in state RUNNING> (stderr)>
2017-03-10 10:28:08,941 INFO exited: flood-script (exit status 0; expected)
2017-03-10 10:28:08,941 DEBG received SIGCLD indicating a child quit
2017-03-10 10:28:08,941 DEBG 'start-script' stdout output:
[info] VPN is enabled, beginning configuration of VPN

2017-03-10 10:28:08,943 DEBG 'rtorrent-script' stdout output:
[info] rTorrent config file already exists, skipping copy

2017-03-10 10:28:08,945 DEBG 'rtorrent-script' stdout output:
[info] VPN is enabled, checking VPN tunnel local ip is valid

2017-03-10 10:28:08,957 DEBG 'start-script' stdout output:
[info] VPN default certs defined, copying to /config/openvpn/...

2017-03-10 10:28:08,964 DEBG 'start-script' stdout output:
[info] VPN config file (ovpn extension) is located at /config/openvpn/openvpn.ovpn

2017-03-10 10:28:08,967 DEBG 'start-script' stderr output:
dos2unix: converting file /config/openvpn/openvpn.ovpn to Unix format...

2017-03-10 10:28:09,039 DEBG 'start-script' stdout output:
[info] Default route for container is 172.17.0.1

2017-03-10 10:28:09,045 DEBG 'start-script' stdout output:
[info] Adding 8.8.8.8 to /etc/resolv.conf

2017-03-10 10:28:09,051 DEBG 'start-script' stdout output:
[info] Adding 37.235.1.174 to /etc/resolv.conf

2017-03-10 10:28:09,056 DEBG 'start-script' stdout output:
[info] Adding 8.8.4.4 to /etc/resolv.conf

2017-03-10 10:28:09,062 DEBG 'start-script' stdout output:
[info] Adding 37.235.1.177 to /etc/resolv.conf

2017-03-10 10:28:09,073 DEBG 'start-script' stdout output:
[info] Adding 192.168.1.0/24 as route via docker eth0

2017-03-10 10:28:09,074 DEBG 'start-script' stdout output:
[info] ip route defined as follows...
--------------------

2017-03-10 10:28:09,075 DEBG 'start-script' stdout output:
default via 172.17.0.1 dev eth0
172.17.0.0/16 dev eth0 proto kernel scope link src 172.17.0.7
192.168.1.0/24 via 172.17.0.1 dev eth0

2017-03-10 10:28:09,075 DEBG 'start-script' stdout output:
--------------------

2017-03-10 10:28:09,083 DEBG 'start-script' stdout output:
[info] iptable_mangle support detected, adding fwmark for tables

2017-03-10 10:28:09,108 DEBG 'start-script' stdout output:
[info] Docker network defined as 172.17.0.0/16

2017-03-10 10:28:09,165 DEBG 'start-script' stdout output:
[info] iptables defined as follows...
--------------------

2017-03-10 10:28:09,166 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 1198 -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 -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.17.0.0/16 -i eth0 -p tcp -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 1198 -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 -d 192.168.1.0/24 -o eth0 -p tcp -m tcp --sport 5000 -j ACCEPT
-A OUTPUT -s 172.17.0.0/16 -d 192.168.1.0/24 -o eth0 -p tcp -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

2017-03-10 10:28:09,166 DEBG 'start-script' stdout output:
--------------------

2017-03-10 10:28:09,167 DEBG 'start-script' stdout output:
[info] Starting OpenVPN...

2017-03-10 10:28:09,185 DEBG 'start-script' stdout output:
[info] OpenVPN started

2017-03-10 10:28:11,175 DEBG 'rtorrent-script' stdout output:
[info] rTorrent not running
[info] rTorrent listening interface IP 0.0.0.0 and VPN provider IP 10.16.10.6 different, marking for reconfigure

2017-03-10 10:28:11,176 DEBG 'privoxy-script' stdout output:
[info] Configuring Privoxy...

2017-03-10 10:28:11,450 DEBG 'privoxy-script' stdout output:
[info] All checks complete, starting Privoxy...

2017-03-10 10:28:11,451 DEBG 'privoxy-script' stderr output:
2017-03-10 10:28:11.451 2abda0ef0e00 Info: Privoxy version 3.0.26

2017-03-10 10:28:11.451 2abda0ef0e00 Info: Program name: /usr/bin/privoxy

2017-03-10 10:28:17,888 DEBG 'rtorrent-script' stdout output:
[info] Removing any rtorrent session lock files left over from the previous run...

2017-03-10 10:28:17,892 DEBG 'rtorrent-script' stdout output:
[info] Attempting to start rTorrent...

2017-03-10 10:28:17,895 DEBG 'rtorrent-script' stdout output:
Script started, file is /home/nobody/typescript

2017-03-10 10:28:17,921 DEBG 'rtorrent-script' stdout output:
Script done, file is /home/nobody/typescript

 

Link to comment

Hello,

Thank you for you reply and sorry for my badly formatted post (my first post).

 

I tried to instal as following :

- Launch following :

sudo insmod /lib/modules/tun.ko
sudo insmod /lib/modules/iptable_mangle.ko

- Launch your command text adjusted with my parameters (without "--cap-add=NET_ADMIN \")

- Stop container

- Put openvpn key

- Add "Execute container using high privilege"

- Launch container again

 

But unfortunately it still show the same error, is there something wrong ?

What is the command for "Execute container using high privilege" that I could add to your command text ?

 

Thank you.

Link to comment

That actually worked for me, but I'm getting one more error that I'm not sure how to solve for.  For reference, this doesn't happen on the Deluge container which works perfectly.

 

Anyone know how I can solve for this:

 

 

/usr/bin/nginx: error while loading shared libraries: libdl.so.2: cannot open shared object file: Permission denied

 

If I disable apparmor it does work, so I guess I need to edit a profile maybe?

 

Any help appreciated.

 

Here's the revelant log section:

 

 

Quote

2017-03-10 00:01:05,040 DEBG 'rtorrent-script' stdout output:
[info] Waiting for rTorrent and nginx to start...

2017-03-10 00:01:05,546 DEBG 'rutorrent-script' stdout output:
[info] rtorrent started, setting up rutorrent...

2017-03-10 00:01:05,547 DEBG 'rutorrent-script' stdout output:
[info] Setting PHP timezone to Australia/Melbourne...

2017-03-10 00:01:05,832 DEBG 'rutorrent-script' stdout output:
[info] nginx cert files already exists, skipping copy

2017-03-10 00:01:05,866 DEBG 'rutorrent-script' stdout output:
[info] nginx security file already exists, skipping copy

2017-03-10 00:01:05,895 DEBG 'rutorrent-script' stdout output:
[info] nginx config file already exists, skipping copy

2017-03-10 00:01:05,999 DEBG 'rutorrent-script' stdout output:
[info] rutorrent conf folder already exists, skipping copy

2017-03-10 00:01:06,045 DEBG 'rutorrent-script' stdout output:
[info] rutorrent share folder already exists, skipping copy

2017-03-10 00:01:06,134 DEBG 'rutorrent-script' stdout output:
[info] copying rutorrent plugins to container...

2017-03-10 00:01:17,032 DEBG 'rutorrent-script' stdout output:
[info] starting php-fpm...

2017-03-10 00:01:18,402 DEBG 'rutorrent-script' stdout output:
[info] starting nginx...

2017-03-10 00:01:18,546 DEBG 'rutorrent-script' stderr output:
/usr/bin/nginx: error while loading shared libraries: libdl.so.2: cannot open shared object file: Permission denied

2017-03-10 00:01:18,547 DEBG fd 26 closed, stopped monitoring <POutputDispatcher at 140684505449536for <Subprocess at 140684505606912 with name rutorrent-script in state RUNNING> (stderr)>
2017-03-10 00:01:18,548 DEBG fd 22 closed, stopped monitoring <POutputDispatcher at 140684505449608for <Subprocess at 140684505606912 with name rutorrent-script in state RUNNING> (stdout)>
2017-03-10 00:01:18,549 INFO exited: rutorrent-script (exit status 127; not expected)
2017-03-10 00:01:18,550 DEBG received SIGCLD indicating a child quit
2017-03-10 00:05:00,469 WARN received SIGTERM indicating exit request
2017-03-10 00:05:00,470 INFO waiting for start-script, rtorrent-script to die
2017-03-10 00:05:02,477 DEBG killing rtorrent-script (pid 116) with signal SIGTERM
2017-03-10 00:05:02,478 DEBG fd 17 closed, stopped monitoring <POutputDispatcher at 140684505451048for <Subprocess at 140684505606408 with name rtorrent-script in state STOPPING> (stdout)>
2017-03-10 00:05:02,479 DEBG fd 21 closed, stopped monitoring <POutputDispatcher at 140684505450976for <Subprocess at 140684505606408 with name rtorrent-script in state STOPPING> (stderr)>
2017-03-10 00:05:02,479 INFO stopped: rtorrent-script (terminated by SIGTERM)
2017-03-10 00:05:02,480 DEBG received SIGCLD indicating a child quit
2017-03-10 00:05:02,481 DEBG killing start-script (pid 115) with signal SIGTERM
2017-03-10 00:05:02,482 DEBG fd 16 closed, stopped monitoring <POutputDispatcher at 140684505452488for <Subprocess at 140684505606624 with name start-script in state STOPPING> (stderr)>
2017-03-10 00:05:02,483 DEBG fd 11 closed, stopped monitoring <POutputDispatcher at 140684505450688for <Subprocess at 140684505606624 with name start-script in state STOPPING> (stdout)>
2017-03-10 00:05:02,483 INFO stopped: start-script (terminated by SIGTERM)
2017-03-10 00:05:02,484 DEBG received SIGCLD indicating a child quit

 

Edited by Hansel
Link to comment
2 hours ago, V.. said:

Dear Hansel,

 

I tried again today and it still don't work.

I tried the enclosed command lines to run container, could you tell me if yours looks like the same ?

 

Regards.

V.. command.txt

 

Are you on a Synology?  If so don't use the command line, use the GUI.

 

Also are you sure 172.17.0.0/16 is your internal lan? 

 

Also it's possible your VPN isn't supported, I've no idea though to be honest.

 

 

Link to comment

THank you for your help.

 

I confirm, I am on Synology DS916+ (DSM 6.0.2-8451 Update 9).

 

I tried through the GUI (except for localtime line that I can't do) but result is the same : "iptables: No chain/target/match by that name."

172.17.0.0/16 is my docker LAN, I tried with my local LAN also : 192.168.1.0.

 

If you have an idea, I take it with pleasure :-)

I would love to succed to get RUtorrent and VPN

Link to comment
1 minute ago, V.. said:

THank you for your help.

 

I confirm, I am on Synology DS916+ (DSM 6.0.2-8451 Update 9).

 

I tried through the GUI (except for localtime line that I can't do) but result is the same : "iptables: No chain/target/match by that name."

172.17.0.0/16 is my docker LAN, I tried with my local LAN also : 192.168.1.0.

 

If you have an idea, I take it with pleasure :-)

I would love to succed to get RUtorrent and VPN

 

Ok, definitely do it through the GUI.  For localtime just use PHP_TZ as the variable and then UTC as the value.

Also enable the "Execute Container using High Privilege" option in the container GUI.

 

Your LAN should be your local lan.  Try 192.168.1.0/24 (assuming your LAN goes from 192.168.1.1 to 192.168.1.254).

 

Once you've set that up, then follow the instructions to set up a scheduled task on the synology as described in that post above, that's what I did.  Reboot after you've set it up then give it a try.

 

 

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