[SOLVED] enable default_daemon prevents webui from running

General support for problems installing or using Deluge
irishbitte
New User
New User
Posts: 3
Joined: Mon Jan 20, 2014 4:49 pm
Location: Sheffield, UK

[SOLVED] enable default_daemon prevents webui from running

Post by irishbitte »

Hi there everyone, I'm brand new on these forums and this is my first post. I have searched and found relevant information to my problem, but the solutions that are available appear to crash my deluged and deluge-webui.

My OS is Ubuntu 12.04, fully patched and up to date. I am reasonably familiar with the workings of Ubuntu so shoud be able to do most things asked. I would really appreciate clear directions though. The Deluge packages I am running are all version 1.3.6 and are the ubuntu packages, made available on launchpad:

Code: Select all

deb http://ppa.launchpad.net/deluge-team/ppa/ubuntu precise main
deb-src http://ppa.launchpad.net/deluge-team/ppa/ubuntu precise main
Basically, I have deluged running on a headless server. I can remote into the machine over ssh or nx, so can open a desktop if required. I use Transdrone (basically transdroid) and when I connect to Deluge I get the "web interface not connected to a running daemon" problem. If I open a browser and connect, then transdrone works.

Using the directions given here: http://dev.deluge-torrent.org/wiki/Faq# ... ificdaemon and here: https://github.com/erickok/transdroid/issues/58 I modified the file

Code: Select all

/etc/init/deluge-web.conf 
on my box to read

Code: Select all

# deluge-web - Deluge Web UI
#
# The Web UI component of Deluge BitTorrent client, connects to deluged and
# provides a web application interface for users. Default url: http://localhost$

description "Deluge Web UI"
author "Deluge Team"

start on started deluged
stop on stopping deluged

respawn
respawn limit 5 30

env uid=deluge
env gid=deluge
env umask=027

#This line is the only line I added. There was no "default_daemon" option given initially? ************
#When this line is commented out, the web interface operates 'normally'
"default_daemon": "127.0.0.1:58846"

exec start-stop-daemon -S -c $uid:$gid -k $umask -x /usr/bin/deluge-web -- -l /var/log/deluge/web.log -L warning
Anybody got any ideas? This has been slightly driving me insane for quite a while now! I really appreciate any help anyone can throw my way.

Thanks!
Last edited by irishbitte on Mon Jan 20, 2014 7:20 pm, edited 1 time in total.
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: enable default_daemon prevents webui from running

Post by Cas »

Because it should be the id of the daemon from the hostlist.conf

The documentation needs updated, I just keep forgetting.
irishbitte
New User
New User
Posts: 3
Joined: Mon Jan 20, 2014 4:49 pm
Location: Sheffield, UK

Re: enable default_daemon prevents webui from running

Post by irishbitte »

Thanks Cas;
Cas wrote:Because it should be the id of the daemon from the hostlist.conf

The documentation needs updated, I just keep forgetting.
So I found this in the hostlist.conf:

Code: Select all

{
  "file": 1,
  "format": 1
}{
  "hosts": [
    [
      "8b0d59d5a5b414159caa1323f6e0c9b240c7ce0d",
      "localhost",
      58846,
      "dave",
      "dave"
    ]
  ]
}
Looking at that, I'm guessing that the id is

Code: Select all

"8b0d59d5a5b414159caa1323f6e0c9b240c7ce0d",
So I've updated my deluge-web.conf to this:

Code: Select all

# deluge-web - Deluge Web UI
#
# The Web UI component of Deluge BitTorrent client, connects to deluged and
# provides a web application interface for users. Default url: http://localhost$

description "Deluge Web UI"
author "Deluge Team"

start on started deluged
stop on stopping deluged

respawn
respawn limit 5 30

env uid=deluge
env gid=deluge
env umask=027

#Added by DC 08.12.13 to autoconnect to local deluged
#"default_daemon": "127.0.0.1:58846"
#Added based on advice on forum:
"default_daemon": "8b0d59d5a5b414159caa1323f6e0c9b240c7ce0d"

exec start-stop-daemon -S -c $uid:$gid -k $umask -x /usr/bin/deluge-web -- -l /var/log/deluge/web.log -L warning
Does that look correct to you? It doesn't make any difference to the effect on my end, the web interface won't start with that line enabled. Is it possible that there is a second hostlist.conf? I haven't found one, but just wondering. Thanks for your help :)
irishbitte
New User
New User
Posts: 3
Joined: Mon Jan 20, 2014 4:49 pm
Location: Sheffield, UK

Re: enable default_daemon prevents webui from running

Post by irishbitte »

Hi again,

I solved the problem with help from Cas. What I realised was that when I originally installed deluge I ran it as my normal user. When I then decided to make it headless, I created a 'deluge' user to run the daemon. That means that there was config files in two places, and I was trying to use the config files in my home directory :lol: silly me!

Anyhow, sorted, I found the correct daemon id, and it is now working very well. Thanks for all the help! :mrgreen:
kitizz
New User
New User
Posts: 2
Joined: Mon Jun 30, 2014 4:33 am

Re: [SOLVED] enable default_daemon prevents webui from runni

Post by kitizz »

I've been having similar troubles. I installed Deluge (1.3.6) and the Web UI from apt-get in Ubuntu 14.04.
I have everything running pretty nicely (using upstart).

Trying to set "default_daemon", but I cannot find the hostlist.conf file anywhere. I even searched the entire server =p
Can I just make it myself?
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: [SOLVED] enable default_daemon prevents webui from runni

Post by Cas »

Code: Select all

locate hostlist.conf
kitizz
New User
New User
Posts: 2
Joined: Mon Jun 30, 2014 4:33 am

Re: [SOLVED] enable default_daemon prevents webui from runni

Post by kitizz »

Sweet nothing =\
I'm 99% certain that no such file exists on my server.
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: [SOLVED] enable default_daemon prevents webui from runni

Post by Cas »

Ok that file isn't created unless you setup gtk thinclient, you can also create it yourself but it's actually named hostlist.conf.1.2
redman5087
New User
New User
Posts: 8
Joined: Thu Oct 07, 2010 7:00 pm

Re: [SOLVED] enable default_daemon prevents webui from runni

Post by redman5087 »

Hello,

I use deluged on a xbmcbuntu and deluge thin client on a ubuntu 14.04 desktop.
So the hostlist.conf.1.2 file is not created on deluged only server,
so I copied the file from the deluge thin client to the server!

Code: Select all

{
  "file": 1, 
  "format": 1
}{
  "hosts": [
    [
      "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", 
      "localhost", 
      58846, 
      "redman", 
      "xxxxxxxxx"
    ]
  ]
}
I changed the IP adres to localhost!

Still , if I'm rebooting the server, the web client doesn't automatically connect to the daemon!

Can anybody help?
redman5087
New User
New User
Posts: 8
Joined: Thu Oct 07, 2010 7:00 pm

Re: [SOLVED] enable default_daemon prevents webui from runni

Post by redman5087 »

Ha, found it,
Had aslo to change the web.conf to 127.0.0.1!

Anyway thanks
Post Reply