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

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

Re: [Unofficial] Deluge 2.0.x installer.

Post by mhertz »

Lol, thanks mate, appreciate your posts and reply, nothing remotely reminiscent of spam there whatsoever :lol:

Indeed that seems to be the error, and I appreciate too that you posted in the bug-ticket about it, with your results and confirmation of issue, as it brings more attention to ticket and backs up credibility of it. Honestly I don't understand why libtorrent cannot just exclude LO from the tracker announces, as that seems obvious already that this will fail, but I'm sure there's something about it I haven't taken into consideration as Arvid is anything but stupid(from reading his responses online for years, and a little own communication too + to even be able to make such a library in C++ in first place). I'll still just keep libtorrent 1.2.3 in as doesn't hurt, until further notice atleast.

Thanks for nice feedback again fmar, I do appreciate your input :)
mhertz
Moderator
Moderator
Posts: 2331
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: [Unofficial] Deluge 2.0.x installer.

Post by mhertz »

Gtk 3.24.20 released, and so rebuild that, libtorrent 1.2.x, deluge dev version, and both installers, though nothing important in any of these.

The last gtk releases has needed me find and backport commits as added patches in gvsbuild because something broke, and so I got fed up with this when happeneded again, and so decided to do like I do with libtorrent's, and use there gtk-3-24 "release candidate" branch which arguably also is imho the most stable as also here new stuff gets tested in seperate branches and merged first when seemingly found stable, so just a small note of that. Also, I don't have to patch gvsbuild with new tarball link and sha256 hash between every new update and can get back to having everything automated, just like before finding out how to build new gtk3 stack with gvsbuild and not use Cas's prebuilt older version. Also, as with the other things, then im not going to mention gtk updates(or python updates) anymore, so no mentions of anything updated anymore in these installers unless something is important to note, e.g. important fix added needing mentioning or py version big update needing plugin filename updating etc, unless i'm posting anyways, which I then might as well also mention then.

https://git.deluge-torrent.org/deluge/log/?h=develop
https://github.com/arvidn/libtorrent/commits/RC_1_2
https://gitlab.gnome.org/GNOME/gtk/-/commits/gtk-3-24/
Last edited by mhertz on Thu Apr 30, 2020 1:49 am, edited 3 times in total.
burny
New User
New User
Posts: 3
Joined: Fri Nov 22, 2019 10:34 am

Re: [Unofficial] Deluge 2.0.x installer.

Post by burny »

As first, awesome work! Finally i can try Deluge 2.0.x since there is Windows client for it :)

Found a small bug during install. I selected adwaitax dark theme, but folder adwaitax was missing in (c:\Program Files\Deluge\data\share\themes\adwaitax) and had to seperately download and put it there. And in c:\Program Files\Deluge\data\etc\gtk-3.0\settings.ini there was "gtk-theme-name=adwaita" instead of "gtk-theme-name=adwaitax".
Otherwise it works nicely!

Btw can this client be used to connect to old client (1.3.15)? Just curious to see if i can manage old install through this client untill i migrate fully to 2.0.x.
mhertz
Moderator
Moderator
Posts: 2331
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: [Unofficial] Deluge 2.0.x installer.

Post by mhertz »

Thanks burny, appreciate that mate :)

There's no adwaitax dark theme in these installers though, purpossely. Win32x and adwaitax are just random differentiating names needed, that I used if wanting to edit these built-in gtk3 themes(adwaita and win32), to not need rebuild gtk3 for it, like I do. I once stated I would add them to installers, but wrote later I changed my mind, and instead provided download-links, only needed for own modifications if needed. I could still add them though, but just didn't think most would have use for them regardless, or know how to change them in there big CSS files, or even find where are located and where to enable them, though you're an exception I see :) .

So if not wanna edit something yourself, then you shouldn't need download anything, and just select whatever(or use default) in optional components section of installer. Unless I messed something up that is, as not at my computer now to be able to recheck. Don't think so atleast though, but of-course could be wrong.

Sorry, deluge2 doesn't support that(deluge1 connectability) and neither vice versa. Main reason is changed communication protocol, and back-end/lib changes.

Welcome to the forum btw :)
bengalih
Leecher
Leecher
Posts: 62
Joined: Fri Feb 14, 2014 3:31 am

Re: [Unofficial] Deluge 2.0.x installer.

Post by bengalih »

pwhodges wrote:I've been running your install using nssm and the "debug" binaries for a couple of months now, and am not aware of any problems. Was it OK when I installed, or are the problems actually quite subtle and maybe unimportant?

Paul
Paul - I'm not an expert on this, but here is my experience with Deluge 1.x and why I brought the issues to the attention of mhertz looking for his advice. When you run the debug versions on windows they provide a command line daemon interface - that is to say their logging is interactive with the console so you can see what is going on. If you run this strictly as a service in the background you probably never notice this, but from the command-line you can see what is going on. Why this is really important (since most of that you can just get through logs) - is the ability to send a ctrl-c signal into the console and have deluge initiate a graceful shutdown. NSSM can be configured (and I believe is by default) to send a CTRL-C to shut down running services. It however also sends various other close methods to a running application all the way up to just killing the process if it isn't able to shut it down other ways. Recall that nssm is meant to "service-ize" applications that aren't native services, so it doesn't really know how to process signals back and forth between any old application. Allowing nssm to properly send a ctrl-c to deluge debug meant that deluge would shut down gracefully instead of just having the process killed. Just killing the deluged process isn't the end of the world, but it can cause complications on restart with resume and rechecking torrents.

This is actually covered (without a lot of info) at the very top of the official deluge nssm instructions:
https://deluge.readthedocs.io/en/latest ... rvice.html
It tells you to run the debug version for proper shutdown, but doesn't really explain why like I have above.

It will work fine without, but this avoids possible complications from abnormal shutdowns.

Thanks @mhertz for fixing!
mhertz
Moderator
Moderator
Posts: 2331
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: [Unofficial] Deluge 2.0.x installer.

Post by mhertz »

Sorry Paul, I don't know why sometimes the "show new posts" fails me, I think there's some board bug at times, as don't understand how could miss posts like this otherwise, but regardless if I fail reply, then everyone just reask question again thanks, because I never ignore posts on purpose, and if nothing else answers that I don't know honestly.

Thanks for nice explenation and again for raising the issue bengalih.

Paul, sorry for messing up with the debug exe's, but as bengalih stated, then it's not such a big issue, but of-course better to have it working as should regardless. I did initially check that it worked through nssm originally, but as said, wasent aware of the finer details before getting the upshot from bengalih. Anyway, I looked it up now more and the only thing that could happen before fixing it, as per your question, was that I believe when starting deluge again, then it would maybe take a little longer time for your torrents to resume, because libtorrent needed to manually recheck status of files, if no fastresume data had been saved as deluge was killed and not gracefully shutdown. In older times this could make some of your torrents in error and need you to recheck them for fixing it, but that was dropped by Cas 3 years ago and now just let's libtorrent just check files and the hashes of completed blocks to determine how far you had come in torrents, without deluge interferring(but delivers fastresume data, if available). This then should not be needed now after this change since fastresume data and such are saved at shutdown always.
billyboy12
New User
New User
Posts: 5
Joined: Tue Dec 03, 2019 8:20 am

Re: [Unofficial] Deluge 2.0.x installer.

Post by billyboy12 »

Hi guys, I'm running into a crashing issue with the unofficial Deluge 2.0.x. At first, everything was fine, but then it started crashing to desktop when I ran a port check. Now, it's started crashing to desktop upon loading. I've tried a complete uninstall and reinstall, but no luck. I think it's somehow related to my torrent box, Deluge can start so long as it doesn't connect to it. I've run a software update on my torrent box, so everything should be the latest versions.
mhertz
Moderator
Moderator
Posts: 2331
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: [Unofficial] Deluge 2.0.x installer.

Post by mhertz »

Sorry to hear that billyboy12 :(

I'm sorry to say that these kinda situations unfortunetly are out of my hands when general deluge issue and so need to be reported upstream as deluge2 issue preferably with debug logs if possible.

I can connect fine here, to both windows and Linux hosts with other libtorrent versions too, so some special annoying hard to debug thing.

I can only build and pack the components up and add little tricks and small fixes here and there, mostly coming from others, but that's unfortunetly also only the entirety of my abilities here. Sadly.

This has been reported before several times with people using this installer, and before there where slight chance it was this installers fault, but not anymore, because the change to newest python fixed that little loophole for issues that where open before(mismatched dll's from system32).

One reported it happened when connecting, and then when I asked him to try with clean config dir, then it didn't happen, but then later said adding a torrent made it crash, which is something reported back all the way from deluge1 too, and never fixed unfortunetly.

Another had this happen on one pc, but not the other, with same installer version installed, and connecting to same other host.

My only small suggestion is delete session.state file if available, from both host and client in there respective profile dirs, as mixing libtorrent versions also is an old potential-crashing bug from deluge1 times never fixed, and I workaround in installer by deleting locally during install. However, when connecting again locally before connecting to remote host, then will need done again, I guess, though I don't know at all if is that issue, but just know can be an issue, though don't know if needs done both places either, but just guessing here.

Its probably not even the above though in your case, and some other general deluge issue, as if searching there are countless different types of crashing reports for deluge, and it's stated to be really hard to solve as not reproducible for the devs, and if finding exact way to reproduce(for all), then submit ticket with logs if possible, though I'd say make tickets regardless, just to inform of problem.

One older post of deluge1 had random crashes and when Cas suggested to try py2.7 instead of py2.6 installer, as been updated, then fixed it atleast in the time tested initially, but I seen this reported here also in the previous py versions, and so it's not a general python problem.

Again, I'm sorry you're having these issues, and that I cannot help you out.
pwhodges
New User
New User
Posts: 9
Joined: Sat Sep 28, 2013 8:19 pm

Re: [Unofficial] Deluge 2.0.x installer.

Post by pwhodges »

mhertz wrote:Sorry Paul, I don't know why sometimes the "show new posts" fails me, I think there's some board bug at times, as don't understand how could miss posts like this otherwise,
It's because I haven't yet made enough posts here for the forum to display them without a delay for moderation, so they didn't appear at the time they say they did.

Paul
billyboy12
New User
New User
Posts: 5
Joined: Tue Dec 03, 2019 8:20 am

Re: [Unofficial] Deluge 2.0.x installer.

Post by billyboy12 »

Thank for the detailed reply, mhertz! But uh, it seems to have fixed itself. No idea what could have caused it, it was constantly crashing and then when I tried opening Deluge once again, it didn't crash. I'll be sure to mention if it starts happening again, I doubt the problem has gone away!
Post Reply