Opened 4 years ago

Closed 4 years ago

#2343 closed bug (Fixed)

preferences: network: incoming port

Reported by: lemtargatwing Owned by:
Priority: minor Milestone: 1.3.7
Component: Core Version: 1.3.6
Keywords: Cc:

Description (last modified by Cas)

When attempting to set incoming port, nothing actually happens. When launching from terminal, this shows when setting port:

/usr/lib/python2.7/dist-packages/deluge/core/preferencesmanager.py:254:_on_set_listen_ports
]
Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/deluge/ui/client.py", line 432, in __init__
    self.__daemon = deluge.core.daemon.Daemon(classic=True)
  File "/usr/lib/python2.7/dist-packages/deluge/core/daemon.py", line 161, in __init__
    component.start("PreferencesManager")
  File "/usr/lib/python2.7/dist-packages/deluge/component.py", line 296, in start
    deferreds.append(self.components[name]._component_start())
  File "/usr/lib/python2.7/dist-packages/deluge/component.py", line 124, in _component_start
    d = maybeDeferred(self.start)
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 138, in maybeDeferred
    result = f(*args, **kw)
  File "/usr/lib/python2.7/dist-packages/deluge/core/preferencesmanager.py", line 160, in start
    self._on_set_listen_ports)
  File "/usr/lib/python2.7/dist-packages/deluge/config.py", line 312, in register_set_function
    function(key, self.__config[key])
  File "/usr/lib/python2.7/dist-packages/deluge/core/preferencesmanager.py", line 254, in _on_set_listen_ports
    self.session.listen_on(value[0], value[1], str(self.config["listen_interface"]))
exceptions.RuntimeError: Invalid argument
[ERROR   ] 17:55:46 component:118 [Failure instance: Traceback: <type 'exceptions.RuntimeError'>: Invalid argument
/usr/lib/python2.7/dist-packages/twisted/internet/base.py:431:_continueFiring
/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/gtkui.py:348:_on_reactor_start
/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:138: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
]

OS: Linux Mint 64bit Cinnamon 3.8.0-19-generic #29-Ubuntu

Ports never change, other than when they are randomized on startup.

Change History (5)

comment:1 Changed 4 years ago by Cas

  • Description modified (diff)

What values are the ports and interface set to?

comment:2 Changed 4 years ago by lemtargatwing

Port 6881

comment:3 Changed 4 years ago by lemtargatwing

Sorry forgot the interface. Interface is not set.

comment:4 Changed 4 years ago by Cas

  • Status changed from new to pending

This error has been generated while communicating with libtorrent but I cannot replicate, if is this still an issue can you enable debug logging so we can see the output before the exception.

Were you using Web or GTK ui, also what version of Deluge and libtorrent are you using?

comment:5 Changed 4 years ago by Cas

  • Milestone changed from 1.3.x to 1.3.7
  • Resolution set to Fixed
  • Status changed from pending to closed

I think this was likely due to a whitespace character in the interface option and have committed a couple of fixes to 1.3-stable: [29d3e72f49a6] and [d04af1e3926b]

Note: See TracTickets for help on using tickets.