[help] Ubuntu 10.04 - Deluge PPA - Headless

General support for problems installing or using Deluge
Post Reply
Liath
New User
New User
Posts: 6
Joined: Thu Jun 02, 2011 10:18 pm

[help] Ubuntu 10.04 - Deluge PPA - Headless

Post by Liath »

Hello,
I'm trying to set up Deluge on my headless server machine, running Ubuntu 10.04.2 LTS. I've added the PPA, and installed deluged, deluge-console, and followed the wiki articles, but so far, I'm having no success. "service deluge-daemon start" runs, with [OK] returned, but the process is not running. I checked the logs, and I'm seeing something similar to a permissions error. I've created a deluge user, etc.
The Wiki could use an update? Followed instructions to the letter and no go :(
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: [help] Ubuntu 10.04 - Deluge PPA - Headless

Post by johnnyg »

Does it work if you run deluged manually yourself?
i.e. assuming you're running it as user "deluge":

Code: Select all

sudo -u deluge deluged -d
If you're getting a permissions error then either you haven't set the correct permissions on config/download folders or you've set the correct permissions but deluged isn't running as the correct user.
Liath
New User
New User
Posts: 6
Joined: Thu Jun 02, 2011 10:18 pm

Re: [help] Ubuntu 10.04 - Deluge PPA - Headless

Post by Liath »

Let me check real fast...
I do have deluge set up to use the "deluge" user. Which doesn't have a /home
That might affect it.
Here is what I get if I run the command you gave:

Code: Select all


liath@ubuntu-zm:~$ sudo -u deluge deluged -d
[ERROR   ] 21:26:20 main:221 [Errno 13] Permission denied: '/home/liath/.config/deluge'
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/deluge/main.py", line 214, in start_daemon
    Daemon(options, args)
  File "/usr/lib/pymodules/python2.6/deluge/core/daemon.py", line 52, in __init__
    if os.path.isfile(deluge.configmanager.get_config_dir("deluged.pid")):
  File "/usr/lib/pymodules/python2.6/deluge/configmanager.py", line 130, in get_config_dir
    return os.path.join(_configmanager.get_config_dir(), filename)
  File "/usr/lib/pymodules/python2.6/deluge/configmanager.py", line 93, in get_config_dir
    return self.config_directory
  File "/usr/lib/pymodules/python2.6/deluge/configmanager.py", line 51, in config_directory
    self.__config_directory = deluge.common.get_default_config_dir()
  File "/usr/lib/pymodules/python2.6/deluge/common.py", line 157, in get_default_config_dir
    return xdg.BaseDirectory.save_config_path("deluge")
  File "/usr/lib/pymodules/python2.6/xdg/BaseDirectory.py", line 59, in save_config_path
    os.makedirs(path, 0700)
  File "/usr/lib/python2.6/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/home/liath/.config/deluge'
liath@ubuntu-zm:~$
Liath
New User
New User
Posts: 6
Joined: Thu Jun 02, 2011 10:18 pm

Re: [help] Ubuntu 10.04 - Deluge PPA - Headless

Post by Liath »

Also, where are the default configuration files for deluge? I don't see any in /etc or the installation folder
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: [help] Ubuntu 10.04 - Deluge PPA - Headless

Post by johnnyg »

Default config directory is whatever xdg.BaseDirectory.save_config_path("deluge") returns.
Seeing the daemon doesn't have a home directory you would need to create a config directory for it and run it with -c, e.g. deluged -c /etc/deluge
Liath
New User
New User
Posts: 6
Joined: Thu Jun 02, 2011 10:18 pm

Re: [help] Ubuntu 10.04 - Deluge PPA - Headless

Post by Liath »

I'll try messing around with it tomorrow, but I did have a question about the PPA: Is it possible for the PPA to have all of this stuff done? Seems like a lot of extra work for someone who is still learning *nix -- for instance I have no idea what the first statement meant up there, or how to obtain the result. I've seen another package that uses java set up to run via init, with it's own user created and all that. Just not sure if it is possible to have it done since deluge uses python?

I understand that people may not want deluge running as a daemon. But the package could be configured to have all of the init scripts and such there, with everything set to go -- just change a flag in a configuration file such as "daemon = 'true' ", and it launches via init.

It'd keep the number of clueless posts like mine to a minimum so that busy devs and mods would have less posts to wade through :D
Liath
New User
New User
Posts: 6
Joined: Thu Jun 02, 2011 10:18 pm

Re: [help] Ubuntu 10.04 - Deluge PPA - Headless

Post by Liath »

Ok -- going to try making a /home/deluge/.config folder... don't know how this will work as I initially used the guide from this page to get it up at first (clueless newbie, didn't get to main site first)

I'll update the post in a few!
Liath
New User
New User
Posts: 6
Joined: Thu Jun 02, 2011 10:18 pm

Re: [help] Ubuntu 10.04 - Deluge PPA - Headless

Post by Liath »

I removed the deluge user, purged deluge, and re-installed using this guide here:
http://www.havetheknowhow.com/Install-t ... dless.html
Works so far. I can get to the server now!
I think the main difference is the way the guide shows to add the user.
Post Reply