Notifications settings lost when daemon is restarted

Support for Deluge on Apple Mac OS
Post Reply
Ocid
New User
New User
Posts: 5
Joined: Thu Mar 28, 2019 6:58 am

Notifications settings lost when daemon is restarted

Post 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).
Shryp
Moderator
Moderator
Posts: 521
Joined: Mon Apr 20, 2015 10:20 pm

Re: Notifications settings lost when daemon is restarted

Post 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
Ocid
New User
New User
Posts: 5
Joined: Thu Mar 28, 2019 6:58 am

Re: Notifications settings lost when daemon is restarted

Post 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.
Shryp
Moderator
Moderator
Posts: 521
Joined: Mon Apr 20, 2015 10:20 pm

Re: Notifications settings lost when daemon is restarted

Post 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.
Ocid
New User
New User
Posts: 5
Joined: Thu Mar 28, 2019 6:58 am

Re: Notifications settings lost when daemon is restarted

Post 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 20711 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.
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Notifications settings lost when daemon is restarted

Post by Cas »

Can you enable logging to check for errors?
Ocid
New User
New User
Posts: 5
Joined: Thu Mar 28, 2019 6:58 am

Re: Notifications settings lost when daemon is restarted

Post 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.
Attachments
deluge.log
(18.44 KiB) Downloaded 530 times
Ocid
New User
New User
Posts: 5
Joined: Thu Mar 28, 2019 6:58 am

Re: Notifications settings lost when daemon is restarted

Post 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.
Post Reply