Closed bmanturner closed 3 years ago
Also getting this error. Been pulling my hair out trying to figure it out.
Added Google DNS to resolve it!
How?
I’m on mobile now, look in this container tips and tricks documentation. It’s a —dns IP address parameter. Used the Google DNS setting right from the guide.
Must be unrelated; this didn't work for me.
Same problem, also not resolved by --dns
.
Given the timing, I had a thought it might be related to this: https://github.com/haugene/docker-transmission-openvpn/commit/14ec8d4fb8e27925306005f61eb7aafe1887dd10 but not sure how.
Something else I've noticed, I switched back from PIA to Nord, which doesn't have port forwarding, and I was able to connect to the trackers again. But when I use the transmission "test port" feature (again, I'm aware Nord doesn't support it) it hangs and never responds, same as the behavior on PIA. I think something is wrong with the way the container is setting up the networking, and that the port management is broken.
It's also worth mentioning that my /etc/resolve.conf
never changes from this, even if I set a DNS in the docker-compose file:
nameserver 127.0.0.11
options ndots:0
and that I can always ping out to google from within the container, even when the port test hangs. Also, it seems like the problems with pia started just after tag 2.14. On 2.14 I can connect, but the port is closed. This is all complicated by the fact that PIA gets cranky when you try to connect to the same server too often too quickly, and stop authing me… makes it hard to tweak the config and test it.
Someone recommended changing my password. I did so and received the same error.
already got the dns and it is not resolving the problem.
Not ideal, but I was able to get it working by using the Israel PIA servers...i'll take slightly slower downloads over no downloads
I'm noticing the same thing with ProtonVPN in Iceland. I can ping google.com from the console just fine though.
Hey guys. We've had some issues with stability lately. Please test with port-forwarding and health checks disabled. If that runs and is stable then you can try to activate them one by one and see when instability arises. Disable port forwarding by adding the environment variable:
DISABLE_PORT_UPDATER=yes
To disable health checks add --no-healthcheck
to your Docker run command or in docker-compose:
healthcheck:
disable: true
Hey guys. We've had some issues with stability lately. Please test with port-forwarding and health checks disabled. If that runs and is stable then you can try to activate them one by one and see when instability arises. Disable port forwarding by adding the environment variable:
DISABLE_PORT_UPDATER=yes
To disable health checks add
--no-healthcheck
to your Docker run command or in docker-compose:healthcheck: disable: true
It didn't seem to make a difference in my case. Here's my Compose:
transmission-vpn:
container_name: transmission-vpn
image: haugene/transmission-openvpn
cap_add:
- NET_ADMIN
restart: always
ports:
- "9091:9091"
dns:
- 8.8.8.8
- 8.8.4.4
sysctls:
- net.ipv6.conf.all.disable_ipv6=1
healthcheck:
disable: true
volumes:
- /etc/localtime:/etc/localtime:ro
- ${USERDIR}/docker/transmission-vpn:/data
- ${USERDIR}/docker/shared:/shared
- /media/plexdrive/Downloads/transmission:/data/watch
- /media/plexdrive/Downloads/Completed:/data/completed
- /media/plexdrive/Downloads/transmission/Incomplete:/data/incomplete
- ${USERDIR}/docker/is-04.protonvpn.com.tcp.ovpn:/etc/openvpn/custom/default.ovpn
environment:
- OPENVPN_PROVIDER=CUSTOM
- OPENVPN_OPTS=--inactive 3600 --ping 10 --ping-exit 60 --mute-replay-warnings
- LOCAL_NETWORK=192.168.1.0/24
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
- DISABLE_PORT_UPDATER=yes
- TRANSMISSION_RPC_AUTHENTICATION_REQUIRED=true
- TRANSMISSION_RPC_HOST_WHITELIST="127.0.0.1,192.168.*.*"
- TRANSMISSION_PEER_PORT=****
- TRANSMISSION_RPC_PASSWORD=****
- TRANSMISSION_RPC_USERNAME=****
- TRANSMISSION_PORT_FORWARDING_ENABLED=false
- TRANSMISSION_UTP_ENABLED=false
- TRANSMISSION_UMASK=002
- TRANSMISSION_RATIO_LIMIT=5.00
- TRANSMISSION_RATIO_LIMIT_ENABLED=true
- TRANSMISSION_IDLE_SEEDING_LIMIT=7200
- TRANSMISSION_IDLE_SEEDING_LIMIT_ENABLED=true
Here's the Transmission log files related to an Ubuntu ISO:
[2020-11-08 08:53:30.460] Loaded 1 torrents (/home/buildozer/aports/community/transmission/src/transmission-3.00/libtransmission/session.c:2170)
[2020-11-08 08:53:30.460] web will verify tracker certs using envvar CURL_CA_BUNDLE: none (/home/buildozer/aports/community/transmission/src/transmission-3.00/libtransmission/web.c:455)
[2020-11-08 08:53:30.460] web NB: this only works if you built against libcurl with openssl or gnutls, NOT nss (/home/buildozer/aports/community/transmission/src/transmission-3.00/libtransmission/web.c:457)
[2020-11-08 08:53:30.460] web NB: invalid certs will show up as 'Could not connect to tracker' like many other errors (/home/buildozer/aports/community/transmission/src/transmission-3.00/libtransmission/web.c:458)
[2020-11-08 08:53:31.461] ubuntu-20.10-desktop-amd64.iso Could not connect to tracker (/home/buildozer/aports/community/transmission/src/transmission-3.00/libtransmission/announcer.c:1085)
[2020-11-08 08:53:31.461] ubuntu-20.10-desktop-amd64.iso Retrying announce in 20 seconds. (/home/buildozer/aports/community/transmission/src/transmission-3.00/libtransmission/announcer.c:1094)
EDIT: I also saw this in my Transmission logs, but not sure if its related or not:
[2020-11-08 09:03:13.557] UDP Couldn't bind IPv4 socket (/home/buildozer/aports/community/transmission/src/transmission-3.00/libtransmission/tr-udp.c:335)
EDIT: I also saw this in my Transmission logs, but not sure if its related or not:
[2020-11-08 09:03:13.557] UDP Couldn't bind IPv4 socket (/home/buildozer/aports/community/transmission/src/transmission-3.00/libtransmission/tr-udp.c:335)
I think you are onto something there. I saw it connect to an HTTP tracker successfully, and it's connection failed to all UDP trackers.
@haugene Did not work for me
Starting container with revision: 1970f54b88424bf92bc782c3df87310336adf8f4,
Using OpenVPN provider: PIA,
Provider PIA has a custom startup script, executing it,
Downloading OpenVPN config bundle openvpn-nextgen into temporary file /tmp/tmp.ObcEpP,
Extract OpenVPN config bundle into PIA directory /etc/openvpn/pia,
Modify configs for this container,
Starting OpenVPN using config US Florida.ovpn,
Setting OpenVPN credentials...,
adding route to local network 192.168.1.0/24 via 172.17.0.1 dev eth0,
Sun Nov 8 11:42:36 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 8 11:42:36 2020 library versions: OpenSSL 1.1.1g 21 Apr 2020, LZO 2.10,
Sun Nov 8 11:42:36 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts,
Sun Nov 8 11:42:36 2020 CRL: loaded 1 CRLs from file [[INLINE]],
Sun Nov 8 11:42:36 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]156.146.43.91:1198,
Sun Nov 8 11:42:36 2020 UDP link local: (not bound),
Sun Nov 8 11:42:36 2020 UDP link remote: [AF_INET]156.146.43.91:1198,
Sun Nov 8 11:42:36 2020 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this,
Sun Nov 8 11:42:36 2020 [miami414] Peer Connection Initiated with [AF_INET]156.146.43.91:1198,
Sun Nov 8 11:42:37 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 8 11:42:37 2020 OpenVPN ROUTE: failed to parse/resolve route for host/network: 2000::/3,
Sun Nov 8 11:42:37 2020 TUN/TAP device tun0 opened,
Sun Nov 8 11:42:37 2020 /sbin/ip link set dev tun0 up mtu 1500,
Sun Nov 8 11:42:37 2020 /sbin/ip addr add dev tun0 10.16.112.30/24 broadcast 10.16.112.255,
Sun Nov 8 11:42:37 2020 /etc/openvpn/tunnelUp.sh tun0 1500 1553 10.16.112.30 255.255.255.0 init,
Up script executed with tun0 1500 1553 10.16.112.30 255.255.255.0 init,
Updating TRANSMISSION_BIND_ADDRESS_IPV4 to the ip of tun0 : 10.16.112.30,
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.16.112.30,
Overriding download-dir because TRANSMISSION_DOWNLOAD_DIR is set to /data/completed,
Overriding incomplete-dir because TRANSMISSION_INCOMPLETE_DIR is set to /data/incomplete,
Overriding rpc-port because TRANSMISSION_RPC_PORT is set to 9091,
Overriding watch-dir because TRANSMISSION_WATCH_DIR is set to /data/watch,
sed'ing True to true,
,
-------------------------------------,
Transmission will run as,
-------------------------------------,
User name: root,
User uid: 0,
User gid: 0,
-------------------------------------,
,
STARTING TRANSMISSION,
Transmission startup script complete.,
Sun Nov 8 11:42:37 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 11:42:37 2020 Initialization Sequence Completed,
I was having these same errors. Adding DISABLE_PORT_UPDATER=yes
to my .env
file removed the errors from the end of the initial setup log, but it was a red herring as it didn't actually fix the problem. My logs then looked the same as @bmanturner's.
For me it turned out to be a permissions problem. In my docker-compose.yml
, I have /dir1/dir2/dir3
mapped to /data
. My user which launches the docker container does not have permissions to /dir1/dir2
, but this used to work absolutely fine, I guess since docker runs as root.
But suddenly this stopped working. I have granted permissions all the way down the directory tree to the the user which launches the docker container, and now it is working again.
Maybe it's worth trying this if you're having issues. But I have no idea why this was working but then suddenly wasn't, as I presume the mounting of the volume is handled by docker and not this container.
I'm having the same issues, http trackers work normally, udp fail to connect. I have tried everything above with no success. Using :latest, PIA (p style username) with France config.
Getting a lot of [some torrent] Connection failed (/home/buildozer/aports/community/transmission/src/transmission-3.00/libtransmission/announcer.c:1085)
I have exactly the same problem. But I'm using AirVPN. I cannot connect to UDP trackers. I'm already using Google DNS and I have tried using disabled healthchecks. Nothing helps.
I'm just not able to reproduce this. I'm trying to use only udp trackers but it still works like a charm. Good for me I suppose, but I'm in the blind when it comes to finding the reason here.
I've added this commit to also add all TR_ variables into shell that runs Transmission The hope was that any of the verbose and debug environment variables documented here could be of any use.
I also tried running with message-level: 3 which gave some extra output, maybe that can give us a hint.
TR_CURL_VERBOSE=1
TR_DEBUG_FD=1
TRANSMISSION_MESSAGE_LEVEL=3
#LOG_TO_STDOUT=true
Because of @rbrussell82 logs it could be tempting to try and set TR_CURL_SSL_NO_VERIFY=something
as well. Seems that as long as it's set it will disable SSL verification.
Apart from that there is no difference in Transmission version between 2.14 version of this image and 3.0. Given that the upgrade is a likely candidate. Have you tried with different servers to rule out provider issues? There are multiple providers involved here as well - so not likely.
Not sure here. Giving up for today at least :man_shrugging:
EDIT: Those of you that use PIA could try one of the other config bundles. Like:
PIA_OPENVPN_CONFIG_BUNDLE=openvpn-ip-nextgen
or
PIA_OPENVPN_CONFIG_BUNDLE=openvpn-tcp-nextgen
Weeeird... I just decided to try out your suggestions, @haugene and wanted to start by validating that it was still broken, so I ran with no changes, and it just works... 🤷♀️🤷♀️🤷♀️ Thanks for trying to trouble-shoot it!
I just started debugging where the issue is coming from. First change I made is replacing --cap-add=NET_ADMIN with --cap-add=ALL and suddenly it's working again. I have no idea what exactly makes the difference, since I see no other UDP related capabilities in docker.
I have the same issue using VyprVPN
Going into the console and running the command: ufw app info Transmission
displayed a different Port number to what Transmission was listening on. I changed the Port number in the Transmission GUI to match and this looks like it has resolved my issue?
@johnc2k please check your docker logs when you start your container. It could be that e.g. TRANSMISSION_RATIO_LIMIT=2.00
and Overriding ratio-limit because TRANSMISSION_RATIO_LIMIT is set to 2
fill fails (value should be 2
, not 2.00
) and script will not update your configuration with correct port number. Just check your config line by line. Here is my config https://github.com/haugene/docker-transmission-openvpn/issues/1507#issuecomment-727578613
I made no changes and it started working.
Describe the problem I'm unable to connect to any trackers
Add your docker run command
Logs
Host system: Ubuntu 18.04,
:latest