deluged not creating core.conf

General support for problems installing or using Deluge
Post Reply
TechN9ne1730
Member
Member
Posts: 36
Joined: Thu Dec 02, 2010 12:23 pm

deluged not creating core.conf

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

Re: deluged not creating core.conf

Post 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?
TechN9ne1730
Member
Member
Posts: 36
Joined: Thu Dec 02, 2010 12:23 pm

Re: deluged not creating core.conf

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

Re: deluged not creating core.conf

Post by Cas »

Actually I forgot it writes out the core.conf on shutdown.
TechN9ne1730 wrote:You mean deluge-console?
Yes
TechN9ne1730
Member
Member
Posts: 36
Joined: Thu Dec 02, 2010 12:23 pm

Re: deluged not creating core.conf

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

Re: deluged not creating core.conf

Post 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"
TechN9ne1730
Member
Member
Posts: 36
Joined: Thu Dec 02, 2010 12:23 pm

Re: deluged not creating core.conf

Post 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.
TechN9ne1730
Member
Member
Posts: 36
Joined: Thu Dec 02, 2010 12:23 pm

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

Post 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.
Last edited by TechN9ne1730 on Sun Sep 30, 2012 11:21 pm, edited 1 time in total.
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

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

Post by Cas »

Can you access deluged with just deluge-console? did you change the default daemon port?
TechN9ne1730
Member
Member
Posts: 36
Joined: Thu Dec 02, 2010 12:23 pm

Re: deluged not creating core.conf

Post by TechN9ne1730 »

Sorry deluge-console was not connect to a running daemon. Thanks cas!
Post Reply