Confusing config locations

General support for problems installing or using Deluge
krunk89
New User
New User
Posts: 1
Joined: Thu Jul 20, 2017 7:29 am
OS or Distro: Raspbian Jessie

Confusing config locations

Postby krunk89 » Thu Jul 20, 2017 8:44 am

There is a small issue with the systemd tutorial at http://dev.deluge-torrent.org/wiki/User ... ce/systemd

When creating the deluge user, I think the home directory for the new user should be "/var/lib/deluged" (with a d at the end).

I also think that the directories created by the package manager might add to the confusion.
Not sure if I'm just running an old version (1.3.10), but according to "dpkg-query -L deluged", the deluged package creates
/var/lib/deluged
/var/lib/deluged/config

The second path is not used for any configuration, which is actually found in ~/.config/deluge, or /var/lib/deluge/.config/deluge.

If we have launched deluged from shell as the current user, as per your thin client tutorial at http://dev.deluge-torrent.org/wiki/UserGuide/ThinClient. Running the daemon from the shell will create ~/.config/deluge, meaning we now have (on a pi anyway)

/var/lib/deluged/config
/var/lib/deluge/.config/deluge/
/home/pi/.config/deluge

I don't think I'm the first person to get confused because of this. https://superuser.com/questions/619261/ ... connection

shamael
Seeder
Seeder
Posts: 229
Joined: Sat Oct 08, 2016 9:28 am
OS or Distro: osmc

Re: Confusing config locations

Postby shamael » Wed Aug 02, 2017 4:00 pm

The config is located in the home drive of the user launching Deluge so launching it with the pi user or with the deluge user will result in different configuration. I agree it may be clearer.

Tvich
Member
Member
Posts: 30
Joined: Thu Apr 27, 2017 6:36 pm
OS or Distro: Linux/Alpine,Debian

Re: Confusing config locations

Postby Tvich » Thu Aug 03, 2017 12:16 pm

krunk89 wrote:When creating the deluge user, I think the home directory for the new user should be "/var/lib/deluged" (with a d at the end).

Systemd guide is used for both deluged and deluge-web service. /var/lib/deluge is the logical path in this case. Having separate deluge-web and deluged config locations would probably create even more confusion?

krunk89 wrote:I also think that the directories created by the package manager might add to the confusion.
Not sure if I'm just running an old version (1.3.10), but according to "dpkg-query -L deluged", the deluged package creates
/var/lib/deluged
/var/lib/deluged/config

Can anyone check what gets created on ubuntu/debian if installing via ppa? /var/lib/deluged was probably created by mkdir /var/lib/$PACKAGE_NAME somewhere?

krunk89 wrote:I don't think I'm the first person to get confused because of this. https://superuser.com/questions/619261/ ... connection

Do you think executing deluged with -c /var/lib/deluge/ in systemd guide would prevent some of the confusion?
The fact, that you need to run deluged, deluge-web and deluge-console with -c /config/dir/ seems like a well kept secret, event though it's mentioned in the manual.


Return to “Support”

Who is online

Users browsing this forum: No registered users and 3 guests