Can't Set Deluge Config Location

General support for problems installing or using Deluge
btr74
New User
New User
Posts: 5
Joined: Tue Sep 29, 2015 10:34 pm
OS or Distro: Arch

Can't Set Deluge Config Location

Postby btr74 » Mon Sep 25, 2017 5:26 pm

I'm running deluge from a systemd unit file in /etc/systemd/system/:

Code: Select all

[Unit]
Description=Deluge Daemon
After=network.target
[Service]
User=deluge
ExecStart=/usr/bin/deluged -d -c /etc/deluge
UMask=0002
Install]
WantedBy=multi-user.target

The contents of /etc/deluge are:

Code: Select all

-rw-rw-r-- 1 deluge deluge     73 Sep 25 12:23 auth
-rw-rw-r-- 1 deluge deluge   2444 Sep 25 13:05 core.conf
-rw-rw-r-- 1 deluge deluge      0 Sep 25 12:23 deluged.log
-rw-rw-r-- 1 deluge deluge     11 Sep 25 13:12 deluged.pid
-rw-rw-r-- 1 deluge deluge   2155 Sep 25 13:12 dht.state
drwxrwxr-x 2 deluge deluge   4096 Sep 25 12:23 plugins
-rw-rw-r-- 1 deluge deluge   2951 Sep 25 13:12 session.state
drwxrwxr-x 2 deluge deluge   4096 Sep 25 12:23 ssl
drwxrwxr-x 2 deluge deluge   4096 Sep 25 13:12 state
drwxr-xr-x 2 deluge deluge 131072 Sep 25 12:50 torrents

Deluge starts and runs fine:

Code: Select all

● deluged.service - Deluge Daemon
   Loaded: loaded (/etc/systemd/system/deluged.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2017-09-25 13:13:15 EDT; 4s ago
 Main PID: 7707 (deluged)
    Tasks: 7 (limit: 4915)
   CGroup: /system.slice/deluged.service
           └─7707 /usr/bin/python2 /usr/bin/deluged -d -c /etc/deluge

But when I connect to the daemon from the console using

Code: Select all

deluge-console -c /etc/deluge

and I check the output of 'config', the config is completely different from the one in core.auth.

Where is this rogue config coming from? I've checked ~/.config/deluge and it's empty. There is no /srv/deluge directory, and /root/.config/deluge has another different core.config file.

What do I need to change to be able to run deluge and load the config in /etc/deluge?
Last edited by btr74 on Mon Sep 25, 2017 6:52 pm, edited 1 time in total.

sinaptika
Member
Member
Posts: 12
Joined: Thu Apr 27, 2017 6:23 pm
OS or Distro: Linux/Alpine,Debian

Re: Can't Set Deluge Config Location

Postby sinaptika » Mon Sep 25, 2017 6:52 pm

Stupid suggestion, but can you replace your ExecStart line with this one:

Code: Select all

ExecStart=/usr/bin/deluged --do-not-daemonize --config=/etc/deluge


Also look at /var/lib/deluge/.config. Are there any core.conf files there?

btr74
New User
New User
Posts: 5
Joined: Tue Sep 29, 2015 10:34 pm
OS or Distro: Arch

Re: Can't Set Deluge Config Location

Postby btr74 » Mon Sep 25, 2017 7:09 pm

Tried the alternate systemd unit with same results as existing unit. Searched system for core.conf with

Code: Select all

 sudo find / -name core.conf
and only found the one in /etc/deluge and the one in /root/.config/deluge/

/var/lib/deluge doesn't exist

btr74
New User
New User
Posts: 5
Joined: Tue Sep 29, 2015 10:34 pm
OS or Distro: Arch

Re: Can't Set Deluge Config Location

Postby btr74 » Tue Sep 26, 2017 7:58 pm

I think my problem was that I was editing core.conf directly while the daemon was running. I guess that's a no-no.

I ran deluge as a user process to generate a fresh config in my home directory, then copied ~/.config/deluge to /etc/deluge and everything seems to work again with the above caveat.


Return to “Support”

Who is online

Users browsing this forum: No registered users and 9 guests