[solved] Problems migrating to ubuntu 21.10 - httpdownloader malformed URL's

General support for problems installing or using Deluge
Post Reply
arjhun
New User
New User
Posts: 3
Joined: Wed Nov 03, 2021 5:33 pm

[solved] Problems migrating to ubuntu 21.10 - httpdownloader malformed URL's

Post by arjhun »

I have some issues making headless deluge work on ubuntu 21.10. It is not loading all the torrents (the label with the status works) And it's not donwnloading the images etc. It looks like there is part of a pyhton byte literal b' ' in the url string......
These are the errors :

Code: Select all

deluge-web -d --loglevel warning

Code: Select all

18:13:23 [WARNING ][deluge.i18n.util           :83  ] IOError when loading translations: [Errno 2] No translation file found for domain: 'deluge'
18:13:29 [WARNING ][deluge.httpdownloader      :312 ] Error occurred downloading file from "http://b'all'/": invalid hostname: b'all'
18:13:29 [WARNING ][deluge.httpdownloader      :312 ] Error occurred downloading file from "http://b'error'/": invalid hostname: b'error'
18:13:29 [WARNING ][deluge.httpdownloader      :312 ] Error occurred downloading file from "http://b'acertaintracker.org'/": invalid hostname: b'acertaintracker.org'
it shows more trackers with a maleformed host in the request.....

It started with the fix in the log.py and removing my older ssl keys as described here.
viewtopic.php?f=7&t=55662#p231613
It made deluged start and I could connect de web ui.
But than the problems started with 404's to the web server.

Because I couldn't install from the PPA I installed the distro version:

deluged

Code: Select all

deluged 2.0.3
libtorrent: 1.2.9.0
Python: 3.9.7
OS: Linux Ubuntu 21.10 impish
deluge-web

Code: Select all

deluge-web 2.0.3
libtorrent: 1.2.9.0
Python: 3.9.7
OS: Linux Ubuntu 21.10 impish
Anybody here that could help me getting the states to update correctly? And what the problem could be? Is it the bleeding edge ubuntu version that i'm using? Is the step i took to big from a 1.x.x state to 2.0.3 ?????

Thanks,

Arjhun
Last edited by arjhun on Wed Nov 03, 2021 10:28 pm, edited 1 time in total.
mhertz
Moderator
Moderator
Posts: 2195
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Problems migrating to ubuntu 21.10 - httpdownloader malformed URL's

Post by mhertz »

It's latest stable deluge you're using, though there's several bugs e.g. like you found here, already fixed in deluge's develop branch:

For the tracker icons missing: https://github.com/deluge-torrent/delug ... 1845e6dc08

The failed downloads i'm guessing is this: https://github.com/deluge-torrent/delug ... e6523d87ce

If you at some point want to update to latest develop deluge, then easiest is to run:

Code: Select all

sudo pip3 install git+git://deluge-torrent.org/deluge.git
You need git and python3-pip installed, and python3-libtorrent and python3-gi-cairo, and uninstall old deluge package firstly.

Also, if following official docs for making systemd service files for deluged and deluge-web, then need change the services from '/usr/bin' into /usr/local/bin', and afterwards run 'sudo systemctl daemon-reload'.
arjhun
New User
New User
Posts: 3
Joined: Wed Nov 03, 2021 5:33 pm

Re: Problems migrating to ubuntu 21.10 - httpdownloader malformed URL's

Post by arjhun »

Wow thanks so much for helping me out and your comprehensive instruction! I feel really stupid for not having looked trough the commits. apologies. Thank for your swift replies, everything seems to be working right now! I hard coded the changes for now! Regret upgrading to the latest version of ubuntu a bit... :)

Thanks for all your hard work in the community, been running deluge sinds 2008!
mhertz
Moderator
Moderator
Posts: 2195
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: [solved] Problems migrating to ubuntu 21.10 - httpdownloader malformed URL's

Post by mhertz »

Thanks for the kind words mate, and you're very welcome :)

2008 now that's an OG user :) I was late to the party and only catched on in 2013.

Anyway, appreciate your posting.
arjhun
New User
New User
Posts: 3
Joined: Wed Nov 03, 2021 5:33 pm

Re: [solved] Problems migrating to ubuntu 21.10 - httpdownloader malformed URL's

Post by arjhun »

For people runnning 21.10 also upgrade lib torrent to later build than 1.2.9 to avoid "not being able to move download location bug" unfortunately 21.10 ships with this buggy version :(

Code: Select all

sudo add-apt-repository ppa:libtorrent.org/1.2-daily
sudo apt-get update
bug output

Code: Select all

Dec 06 11:51:07 YourServer deluge-web[922]: ArgumentError
Dec 06 11:51:07 YourServer deluge-web[922]: Python argument types in
Dec 06 11:51:07 YourServer deluge-web[922]:     torrent_handle.move_storage(torrent_handle, str)
Dec 06 11:51:07 YourServer deluge-web[922]: did not match C++ signature:
Dec 06 11:51:07 YourServer deluge-web[922]:     move_storage(libtorrent::torrent_handle {lvalue}, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > path, libtorrent::move_flags_t flags=libtorrent.move_flags_t.always_replace_files): Traceback (most recent call last):
Dec 06 11:51:07 YourServer deluge-web[922]:   File "/usr/lib/python3/dist-packages/deluge/core/torrent.py", line 1246, in move_storage
Dec 06 11:51:07 YourServer deluge-web[922]:     self.handle.move_storage(dest.encode('utf8'), flags=2)
Dec 06 11:51:07 YourServer deluge-web[922]: Boost.Python.ArgumentError: Python argument types in
Dec 06 11:51:07 YourServer deluge-web[922]:     torrent_handle.move_storage(torrent_handle, bytes)
Dec 06 11:51:07 YourServer deluge-web[922]: did not match C++ signature:
Dec 06 11:51:07 YourServer deluge-web[922]:     move_storage(libtorrent::torrent_handle {lvalue}, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > path, libtorrent::move_flags_t flags=libtorrent.move_flags_t.always_replace_files)
Dec 06 11:51:07 YourServer deluge-web[922]: During handling of the above exception, another exception occurred:
Dec 06 11:51:07 YourServer deluge-web[922]: Traceback (most recent call last):
Dec 06 11:51:07 YourServer deluge-web[922]:   File "/usr/lib/python3/dist-packages/deluge/core/rpcserver.py", line 326, in dispatch
Dec 06 11:51:07 YourServer deluge-web[922]:     ret = self.factory.methods[method](*args, **kwargs)
Dec 06 11:51:07 YourServer deluge-web[922]:   File "/usr/lib/python3/dist-packages/deluge/core/core.py", line 691, in move_storage
Dec 06 11:51:07 YourServer deluge-web[922]:     if not self.torrentmanager[torrent_id].move_storage(dest):
Dec 06 11:51:07 YourServer deluge-web[922]:   File "/usr/lib/python3/dist-packages/deluge/core/torrent.py", line 1248, in move_storage
Dec 06 11:51:07 YourServer deluge-web[922]:     self.handle.move_storage(dest, flags=2)
Dec 06 11:51:07 YourServer deluge-web[922]: Boost.Python.ArgumentError: Python argument types in
Dec 06 11:51:07 YourServer deluge-web[922]:     torrent_handle.move_storage(torrent_handle, str)
Dec 06 11:51:07 YourServer deluge-web[922]: did not match C++ signature:
Dec 06 11:51:07 YourServer deluge-web[922]:     move_storage(libtorrent::torrent_handle {lvalue}, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > path, libtorrent::move_flags_t flags=libtorrent.move_flags_t.always_replace_files)
Post Reply