Notifications settings lost when daemon is restarted

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

Notifications settings lost when daemon is restarted

Postby Ocid » Thu Mar 28, 2019 2:29 pm

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
Super Seeder
Super Seeder
Posts: 495
Joined: Mon Apr 20, 2015 10:20 pm

Re: Notifications settings lost when daemon is restarted

Postby Shryp » Fri Mar 29, 2019 10:06 am

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

Postby Ocid » Fri Mar 29, 2019 12:04 pm

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
Super Seeder
Super Seeder
Posts: 495
Joined: Mon Apr 20, 2015 10:20 pm

Re: Notifications settings lost when daemon is restarted

Postby Shryp » Sat Mar 30, 2019 12:56 am

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

Postby Ocid » Sat Mar 30, 2019 7:12 am

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 224 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: 3570
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Notifications settings lost when daemon is restarted

Postby Cas » Mon Apr 01, 2019 12:07 pm

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

Postby Ocid » Mon Apr 01, 2019 2:02 pm

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 5 times

Ocid
New User
New User
Posts: 5
Joined: Thu Mar 28, 2019 6:58 am

Re: Notifications settings lost when daemon is restarted

Postby Ocid » Sun Apr 07, 2019 7:41 pm

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.


Return to “Mac OS”

Who is online

Users browsing this forum: No registered users and 3 guests