Deluged not starting after reboot

General support for problems installing or using Deluge
jpsdr
Member
Member
Posts: 32
Joined: Sat Oct 10, 2015 2:03 pm

Deluged not starting after reboot

Post by jpsdr »

Hello.

Ubuntu 22.04

No idea what happened, after a reboot i suddenly had deluged not starting anymore.
Tried several reboot, remove/re-install, nothing worked.
I have the following information from journalctl :
nov. 28 19:38:19 ns303642.ip-94-23-207.eu systemd[1]: Started Deluge Bittorrent Client Daemon.
nov. 28 19:38:20 ns303642.ip-94-23-207.eu deluged[4896]: Traceback (most recent call last):
nov. 28 19:38:20 ns303642.ip-94-23-207.eu deluged[4896]: File "/usr/bin/deluged", line 33, in <module>
nov. 28 19:38:20 ns303642.ip-94-23-207.eu deluged[4896]: sys.exit(load_entry_point('deluge==2.1.1', 'gui_scripts', 'deluged')())
nov. 28 19:38:20 ns303642.ip-94-23-207.eu deluged[4896]: File "/usr/lib/python3/dist-packages/deluge/core/daemon_entry.py", line 87, in start_daemon
nov. 28 19:38:20 ns303642.ip-94-23-207.eu deluged[4896]: from deluge.core.daemon import is_daemon_running
nov. 28 19:38:20 ns303642.ip-94-23-207.eu deluged[4896]: File "/usr/lib/python3/dist-packages/deluge/core/daemon.py", line 19, in <module>
nov. 28 19:38:20 ns303642.ip-94-23-207.eu deluged[4896]: from deluge.core.core import Core
nov. 28 19:38:20 ns303642.ip-94-23-207.eu deluged[4896]: File "/usr/lib/python3/dist-packages/deluge/core/core.py", line 41, in <module>
nov. 28 19:38:20 ns303642.ip-94-23-207.eu deluged[4896]: from deluge.core.torrentmanager import TorrentManager
nov. 28 19:38:20 ns303642.ip-94-23-207.eu deluged[4896]: File "/usr/lib/python3/dist-packages/deluge/core/torrentmanager.py", line 53, in <module>
nov. 28 19:38:20 ns303642.ip-94-23-207.eu deluged[4896]: lt.add_torrent_params_flags_t.flag_paused
nov. 28 19:38:20 ns303642.ip-94-23-207.eu deluged[4896]: AttributeError: module 'libtorrent' has no attribute 'add_torrent_params_flags_t'
nov. 28 19:38:20 ns303642.ip-94-23-207.eu systemd[1]: deluged.service: Main process exited, code=exited, status=1/FAILURE
jpsdr
Member
Member
Posts: 32
Joined: Sat Oct 10, 2015 2:03 pm

Re: Deluged not starting after reboot

Post by jpsdr »

Hello.

Any help ?
Do you need some other information ?
jpsdr
Member
Member
Posts: 32
Joined: Sat Oct 10, 2015 2:03 pm

Re: Deluged not starting after reboot

Post by jpsdr »

I've tried to edit torrentmanager.py, commenting the lines deluge doesn't like.
Now, i'm having the following error :
déc. 02 19:03:07 ns303642.ip-94-23-207.eu systemd[1]: Started Deluge Bittorrent Client Daemon.
déc. 02 19:03:08 ns303642.ip-94-23-207.eu deluged[12729]: 19:03:08 [ERROR ][deluge.core.daemon_entry :129 ] Unable to start deluged: 'unknown name in settings_pack: ignore_resume_timestamps'
déc. 02 19:03:08 ns303642.ip-94-23-207.eu systemd[1]: deluged.service: Main process exited, code=exited, status=1/FAILURE
Any help would very appreciated.

Thanks.
mhertz
Moderator
Moderator
Posts: 2215
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Deluged not starting after reboot

Post by mhertz »

Uncomment the lines again from torrentmanager.py.

I googled your error originally and one stated deluge using qbittorrent libtorrent, so he deleted the qbittorrent repo and uninstalled/reinstalled deluge/libtorrent to fix. I didn't post then, because was unsure if related, since only happening after a reboot for you.

I googled little again now, and indeed the libtorrent you're using seemingly is built with deprecated-functions off, and deluge uses one(add_torrent_params_flags_t), so your libtorrent is not built for deluge usage apparently.

So check you don't have a qbittorrent ppa or something like that added in your sources.list or whatever called on Debian-based, and remove qbittorrent/libtorrent if having it installed, and then reinstall libtorrent/deluge.

If you cannot do it in other way, then can probably do 'sudo pip install libtorrent') as last resort.
jpsdr
Member
Member
Posts: 32
Joined: Sat Oct 10, 2015 2:03 pm

Re: Deluged not starting after reboot

Post by jpsdr »

I've uncommented the lines in torrentmanager.py.
I've uninstalled all deluge and all packages with "torrent" in the name.
Then re-installed deluge.

Still the same issue "AttributeError: module 'libtorrent' has no attribute 'add_torrent_params_flags_t'"... :(
mhertz
Moderator
Moderator
Posts: 2215
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Deluged not starting after reboot

Post by mhertz »

I still suspect you have qbittorrent PPA enabled or something.

I'm not good at Ubuntu, but what's the output of something like 'apt show libtorrent*'?
jpsdr
Member
Member
Posts: 32
Joined: Sat Oct 10, 2015 2:03 pm

Re: Deluged not starting after reboot

Post by jpsdr »

I think your suspicion is right, because a long time ago there was qbittorent installed. I've removed it already a while ago, but some things probably stayed...
If i do apt show libtorrent* there is a LOT of things !!!

Unfortunately, i'm probably even less good than you on Ubuntu... :(

I don't know how to cleanup...
mhertz
Moderator
Moderator
Posts: 2215
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Deluged not starting after reboot

Post by mhertz »

Sorry, I didn't know if you was using libtorrent-rasterbar10 or libtorrent-rasterbar2.0, or even if was right naming(hence libtorrent* in command), but think is now, looking it up.

Anyway, open /etc/apt/sources.list and delete qbittorrent PPA line's if you have, and then sudo apt update and then uninstall deluge again, and libtorrent-rasterbar10 and/or libtorrent-rasterbar2.0 and then install deluge again, presumably from here, pulling libtorrent with it: https://launchpad.net/~deluge-team/+arc ... ntu/stable
jpsdr
Member
Member
Posts: 32
Joined: Sat Oct 10, 2015 2:03 pm

Re: Deluged not starting after reboot

Post by jpsdr »

The odd things, is that even after adding ppa for deluge, there is no ppa lines in sources.list.
Also, when adding ppa for deluge, the result is :

Adding deb entry to /etc/apt/sources.list.d/deluge-team-ubuntu-stable-jammy.list
Adding disabled deb-src entry to /etc/apt/sources.list.d/deluge-team-ubuntu-stable-jammy.list
Adding key to /etc/apt/trusted.gpg.d/deluge-team-ubuntu-stable.gpg with fingerprint 8EED8FB4A8E6DA6DFDF0192BC5E6A5ED249AD24C
Réception de :1 http://ubuntu.mirrors.ovh.net/ftp.ubuntu.com/ubuntu jammy InRelease [270 kB]
Réception de :2 http://ubuntu.mirrors.ovh.net/ftp.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]
Réception de :3 http://ubuntu.mirrors.ovh.net/ftp.ubuntu.com/ubuntu jammy-backports InRelease [99,8 kB]
Atteint :4 http://ppa.launchpad.net/deluge-team/stable/ubuntu jammy InRelease
Atteint :5 http://ppa.launchpad.net/qbittorrent-te ... ble/ubuntu jammy InRelease
Réception de :6 https://ppa.launchpadcontent.net/deluge ... ble/ubuntu jammy InRelease [17,5 kB]
Réception de :7 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Réception de :8 https://ppa.launchpadcontent.net/deluge ... ble/ubuntu jammy/main i386 Packages [1 424 B]
Réception de :9 https://ppa.launchpadcontent.net/deluge ... ble/ubuntu jammy/main amd64 Packages [1 424 B]
Réception de :10 https://ppa.launchpadcontent.net/deluge ... ble/ubuntu jammy/main Translation-en [876 B]
616 ko réceptionnés en 1s (434 ko/s)
Lecture des listes de paquets... Fait
mhertz
Moderator
Moderator
Posts: 2215
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Deluged not starting after reboot

Post by mhertz »

Sorry, it's under '/etc/apt/sources.list.d', so can delete the qbittorrent one there, or run I think:

sudo add-apt-repository -r ppa:qbittorrent-team/qbittorrent-stable
Post Reply