I've been having this issue for almost 2 weeks now. The container will connect to PIA just fine then lose connection within 10 minutes.
STARTING TRANSMISSION
Provider PIA has a script for automatic port forwarding. Will run it now.
If you want to disable this, set environment variable DISABLE_PORT_UPDATER=yes
Transmission startup script complete.
Sun Nov 8 06:47:14 2020 WARNING: OpenVPN was configured to add an IPv6 route over tun0. However, no IPv6 has been configured for this interface, therefore the route installation may fail or may not work as expected.
Sun Nov 8 06:47:14 2020 Initialization Sequence Completed
yes: Broken pipe
port is 38149
yes: Broken pipe
port is 38149
the port has been bound to 38149 Sun Nov 8 14:47:20 UTC 2020
transmission auth not required
waiting for transmission to become responsive
transmission became responsive
463 100% 62.28 GB Unknown 0.0 0.0 0.0 Idle Terror.In.Resonance.S01.2014.1080p.REMUX.Dual-Audio.TrueHD - REZO
Sum: 28.76 TB 0.0 0.0
setting transmission port to 38149
localhost:9091/transmission/rpc/ responded: "success"
Checking port...
Port is open: Yes
initial setup complete!
waiting for rebind loop.................
token expiry 1610246818
remaining = 5399961
Port is open: Yes
initial setup complete!
waiting for rebind loop.................
token expiry 1610246818
remaining = 5399961
Sun Nov 8 06:54:38 2020 SIGUSR1[hard,] received, process restarting
Sun Nov 8 06:54:38 2020 SIGUSR1[hard,] received, process restarting
Sun Nov 8 06:54:43 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sun Nov 8 06:54:48 2020 RESOLVE: Cannot resolve host address: ca-toronto.privacy.network:1198 (Try again)
Sun Nov 8 06:54:53 2020 RESOLVE: Cannot resolve host address: ca-toronto.privacy.network:1198 (Try again)
Sun Nov 8 06:54:53 2020 Could not determine IPv4/IPv6 protocol
Sun Nov 8 06:54:53 2020 SIGUSR1[soft,init_instance] received, process restarting
Sun Nov 8 06:54:58 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sun Nov 8 06:55:03 2020 RESOLVE: Cannot resolve host address: ca-toronto.privacy.network:1198 (Try again)
Sun Nov 8 06:55:03 2020 RESOLVE: Cannot resolve host address: ca-toronto.privacy.network:1198 (Try again)
Sun Nov 8 06:55:08 2020 RESOLVE: Cannot resolve host address: ca-toronto.privacy.network:1198 (Try again)
Sun Nov 8 06:55:08 2020 Could not determine IPv4/IPv6 protocol
Sun Nov 8 06:55:08 2020 SIGUSR1[soft,init_instance] received, process restarting
Sun Nov 8 06:55:13 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sun Nov 8 06:55:18 2020 RESOLVE: Cannot resolve host address: ca-toronto.privacy.network:1198 (Try again)
Sun Nov 8 06:55:23 2020 RESOLVE: Cannot resolve host address: ca-toronto.privacy.network:1198 (Try again)
Sun Nov 8 06:55:23 2020 Could not determine IPv4/IPv6 protocol
Sun Nov 8 06:55:23 2020 SIGUSR1[soft,init_instance] received, process restarting
I thought the issue was on my end an went as far as replacing my router and reinstalling unraid. Could someone point me in the right direction please?
@rezo609 have you tried this?:
https://haugene.github.io/docker-transmission-openvpn/known-issues/#use_google_dns_servers
I'm having the same broken pipe, but for my issue I was able to manually add more trackers and get the torrent to download. Is anyone else having issues with rarbg trackers?
I've been having this issue for almost 2 weeks now. The container will connect to PIA just fine then lose connection within 10 minutes.
STARTING TRANSMISSION
Provider PIA has a script for automatic port forwarding. Will run it now.
If you want to disable this, set environment variable DISABLE_PORT_UPDATER=yes
Transmission startup script complete.
Sun Nov 8 06:47:14 2020 WARNING: OpenVPN was configured to add an IPv6 route over tun0. However, no IPv6 has been configured for this interface, therefore the route installation may fail or may not work as expected.Sun Nov 8 06:47:14 2020 Initialization Sequence Completed
yes: Broken pipe
port is 38149yes: Broken pipe
port is 38149
the port has been bound to 38149 Sun Nov 8 14:47:20 UTC 2020
transmission auth not required
waiting for transmission to become responsive
transmission became responsive
463 100% 62.28 GB Unknown 0.0 0.0 0.0 Idle Terror.In.Resonance.S01.2014.1080p.REMUX.Dual-Audio.TrueHD - REZO
Sum: 28.76 TB 0.0 0.0
setting transmission port to 38149
localhost:9091/transmission/rpc/ responded: "success"
Checking port...
Port is open: Yesinitial setup complete!
waiting for rebind loop.................
token expiry 1610246818
remaining = 5399961
Port is open: Yesinitial setup complete!
waiting for rebind loop.................
token expiry 1610246818
remaining = 5399961
Sun Nov 8 06:54:38 2020 SIGUSR1[hard,] received, process restarting
Sun Nov 8 06:54:38 2020 SIGUSR1[hard,] received, process restarting
Sun Nov 8 06:54:43 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sun Nov 8 06:54:48 2020 RESOLVE: Cannot resolve host address: ca-toronto.privacy.network:1198 (Try again)
Sun Nov 8 06:54:53 2020 RESOLVE: Cannot resolve host address: ca-toronto.privacy.network:1198 (Try again)
Sun Nov 8 06:54:53 2020 Could not determine IPv4/IPv6 protocol
Sun Nov 8 06:54:53 2020 SIGUSR1[soft,init_instance] received, process restarting
Sun Nov 8 06:54:58 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sun Nov 8 06:55:03 2020 RESOLVE: Cannot resolve host address: ca-toronto.privacy.network:1198 (Try again)
Sun Nov 8 06:55:03 2020 RESOLVE: Cannot resolve host address: ca-toronto.privacy.network:1198 (Try again)
Sun Nov 8 06:55:08 2020 RESOLVE: Cannot resolve host address: ca-toronto.privacy.network:1198 (Try again)
Sun Nov 8 06:55:08 2020 Could not determine IPv4/IPv6 protocol
Sun Nov 8 06:55:08 2020 SIGUSR1[soft,init_instance] received, process restarting
Sun Nov 8 06:55:13 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sun Nov 8 06:55:18 2020 RESOLVE: Cannot resolve host address: ca-toronto.privacy.network:1198 (Try again)
Sun Nov 8 06:55:23 2020 RESOLVE: Cannot resolve host address: ca-toronto.privacy.network:1198 (Try again)
Sun Nov 8 06:55:23 2020 Could not determine IPv4/IPv6 protocol
Sun Nov 8 06:55:23 2020 SIGUSR1[soft,init_instance] received, process restartingI thought the issue was on my end an went as far as replacing my router and reinstalling unraid. Could someone point me in the right direction please?
I'm having similar issue. Had to create /script/transmission-post-start.sh with following context, it's working now, however would need to test it longer.
#!/bin/bash
echo -e "nameserver 10.0.0.242\n$(cat /etc/resolv.conf)" > /etc/resolv.conf
echo -e "nameserver 1.1.1.1" >> /etc/resolv.conf
echo -e "37.235.96.26 uk-london.privacy.network" >> /etc/hosts
1) I'm pushing PIA DNS at the top of the list so it's used as a default DNS server. Cloudflare DNS is in the bottom of the file as a reserve one.
2) Adding UK London IP address (taken from PIA IP ovpn config) to hosts so it's used without need for DNS server request.
Exact same issue and log, tried OVERRIDE_DNS but does not work. Similar issue: https://github.com/haugene/docker-transmission-openvpn/issues/1435
I'm having similar issue. Had to create /script/transmission-post-start.sh with following context, it's working now, however would need to test it longer.
#!/bin/bash echo -e "nameserver 10.0.0.242\n$(cat /etc/resolv.conf)" > /etc/resolv.conf echo -e "nameserver 1.1.1.1" >> /etc/resolv.conf echo -e "37.235.96.26 uk-london.privacy.network" >> /etc/hosts
- I'm pushing PIA DNS at the top of the list so it's used as a default DNS server. Cloudflare DNS is in the bottom of the file as a reserve one.
- Adding UK London IP address (taken from PIA IP ovpn config) to hosts so it's used without need for DNS server request.
Tried this, still the same, will keep restart after 10 mins...
setting transmission port to 59399
localhost:9091/transmission/rpc/ responded: "success"
Checking port...
Port is open: Yes
initial setup complete!
waiting for rebind loop.................
token expiry 1610421869
remaining = 5399959
the port has been bound to 59399 Tue Nov 10 15:55:10 UTC 2020
Tue Nov 10 16:04:28 2020 event_wait : Interrupted system call (code=4)
Tue Nov 10 16:04:28 2020 SIGUSR1[hard,] received, process restarting
Tue Nov 10 16:04:33 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Tue Nov 10 16:04:33 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]172.98.71.42:1198
Tue Nov 10 16:04:33 2020 UDP link local: (not bound)
Tue Nov 10 16:04:33 2020 UDP link remote: [AF_INET]172.98.71.42:1198
Tue Nov 10 16:05:33 2020 [UNDEF] Inactivity timeout (--ping-restart), restarting
Tue Nov 10 16:05:33 2020 SIGUSR1[soft,ping-restart] received, process restarting
Tue Nov 10 16:05:38 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Tue Nov 10 16:05:38 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]172.98.71.42:1198
Tue Nov 10 16:05:38 2020 UDP link local: (not bound)
Tue Nov 10 16:05:38 2020 UDP link remote: [AF_INET]172.98.71.42:1198
Tue Nov 10 16:05:53 2020 event_wait : Interrupted system call (code=4)
Tue Nov 10 16:05:53 2020 SIGUSR1[hard,] received, process restarting
Tue Nov 10 16:05:58 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Tue Nov 10 16:05:58 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]172.98.71.42:1198
Tue Nov 10 16:05:58 2020 UDP link local: (not bound)
Tue Nov 10 16:05:58 2020 UDP link remote: [AF_INET]172.98.71.42:1198
Tue Nov 10 16:06:58 2020 [UNDEF] Inactivity timeout (--ping-restart), restarting
Tue Nov 10 16:06:58 2020 SIGUSR1[soft,ping-restart] received, process restarting
@YujiShen Can you try now using the 3.1 tag?
@YujiShen Can you try now using the 3.1 tag?
Thanks for update. Trying it now!
I thought the issue was on my end an went as far as replacing my router and reinstalling unraid. Could someone point me in the right direction please?
I'm having similar issue. Had to create /script/transmission-post-start.sh with following context, it's working now, however would need to test it longer.
#!/bin/bash echo -e "nameserver 10.0.0.242\n$(cat /etc/resolv.conf)" > /etc/resolv.conf echo -e "nameserver 1.1.1.1" >> /etc/resolv.conf echo -e "37.235.96.26 uk-london.privacy.network" >> /etc/hosts
- I'm pushing PIA DNS at the top of the list so it's used as a default DNS server. Cloudflare DNS is in the bottom of the file as a reserve one.
- Adding UK London IP address (taken from PIA IP ovpn config) to hosts so it's used without need for DNS server request.
It's been several hours and I had the issue again, so my solution is not working.
@haugene will try 3.1. Thanks
@haugene Stay strong for last several hours! Great update! Thanks for the fix!
I modified the DNS to PIA which seemed to work for a while but then occasionally, I would still get the same disconnects.
Yesterday I updated to the 3.1 release and it seems to have resolved this issue for me from what I can tell so far...running for 24 hours and not a single disconnect in the logs. I'll keep monitoring but so far it's looking good
I am having this issue on the :dev tag, typically works for 3-4 hours, no issues, then the following repeats over and over. Switching back to 3.1 solves the issue
`Tue Nov 24 16:23:41 MST 2020: bindPort error
the has been a fatal_error
Tue Nov 24 16:25:11 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Tue Nov 24 16:25:16 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Tue Nov 24 16:25:21 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Tue Nov 24 16:25:21 2020 Could not determine IPv4/IPv6 protocol
Tue Nov 24 16:25:21 2020 SIGUSR1[soft,init_instance] received, process restarting
Tue Nov 24 16:30:21 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Tue Nov 24 16:30:26 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Tue Nov 24 16:30:31 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Tue Nov 24 16:30:31 2020 Could not determine IPv4/IPv6 protocol
Tue Nov 24 16:30:31 2020 SIGUSR1[soft,init_instance] received, process restarting
Tue Nov 24 16:35:31 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Tue Nov 24 16:35:36 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Tue Nov 24 16:35:41 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Tue Nov 24 16:35:41 2020 Could not determine IPv4/IPv6 protocol
Tue Nov 24 16:35:41 2020 SIGUSR1[soft,init_instance] received, process restarting
Tue Nov 24 16:40:41 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Tue Nov 24 16:40:46 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Tue Nov 24 16:40:51 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Tue Nov 24 16:40:51 2020 Could not determine IPv4/IPv6 protocol
Tue Nov 24 16:40:51 2020 SIGUSR1[soft,init_instance] received, process restarting
Tue Nov 24 16:45:51 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Tue Nov 24 16:45:56 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Tue Nov 24 16:46:01 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Tue Nov 24 16:46:01 2020 Could not determine IPv4/IPv6 protocol
Tue Nov 24 16:46:01 2020 SIGUSR1[soft,init_instance] received, process restarting
Tue Nov 24 16:51:01 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Tue Nov 24 16:51:06 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Tue Nov 24 16:51:11 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Tue Nov 24 16:51:11 2020 Could not determine IPv4/IPv6 protocol
Tue Nov 24 16:51:11 2020 SIGUSR1[soft,init_instance] received, process restarting
curl: (28) Connection timed out after 15000 milliseconds
curl: (28) Connection timed out after 15001 milliseconds
curl: (28) Connection timed out after 15001 milliseconds
curl: (28) Connection timed out after 15000 milliseconds
curl: (28) Connection timed out after 15000 milliseconds
Tue Nov 24 16:56:11 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Tue Nov 24 16:56:16 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Tue Nov 24 16:56:21 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Tue Nov 24 16:56:21 2020 Could not determine IPv4/IPv6 protocol
Tue Nov 24 16:56:21 2020 SIGUSR1[soft,init_instance] received, process restarting
curl: (28) Connection timed out after 15000 milliseconds
Tue Nov 24 16:56:26 MST 2020: bindPort error
the has been a fatal_error
Tue Nov 24 17:01:21 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Tue Nov 24 17:01:26 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Tue Nov 24 17:01:31 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Tue Nov 24 17:01:31 2020 Could not determine IPv4/IPv6 protocol
Tue Nov 24 17:01:31 2020 SIGUSR1[soft,init_instance] received, process restarting
Tue Nov 24 17:06:31 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Tue Nov 24 17:06:36 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Tue Nov 24 17:06:41 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Tue Nov 24 17:06:41 2020 Could not determine IPv4/IPv6 protocol
Tue Nov 24 17:06:41 2020 SIGUSR1[soft,init_instance] received, process restarting
Tue Nov 24 17:11:41 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Tue Nov 24 17:11:46 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Tue Nov 24 17:11:51 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Tue Nov 24 17:11:51 2020 Could not determine IPv4/IPv6 protocol
Tue Nov 24 17:11:51 2020 SIGUSR1[soft,init_instance] received, process restarting
Tue Nov 24 17:16:51 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Tue Nov 24 17:16:56 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Tue Nov 24 17:17:01 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Tue Nov 24 17:17:01 2020 Could not determine IPv4/IPv6 protocol
Tue Nov 24 17:17:01 2020 SIGUSR1[soft,init_instance] received, process restarting
Tue Nov 24 17:22:01 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Tue Nov 24 17:22:06 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Tue Nov 24 17:22:11 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Tue Nov 24 17:22:11 2020 Could not determine IPv4/IPv6 protocol
Tue Nov 24 17:22:11 2020 SIGUSR1[soft,init_instance] received, process restarting
curl: (28) Connection timed out after 15000 milliseconds
curl: (28) Connection timed out after 15000 milliseconds
Tue Nov 24 17:27:11 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Tue Nov 24 17:27:16 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Tue Nov 24 17:27:21 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Tue Nov 24 17:27:21 2020 Could not determine IPv4/IPv6 protocol
Tue Nov 24 17:27:21 2020 SIGUSR1[soft,init_instance] received, process restarting
curl: (28) Connection timed out after 15000 milliseconds
curl: (28) Connection timed out after 15000 milliseconds
curl: (28) Connection timed out after 15001 milliseconds
curl: (28) Connection timed out after 15001 milliseconds
Tue Nov 24 17:29:11 MST 2020: bindPort error`
Seems like a DNS issue @clowrym. Have you seen the docs on running with Google DNS servers?
If the --dns flags don't work you can also try setting:
OVERRIDE_DNS_1=8.8.8.8
OVERRIDE_DNS_2=8.8.4.4
That will override it directly in /etc/resolv.conf
Please share your docker run / docker-compose setup if you still have issues. It's hard to know what's going on without it. Or complete logs, they should contain which revision you're running at.
Sorry, That was my bad, Run command below, I'll add the override you noted and see if the issue continues
`Command:
root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='Transmission_VPN_V3_testing' --net='bridge' --privileged=true -e TZ="America/Denver" -e HOST_OS="Unraid" -e 'OPENVPN_USERNAME'='XXXXXXXX' -e 'OPENVPN_PASSWORD'='XXXXXXX' -e 'OPENVPN_CONFIG'='switzerland' -e 'OPENVPN_PROVIDER'='PIA' -e 'LOCAL_NETWORK'='192.168.0.0/24' -e 'TRANSMISSION_RPC_USERNAME'='XXXXXXX' -e 'TRANSMISSION_RPC_PASSWORD'='XXXXXXX' -e 'OPENVPN_OPTS'='--inactive 3600 --ping 10 --ping-exit 60 --mute-replay-warnings' -e 'PUID'='99' -e 'PGID'='100' -e 'TRANSMISSION_DOWNLOAD_DIR'='/downloads' -e 'TRANSMISSION_RPC_AUTHENTICATION_REQUIRED'='true' -e 'TRANSMISSION_DOWNLOAD_QUEUE_SIZE'='15' -e 'TRANSMISSION_CACHE_SIZE_MB'='10' -e 'TRANSMISSION_INCOMPLETE_DIR'='/downloads/incomplete' -e 'TRANSMISSION_WEB_UI'='transmission-web-control' -e 'GLOBAL_APPLY_PERMISSIONS'='false' -e 'WEBPROXY_ENABLED'='false' -e 'PIA_OPENVPN_CONFIG_BUNDLE'='openvpn-tcp' -p '9091:9091/tcp' -v '/mnt/user/T_Media/Torrent/':'/data':'rw' -v '/mnt/user/T_Media/Torrent/':'/downloads':'rw' -v '/mnt/user/T_Media/Torrent/watch/':'/watch':'rw' -v '/mnt/user/T_Media/Torrent/':'/mnt/user/T_Media/Torrent/':'rw' --cap-add=NET_ADMIN --restart=always --log-opt max-size=50m --log-driver json-file --dns 8.8.8.8 --dns 1.1.1.1 'haugene/transmission-openvpn:dev'
755e844708f01001a92101d2ef1f3a90d7424bb9574bc116f1dbcbc5457bb63b
The command finished successfully!`
Same issue even after the dns overrides. It seems to run fine for a few hours, then at some point it dies. going back to 3.1 seems to solve the issue
Run Command:
`root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d
--name='Transmission_VPN_V3_testing' --net='bridge' --privileged=true
-e TZ="America/Denver"
-e HOST_OS="Unraid"
-e 'OPENVPN_USERNAME'='XXXXXXXX'
-e 'OPENVPN_PASSWORD'='XXXXXXX'
-e 'OPENVPN_CONFIG'='switzerland'
-e 'OPENVPN_PROVIDER'='PIA'
-e 'LOCAL_NETWORK'='192.168.0.0/24'
-e 'TRANSMISSION_RPC_USERNAME'='admin'
-e 'TRANSMISSION_RPC_PASSWORD'='XXXXXXXX'
-e 'OPENVPN_OPTS'='--inactive 3600 --ping 10 --ping-exit 60 --mute-replay-warnings'
-e 'PUID'='99'
-e 'PGID'='100'
-e 'TRANSMISSION_DOWNLOAD_DIR'='/downloads'
-e 'TRANSMISSION_RPC_AUTHENTICATION_REQUIRED'='true'
-e 'TRANSMISSION_DOWNLOAD_QUEUE_SIZE'='15'
-e 'TRANSMISSION_CACHE_SIZE_MB'='10'
-e 'TRANSMISSION_INCOMPLETE_DIR'='/downloads/incomplete'
-e 'TRANSMISSION_WEB_UI'='transmission-web-control'
-e 'GLOBAL_APPLY_PERMISSIONS'='false'
-e 'WEBPROXY_ENABLED'='false'
-e 'PIA_OPENVPN_CONFIG_BUNDLE'='openvpn-tcp'
-e 'OVERIDE_DNS_1'='8.8.8.8'
-e 'OVERRIDE_DNS_2'='8.8.4.4'
-p '9091:9091/tcp'
-v '/mnt/user/T_Media/Torrent/':'/data':'rw'
-v '/mnt/user/T_Media/Torrent/':'/downloads':'rw'
-v '/mnt/user/T_Media/Torrent/watch/':'/watch':'rw'
-v '/mnt/user/T_Media/Torrent/':'/mnt/user/T_Media/Torrent/':'rw'
--cap-add=NET_ADMIN --restart=always --log-opt max-size=50m --log-driver json-file 'haugene/transmission-openvpn:dev'
2ecd8464c1899f3d0cee2ebe9b1d2461f6f9b7e2b22cb2ce2525ab19f4182d6f
The command finished successfully!`
This just repeats in the log, i cant find the log file, and can't scroll back far enough to see if there was a specific error at the start:
`Sun Nov 29 04:42:38 2020 SIGUSR1[soft,init_instance] received, process restarting
Sun Nov 29 04:47:38 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sun Nov 29 04:47:43 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Sun Nov 29 04:47:48 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Sun Nov 29 04:47:48 2020 Could not determine IPv4/IPv6 protocol
Sun Nov 29 04:47:48 2020 SIGUSR1[soft,init_instance] received, process restarting
curl: (28) Connection timed out after 15001 milliseconds
curl: (28) Connection timed out after 15001 milliseconds
curl: (28) Connection timed out after 15001 milliseconds
curl: (28) Connection timed out after 15000 milliseconds
curl: (28) Connection timed out after 15001 milliseconds
curl: (28) Connection timed out after 15001 milliseconds
Sun Nov 29 04:52:17 MST 2020: bindPort error
the has been a fatal_error
Sun Nov 29 04:52:48 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sun Nov 29 04:52:53 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Sun Nov 29 04:52:58 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Sun Nov 29 04:52:58 2020 Could not determine IPv4/IPv6 protocol
Sun Nov 29 04:52:58 2020 SIGUSR1[soft,init_instance] received, process restarting
Sun Nov 29 04:57:58 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sun Nov 29 04:58:03 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Sun Nov 29 04:58:08 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Sun Nov 29 04:58:08 2020 Could not determine IPv4/IPv6 protocol
Sun Nov 29 04:58:08 2020 SIGUSR1[soft,init_instance] received, process restarting
Sun Nov 29 05:03:08 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sun Nov 29 05:03:13 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Sun Nov 29 05:03:18 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Sun Nov 29 05:03:18 2020 Could not determine IPv4/IPv6 protocol
Sun Nov 29 05:03:18 2020 SIGUSR1[soft,init_instance] received, process restarting
Sun Nov 29 05:08:18 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sun Nov 29 05:08:23 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Sun Nov 29 05:08:28 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Sun Nov 29 05:08:28 2020 Could not determine IPv4/IPv6 protocol
Sun Nov 29 05:08:28 2020 SIGUSR1[soft,init_instance] received, process restarting
Sun Nov 29 05:13:28 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sun Nov 29 05:13:33 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Sun Nov 29 05:13:38 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Sun Nov 29 05:13:38 2020 Could not determine IPv4/IPv6 protocol
Sun Nov 29 05:13:38 2020 SIGUSR1[soft,init_instance] received, process restarting
Sun Nov 29 05:18:38 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sun Nov 29 05:18:43 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Sun Nov 29 05:18:48 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Sun Nov 29 05:18:48 2020 Could not determine IPv4/IPv6 protocol
Sun Nov 29 05:18:48 2020 SIGUSR1[soft,init_instance] received, process restarting
curl: (28) Connection timed out after 15001 milliseconds
curl: (28) Connection timed out after 15001 milliseconds
curl: (28) Connection timed out after 15001 milliseconds
Sun Nov 29 05:23:48 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sun Nov 29 05:23:53 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Sun Nov 29 05:23:58 2020 RESOLVE: Cannot resolve host address: swiss.privacy.network:502 (Try again)
Sun Nov 29 05:23:58 2020 Could not determine IPv4/IPv6 protocol
Sun Nov 29 05:23:58 2020 SIGUSR1[soft,init_instance] received, process restarting
curl: (28) Connection timed out after 15001 milliseconds
curl: (28) Connection timed out after 15001 milliseconds
curl: (28) Connection timed out after 15001 milliseconds
Sun Nov 29 05:25:02 MST 2020: bindPort error
the has been a fatal_error`
so i went back to 3.1 after my previous post, this time, it didn't stay running.
`ErrorWarningSystemArrayLogin
Starting container with revision: baa14dbe3d030306dd3bc0a79570c6aaf7124390
One or more OVERRIDE_DNS addresses found. Will use them to overwrite /etc/resolv.conf
mknod: /dev/net/tun: File exists
Using OpenVPN provider: PIA
Provider PIA has a custom startup script, executing it
Downloading OpenVPN config bundle openvpn-tcp into temporary file /tmp/tmp.gNFofp
Extract OpenVPN config bundle into PIA directory /etc/openvpn/pia
Modify configs for this container
Starting OpenVPN using config switzerland.ovpn
Setting OpenVPN credentials...
adding route to local network 192.168.0.0/24 via 172.17.0.1 dev eth0
Sun Nov 29 09:05:01 2020 OpenVPN 2.4.9 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Apr 20 2020
Sun Nov 29 09:05:01 2020 library versions: OpenSSL 1.1.1g 21 Apr 2020, LZO 2.10
Sun Nov 29 09:05:01 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sun Nov 29 09:05:01 2020 CRL: loaded 1 CRLs from file [[INLINE]]
Sun Nov 29 09:05:01 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]212.102.37.42:502
Sun Nov 29 09:05:01 2020 Attempting to establish TCP connection with [AF_INET]212.102.37.42:502 [nonblock]
Sun Nov 29 09:05:02 2020 TCP connection established with [AF_INET]212.102.37.42:502
Sun Nov 29 09:05:02 2020 TCP_CLIENT link local: (not bound)
Sun Nov 29 09:05:02 2020 TCP_CLIENT link remote: [AF_INET]212.102.37.42:502
Sun Nov 29 09:05:03 2020 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Sun Nov 29 09:05:03 2020 [zurich408] Peer Connection Initiated with [AF_INET]212.102.37.42:502
Sun Nov 29 09:05:05 2020 OpenVPN ROUTE6: OpenVPN needs a gateway parameter for a --route-ipv6 option and no default was specified by either --route-ipv6-gateway or --ifconfig-ipv6 options
Sun Nov 29 09:05:05 2020 OpenVPN ROUTE: failed to parse/resolve route for host/network: 2000::/3
Sun Nov 29 09:05:05 2020 TUN/TAP device tun0 opened
Sun Nov 29 09:05:05 2020 /sbin/ip link set dev tun0 up mtu 1500
Sun Nov 29 09:05:05 2020 /sbin/ip addr add dev tun0 10.63.111.8/24 broadcast 10.63.111.255
Sun Nov 29 09:05:05 2020 /etc/openvpn/tunnelUp.sh tun0 1500 1555 10.63.111.8 255.255.255.0 init
Up script executed with tun0 1500 1555 10.63.111.8 255.255.255.0 init
Updating TRANSMISSION_BIND_ADDRESS_IPV4 to the ip of tun0 : 10.63.111.8
Using Transmission Web Control UI, overriding TRANSMISSION_WEB_HOME
Updating Transmission settings.json with values from env variables
Using existing settings.json for Transmission /data/transmission-home/settings.json
Overriding bind-address-ipv4 because TRANSMISSION_BIND_ADDRESS_IPV4 is set to 10.63.111.8
Overriding cache-size-mb because TRANSMISSION_CACHE_SIZE_MB is set to 10
Overriding download-dir because TRANSMISSION_DOWNLOAD_DIR is set to /downloads
Overriding download-queue-size because TRANSMISSION_DOWNLOAD_QUEUE_SIZE is set to 15
Overriding incomplete-dir because TRANSMISSION_INCOMPLETE_DIR is set to /downloads/incomplete
Overriding rpc-authentication-required because TRANSMISSION_RPC_AUTHENTICATION_REQUIRED is set to true
Overriding rpc-password because TRANSMISSION_RPC_PASSWORD is set to [REDACTED]
Overriding rpc-port because TRANSMISSION_RPC_PORT is set to 9091
Overriding rpc-username because TRANSMISSION_RPC_USERNAME is set to admin
sed'ing True to true
Enforcing ownership on transmission config directories
Applying permissions to transmission config directories
User name: abc
User uid: 99
STARTING TRANSMISSION
Provider PIA has a script for automatic port forwarding. Will run it now.
If you want to disable this, set environment variable DISABLE_PORT_UPDATER=yes
Transmission startup script complete.
Sun Nov 29 09:05:05 2020 WARNING: OpenVPN was configured to add an IPv6 route over tun0. However, no IPv6 has been configured for this interface, therefore the route installation may fail or may not work as expected.
Sun Nov 29 09:05:05 2020 Initialization Sequence Completed
yes: Broken pipe
port is 49448
the port has been bound to 49448 Sun Nov 29 16:05:15 UTC 2020
transmission auth required
waiting for transmission to become responsive
transmission became responsive
46 100% 18.56 GB Done 0.0 0.0 0.0 Idle Hard.Kill.2020.BDREMUX.1080p.seleZen.mkv
Sum: 496.3 GB 0.0 0.0
setting transmission port to 49448
localhost:9091/transmission/rpc/ responded: "success"
Checking port...
Port is open: Yes
initial setup complete!
waiting for rebind loop.................
token expiry 1612064473
remaining = 5398546
the port has been bound to 49448 Sun Nov 29 16:35:28 UTC 2020
the port has been bound to 49448 Sun Nov 29 17:05:28 UTC 2020
the port has been bound to 49448 Sun Nov 29 17:35:29 UTC 2020
the port has been bound to 49448 Sun Nov 29 18:05:29 UTC 2020
the port has been bound to 49448 Sun Nov 29 18:35:30 UTC 2020
the port has been bound to 49448 Sun Nov 29 19:05:31 UTC 2020
the port has been bound to 49448 Sun Nov 29 19:35:31 UTC 2020
the port has been bound to 49448 Sun Nov 29 20:05:32 UTC 2020
the port has been bound to 49448 Sun Nov 29 20:35:33 UTC 2020
the port has been bound to 49448 Sun Nov 29 21:05:33 UTC 2020
the port has been bound to 49448 Sun Nov 29 21:35:34 UTC 2020
the port has been bound to 49448 Sun Nov 29 22:05:35 UTC 2020
the port has been bound to 49448 Sun Nov 29 22:35:35 UTC 2020
the port has been bound to 49448 Sun Nov 29 23:05:36 UTC 2020
the port has been bound to 49448 Sun Nov 29 23:35:37 UTC 2020
the port has been bound to 49448 Mon Nov 30 00:05:38 UTC 2020
the port has been bound to 49448 Mon Nov 30 00:35:39 UTC 2020
the port has been bound to 49448 Mon Nov 30 01:05:39 UTC 2020
the port has been bound to 49448 Mon Nov 30 01:35:40 UTC 2020
the port has been bound to 49448 Mon Nov 30 02:05:41 UTC 2020
the port has been bound to 49448 Mon Nov 30 02:35:41 UTC 2020
the port has been bound to 49448 Mon Nov 30 03:05:45 UTC 2020
curl: (28) Operation timed out after 15001 milliseconds with 0 out of 0 bytes received
curl: (28) Connection timed out after 15001 milliseconds
curl: (28) Connection timed out after 15001 milliseconds
curl: (28) Operation timed out after 15001 milliseconds with 0 out of 0 bytes received
curl: (28) Connection timed out after 15001 milliseconds
curl: (28) Connection timed out after 15001 milliseconds
Mon Nov 30 03:38:30 UTC 2020: bindPort error
the has been a fatal_error
the port has been bound to 49448 Mon Nov 30 04:08:35 UTC 2020
curl: (28) Operation timed out after 15000 milliseconds with 0 out of 0 bytes received
curl: (28) Operation timed out after 15000 milliseconds with 0 out of 0 bytes received
curl: (28) Connection timed out after 15000 milliseconds
curl: (28) Connection timed out after 15000 milliseconds
curl: (28) Connection timed out after 15001 milliseconds
curl: (28) Operation timed out after 15001 milliseconds with 0 out of 0 bytes received
Mon Nov 30 04:41:20 UTC 2020: bindPort error
the has been a fatal_error
curl: (28) Connection timed out after 15001 milliseconds
curl: (28) Connection timed out after 15001 milliseconds
curl: (28) Connection timed out after 15001 milliseconds
curl: (28) Connection timed out after 15000 milliseconds
curl: (28) Connection timed out after 15001 milliseconds
curl: (28) Connection timed out after 15000 milliseconds
Mon Nov 30 05:14:05 UTC 2020: bindPort error
the has been a fatal_error
curl: (28) Operation timed out after 15001 milliseconds with 0 out of 0 bytes received
curl: (28) Operation timed out after 15000 milliseconds with 0 out of 0 bytes received
curl: (28) Operation timed out after 15000 milliseconds with 0 out of 0 bytes received
curl: (28) Operation timed out after 15001 milliseconds with 0 out of 0 bytes received
curl: (28) Connection timed out after 15001 milliseconds
curl: (28) Operation timed out after 15000 milliseconds with 0 out of 0 bytes received
Mon Nov 30 05:46:50 UTC 2020: bindPort error
the has been a fatal_error
curl: (28) Connection timed out after 15000 milliseconds
curl: (28) Connection timed out after 15000 milliseconds
curl: (28) Connection timed out after 15001 milliseconds
curl: (28) Connection timed out after 15001 milliseconds
curl: (28) Connection timed out after 15000 milliseconds
curl: (28) Connection timed out after 15001 milliseconds
Mon Nov 30 06:19:36 UTC 2020: bindPort error
the has been a fatal_error`
Hmm. And if you set DISABLE_PORT_UPDATER=yes? There's been a lot of noise about that script lately... Maybe I'll turn it off by default until we get it more stable
I'll give it a go and let you know
I'am having the same problems and have been trying a lot of options for more dan 1 week now.
Running OMV5 and docker on a raspberry pi 4-8gb
Sometimes the connection drops after 5 minutes, the longest up time has been one hour.
Is there any solution for this at the moment?
Below a part from my docker compose file.
version: '3.3'
services:
transmission-openvpn:
volumes:
- /srv/dev-disk-by-label-Files/Config/Openvpn:/data/transmission-home
environment:
- PUID=998
- PGID=100
- TZ=Europe/Amsterdam
- CREATE_TUN_DEVICE=true
- OPENVPN_PROVIDER=HIDEME
- OPENVPN_CONFIG=Luxembourg-Steinsel,Belgium-Brussels
- OPENVPN_USERNAME=username
- OPENVPN_PASSWORD=123
#- OPENVPN_OPTS=--inactive 3600 --ping 10 --ping-exit 60
- OPENVPN_OPTS=--pull-filter ignore "ping"
- LOCAL_NETWORK=192.168.xxx.xxx/24
- WEBPROXY_ENABLED=false
- TRANSMISSION_DOWNLOAD_DIR=/downloads
- TRANSMISSION_INCOMPLETE_DIR=/incomplete
- TRANSMISSION_WATCH_DIR=/watch
- TRANSMISSION_UTP_ENABLED=false
- TRANSMISSION_UMASK=0
- TRANSMISSION_PORT_FORWARDING_ENABLED=true
- TRANSMISSION_PEER_PORT=5141
- DISABLE_PORT_UPDATER=yes
- HEALTH_CHECK_HOST=cloudflare.com
- OVERRIDE_DNS_1=8.8.8.8
- OVERRIDE_DNS_2=8.8.4.4
cap_add:
- NET_ADMIN
logging:
driver: json-file
options:
max-size: 10m
devices:
- /dev/net/tun
ports:
- 9117:9117 #Jackett
- 8989:8989 #Sonarr
- 8080:8080 #Sabnzbd
- 9091:9091 #Transmission
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
restart: always
image: haugene/transmission-openvpn:latest
@rmarijn And how does your logs look? If it says "cannot resolve host address" then it's probably a DNS issue.
I find these issues problematic. They start with one issue and then there's multiple other issues reported and solved along the way and it could continue as long as someone else chimes in. I will close this now.
Some closing remarks:
Good luck, and feel free to open a new issue if you still have problems. This is not to avoid or deny some support to get this running. I just need to impose some structure :sweat_smile:
Most helpful comment
I modified the DNS to PIA which seemed to work for a while but then occasionally, I would still get the same disconnects.
Yesterday I updated to the 3.1 release and it seems to have resolved this issue for me from what I can tell so far...running for 24 hours and not a single disconnect in the logs. I'll keep monitoring but so far it's looking good