Page 1 of 1

User permissions? Ubuntu 10.10

Posted: Sun Apr 03, 2011 12:05 pm
by ImaWestie
I've set up an ubuntu server basically to only download & serve media from.

With Deluge installed in the default location, with the default permissions, I quickly filled up my root partition. :(
What I want to do is :
place .torrent files in
/srv/bittorrent/torrent/
The "in progress" files are stored in /srv/bittorrent/InProgress/
and when theyy are finished they move to /srv/bittorrent/Downloads
ls -l /srv/bittorrent
gives:

Code: Select all

drwxrwxrw- 4 deluge deluge 4096 2011-04-03 08:22 Downloads
drwxrwxrw- 4 deluge deluge 4096 2011-04-03 20:01 InProgress
drwxrwxrw- 2 deluge deluge 4096 2011-04-03 19:51 torrents
because this looked the same as /var/lib/deluge

but nothing is working!!

Well: I get the web console (which previously worked 100% fine) but none of the .torrent files I put in the foler /srv/bittorrent/torrents load up automatically. Any .torrent I add in manually via the web interface ends up with... a status of "7" (WTF?) or just red! "error" - they all stay on 0%.

I repeat, I had working torrents before I tried to move things. But I kept filling up my root partition then everything would stop.

If I could work out how to find / make a log file when I don't think I'm running it as a daemon, I'd post it :oops: :oops: but I don't think I can work that out.
config file:

Code: Select all

{
  "file": 1,
  "format": 1
}{
  "info_sent": 0.0,
  "lsd": true,
  "send_info": false,
  "move_completed_path": "/srv/bittorrent/Downloads",
  "enc_in_policy": 1,
  "queue_new_to_top": false,
  "ignore_limits_on_local_network": true,
  "rate_limit_ip_overhead": true,
  "daemon_port": 58846,
  "natpmp": true,
  "max_active_limit": 8,
  "utpex": true,
  "max_active_downloading": 3,
  "max_active_seeding": 5,
  "allow_remote": false,
  "max_half_open_connections": 50,
  "download_location": "/srv/bittorrent/InProgress",
  "compact_allocation": false,
  "max_upload_speed": -1.0,
  "cache_expiry": 60,
  "prioritize_first_last_pieces": false,
  "auto_managed": true,
  "enc_level": 2,
  "max_connections_per_second": 20,
  "dont_count_slow_torrents": false,
  "random_outgoing_ports": true,
  "max_upload_slots_per_torrent": -1,
  "new_release_check": false,
  "enc_out_policy": 1,
  "outgoing_ports": [
    0,
    0
  ],
  "seed_time_limit": 180,
  "cache_size": 512,
  "share_ratio_limit": 2.0,
  "max_download_speed": -1.0,
  "geoip_db_location": "/usr/share/GeoIP/GeoIP.dat",
  "torrentfiles_location": "/srv/bittorrent/torrents",
  "stop_seed_at_ratio": false,
  "peer_tos": "0x00",
  "listen_interface": "",
  "upnp": true,
  "max_download_speed_per_torrent": -1,
  "max_upload_slots_global": 4,
  "enabled_plugins": [],
  "random_port": true,
  "autoadd_enable": true,
  "max_connections_global": 200,
  "enc_prefer_rc4": true,
  "listen_ports": [
    6881,
    6891
  ],
  "dht": true,
  "stop_seed_ratio": 2.0,
  "seed_time_ratio_limit": 7.0,
  "max_upload_speed_per_torrent": -1,
  "copy_torrent_file": true,
  "del_copy_torrent_file": false,
  "random_port": true,
  "autoadd_enable": true,
  "max_connections_global": 200,
  "enc_prefer_rc4": true,
  "listen_ports": [
    6881,
    6891
  ],
  "dht": true,
  "stop_seed_ratio": 2.0,
  "seed_time_ratio_limit": 7.0,
  "max_upload_speed_per_torrent": -1,
  "copy_torrent_file": true,
  "del_copy_torrent_file": false,
  "move_completed": true,
  "proxies": {
    "peer": {
      "username": "",
      "password": "",
      "type": 0,
      "hostname": "",
      "port": 8080
    },
    "web_seed": {
      "username": "",
      "password": "",
      "type": 0,
      "hostname": "",
     },
   "tracker": {
      "username": "",
      "password": "",
      "type": 0,
      "hostname": "",
      "port": 8080
    },
    "dht": {
      "username": "",
      "password": "",
      "type": 0,
      "hostname": "",
      "port": 8080
    }
  },
  "add_paused": false,
  "max_connections_per_torrent": -1,
  "remove_seed_at_ratio": false,
  "autoadd_location": "/srv/bittorrent/torrents",
  "plugins_location": "/var/lib/deluge/plugins"
}

Re: User permissions? Ubuntu 10.10

Posted: Sun Apr 03, 2011 12:16 pm
by ImaWestie
Just to confirm... I deleted all the entries from the web-form, which AFAIK puts everything back to /var/lib/deluge...

it now seems to be working fine. :x which means I'm going to fill up /root tonight.

Re: User permissions? Ubuntu 10.10

Posted: Sun Apr 03, 2011 2:00 pm
by Cas
There is a 'settings not saved' bug in webui that might be the part of the problem.

Re: User permissions? Ubuntu 10.10

Posted: Mon Apr 04, 2011 9:37 am
by ImaWestie
Well if the web client's buggy... then I should be able to just change deluge.config / deluge.config~ while the application is turned off shouldn't i?

It certainly worked exactly how I wanted it to, up till then.

Is there another possibility, such as using a symbollic link to put /var/lib/deluge physically on the other partition?

There has to be something I can do here. Although, I'm pretty sure I'm about to rebuild my server anyway (with Deluge & mediatomb, both are having the same kind of permissions issues).

Westie

Re: User permissions? Ubuntu 10.10

Posted: Mon Apr 04, 2011 11:53 am
by ImaWestie
It must not be just permissions - because I was able to move completed torrents from within the web client.

Still, it would be much better if the torrents went straight to the right place.

Westie

Re: User permissions? Ubuntu 10.10

Posted: Mon Apr 04, 2011 2:11 pm
by Cas
Well if the web client's buggy...
See the bug report: http://dev.deluge-torrent.org/ticket/1370#comment:5
then I should be able to just change deluge.config / deluge.config~ while the application is turned off shouldn't i?
You don't need to manually edit it, you could change the values with either the gtk or console ui.

Re: User permissions? Ubuntu 10.10

Posted: Tue Apr 05, 2011 10:12 am
by ImaWestie
OK.
When I got home:
Deluge was working, but it was putting files into the wrong place "by default". So my root partition was getting full.

Based on the last post, I installed the console ui. Which installed to my main user home folder.
I cannot add torrent files manually. They are not loading automatically. The web client now refuses to connect (I get the web page loaded, I hit the "connect", it shows the host:port.... but never connects).

WTF? :?: :?:

Config file:

Code: Select all

{
  "file": 1, 
  "format": 1
}{
  "info_sent": 0.0, 
  "lsd": true, 
  "max_download_speed": -1.0, 
  "send_info": false, 
  "natpmp": true, 
  "move_completed_path": "/srv/bittorrent/Downloads", 
  "peer_tos": "0x00", 
  "enc_in_policy": 1, 
  "queue_new_to_top": false, 
  "ignore_limits_on_local_network": true, 
  "rate_limit_ip_overhead": true, 
  "daemon_port": 58846, 
  "torrentfiles_location": "/srv/bittorrent/torrents", 
  "max_active_limit": 8, 
  "geoip_db_location": "/usr/share/GeoIP/GeoIP.dat", 
  "upnp": true, 
  "utpex": true, 
  "max_active_downloading": 3, 
  "max_active_seeding": 5, 
  "allow_remote": false, 
  "outgoing_ports": [
    0, 
    0
  ], 
  "enabled_plugins": [], 
  "max_half_open_connections": 50, 
  "download_location": "/srv/bittorrent/InProgress", 
  "compact_allocation": false, 
  "max_upload_speed": -1.0, 
  "plugins_location": "/home/garrie/.config/deluge/plugins", 
  "max_connections_global": 200, 
  "enc_prefer_rc4": true, 
  "cache_expiry": 60, 
  "dht": true, 
  "stop_seed_at_ratio": false, 
  "stop_seed_ratio": 2.0, 
  "max_download_speed_per_torrent": -1, 
  "prioritize_first_last_pieces": false, 
  "max_upload_speed_per_torrent": -1, 
  "auto_managed": true, 
  "enc_level": 2, 
  "copy_torrent_file": false, 
  "max_connections_per_second": 20, 
  "listen_ports": [
    6881, 
    6891
  ], 
  "max_connections_per_torrent": -1, 
  "del_copy_torrent_file": false, 
  "move_completed": false, 
  "autoadd_enable": false, 
  "proxies": {
    "peer": {
      "username": "", 
      "password": "", 
      "hostname": "", 
      "type": 0, 
      "port": 8080
    }, 
    "web_seed": {
      "username": "", 
      "password": "", 
      "hostname": "", 
      "type": 0, 
      "port": 8080
    }, 
    "tracker": {
      "username": "", 
      "password": "", 
      "hostname": "", 
      "type": 0, 
      "port": 8080
    }, 
    "dht": {
      "username": "", 
      "password": "", 
      "hostname": "", 
      "type": 0, 
      "port": 8080
    }
  }, 
  "dont_count_slow_torrents": false, 
  "add_paused": false, 
  "random_outgoing_ports": true, 
  "max_upload_slots_per_torrent": -1, 
  "new_release_check": false, 
  "enc_out_policy": 1, 
  "seed_time_ratio_limit": 7.0, 
  "remove_seed_at_ratio": false, 
  "autoadd_location": "/srv/bittorrent/torrents", 
  "max_upload_slots_global": 4, 
  "seed_time_limit": 180, 
  "cache_size": 512, 
  "share_ratio_limit": 2.0, 
  "random_port": true, 
  "listen_interface": ""
}

Re: User permissions? Ubuntu 10.10

Posted: Tue Apr 05, 2011 1:08 pm
by Cas
Looking at your settings you have supplied I can see two different config locations:

Code: Select all

"plugins_location": "/home/garrie/.config/deluge/plugins"

"plugins_location": "/var/lib/deluge/plugins"
The config location has to be the same for all deluge apps. It defaults to ~/.config/deluge/ but can be specified with command switches.

Can you please elaborate on exactly how you are running deluge on your server, such as are you using an init script?

fyi for me the easiest solution to configure my server's deluged is to setup ThinClient mode and connect with the gtk ui on my desktop machine.

Re: User permissions? Ubuntu 10.10

Posted: Wed Apr 20, 2011 10:34 am
by ImaWestie
Hi, sorry that this turned into one of those threads where some newbie turns up, posts his problems... gets some feedback... and dissapears.

It seems, I have now put the Deluge user into a different group, and from within the web client managed to change the default download location. For some time there I was using:
/srv/bitorrent
/srv/bittorrent
/srv/bittorrents

for different downloads.

But I have now moved all my downloads to one path, it's working, it's downloading, it's uploading.

One thing now bothers me. I have a lot of stuff queued up. I have tinkered, and sorted out my cheap router dieing due to being hit with too many incoming & outgoing simultaneous transfers.

My downloads that are poorly seeded, I get a great ratio. But other torrents, which now seem to have 0 peers/seeders... my ratio sucks. What do I have to do to make Deluge continue to share these? Am I still sharing them if I'm no longer downloading them, which means... once I've downloaded I should remove the torrent? OR what? :?:

Re: User permissions? Ubuntu 10.10

Posted: Wed Apr 20, 2011 12:36 pm
by Cas
If the torrents are queued after finished downloading then it will seed them as required. If you don't want them to seed then pause or remove the torrent (without data).

http://dev.deluge-torrent.org/wiki/Faq# ... oManageddo
http://www.rasterbar.com/products/libto ... ml#queuing