Re: Notification not working
Posted: Sun Feb 21, 2021 10:45 pm
Thanks alot Cas for proper fix, instead of my hackjobs, much appreciate your efforts!
Support Forum for the Deluge BitTorrent Client
https://forum.deluge-torrent.org/
Status is that I and OP tested e.g. this modded version working:jsw10471 wrote:So what is the status on this fix? [...]
(Edit: The above referenced mod was made because the initial modded version with upped version from 0.3 to 0.4, which takes precedense I tested, when added to your deluge profile dir's plugin folder, was reported by OP to not take precedense propperly afterall(so older version still used) on his end using docker, but for others not using docker, or if just not affected by this(maybe docker version related dunno), then probably better to just use this version which doesn't add new notifications2 submenu under preferences and so simpler as just replaces "bad" plugin with "good": https://paste.c-net.org/QumarTrolley)[...]
If wanting to be absolutely sure of that the above never happens(but don't know if your issue but could be), as I cannot fix as don't know why happened that single time, then instead use the more akward version with gtkui/webui config support stripped out, so no notifications2 submenu coming forward after enabling it, meaning you enable notifications2 plugin and keep it enabled always, and then enable original notifications plugin temporarily only when needing make changes or check settings, and then after changing anything you hit apply and then disable original notifications plugin again and apply/save, leaving notifications2 only enabled option again. Here it is again, https://paste.c-net.org/UnlawfulComfy , sorry for inconvenience.
[...] if you can open such a terminal in the running deluge image as suggessted previously, then maybe we can get a better debug message out for what actually fails, and little easier for me to possible suggest a test for how to e.g. workaround by changing ssl default context, but i'm not sure I can do that "in blind", but atleast we can get proper debug message and know in what part specifically failure happens.
So if you could start such e.g. 'docker exec -it deluge /bin/bash' during deluge running and then if you can run this file(python filename.py or python3 filename.py not sure on your distro) and if not then copy paste or type, by first entering 'python' or 'python3' and hit return, and then afterwards this liitle code section, line after line, I just cooked up to make a connection to gmail smtp server through smtplib, same module plugin uses, and send a mail threw it, with debug-logging enabled - just add email and password into 'user' and 'pw' vars first:Code: Select all
from smtplib import SMTP user="" pw="" server = SMTP('smtp.gmail.com', 587) server.set_debuglevel(1) server.ehlo() server.starttls() server.login(user,pw) server.sendmail(user, user, "test") server.quit()