bro wrote:IFaceWatch will check the IP regularly (the specified interval), so if the VPN interface changes IP, the IP in Deluge settings should be updated automatically on the next interval update. The log window should inform about what is happening. What interval have you specified and how long did you wait after the VPN interface changed IP?
I had the interval set at 10 (I assume it's seconds?). I've waited couple minutes without any new entry in the log window and no IP update in the Deluge settings.
I just tried to set the interval to 3 (in case it would be minutes), restarted Deluge Daemon (don't know if it's necessary, but I guess it can't hurt), and then restarted my VPN connection so the tun0 interface got a new IP. I waited 5+ minutes and still no change in Deluge and the IfaceWatch log window is totally empty.
Previous IP on tun0 before VPN restart: 10.129.0.8
New IP on tun0 after VPN restart: 10.128.0.53
IfaceWatch settings after Deluge Daemon restart and waited 5+ minutes:
http://i.imgur.com/FkXHYbI.png
IfaceWatch settings after manually changing the IP:
http://i.imgur.com/KScRCFN.png
However, I noticed the following errors in /var/log/syslog and /var/log/deluge/daemon.log. Could this be of any use to you? Might there be a issue related to permissions, that the
deluge user (which the Daemon is ran as) do not have permissions to do something? These errors only show up when the IfaceWatch plugin is enabled, so it seem to be related to the plugin somehow.
Code: Select all
root@localhost:/var/log# cat syslog
Oct 14 20:28:50 localhost systemd[1]: Stopping Deluge Bittorrent Client Daemon...
Oct 14 20:28:51 localhost systemd[1]: Stopped Deluge Bittorrent Client Daemon.
Oct 14 20:28:51 localhost systemd[1]: Started Deluge Bittorrent Client Daemon.
Oct 14 20:28:51 localhost deluged[1554]: Unhandled error in Deferred:
Oct 14 20:28:51 localhost deluged[1554]: Traceback (most recent call last):
Oct 14 20:28:51 localhost deluged[1554]: File "/usr/lib/python2.7/dist-packages/deluge/main.py", line 238, in start_daemon
Oct 14 20:28:51 localhost deluged[1554]: Daemon(options, args)
Oct 14 20:28:51 localhost deluged[1554]: File "/usr/lib/python2.7/dist-packages/deluge/core/daemon.py", line 167, in __init__
Oct 14 20:28:51 localhost deluged[1554]: component.start("PreferencesManager")
Oct 14 20:28:51 localhost deluged[1554]: File "/usr/lib/python2.7/dist-packages/deluge/component.py", line 296, in start
Oct 14 20:28:51 localhost deluged[1554]: deferreds.append(self.components[name]._component_start())
Oct 14 20:28:51 localhost deluged[1554]: File "/usr/lib/python2.7/dist-packages/deluge/component.py", line 124, in _component_start
Oct 14 20:28:51 localhost deluged[1554]: d = maybeDeferred(self.start)
Oct 14 20:28:51 localhost deluged[1554]: --- <exception caught here> ---
Oct 14 20:28:51 localhost deluged[1554]: File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 150, in maybeDeferred
Oct 14 20:28:51 localhost deluged[1554]: result = f(*args, **kw)
Oct 14 20:28:51 localhost deluged[1554]: File "/usr/lib/python2.7/dist-packages/deluge/core/preferencesmanager.py", line 160, in start
Oct 14 20:28:51 localhost deluged[1554]: self._on_set_listen_ports)
Oct 14 20:28:51 localhost deluged[1554]: File "/usr/lib/python2.7/dist-packages/deluge/config.py", line 312, in register_set_function
Oct 14 20:28:51 localhost deluged[1554]: function(key, self.__config[key])
Oct 14 20:28:51 localhost deluged[1554]: File "/usr/lib/python2.7/dist-packages/deluge/core/preferencesmanager.py", line 254, in _on_set_listen_ports
Oct 14 20:28:51 localhost deluged[1554]: self.session.listen_on(value[0], value[1], str(self.config["listen_interface"]).strip())
Oct 14 20:28:51 localhost deluged[1554]: exceptions.RuntimeError: Cannot assign requested address
root@localhost:/var/log/deluge# cat daemon.log
[ERROR ] 20:28:51 component:118 [Failure instance: Traceback: <type 'exceptions.RuntimeError'>: Cannot assign requested address
/usr/lib/python2.7/dist-packages/deluge/main.py:238:start_daemon
/usr/lib/python2.7/dist-packages/deluge/core/daemon.py:167:__init__
/usr/lib/python2.7/dist-packages/deluge/component.py:296:start
/usr/lib/python2.7/dist-packages/deluge/component.py:124:_component_start
--- <exception caught here> ---
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:150:maybeDeferred
/usr/lib/python2.7/dist-packages/deluge/core/preferencesmanager.py:160:start
/usr/lib/python2.7/dist-packages/deluge/config.py:312:register_set_function
/usr/lib/python2.7/dist-packages/deluge/core/preferencesmanager.py:254:_on_set_listen_ports
]
[ERROR ] 20:28:51 component:118 [Failure instance: Traceback: <type 'exceptions.RuntimeError'>: Cannot assign requested address
/usr/lib/python2.7/dist-packages/deluge/main.py:238:start_daemon
/usr/lib/python2.7/dist-packages/deluge/core/daemon.py:175:__init__
/usr/lib/python2.7/dist-packages/deluge/component.py:296:start
/usr/lib/python2.7/dist-packages/deluge/component.py:124:_component_start
--- <exception caught here> ---
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:150:maybeDeferred
/usr/lib/python2.7/dist-packages/deluge/core/preferencesmanager.py:160:start
/usr/lib/python2.7/dist-packages/deluge/config.py:312:register_set_function
/usr/lib/python2.7/dist-packages/deluge/core/preferencesmanager.py:254:_on_set_listen_ports
]
Thanks!
Edit: Looking in
/usr/lib/python2.7/dist-packages/deluge/ shows
root being the owner, and file permissions are set to
-rw-r--r-- on every file. Feels weird though that none of these files got the executable permission, shouldn't the python scripts be executable?