Error: Invalid argument after upgrading libtorrent

General support for problems installing or using Deluge
Post Reply
bengt_a
Member
Member
Posts: 10
Joined: Sun Nov 06, 2016 2:51 pm

Error: Invalid argument after upgrading libtorrent

Post by bengt_a »

Hi,
I followed the thread about Error: Short read http://forum.deluge-torrent.org/viewtop ... =7&t=51947 where helpful user Cas said that the answer is to upgrade libtorrent and closed the thread.

So, I updated libtorrent using this instruction: http://dev.deluge-torrent.org/wiki/Building/libtorrent which finally worked after lots of compiling and some tweaking. But now all my "normal" torrents are saying tracker: Error: Invalid argument

I have installed libtorrent 1.0.10.0

So now, nothing is seeding except the sites which previously said "Short Read". They are now saying tracker: Announce OK

What do I do now?!? :o
shamael
Compulsive Poster
Compulsive Poster
Posts: 667
Joined: Sat Oct 08, 2016 9:28 am

Re: Error: Invalid argument after upgrading libtorrent

Post by shamael »

Can you please check the binding ans Deluge version? In ssh type

Code: Select all

deluge -v
I use the 1.0.9 for the moment without issue (compiled), and saw another forum user using 1.0.10 without reported problem on ARM platform.
bengt_a
Member
Member
Posts: 10
Joined: Sun Nov 06, 2016 2:51 pm

Re: Error: Invalid argument after upgrading libtorrent

Post by bengt_a »

Absolutely!

Since I got a bit stressed by the errors, I downgraded libtorrent to 1.0.5 last night, and things started to look better in Deluge. No more Short read, and all torrents are showing Announce OK.

deluge -v didn't work since there is no deluge binary, but there is a deluged binary:

pi@plex ~ $ deluged -v
deluged: 1.3.13
libtorrent: 1.0.5.0


When starting deluged, I get the following tirade:

Code: Select all

 [ERROR   ] 11:19:05 component:118 [Failure instance: Traceback: <type 'exceptions.RuntimeError'>: Address family not supported by protocol
/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:134:maybeDeferred
/usr/lib/python2.7/dist-packages/deluge/core/preferencesmanager.py:162:start
/usr/lib/python2.7/dist-packages/deluge/config.py:312:register_set_function
/usr/lib/python2.7/dist-packages/deluge/core/preferencesmanager.py:258:_on_set_listen_interface
/usr/lib/python2.7/dist-packages/deluge/core/preferencesmanager.py:276:_on_set_random_port
]
Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/deluge/main.py", line 238, in start_daemon
    Daemon(options, args)
  File "/usr/lib/python2.7/dist-packages/deluge/core/daemon.py", line 167, 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 134, in maybeDeferred
    result = f(*args, **kw)
  File "/usr/lib/python2.7/dist-packages/deluge/core/preferencesmanager.py", line 162, in start
    self._on_set_listen_interface)
  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 258, in _on_set_listen_interface
    self._on_set_random_port("random_port", self.config["random_port"])
  File "/usr/lib/python2.7/dist-packages/deluge/core/preferencesmanager.py", line 276, in _on_set_random_port
    self.session.listen_on(listen_ports[0], listen_ports[1], str(self.config["listen_interface"]).strip())
exceptions.RuntimeError: Address family not supported by protocol
[ERROR   ] 11:19:05 component:118 [Failure instance: Traceback: <type 'exceptions.RuntimeError'>: Address family not supported by protocol
/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:134:maybeDeferred
/usr/lib/python2.7/dist-packages/deluge/core/preferencesmanager.py:162:start
/usr/lib/python2.7/dist-packages/deluge/config.py:312:register_set_function
/usr/lib/python2.7/dist-packages/deluge/core/preferencesmanager.py:258:_on_set_listen_interface
/usr/lib/python2.7/dist-packages/deluge/core/preferencesmanager.py:276:_on_set_random_port
]

but at least it is seeding to all trackers now which is a step forward. :geek:
shamael
Compulsive Poster
Compulsive Poster
Posts: 667
Joined: Sat Oct 08, 2016 9:28 am

Re: Error: Invalid argument after upgrading libtorrent

Post by shamael »

My bad for the typo sorry :).

A lot of changes occurred on libtorrent level, but you can obviously stick on your version. If you want to run another try, as said I did it with 1.0.9 and without issue :)

enjoy
bengt_a
Member
Member
Posts: 10
Joined: Sun Nov 06, 2016 2:51 pm

Re: Error: Invalid argument after upgrading libtorrent

Post by bengt_a »

Thanks!
I might try with 1.0.9 now when I know how to do it. :)

Cheers!

UPDATE: 1.0.9 is working like a charm!
shamael
Compulsive Poster
Compulsive Poster
Posts: 667
Joined: Sat Oct 08, 2016 9:28 am

Re: Error: Invalid argument after upgrading libtorrent

Post by shamael »

thx for the feedback :)
Post Reply