Page 1 of 1

deluged not creating core.conf

Posted: Sun Sep 30, 2012 7:49 am
by TechN9ne1730
I am setting up a seedbox on a ubuntu server with the latest deluge and rasterbar from the ubuntu repos since they are more updated. After installing them I ran deluged and it created the .config dir inside the home dir. I downloaded the core.conf to my desktop because I wanted to id certain line numbers because I am writing a bash script to automate the process for us(three of us,1 transmission and 2 instances of deluge) in the future. I wanted to wipe the slate clean and test from scratch using the script. So I removed the .config dir since deluged should create a new one, or so I thought. Now when I run deluged, it recreates the config dir, but it does not create a new core.conf or auth file. How do I get deluged to recreate core.conf and such? I tried purging deluge and restalling but nothing changes.

Re: deluged not creating core.conf

Posted: Sun Sep 30, 2012 11:00 am
by Cas
core.conf is only usually created once a preference has been changed as up until that point it would be using default values. Have you considered using the console/json api/python client script to get/set values instead of the conf file?

Re: deluged not creating core.conf

Posted: Sun Sep 30, 2012 5:26 pm
by TechN9ne1730
Cas wrote:core.conf is only usually created once a preference has been changed as up until that point it would be using default values.

Ok so as I understand it if I do deluged -p 10000 and then deluged I should get a new core.conf right? I tried this and the ~/.config/deluge/core.conf still is not created.
Have you considered using the console/json api/python client script to get/set values instead of the conf file?
You mean deluge-console?

Re: deluged not creating core.conf

Posted: Sun Sep 30, 2012 5:42 pm
by Cas
Actually I forgot it writes out the core.conf on shutdown.
TechN9ne1730 wrote:You mean deluge-console?
Yes

Re: deluged not creating core.conf

Posted: Sun Sep 30, 2012 5:58 pm
by TechN9ne1730
Cas wrote:Actually I forgot it writes out the core.conf on shutdown.
So deluged then deluged -q should write a new conf file? It didn't.Atleast no in home/$user/.config/deluge but when I start deluged and go to the console and type config, it spits out a config file but it is still not in the location.

Update as I type: For some reason deluge is running as root instead of the user. I checked /root/.config/deluge and found what I believe is the core.conf it is using. If I am logged in as a user how is it running as root?
TechN9ne1730 wrote:You mean deluge-console?
Yes
Does it offer any real advantage?

Re: deluged not creating core.conf

Posted: Sun Sep 30, 2012 6:22 pm
by Cas
For scripting it would be simpler to use it to get/set core values e.g.:

Code: Select all

deluge-console "config -s max_active_downloading 5"

Re: deluged not creating core.conf

Posted: Sun Sep 30, 2012 6:32 pm
by TechN9ne1730
Thanks, that would be much cleaner then using sed.
Still, why is it creating the config as root and not the user like it did originally?

EDIT: After deleting the config foler in root, it now created all the proper files in ~/.config/deluge.

deluge-console hangs when using config -s or config --set

Posted: Sun Sep 30, 2012 10:31 pm
by TechN9ne1730
For example If I use

Code: Select all

deluge-console "config -s max_active_downloading 5"
or

Code: Select all

deluge-console "config --set max_active_downloading 5"
my terminal just hangs there doing nothing.

Specs:
Ubuntu 12.04
Xeon W3520
24GB of DDR3 RAM
2x2TB disks in RAID0
Deluge 1.3.5
libtorrent 0.15.10.0

EDIT: Sorry deluge-console was not connect to a running daemon.

Re: deluge-console hangs when using config -s or config --se

Posted: Sun Sep 30, 2012 11:09 pm
by Cas
Can you access deluged with just deluge-console? did you change the default daemon port?

Re: deluged not creating core.conf

Posted: Sun Sep 30, 2012 11:24 pm
by TechN9ne1730
Sorry deluge-console was not connect to a running daemon. Thanks cas!