Multiple user/daemon on CentOS 7

General support for problems installing or using Deluge
executable77
Member
Member
Posts: 22
Joined: Tue Oct 16, 2018 8:55 am
Location: France

Re: Multiple user/daemon on CentOS 7

Post by executable77 »

Oh okay. How can I change the web ui port ? Because I don't have any conf files in a_conf dir

Image
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Multiple user/daemon on CentOS 7

Post by Cas »

There are many ways to do this so knowing what setup you are aiming for would be helpful.

There is no web.conf for that config because you are not running the web client on those daemons. Either enable the webui plugin (from console) or better yet run deluge-web instances pointing to the config and specify different ports.
executable77
Member
Member
Posts: 22
Joined: Tue Oct 16, 2018 8:55 am
Location: France

Re: Multiple user/daemon on CentOS 7

Post by executable77 »

Well I'm aiming to create a specific daemon and web adress to system user of CentOS 7. I know I can run the default web browser with

Code: Select all

systemctl start deluge-web
but how to start the others ? Thank you for your time
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Multiple user/daemon on CentOS 7

Post by Cas »

The same way you start the daemons by specifying the config location.
executable77
Member
Member
Posts: 22
Joined: Tue Oct 16, 2018 8:55 am
Location: France

Re: Multiple user/daemon on CentOS 7

Post by executable77 »

Do you specify like :

Code: Select all

systemctl start deluge-web ~/a_conf
If I run only

Code: Select all

deluged
Image

or

Code: Select all

deluged --config-dir ~/a_conf/
Image

Also I tried this but I only get errors

Image

I tried to use the --config option and I have several errors ont it

Image

EDIT

I got some news. I made a fresh install of centos 7 and installed deluge. I created a new conf dir with :

Code: Select all

deluged -c a_conf -p 58840
I took the same content of the auth file in /var/lib/deluge/.config/deluge/auth and copied in the new daemon /var/lib/deluge/.config/a_conf/auth

And now I can connect throught console with

Code: Select all

deluge-console -c /var/lib/deluge/.config/a_conf/
It seems like it's working

Image

But still can't connect to the daemon in the web interface and don't have core.conf file in a_conf folder.
The I run

Code: Select all

pkill deluged
deluged
The goal is to have an instance of web interface and daemon
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Multiple user/daemon on CentOS 7

Post by Cas »

There are too many typo mistakes resulting in those errors. Running from the console requires precise commands:

deluged NOT deluge
--config or -c NOT conf-dir or config-dir etc.

So:

Code: Select all

deluged --config ~/a_conf --port 58840
deluge-web --config ~/a_conf --port 8140
deluge-console --config ~/a_conf
After killing deluged and deluge-web you could permanently set the port values in ~/a_conf.

The pgrep -a option might show more process detail:

Code: Select all

pgrep -fa deluged
executable77
Member
Member
Posts: 22
Joined: Tue Oct 16, 2018 8:55 am
Location: France

Re: Multiple user/daemon on CentOS 7

Post by executable77 »

I can access the web interface on the new port but I can't log in to a daemon.
I have this kind of error:

Image

~/a_conf/auth

Code: Select all

root:root:10

~/a_conf/web.conf

Code: Select all

{
  "file": 1, 
  "format": 1
}{
  "sidebar_show_zero": false, 
  "show_session_speed": false, 
  "pwd_sha1": "2ce1a410bcdcc53064129b6d950f2e9fee4edc1e", 
  "show_sidebar": true, 
  "sessions": {
    "7d2d20de2efb59f8c3dbc09265729823": {
      "login": "admin", 
      "expires": 1539680763.0, 
      "level": 10
    }, 
    "f6b302efe761441ed7efbe22bfb6b060": {
      "login": "admin", 
      "expires": 1539680676.0, 
      "level": 10
    }, 
    "db0165004e063da903ad9140d2532693": {
      "login": "admin", 
      "expires": 1539680693.0, 
      "level": 10
    }
  }, 
  "enabled_plugins": [], 
  "base": "/", 
  "first_login": false, 
  "theme": "gray", 
  "pkey": "ssl/daemon.pkey", 
  "default_daemon": "", 
  "cert": "ssl/daemon.cert", 
  "session_timeout": 3600, 
  "https": false, 
  "interface": "0.0.0.0", 
  "sidebar_multiple_filters": true, 
  "pwd_salt": "c26ab3bbd8b137f99cd83c2c1c0963bcc1a35cad", 
  "port": 8140
}
~/a_conf/core.conf

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": "/root/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": "/root/Downloads", 
  "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": true, 
  "outgoing_ports": [
    0, 
    0
  ], 
  "enabled_plugins": [], 
  "max_half_open_connections": 50, 
  "download_location": "/root/Downloads", 
  "compact_allocation": false, 
  "max_upload_speed": -1.0, 
  "plugins_location": "/root/a_conf/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": true, 
  "enc_out_policy": 1, 
  "seed_time_ratio_limit": 7.0, 
  "remove_seed_at_ratio": false, 
  "autoadd_location": "/root/Downloads", 
  "max_upload_slots_global": 4, 
  "seed_time_limit": 180, 
  "cache_size": 512, 
  "share_ratio_limit": 2.0, 
  "random_port": true, 
  "listen_interface": ""
}
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Multiple user/daemon on CentOS 7

Post by Cas »

Don't delete localclient line in auth: https://dev.deluge-torrent.org/wiki/Use ... entication

If the localclient line has been deleted from auth then you won't be able to connect unless you add the daemon using those root user credentials...
executable77
Member
Member
Posts: 22
Joined: Tue Oct 16, 2018 8:55 am
Location: France

Re: Multiple user/daemon on CentOS 7

Post by executable77 »

Oh okay some mistake have been made !
Now I don't have this error but I have a new error (I apoligize).

Image

The error is triggered when I try to run the daemon throught the web interface.

Image

and in deluge console I have

Image

EDIT

Oh okay it's working properly. I added a new user to auth file and connected to it throught web interface.

I would like to ask how do you change the web interface login credentials (Change the default password deluge) ?
DjLegolas
Member
Member
Posts: 35
Joined: Thu Oct 12, 2017 3:31 pm

Re: Multiple user/daemon on CentOS 7

Post by DjLegolas »

Go to Preferences =>Interface.
Post Reply