hassio-addons: πŸ› [Transmission Openvpn] Transmission client is killed upon VPN restart (because of inactivity)

Which addon?

  • Addon name : Transmission Openvpn
  • Addon version : 4.0-v10

Describe the bug

When the VPN tries to restart, everything is taken down.

To Reproduce

Wait for the VPN to restart.

Full addon log

I’m pasting the relevant part of the log. I can post the beginning, if needed.

[22/Aug/2022:14:09:08 +0200] 200 192.168.16.2, 172.30.32.1(172.30.32.2) POST /rpc HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36)
Mon Aug 22 14:16:26 2022 [xyz.somevpn.com] Inactivity timeout (--ping-restart), restarting
Mon Aug 22 14:16:26 2022 SIGTERM received, sending exit notification to peer
Mon Aug 22 14:16:27 2022 /etc/openvpn/tunnelDown.sh tun0 1500 1585 10.8.3.2 255.255.255.0 init
resolv.conf was restored
Sending kill signal to transmission-daemon
Waiting 5s for transmission-daemon to die
Sending kill signal (SIGKILL) to transmission-daemon
Mon Aug 22 14:16:30 2022 /sbin/ip route del [redacted]/32
Mon Aug 22 14:16:30 2022 /sbin/ip route del 0.0.0.0/1
Mon Aug 22 14:16:30 2022 /sbin/ip route del 128.0.0.0/1
Mon Aug 22 14:16:30 2022 Closing TUN/TAP interface
Mon Aug 22 14:16:30 2022 /sbin/ip addr del dev tun0 10.8.3.2/24
Mon Aug 22 14:16:30 2022 SIGTERM[soft,exit-with-notification] received, process exiting
2022/08/22 14:22:48 [error] 720#720: *3726 connect() failed (111: Connection refused) while connecting to upstream, client: 172.30.32.2, server: db21ed7f-transmission-openvpn, request: "GET /web/tr-web-control/script/easyui/locale/easyui-lang-en.js?_=1661170966625 HTTP/1.1", upstream: "http://127.0.0.1:9091/transmission/web/tr-web-control/script/easyui/locale/easyui-lang-en.js?_=1661170966625", host: "192.168.16.103:8123", referrer: "http://192.168.16.103:8123/api/hassio_ingress/fA4Z8Xm1mGT71HBH5mm9EYeMk4T-A9z2ElJhC7rpKYI/web/"
[22/Aug/2022:14:22:48 +0200] 502 192.168.16.2, 172.30.32.1(172.30.32.2) GET /web/tr-web-control/script/easyui/locale/easyui-lang-en.js?_=1661170966625 HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36)
2022/08/22 14:22:48 [error] 720#720: *3726 connect() failed (111: Connection refused) while connecting to upstream, client: 172.30.32.2, server: db21ed7f-transmission-openvpn, request: "GET /web/tr-web-control/script/easyui/locale/easyui-lang-en.js?_=1661170966626 HTTP/1.1", upstream: "http://127.0.0.1:9091/transmission/web/tr-web-control/script/easyui/locale/easyui-lang-en.js?_=1661170966626", host: "192.168.16.103:8123", referrer: "http://192.168.16.103:8123/api/hassio_ingress/fA4Z8Xm1mGT71HBH5mm9EYeMk4T-A9z2ElJhC7rpKYI/web/"
[22/Aug/2022:14:22:48 +0200] 502 192.168.16.2, 172.30.32.1(172.30.32.2) GET /web/tr-web-control/script/easyui/locale/easyui-lang-en.js?_=1661170966626 HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36)

Full addon config

DEBUG: false
DNS_server: 8.8.4.4,1.1.1.1
LOCAL_NETWORK: 192.168.0.0/16
OPENVPN_PASSWORD: [redacted]
OPENVPN_USERNAME: [redacted]
PGID: "1000"
PUID: "1000"
TRANSMISSION_DOWNLOAD_DIR: /mnt/shared/transmission/downloads
TRANSMISSION_HOME: /config/addons_config/transmission
TRANSMISSION_INCOMPLETE_DIR: /mnt/shared/transmission/incomplete
TRANSMISSION_WATCH_DIR: /mnt/shared/transmission/watch_dir
TRANSMISSION_WEB_UI: transmission-web-control
OPENVPN_CUSTOM_PROVIDER: true
OPENVPN_CUSTOM_PROVIDER_OVPN_LOCATION: [redacted]
TRANSMISSION_V3_UPDATE: true
cifspassword: [redacted]
cifsusername: [redacted]
networkdisks: //192.168.16.18/shared

System

  • Supervisor version: 2022.08.3
  • Host system version: 8.4

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 54 (25 by maintainers)

Commits related to this issue

Most upvoted comments

Yes, it started properly, this time πŸ˜ƒ

Ah ah ah πŸ˜† Then, I will install 4.0-v41!

Transmission Openvpn Current version: 4.0-v27

Wed Oct 19 09:05:59 2022 Connection reset command was pushed by server ('[N]')
Wed Oct 19 09:05:59 2022 SIGTERM received, sending exit notification to peer
Wed Oct 19 09:06:00 2022 /etc/openvpn/tunnelDown.sh tun0 1500 1585 10.8.3.3 255.255.255.0 init
[07:06:00] FATAL: Tunnel down, addon restarting in 15 seconds
resolv.conf was restored
Sending kill signal to transmission-daemon
Waiting 5s for transmission-daemon to die
Successfuly closed transmission-daemon
Wed Oct 19 09:06:19 2022 /sbin/ip route del 4.23.15.6/32
Wed Oct 19 09:06:19 2022 /sbin/ip route del 0.0.0.0/1
Wed Oct 19 09:06:19 2022 /sbin/ip route del 128.0.0.0/1
Wed Oct 19 09:06:19 2022 Closing TUN/TAP interface
Wed Oct 19 09:06:19 2022 /sbin/ip addr del dev tun0 10.8.3.3/24
Wed Oct 19 09:06:19 2022 SIGTERM[soft,exit-with-notification] received, process exiting

Basically, it looks like transmission-daemon is taken down, but never started again.

No more errors but not working anyway πŸ˜‰

I see there is a new version of the add-on. Installing now πŸ˜„

Transmission Openvpn Current version: 4.0-v25

Tue Oct 18 14:38:24 2022 [somevpn.org] Inactivity timeout (--ping-restart), restarting
Tue Oct 18 14:38:24 2022 SIGTERM received, sending exit notification to peer
Tue Oct 18 14:38:25 2022 /etc/openvpn/tunnelDown.sh tun0 1500 1585 10.8.3.6 255.255.255.0 init
[12:38:25] FATAL: Tunnel down, addon restarting in 15 seconds
/./usr/bin/restart_addon: line 9: __BASHIO_LIB_DIR: readonly variable
resolv.conf was restored
Sending kill signal to transmission-daemon
Waiting 5s for transmission-daemon to die
Successfuly closed transmission-daemon
Tue Oct 18 14:38:44 2022 /sbin/ip route del 7.25.1.61/32
Tue Oct 18 14:38:44 2022 /sbin/ip route del 0.0.0.0/1
Tue Oct 18 14:38:44 2022 /sbin/ip route del 128.0.0.0/1
Tue Oct 18 14:38:44 2022 Closing TUN/TAP interface
Tue Oct 18 14:38:44 2022 /sbin/ip addr del dev tun0 10.8.3.6/24
Tue Oct 18 14:38:44 2022 SIGTERM[soft,exit-with-notification] received, process exiting

What I see in the UI is: image

I think the UI is there, but the underlying Transmission is gone πŸ˜„

Will report as soon as anything relevant happens πŸ˜ƒ

Thank you. I upgraded last night. Will post findings πŸ˜ƒ

I can’t answer with absolute certainty. I moved from a Raspberry PI 4B to a VM inside an Intel i5. All I know is I faced it today for the first time πŸ˜ƒ