Page 1 of 1

Notifications settings lost when daemon is restarted

Posted: Thu Mar 28, 2019 2:29 pm
by Ocid
I have noticed that my Notifications settings are emptied every time daemon is restarted (computer reboot / daemon crash).

Running Deluge 1.3.15 both on client and on server on macOS (server 10.14.3 and client 10.14.4).

Has anybody else seen this happening?

(Also every setting in plugin YaRSS2 is emptied at daemon restart).

Re: Notifications settings lost when daemon is restarted

Posted: Fri Mar 29, 2019 10:06 am
by Shryp
Sounds like maybe a permission issue when saving the profile files. Do you have write permissions there?

They are saved in your home folder, so seems odd that you would not be able to.
~/.config/deluge

Re: Notifications settings lost when daemon is restarted

Posted: Fri Mar 29, 2019 12:04 pm
by Ocid
Directory deluge is owned by myusername:staff and has rights 700. All the files are also owned by myusername:staff and have rights 644 (auth has 600).

I have a feeling that this behavior started after I updated my Mac to Mojave and it forced my boot HDD to be converted to APFS.

Re: Notifications settings lost when daemon is restarted

Posted: Sat Mar 30, 2019 12:56 am
by Shryp
I have manually messed with my permissions, but mine are user and group = myusername, 755 for the deluge folder and all folders inside of it, 644 for all of the config files inside of .deluge.

My other computer looks to be setup with username and group of deluge, 750 for deluge folder, 664 for the files inside the deluge folder.

Try changing some settings around and see if your config files are getting updated.

Re: Notifications settings lost when daemon is restarted

Posted: Sat Mar 30, 2019 7:12 am
by Ocid
I have don some checking and this is what I found out:

Before boot:

Code: Select all

-rw-r--r--  1 pete  staff  534 Mar 24 16:26 notifications-core.conf

Code: Select all

srv-media01:deluge pete$ cat notifications-core.conf
{
  "file": 1, 
  "format": 1
}{
  "smtp_recipients": [
    “x@x.x”
  ], 
  "file": 1, 
  "smtp_enabled": true, 
  "subscriptions": {
    "email": [
      "AutoaddOptionsChangedEvent", 
      "GtkUILogMessageEvent", 
      "TorrentFinishedEvent", 
      "YARSSConfigChangedEvent"
    ]
  }, 
  "format": 1, 
  "smtp_port": 587, 
  "smtp_host": "smtp.gmail.com", 
  "smtp_from": “x@x.x”, 
  "smtp_user": “x@x.x”, 
  "smtp_pass": “xxxxxx”, 
  "smtp_tls": true
After boot:

Code: Select all

-rw-r--r--  1 pete  staff  534 Mar 24 16:26 notifications-core.conf

Code: Select all

srv-media01:deluge pete$ cat notifications-core.conf
{
  "file": 1, 
  "format": 1
}{
  "smtp_recipients": [
    “x@x.x”
  ], 
  "file": 1, 
  "smtp_enabled": true, 
  "subscriptions": {
    "email": [
      "AutoaddOptionsChangedEvent", 
      "GtkUILogMessageEvent", 
      "TorrentFinishedEvent", 
      "YARSSConfigChangedEvent"
    ]
  }, 
  "format": 1, 
  "smtp_port": 587, 
  "smtp_host": "smtp.gmail.com", 
  "smtp_from": “x@x.x”, 
  "smtp_user": “x@x.x”, 
  "smtp_pass": “xxxxxx”, 
  "smtp_tls": true
BUT:
Screenshot 2019-03-30 at 8.07.22.png
Screenshot 2019-03-30 at 8.07.22.png (109.13 KiB) Viewed 20744 times
and then after setting all the values:

Code: Select all

-rw-r--r--  1 pete  staff  536 Mar 30 08:43 notifications-core.conf
So Deluge is able to update config files but does not read them at start?

Apple's APFS causes also other headaches, so I think I'll move Deluge to a Linux virtual machine.

Re: Notifications settings lost when daemon is restarted

Posted: Mon Apr 01, 2019 12:07 pm
by Cas
Can you enable logging to check for errors?

Re: Notifications settings lost when daemon is restarted

Posted: Mon Apr 01, 2019 2:02 pm
by Ocid
Here's the log from running /Applications/Deluge.app/Contents/MacOS/Deluge -L debug -l /Users/pete/Temp/deluge.log, checking that Notifications settings are empty and closing (Quit & Shutdown daemon) Deluge.

Re: Notifications settings lost when daemon is restarted

Posted: Sun Apr 07, 2019 7:41 pm
by Ocid
Tried to move deluge server from macOS to a virtual Ubuntu 18.10 that was already running on one of my virtual servers and also that resets the Notifications and YaRSS2 settings when the daemon is restarted.