Replies: 5 comments
-
Ok so I switched to 192.168.0.0/16 as in the docs from 192.168.1.0/24 I don't really understand what happened but it seems to fix the issue. |
Beta Was this translation helpful? Give feedback.
-
Nevermind, worked for a bit so I thought that was it but no, still same issue |
Beta Was this translation helpful? Give feedback.
-
This isn’t an issue with this container, nothing in the logs indicates any problems so please check on your docker end/network end. Other areas would be resource management etc. |
Beta Was this translation helpful? Give feedback.
-
I tried with other torrent client like deluge and I had a similar issue. Seems like the rpc endpoint doesn't answer immediately when some big torrent are downloaded/checked. |
Beta Was this translation helpful? Give feedback.
-
So I figured it out, my torrent were being downloaded onto a CIFS share. The upload to the share was fine but the download was extremely slow. I changed the cable between my server and the switch and the speed are now back to normal. I think that the issue was probably comming from the fact that accessing a directory shouldn't be blocking but with my speed issue it actually was. I discovered it when I was trying to figure out why was my jellyfin streaming so slow, didn't link the 2 issues at all. |
Beta Was this translation helpful? Give feedback.
-
Is there a pinned issue for this?
Is there an existing or similar issue/discussion for this?
Is there any comment in the documentation for this?
Is this related to a provider?
Are you using the latest release?
Have you tried using the dev branch latest?
Docker run config used
version: '3.3'
services:
transmission-openvpn:
restart: always
cap_add:
- NET_ADMIN
volumes:
- data-cifs:/data
- config:/config
- vpn-config:/etc/openvpn/custom/
environment:
- OPENVPN_PROVIDER=custom
- OPENVPN_CONFIG=openvpn
#- TRANSMISSION_WEB_UI=flood-for-transmission
- TRANSMISSION_RPC_AUTHENTICATION_REQUIRED=false
- TRANSMISSION_RPC_USERNAME=admin
- TRANSMISSION_RPC_PASSWORD="password"
- TRANSMISSION_INCOMPLETE_DIR="/data/Unsorted/incomplete"
- TRANSMISSION_DOWNLOAD_DIR="/data/Unsorted/completed"
- LOCAL_NETWORK=192.168.1.0/24
- OPENVPN_OPTS=--inactive 3600 --ping 10 --ping-exit 60
- DEBUG=true
logging:
driver: json-file
options:
max-size: 10m
ports:
- '9091:9091'
image: haugene/transmission-openvpn
volumes:
vpn-config:
config:
data-cifs:
driver_opts:
type: cifs
o: username=name,password=password,uid=0,gid=0,vers=3.0
device: //192.168.1.5/name/Cloud/Media/
Current Behavior
Whenever i do something liek adding a torrent or checking the file the webui/rpc both stop responding for a REALLY long time like several minutes, sometimes it come back until i do a check again or add a torrent and sometime it jsut keep being down for several minute where i cant even load the page.
Expected Behavior
Web page accessible in a reasonable time
How have you tried to solve the problem?
Restarting
Trying curl to localhost from inside the container (same issue)
Log output
Starting container with revision: 81277fb
TRANSMISSION_HOME is currently set to: /config/transmission-home
�
Creating TUN device /dev/net/tun
Using OpenVPN provider: CUSTOM
Running with VPN_CONFIG_SOURCE auto
CUSTOM provider specified but not using default.ovpn, will try to find a valid config mounted to /etc/openvpn/custom
Starting OpenVPN using config openvpn.ovpn
Modifying /etc/openvpn/custom/openvpn.ovpn for best behaviour in this container
Modification: Point auth-user-pass option to the username/password file
Modification: Change ca certificate path
++ dirname /etc/openvpn/custom/openvpn.ovpn
Modification: Change ping options
Modification: Update/set resolv-retry to 15 seconds
Modification: Change tls-crypt keyfile path
++ dirname /etc/openvpn/custom/openvpn.ovpn
Modification: Set output verbosity to 3
Modification: Remap SIGUSR1 signal to SIGTERM, avoid OpenVPN restart loop
Modification: Updating status for config failure detection
++ sed -n 's/^; status (.*)/\1/p' /etc/openvpn/custom/openvpn.ovpn
Found existing OPENVPN credentials at /config/openvpn-credentials.txt
�
++ /sbin/ip route list match 0.0.0.0
++ awk '{if($5!="tun0"){print "GW="$3"\nINT="$5; exit}}'
++ GW=192.168.208.1
++ INT=eth0
adding route to local network 192.168.1.0/24 via 192.168.208.1 dev eth0
2023-12-22 18:11:25 DEPRECATED OPTION: ncp-disable. Disabling cipher negotiation is a deprecated debug feature that will be removed in OpenVPN 2.6
2023-12-22 18:11:25 DEPRECATED OPTION: --cipher set to 'AES-256-CBC' but missing in --data-ciphers (AES-256-GCM:AES-128-GCM). Future OpenVPN version will ignore --cipher for cipher negotiations. Add 'AES-256-CBC' to --data-ciphers or change --cipher 'AES-256-CBC' to --data-ciphers-fallback 'AES-256-CBC' to silence this warning.
2023-12-22 18:11:25 WARNING: file 'etc/openvpn/custom/client.key' is group or others accessible
2023-12-22 18:11:25 OpenVPN 2.5.5 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Jul 14 2022
2023-12-22 18:11:25 library versions: OpenSSL 3.0.2 15 Mar 2022, LZO 2.10
2023-12-22 18:11:25 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
2023-12-22 18:11:25 TCP/UDP: Preserving recently used remote address: [AF_INET]84.17.43.23:443
2023-12-22 18:11:25 Socket Buffers: R=[212992->212992] S=[212992->212992]
2023-12-22 18:11:25 UDP link local: (not bound)
2023-12-22 18:11:25 UDP link remote: [AF_INET]84.17.43.23:443
2023-12-22 18:11:25 TLS: Initial packet from [AF_INET]84.17.43.23:443, sid=4d0244b2 e36426f1
2023-12-22 18:11:33 VERIFY OK: depth=1, C=RO, L=Bucharest, O=CyberGhost S.A., CN=CyberGhost Root CA, emailAddress=[email protected]
2023-12-22 18:11:33 VERIFY KU OK
2023-12-22 18:11:33 Validating certificate extended key usage
2023-12-22 18:11:33 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
2023-12-22 18:11:33 VERIFY EKU OK
2023-12-22 18:11:33 VERIFY OK: depth=0, CN=paris-rack415.nodes.gen4.ninja
2023-12-22 18:11:41 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1569', remote='link-mtu 1553'
2023-12-22 18:11:41 WARNING: 'keysize' is used inconsistently, local='keysize 256', remote='keysize 128'
2023-12-22 18:11:41 Control Channel: TLSv1.3, cipher TLSv1.3 TLS_AES_256_GCM_SHA384, peer certificate: 4096 bit RSA, signature: RSA-SHA256
2023-12-22 18:11:41 [paris-rack415.nodes.gen4.ninja] Peer Connection Initiated with [AF_INET]84.17.43.23:443
2023-12-22 18:11:41 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1,route-ipv6 2000::/3,dhcp-option DNS 10.0.0.243,route-gateway 10.26.4.1,topology subnet,ping 10,ping-restart 60,ifconfig 10.26.4.200 255.255.255.0,peer-id 10'
2023-12-22 18:11:41 WARNING: You have specified redirect-gateway and redirect-private at the same time (or the same option multiple times). This is not well supported and may lead to unexpected results
2023-12-22 18:11:41 OPTIONS IMPORT: timers and/or timeouts modified
2023-12-22 18:11:41 OPTIONS IMPORT: --ifconfig/up options modified
2023-12-22 18:11:41 OPTIONS IMPORT: route options modified
2023-12-22 18:11:41 OPTIONS IMPORT: route-related options modified
2023-12-22 18:11:41 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
2023-12-22 18:11:41 OPTIONS IMPORT: peer-id set
2023-12-22 18:11:41 OPTIONS IMPORT: adjusting link_mtu to 1624
2023-12-22 18:11:41 Outgoing Data Channel: Cipher 'AES-256-CBC' initialized with 256 bit key
2023-12-22 18:11:41 Outgoing Data Channel: Using 256 bit message hash 'SHA256' for HMAC authentication
2023-12-22 18:11:41 Incoming Data Channel: Cipher 'AES-256-CBC' initialized with 256 bit key
2023-12-22 18:11:41 Incoming Data Channel: Using 256 bit message hash 'SHA256' for HMAC authentication
2023-12-22 18:11:41 net_route_v4_best_gw query: dst 0.0.0.0
2023-12-22 18:11:41 net_route_v4_best_gw result: via 192.168.208.1 dev eth0
2023-12-22 18:11:41 ROUTE_GATEWAY 192.168.208.1/255.255.240.0 IFACE=eth0 HWADDR=02:42:c0:a8:d0:02
2023-12-22 18:11:41 GDG6: remote_host_ipv6=n/a
2023-12-22 18:11:41 net_route_v6_best_gw query: dst ::
2023-12-22 18:11:41 sitnl_send: rtnl: generic error (-101): Network is unreachable
2023-12-22 18:11:41 ROUTE6: default_gateway=UNDEF
2023-12-22 18:11:41 TUN/TAP device tun0 opened
2023-12-22 18:11:41 net_iface_mtu_set: mtu 1500 for tun0
2023-12-22 18:11:41 net_iface_up: set tun0 up
2023-12-22 18:11:41 net_addr_v4_add: 10.26.4.200/24 dev tun0
2023-12-22 18:11:46 net_route_v4_add: 84.17.43.23/32 via 192.168.208.1 dev [NULL] table 0 metric -1
2023-12-22 18:11:46 net_route_v4_add: 0.0.0.0/1 via 10.26.4.1 dev [NULL] table 0 metric -1
2023-12-22 18:11:46 net_route_v4_add: 128.0.0.0/1 via 10.26.4.1 dev [NULL] table 0 metric -1
2023-12-22 18:11:46 WARNING: OpenVPN was configured to add an IPv6 route. However, no IPv6 has been configured for tun0, therefore the route installation may fail or may not work as expected.
2023-12-22 18:11:46 add_route_ipv6(2000::/3 -> :: metric -1) dev tun0
2023-12-22 18:11:46 net_route_v6_add: 2000::/3 via :: dev tun0 table 0 metric -1
2023-12-22 18:11:46 sitnl_send: rtnl: generic error (-13): Permission denied
2023-12-22 18:11:46 ERROR: Linux IPv6 route can't be added
++ sed -n 's/^; status (.*)/\1/p' /etc/openvpn/custom/openvpn.ovpn
�
=
�
=
++ opt='dhcp-option DNS 10.0.0.243'
++ opt=
++ export PUID=
++ PUID=
++ export PEER_DNS_PIN_ROUTES=true
++ PEER_DNS_PIN_ROUTES=true
++ export 'TRANSMISSION_RPC_PASSWORD=EyQ5G5K!bZD%G7SG'
++ TRANSMISSION_RPC_PASSWORD='EyQ5G5K!bZD%G7SG'
++ export PEER_DNS=true
++ PEER_DNS=true
++ export ENABLE_UFW=false
++ ENABLE_UFW=false
++ export WEBPROXY_PASSWORD=
++ WEBPROXY_PASSWORD=
++ export PGID=
++ PGID=
++ export WEBPROXY_USERNAME=
++ WEBPROXY_USERNAME=
++ export DROP_DEFAULT_ROUTE=
++ DROP_DEFAULT_ROUTE=
++ export TRANSMISSION_RPC_AUTHENTICATION_REQUIRED=false
++ TRANSMISSION_RPC_AUTHENTICATION_REQUIRED=false
++ export OPENVPN_PROVIDER=custom
++ OPENVPN_PROVIDER=custom
++ export TRANSMISSION_RPC_PORT=9091
++ TRANSMISSION_RPC_PORT=9091
++ export TRANSMISSION_DOWNLOAD_DIR=/data/Unsorted/completed
++ TRANSMISSION_DOWNLOAD_DIR=/data/Unsorted/completed
++ export TRANSMISSION_RPC_USERNAME=admin
++ TRANSMISSION_RPC_USERNAME=admin
++ export LOG_TO_STDOUT=false
++ LOG_TO_STDOUT=false
++ export WEBPROXY_ENABLED=false
++ WEBPROXY_ENABLED=false
++ export TRANSMISSION_INCOMPLETE_DIR=/data/Unsorted/incomplete
++ TRANSMISSION_INCOMPLETE_DIR=/data/Unsorted/incomplete
++ export GLOBAL_APPLY_PERMISSIONS=true
++ GLOBAL_APPLY_PERMISSIONS=true
++ export CONFIG=/etc/openvpn/custom/openvpn.ovpn
++ CONFIG=/etc/openvpn/custom/openvpn.ovpn
++ export TRANSMISSION_HOME=/config/transmission-home
++ TRANSMISSION_HOME=/config/transmission-home
++ export DEBUG=true
++ DEBUG=true
++ export WEBPROXY_PORT=8118
++ WEBPROXY_PORT=8118
++ export TRANSMISSION_WATCH_DIR=/data/watch
++ TRANSMISSION_WATCH_DIR=/data/watch
Up script executed with device=tun0 ifconfig_local=10.26.4.200
Updating TRANSMISSION_BIND_ADDRESS_IPV4 to the ip of tun0 : 10.26.4.200
++ source /etc/openvpn/utils.sh
+++ DEBUG=true
+++ [[ true != \f\a\l\s\e ]]
+++ set -x
++ RUN_AS=root
++ '[' -n '' ']'
+++ id -u root
+++ id -g root
�
'
Transmission will run as
User name: root
User uid: 0
User gid: 0
'
++ export PUID
++ export PGID
++ export RUN_AS
Transmission will run as
User name: root
User uid: 0
User gid: 0
Updating Transmission settings.json with values from env variables
Attempting to use existing settings.json for Transmission
Successfully used existing settings.json /config/transmission-home/settings.json
Overriding bind-address-ipv4 because TRANSMISSION_BIND_ADDRESS_IPV4 is set to 10.26.4.200
Overriding download-dir because TRANSMISSION_DOWNLOAD_DIR is set to /data/Unsorted/completed
Overriding incomplete-dir because TRANSMISSION_INCOMPLETE_DIR is set to /data/Unsorted/incomplete
Overriding rpc-authentication-required because TRANSMISSION_RPC_AUTHENTICATION_REQUIRED is set to false
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
Overriding watch-dir because TRANSMISSION_WATCH_DIR is set to /data/watch
sed'ing True to true
STARTING TRANSMISSION
Transmission startup script complete.
2023-12-22 18:11:46 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
2023-12-22 18:11:46 Initialization Sequence Completed
HW/SW Environment
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions