I don't know what I've done

General support for problems installing or using Deluge
adelphiaUK
Member
Member
Posts: 18
Joined: Sun Jul 29, 2018 11:30 am
Location: Hayling Island, United Kingdom
Contact:

I don't know what I've done

Post by adelphiaUK »

:geek: :!: :?: I'm running Ubuntu 24.04 as a VM and all was running smootly. Until this morning.

When I came back to my PC and started my VM, everything worked fine until I tried to start Deluge and then got an error about not being able to start in stand alone mode.

As I'm running the dektop version of Ubuntu, thinking it would be easier to get up and running, I don't really want to start it in demon mode (or whatever it's called) but I have no idea how to fix the issue. It says to look at the logs. Well, Deluge isn't creatinbg any as I don't have them switched on.

One thing I have got though, is the output when trying toi run it from a terminal window. That follows.

Code: Select all

20:58:37.365 [ERROR   ][deluge.ui.gtk3.gtkui               :1672] 'unknown name in settings_pack: ignore_resume_timestamps'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/deluge/ui/gtk3/gtkui.py", line 309, in _on_reactor_start
    client.start_standalone()
  File "/usr/lib/python3/dist-packages/deluge/ui/client.py", line 639, in start_standalone
    self._daemon_proxy = DaemonStandaloneProxy(self.__event_handlers)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/deluge/ui/client.py", line 462, in __init__
    self.__daemon = daemon.Daemon(standalone=True)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/deluge/core/daemon.py", line 113, in __init__
    self.core = Core(
                ^^^^^
  File "/usr/lib/python3/dist-packages/deluge/core/core.py", line 122, in __init__
    self.session = lt.session(settings_pack, flags=0)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'unknown name in settings_pack: ignore_resume_timestamps'

(deluge:5617): Gdk-CRITICAL **: 20:58:42.245: gdk_device_get_state: assertion 'GDK_IS_WINDOW (window)' failed
Anyone got any advice on what's wrong and how to fix it, or do I need to uninstall and reinstall?

I use 2 plug-ins; LabelPlus and DefaultTrackers. Everything else, as far as I know, is bog standard.

Thanks in advance.
Chris
Please excuse misspellings and anything that may not make sense or cause offence as the medication I take can have an adverse effect on my mind.

==========
Image
shinger
Seeder
Seeder
Posts: 146
Joined: Sat Jun 05, 2010 1:02 pm

Re: I don't know what I've done

Post by shinger »

Hello adelphiaUK,

Try to disable the plugins first (use the config core file to remove them). Then try to start deluge-gtk from the terminal.
===============================================================
Server: Rock 5B 8 Cores (ARM), 16 GB RAM, 2 TB 970 Evo +
OS: Linux Ubuntu 24.04 LTS
Deluge: v2.1.2
Plugins: Blocklist, LabelPlus, ItConfig, MyScheduler, Stats, Notifications, YaRSS2
adelphiaUK
Member
Member
Posts: 18
Joined: Sun Jul 29, 2018 11:30 am
Location: Hayling Island, United Kingdom
Contact:

Re: I don't know what I've done

Post by adelphiaUK »

shinger wrote: Sun Mar 02, 2025 1:30 pm Hello adelphiaUK,

Try to disable the plugins first (use the config core file to remove them). Then try to start deluge-gtk from the terminal.
Sorry for sounding so dumb, but how do I switch the config files? More to the point, where are they? In ~/configs/deluge/ ? (Excuse me if I've got that totally wrong).
Chris
Please excuse misspellings and anything that may not make sense or cause offence as the medication I take can have an adverse effect on my mind.

==========
Image
User avatar
ambipro
Moderator
Moderator
Posts: 673
Joined: Thu May 19, 2022 3:33 am
Contact:

Re: I don't know what I've done

Post by ambipro »

Open core.conf and edit the

Code: Select all

 "enabled_plugins":
line.
adelphiaUK
Member
Member
Posts: 18
Joined: Sun Jul 29, 2018 11:30 am
Location: Hayling Island, United Kingdom
Contact:

Re: I don't know what I've done

Post by adelphiaUK »

ambipro wrote: Sun Mar 02, 2025 1:59 pm Open core.conf and edit the

Code: Select all

 "enabled_plugins":
line.
Nope. That didn't work.

It appears there's a line in core.py ('ignore_resume_timestamps': True,) which is causing the issue; if I comment it out, Deluge-gtk starts OK but my LabelPlus plugin doesn't show up, even if I rename the trailer to the current python version (ie. -py3.12.egg).

I'm not sure if Python was recently updated LabelPlus doesn't even show up anymore under the Plugins section (despite being checked in the list).

How do I tell deluge to run using python 3.9 or even 3.11?

At this rate, I may have to switch allegiance and go to an alternate torrenting app.
Chris
Please excuse misspellings and anything that may not make sense or cause offence as the medication I take can have an adverse effect on my mind.

==========
Image
User avatar
ambipro
Moderator
Moderator
Posts: 673
Joined: Thu May 19, 2022 3:33 am
Contact:

Re: I don't know what I've done

Post by ambipro »

I would turn on debug logging and check the log files to see what happens at startup as well as when you hit refresh on the plugins page.

https://man.archlinux.org/man/deluge.1.en
adelphiaUK
Member
Member
Posts: 18
Joined: Sun Jul 29, 2018 11:30 am
Location: Hayling Island, United Kingdom
Contact:

Re: I don't know what I've done

Post by adelphiaUK »

ambipro wrote: Mon Mar 03, 2025 3:56 am I would turn on debug logging and check the log files to see what happens at startup as well as when you hit refresh on the plugins page.

https://man.archlinux.org/man/deluge.1.en
OK. Using

Code: Select all

deluge-gtk -l "/media/sf_Apps/Deluge/Version 2/ubuntu-log.log" -L debug
The only two errors I have in the log file (doing a search for ERROR) and both relate to the same thing:

Code: Select all

08:45:23.312 [ERROR   ][deluge.ui.gtk3.gtkui               :1672] 'unknown name in settings_pack: ignore_resume_timestamps'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/deluge/ui/gtk3/gtkui.py", line 309, in _on_reactor_start
    client.start_standalone()
  File "/usr/lib/python3/dist-packages/deluge/ui/client.py", line 639, in start_standalone
    self._daemon_proxy = DaemonStandaloneProxy(self.__event_handlers)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/deluge/ui/client.py", line 462, in __init__
    self.__daemon = daemon.Daemon(standalone=True)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/deluge/core/daemon.py", line 113, in __init__
    self.core = Core(
                ^^^^^
  File "/usr/lib/python3/dist-packages/deluge/core/core.py", line 122, in __init__
    self.session = lt.session(settings_pack, flags=0)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'unknown name in settings_pack: ignore_resume_timestamps'
However, in the console window, it gives these two errors:

Code: Select all

(deluge:5877): Gtk-CRITICAL **: 09:05:18.625: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(deluge:5877): Gdk-CRITICAL **: 09:05:24.139: gdk_device_get_state: assertion 'GDK_IS_WINDOW (window)' failed
which are not evident in the log file. I'd not noticed them before as I guess I was expecting an error at the end of execution, not at the beginning.

I have attached the whole log file in case you want to see the whole thing.
ubuntu-log.log
(25.16 KiB) Downloaded 143 times
I really appreciate you helping me through this, as I would have given up yonks ago!
Chris
Please excuse misspellings and anything that may not make sense or cause offence as the medication I take can have an adverse effect on my mind.

==========
Image
mhertz
Moderator
Moderator
Posts: 2331
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: I don't know what I've done

Post by mhertz »

I suspect wrong libtorrent used now, built for qbittorrent, with deprecated functions off.

Check here for instructions/hints, and sorry little long thread.

viewtopic.php?t=56354
adelphiaUK
Member
Member
Posts: 18
Joined: Sun Jul 29, 2018 11:30 am
Location: Hayling Island, United Kingdom
Contact:

Re: I don't know what I've done

Post by adelphiaUK »

mhertz wrote: Tue Mar 04, 2025 7:26 am I suspect wrong libtorrent used now, built for qbittorrent, with deprecated functions off.

Check here for instructions/hints, and sorry little long thread.

viewtopic.php?t=56354
Uh oh. I installed qbittorrent AFTER these issues started happening and, to be honest, I seem to have less issues with it "freezing". It alsdo seems to have the functionality that I need built in using categories (instead of labels).

I don't want to just dump Deluge as I've used it for quite some time in the past, but I also don't want to dump qbittorrent just yet.

Can you think of a way to get them to both operational, like installing the necessary libtorrent libraries etc in deluge's own folder?

I'll await your response.
Chris
Please excuse misspellings and anything that may not make sense or cause offence as the medication I take can have an adverse effect on my mind.

==========
Image
mhertz
Moderator
Moderator
Posts: 2331
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: I don't know what I've done

Post by mhertz »

I posted before some instructions to get both running.

viewtopic.php?p=238814#p238814

As said in the post, ned remove qBittorrent PPA first, to not bring in that incompatible libtorrent breaking deluge, and qbittorrent from non-ppa is new regardless. Instructions for that(remove qbittorrent ppa) is in later parts of linked thread in my previous post(as said in thread of linked post here).
Post Reply