haugene / docker-transmission-openvpn

Docker container running Transmission torrent client with WebUI over an OpenVPN tunnel
GNU General Public License v3.0
4.14k stars 1.21k forks source link

Transmission writes to disk every 10 seconds. #797

Closed luluhoc closed 5 years ago

luluhoc commented 5 years ago

Describe the problem

First of all hello to all the community :). I don't know if it is a problem but I find it abnormal that transmission is writing something to disk every 10 seconds(I'm not sure if it can lower life of my disk). Here is the chart from netdata. image

Add your docker run command

Here are my ENV `

OPENVPN_CONFIG XXX.nordvpn.com.udp
LOCAL_NETWORK 192.168.1.1/24
TRANSMISSION_RATIO_LIMIT_ENABLED true
TRANSMISSION_UPLOAD_LIMIT_ENABLED 1
TRANSMISSION_UPLOAD_LIMIT 250
OPENVPN_PROVIDER NORDVPN
OPENVPN_PASSWORD XXXXXXXXXXXXXXXX
TRANSMISSION_RATIO_LIMIT 0
TRANSMISSION_DOWNLOAD_QUEUE_SIZE 15
OPENVPN_USERNAME XXXXXXXXXXXXXXXXX
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
GLOBAL_APPLY_PERMISSIONS true
TRANSMISSION_ALT_SPEED_DOWN 50
TRANSMISSION_ALT_SPEED_ENABLED false
TRANSMISSION_ALT_SPEED_TIME_BEGIN 540
TRANSMISSION_ALT_SPEED_TIME_DAY 127
TRANSMISSION_ALT_SPEED_TIME_ENABLED false
TRANSMISSION_ALT_SPEED_TIME_END 1020
TRANSMISSION_ALT_SPEED_UP 50
TRANSMISSION_BIND_ADDRESS_IPV4 0.0.0.0
TRANSMISSION_BIND_ADDRESS_IPV6 ::
TRANSMISSION_BLOCKLIST_ENABLED false
TRANSMISSION_BLOCKLIST_URL http://www.example.com/blocklist
TRANSMISSION_CACHE_SIZE_MB 4
TRANSMISSION_DHT_ENABLED true
TRANSMISSION_DOWNLOAD_DIR /data/completed
TRANSMISSION_DOWNLOAD_LIMIT 100
TRANSMISSION_DOWNLOAD_LIMIT_ENABLED 0
TRANSMISSION_DOWNLOAD_QUEUE_ENABLED true
TRANSMISSION_ENCRYPTION 1
TRANSMISSION_IDLE_SEEDING_LIMIT 30
TRANSMISSION_IDLE_SEEDING_LIMIT_ENABLED false
TRANSMISSION_INCOMPLETE_DIR /data/incomplete
TRANSMISSION_INCOMPLETE_DIR_ENABLED true
TRANSMISSION_LPD_ENABLED false
TRANSMISSION_MAX_PEERS_GLOBAL 200
TRANSMISSION_MESSAGE_LEVEL 2
TRANSMISSION_PEER_CONGESTION_ALGORITHM  
TRANSMISSION_PEER_ID_TTL_HOURS 6
TRANSMISSION_PEER_LIMIT_GLOBAL 200
TRANSMISSION_PEER_LIMIT_PER_TORRENT 50
TRANSMISSION_PEER_PORT 51413
TRANSMISSION_PEER_PORT_RANDOM_HIGH 65535
TRANSMISSION_PEER_PORT_RANDOM_LOW 49152
TRANSMISSION_PEER_PORT_RANDOM_ON_START false
TRANSMISSION_PEER_SOCKET_TOS default
TRANSMISSION_PEX_ENABLED true
TRANSMISSION_PORT_FORWARDING_ENABLED false
TRANSMISSION_PREALLOCATION 1
TRANSMISSION_PREFETCH_ENABLED 1
TRANSMISSION_QUEUE_STALLED_ENABLED true
TRANSMISSION_QUEUE_STALLED_MINUTES 30
TRANSMISSION_RENAME_PARTIAL_FILES true
TRANSMISSION_RPC_AUTHENTICATION_REQUIRED false
TRANSMISSION_RPC_BIND_ADDRESS 0.0.0.0
TRANSMISSION_RPC_ENABLED true
TRANSMISSION_RPC_HOST_WHITELIST  
TRANSMISSION_RPC_HOST_WHITELIST_ENABLED false
TRANSMISSION_RPC_PASSWORD password
TRANSMISSION_RPC_PORT 9091
TRANSMISSION_RPC_URL /transmission/
TRANSMISSION_RPC_USERNAME username
TRANSMISSION_RPC_WHITELIST 127.0.0.1
TRANSMISSION_RPC_WHITELIST_ENABLED false
TRANSMISSION_SCRAPE_PAUSED_TORRENTS_ENABLED true
TRANSMISSION_SCRIPT_TORRENT_DONE_ENABLED false
TRANSMISSION_SCRIPT_TORRENT_DONE_FILENAME  
TRANSMISSION_SEED_QUEUE_ENABLED false
TRANSMISSION_SEED_QUEUE_SIZE 10
TRANSMISSION_SPEED_LIMIT_DOWN 100
TRANSMISSION_SPEED_LIMIT_DOWN_ENABLED false
TRANSMISSION_SPEED_LIMIT_UP 100
TRANSMISSION_SPEED_LIMIT_UP_ENABLED false
TRANSMISSION_START_ADDED_TORRENTS true
TRANSMISSION_TRASH_ORIGINAL_TORRENT_FILES false
TRANSMISSION_UMASK 2
TRANSMISSION_UPLOAD_SLOTS_PER_TORRENT 14
TRANSMISSION_UTP_ENABLED true
TRANSMISSION_WATCH_DIR /data/watch
TRANSMISSION_WATCH_DIR_ENABLED true
TRANSMISSION_HOME /data/transmission-home
TRANSMISSION_WATCH_DIR_FORCE_GENERIC false
ENABLE_UFW false
UFW_ALLOW_GW_NET false
UFW_EXTRA_PORTS  
UFW_DISABLE_IPTABLES_REJECT false
TRANSMISSION_WEB_UI  
PUID  
PGID  
TRANSMISSION_WEB_HOME  
DROP_DEFAULT_ROUTE  
WEBPROXY_ENABLED false
WEBPROXY_PORT 8888
HEALTH_CHECK_HOST google.com

`

`

Port configuration 0.0.0.0:51413  51413/tcp0.0.0.0:51413  51413/udp0.0.0.0:9091  9091/tcp

`

Logs


Sat Apr 27 11:27:22 2019 /sbin/ip route add 128.0.0.0/1 via 10.8.8.1

Sat Apr 27 11:27:22 2019 Initialization Sequence Completed

Sat Apr 27 11:30:56 2019 event_wait : Interrupted system call (code=4)

Sat Apr 27 11:30:56 2019 SIGTERM received, sending exit notification to peer

Sat Apr 27 11:30:58 2019 /sbin/ip route del 192.230.46.142/32

Sat Apr 27 11:30:58 2019 /sbin/ip route del 0.0.0.0/1

Sat Apr 27 11:30:58 2019 /sbin/ip route del 128.0.0.0/1

Sat Apr 27 11:30:58 2019 Closing TUN/TAP interface

Sat Apr 27 11:30:58 2019 /sbin/ip addr del dev tun0 10.8.8.4/24

Sat Apr 27 11:30:58 2019 /etc/openvpn/tunnelDown.sh tun0 1500 1585 10.8.8.4 255.255.255.0 init

Sat Apr 27 11:30:58 2019 SIGTERM[soft,exit-with-notification] received, process exiting

Using OpenVPN provider: NORDVPN

Setting NORDVPN_PROTOCOL to: UDP

2019-04-27 11:40:01 Checking curl installation

2019-04-27 11:40:01 Removing existing configs

2019-04-27 11:40:01 Selecting the best server...

2019-04-27 11:40:01 Searching for group: legacy_p2p

2019-04-27 11:40:01 Searching for technology: openvpn_udp

2019-04-27 11:40:01 Best server : fr117.nordvpn.com

2019-04-27 11:40:01 Downloading config: default.ovpn

2019-04-27 11:40:01 Downloading from: https://downloads.nordcdn.com/configs/files/ovpn_udp/servers/fr117.nordvpn.com.udp.ovpn

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  2847  100  2847    0     0   4986      0 --:--:-- --:--:-- --:--:--  4985

2019-04-27 11:40:01 Using OpenVPN CONFIG :: fr184.nordvpn.com.udp

2019-04-27 11:40:01 Downloading config: fr184.nordvpn.com.udp.ovpn

2019-04-27 11:40:01 Downloading from: https://downloads.nordcdn.com/configs/files/ovpn_udp/servers/fr184.nordvpn.com.udp.ovpn

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  2810  100  2810    0     0  16161      0 --:--:-- --:--:-- --:--:-- 16242

2019-04-27 11:40:01 Checking line endings

2019-04-27 11:40:01 Updating configs for docker-transmission-openvpn

Starting OpenVPN using config fr184.nordvpn.com.udp.ovpn

Setting OPENVPN credentials...

adding route to local network 192.168.1.1/24 via 172.17.0.1 dev eth0

RTNETLINK answers: Invalid argument

Sat Apr 27 11:40:02 2019 OpenVPN 2.4.7 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Feb 19 2019

Sat Apr 27 11:40:02 2019 library versions: OpenSSL 1.0.2g  1 Mar 2016, LZO 2.08

Sat Apr 27 11:40:02 2019 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts

Sat Apr 27 11:40:02 2019 Outgoing Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication

Sat Apr 27 11:40:02 2019 Incoming Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication

Sat Apr 27 11:40:02 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]192.230.46.142:1194

Sat Apr 27 11:40:02 2019 Socket Buffers: R=[212992->212992] S=[212992->212992]

Sat Apr 27 11:40:02 2019 UDP link local: (not bound)

Sat Apr 27 11:40:02 2019 UDP link remote: [AF_INET]192.230.46.142:1194

Sat Apr 27 11:40:02 2019 TLS: Initial packet from [AF_INET]192.230.46.142:1194, sid=be331dfd c7b2a6bf

Sat Apr 27 11:40:02 2019 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this

Sat Apr 27 11:40:02 2019 VERIFY OK: depth=2, C=PA, O=NordVPN, CN=NordVPN Root CA

Sat Apr 27 11:40:02 2019 VERIFY OK: depth=1, C=PA, O=NordVPN, CN=NordVPN CA3

Sat Apr 27 11:40:02 2019 VERIFY KU OK

Sat Apr 27 11:40:02 2019 Validating certificate extended key usage

Sat Apr 27 11:40:02 2019 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication

Sat Apr 27 11:40:02 2019 VERIFY EKU OK

Sat Apr 27 11:40:02 2019 VERIFY OK: depth=0, CN=fr184.nordvpn.com

Sat Apr 27 11:40:03 2019 Control Channel: TLSv1.2, cipher TLSv1/SSLv3 ECDHE-RSA-AES256-GCM-SHA384, 4096 bit RSA

Sat Apr 27 11:40:03 2019 [fr184.nordvpn.com] Peer Connection Initiated with [AF_INET]192.230.46.142:1194

Sat Apr 27 11:40:04 2019 SENT CONTROL [fr184.nordvpn.com]: 'PUSH_REQUEST' (status=1)

Sat Apr 27 11:40:04 2019 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1,dhcp-option DNS 103.86.96.100,dhcp-option DNS 103.86.99.100,sndbuf 524288,rcvbuf 524288,explicit-exit-notify,comp-lzo no,route-gateway 10.8.8.1,topology subnet,ping 60,ping-restart 180,ifconfig 10.8.8.21 255.255.255.0,peer-id 19,cipher AES-256-GCM'

Sat Apr 27 11:40:04 2019 OPTIONS IMPORT: timers and/or timeouts modified

Sat Apr 27 11:40:04 2019 OPTIONS IMPORT: explicit notify parm(s) modified

Sat Apr 27 11:40:04 2019 OPTIONS IMPORT: compression parms modified

Sat Apr 27 11:40:04 2019 OPTIONS IMPORT: --sndbuf/--rcvbuf options modified

Sat Apr 27 11:40:04 2019 Socket Buffers: R=[212992->425984] S=[212992->425984]

Sat Apr 27 11:40:04 2019 OPTIONS IMPORT: --ifconfig/up options modified

Sat Apr 27 11:40:04 2019 OPTIONS IMPORT: route options modified

Sat Apr 27 11:40:04 2019 OPTIONS IMPORT: route-related options modified

Sat Apr 27 11:40:04 2019 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified

Sat Apr 27 11:40:04 2019 OPTIONS IMPORT: peer-id set

Sat Apr 27 11:40:04 2019 OPTIONS IMPORT: adjusting link_mtu to 1657

Sat Apr 27 11:40:04 2019 OPTIONS IMPORT: data channel crypto options modified

Sat Apr 27 11:40:04 2019 Data Channel: using negotiated cipher 'AES-256-GCM'

Sat Apr 27 11:40:04 2019 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key

Sat Apr 27 11:40:04 2019 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key

Sat Apr 27 11:40:04 2019 ROUTE_GATEWAY 172.17.0.1/255.255.0.0 IFACE=eth0 HWADDR=02:42:ac:11:00:05

Sat Apr 27 11:40:04 2019 TUN/TAP device tun0 opened

Sat Apr 27 11:40:04 2019 TUN/TAP TX queue length set to 100

Sat Apr 27 11:40:04 2019 /sbin/ip link set dev tun0 up mtu 1500

Sat Apr 27 11:40:04 2019 /sbin/ip addr add dev tun0 10.8.8.21/24 broadcast 10.8.8.255

Sat Apr 27 11:40:04 2019 /etc/openvpn/tunnelUp.sh tun0 1500 1585 10.8.8.21 255.255.255.0 init

Up script executed with tun0 1500 1585 10.8.8.21 255.255.255.0 init

Updating TRANSMISSION_BIND_ADDRESS_IPV4 to the ip of tun0 : 10.8.8.21

Generating transmission settings.json from env variables

sed'ing True to true

-------------------------------------

Transmission will run as

-------------------------------------

User name:   root

User uid:    0

User gid:    0

-------------------------------------

STARTING TRANSMISSION

NO PORT UPDATER FOR THIS PROVIDER

Transmission startup script complete.

Sat Apr 27 11:40:04 2019 /sbin/ip route add 192.230.46.142/32 via 172.17.0.1

Sat Apr 27 11:40:04 2019 /sbin/ip route add 0.0.0.0/1 via 10.8.8.1

Sat Apr 27 11:40:04 2019 /sbin/ip route add 128.0.0.0/1 via 10.8.8.1

Sat Apr 27 11:40:04 2019 Initialization Sequence Completed

Host system:

I'm running it on rancher VM within FreeNAS and I'm running the latest docker image.

image

luluhoc commented 5 years ago

Apparently, location of TRANSMISSION-HOME is causing it is it possible that I mount it directly on rancher VM image?

Btw /data/ folder is mounted on 4tb WD RED

VM rancher is on SSD

TRANSMISSION_HOME /data/transmission-home