*OLD-THREAD - SEE NEW* [Unofficial] Deluge 2.0.x installer

Specific support for Deluge on Microsoft Windows OS
mhertz
Moderator
Moderator
Posts: 2215
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Deluge 2.0 Windows 7z-sfx-installer available.

Post by mhertz »

I have latest git-develop branch installed on my end currently, and just checked, and both deluge.exe and pythonw.exe shows 'normal' priority.

Btw, pythonw.exe comes from python v3.68, which is the exact same as previous version, only deluge code is updated.
idiocracy
Leecher
Leecher
Posts: 99
Joined: Tue Jul 23, 2019 11:04 am

Re: Deluge 2.0 Windows 7z-sfx-installer available.

Post by idiocracy »

When i look at details for python in task manager, pythonw.exe is set as "below normal", which resets when running app. I'm using task scheduler to run the app when starting server. I will update with your latest version later today.
mhertz
Moderator
Moderator
Posts: 2215
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Deluge 2.0 Windows 7z-sfx-installer available.

Post by mhertz »

New alternative installer added and upp'ed in first post of this thread, built from latest deluge2 code(git-develop branch) and latest libtorrent(v1.2.2, like previous alternative).

You can update over previous deluge2 install without needing uninstalling first.

Here's the latest deluge2 git-develop commit-log showing the changes included, from last official release(v2.0.3), and up to this new release(v2.0.4.dev20): (There's also several other "unofficial" fixes added, like in my previous installers)

Code: Select all

Commit message (Expand)	Author	Age
* 	[Tests] Skip buggy pytest 5.2.3HEADdevelop	Calum Lind	23 hours
* 	[Lint] Fix Black and Flake8 issues	Calum Lind	3 days
* 	[Core] Fix potential "dictionary changed size during iteration" on shutdown	Anders Jensen	4 days
* 	[Docs] Fix changlog symlink and markdown issue	Calum Lind	4 days
* 	[Docs] Update dev environment instructions	t0obz	4 days
* 	[#3298|Core] Fix pickle loading non-ascii state error	Calum Lind	4 days
* 	[GTK] Remove orphaned code	Calum Lind	2019-10-31
* 	[Docs] Typo corrections in testing.md	Christopher Beard	2019-10-31
* 	[GTK] Fix typo in preferences language label	Pere Orga	2019-10-31
* 	Fix privilege dropping when setting process ownership	Jack O'Sullivan	2019-10-31
* 	[GTK] Add missing translation markup	Calum Lind	2019-10-31
* 	[GTK] Fix Status tab download speed and uploaded	Calum Lind	2019-10-31
* 	[Label] Fix Options/Add windows not reopening	DjLegolas	2019-06-25
* 	[WebUI] Fix class-header for Deluge.EditTrackersWindow	DjLegolas	2019-06-25
* 	[Notifications] Fix unhandled TypeErrors on Python 3	Calum Lind	2019-06-25
* 	[Common] Fix creation of pidfile via command option	DjLegolas	2019-06-25
* 	[Core] Fix for peer.client UnicodeDecodeError	Calum Lind	2019-06-24
* 	[Common] Fix show_file unhandled dbus error	int3l	2019-06-24
* 	[WebUI] Handle torrent add failures	DjLegolas	2019-06-21
* 	[Docs] Fixes for spelling	Calum Lind	2019-06-18
* 	[Docs] Add service how-tosdeluge-2.0.4.dev0	Calum Lind	2019-06-18
* 	[Docs] Add spellchecking with pyenchant	Calum Lind	2019-06-15
* 	[Docs] Cleanup updating plugin page	Calum Lind	2019-06-15
* 	Release 2.0.3deluge-2.0.3master	Calum Lind	2019-06-12
petersasi
Leecher
Leecher
Posts: 93
Joined: Sun Nov 17, 2019 8:09 am

Re: Deluge 2.0 Windows 7z-sfx-installer available.

Post by petersasi »

I would like to ask for help: I tried the manual install - no success, now I have
1. saved the ...\roaming\deluge folder
2. uninstalled the 1.x version
3. used your installer (deluge2-lt1.2.2-installer.exe)
4. install successful, but no luck afterwards:

Code: Select all

C:\Program Files\Deluge2\Scripts>deluge.exe -L debug -l %userprofile%\deluge.log --config c:\Users\*****\AppData\Roaming\deluge
The log looks like this:
[lots of NULLs]
16:02:54 [INFO ][deluge.configmanager:52 ] Setting config directory to: c:\Users\*****\AppData\Roaming\deluge
16:02:54 [INFO ][deluge.ui.ui :70 ] Deluge ui 2.0.3
16:02:54 [DEBUG ][deluge.ui.ui :71 ] options: Namespace(config='c:\\Users\\*****\\AppData\\Roaming\\deluge', logfile='C:\\Users\\*****\\deluge.log', loglevel='debug', logrotate=None, profile=False, quiet=False, remaining=[], torrents=[])
16:02:54 [INFO ][deluge.ui.ui :72 ] Starting gtk ui..
...and then the process exits.any ideas, how to debug what is happening?

Starting just the demon, that I usually start as service using NSSM:

Code: Select all

C:\Program Files\Deluge2\Scripts>deluged.exe -L debug -l %userprofile%\deluge.log --config c:\Users\*****\AppData\Roaming\deluge --port=58846
Seems more normal:
16:24:53 [INFO ][deluge.configmanager:52 ] Setting config directory to: c:\Users\*****\AppData\Roaming\deluge
16:24:53 [INFO ][deluge.core.daemon :94 ] Deluge daemon 2.0.3
16:24:53 [DEBUG ][deluge.core.core :125 ] Starting session (peer_id: -DE203s-, user_agent: Deluge/2.0.3 libtorrent/1.2.2.0)
16:24:53 [DEBUG ][deluge.core.core :332 ] Opening session.state for load: c:\Users\*****\AppData\Roaming\deluge\session.state
16:24:53 [INFO ][deluge.core.core :339 ] Successfully loaded session.state: c:\Users\*****\AppData\Roaming\deluge\session.state
16:24:53 [DEBUG ][deluge.core.core :332 ] Opening session.state for load: c:\Users\*****\AppData\Roaming\deluge\session.state.bak
16:24:53 [WARNING ][deluge.core.core :337 ] Unable to load c:\Users\*****\AppData\Roaming\deluge\session.state.bak: [Errno 2] No such file or directory: 'c:\\Users\\*****\\AppData\\Roaming\\deluge\\session.state.bak'
16:24:53 [DEBUG ][deluge.configmanager :94 ] Getting config: core.conf
Looking at the log further I am also running into the ascii error of twisted:
16:25:01 [ERROR ][deluge.component :132 ] [Failure instance: Traceback: <class 'UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xc3 in position 13: ordinal not in range(128)
[...]
16:25:01 [CRITICAL][twisted :154 ] Unhandled error in Deferred:
16:25:01 [CRITICAL][deluge.log :93 ] twisted.internet.defer
I have no idea how to run the fixer pyton code on the torrent files, I have 1800+ torrents seeding (one of the reasons I really want to run on modern libtorrent).
yziecg
New User
New User
Posts: 7
Joined: Tue Nov 12, 2019 2:42 am

Re: Deluge 2.0 Windows 7z-sfx-installer available.

Post by yziecg »

Does your username have non-English characters in the path? Either way, try --config %appdata%\deluge and see if that makes a difference.
mhertz
Moderator
Moderator
Posts: 2215
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Deluge 2.0 Windows 7z-sfx-installer available.

Post by mhertz »

That is strange indeed, considering i've tested it on 3 win10 VMs, one being completely clean install with latest win10 build, and a physical win7 machine. Since daemon works, but not GTKUI, then i'm thinking it's GTK3 related somehow, possibly an unsupported plugin interferring with it's GTK2 code in the GTK3 deluge2 GUI.

Could you just as test, try to rename your deluge profile folder to e.g. deluge-bak and try again to see if it loads then? Just in case I will reiterate that connecting to v1.3.x daemons is unsupported in deluge2, as you could have it setup to autoconnect a v1.3.x daemon.

Also, just in case, could you test my recently added "path-hack" isn't the issue, well i'm sure it's not that, as works in all my tests, but anyways, copy the two lines posted here further down. Press win+r, type "cmd" and press return. Press ctrl+v followed by return and see if GTKUI starts now:

Code: Select all

cd "%programfiles%\Deluge2\gvsbuild\release\bin"
"%programfiles%\Deluge2\Scripts\deluge.exe"
In these situations I test with dependency walker x64 version, deluged.exe or deluge.exe(in your case, deluge.exe of course) and press F7 to start profiling and then look for missing runtime files, or other missing files, showing in red in lowest box, but I have already gone down these hoops and included several needed files, so we don't need to install runtimes additionally.

In latest git-develop branch of deluge2, there's recently added a fix for the unicode error of importing non-ascii filenames from deluge1 into deluge2, so the easiest way to get that, is to use my new alternative installer added yesterday, with all current deluge2 development code added, and latest libtorrent v1.2.2.

Good luck!

@yziecg, didn't catch your post, thanks for good suggestions.
idiocracy
Leecher
Leecher
Posts: 99
Joined: Tue Jul 23, 2019 11:04 am

Re: Deluge 2.0 Windows 7z-sfx-installer available.

Post by idiocracy »

Installed your latest version, and checked pythonw.exe in task manager. Priority is set to "below normal" as default. This could hurt performance as any other task would always take priority over pythonw.

According to this:
https://stackoverflow.com/questions/471 ... in-windows
https://serverfault.com/questions/15182 ... eractively
It could have something do to scheduler.

Edit:
If you're using scheduler to start deluge automatically, this is a fix for incorrect priority settings.
  • Create the task.
    Export task.
    Delete task from scheduler.
    Edit the exported xml file.
    Search for "priority" and find <Priority>7</Priority>
    Change value to 4. A value of 4 will have the same I/O and memory priority as an interactive process. Values of 5 and 6 will have lower memory priority.
    Save changes.
    Import xml into scheduler.
    Great success.
mhertz
Moderator
Moderator
Posts: 2215
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Deluge 2.0 Windows 7z-sfx-installer available.

Post by mhertz »

Good catch and thanks for posting the fix! :)
mhertz
Moderator
Moderator
Posts: 2215
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Deluge 2.0 Windows 7z-sfx-installer available.

Post by mhertz »

I have built libtorrent v1.1.13 myself which now supports https tracker-announcing, and added it to the original deluge-v2.0.3 installer. Additionally I have added a final alternative installer with latest deluge2 git-develop code and libtorrent v1.1.13 built by me and supporting https tracker-announcing.

Links updated/added in first post as usual. Anyway, this means that we now have a stable and a git-develop "beta" deluge2, and both of these comes in two different editions i.e. one with latest libtorrent v1.1.x-series and the other with latest libtorrent v1.2.x-series.

The reason for me building libtorrent v1.1.13, is that the one not built by me didn't support https-tracker announces, and also that even though deluge2 has added support for libtorrent v1.2.2, then it's a much less tested libtorrent in comparisson to libtorrent v1.1.x, and I was thinking that if there should be issues for some, then it would be nice to be able to revert to the much more tested libtorrent v1.1.x.

Also, both libtorrent v1.2.x and v1.1.x is both supported currently by libtorrent devs, and gets updated both, and also there is only 5 months between the two versions, and e.g. v1.1.13 came 3 months after v1.2.0, so both are updated and supported, just 1.1.x is more tested and supported, and 1.2.x has newer, possibly better code, but not as tested and supported yet. Lastly , almost all the deluge2 linux-packages comes with libtorrent v1.1.x currently, and not v1.2.x BTW.
Last edited by mhertz on Mon Nov 18, 2019 11:59 am, edited 2 times in total.
yziecg
New User
New User
Posts: 7
Joined: Tue Nov 12, 2019 2:42 am

Re: Deluge 2.0 Windows 7z-sfx-installer available.

Post by yziecg »

If you can't stand light themes, here's a Dark theme for this package, extract to C:\

https://anonfile.com/iaq9ccB4nf/Deluge2 ... -theme_zip
Post Reply