{{{
root@debian-s-1vcpu-1gb-ams3-01:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
}}}
First downloading via `apt-get install deluged` and `apt-get install
deluge-web`
{{{
root@debian-s-1vcpu-1gb-ams3-01:~# deluge-web --version
deluge-web: 1.3.15
libtorrent: 1.1.11.0
}}}
{{{
root@debian-s-1vcpu-1gb-ams3-01:~# deluged --version
deluged: 1.3.15
libtorrent: 1.1.11.0
}}}
Then following the [https://deluge.readthedocs.io/en/latest/how-to
/systemd-service.html official guide] step by step on
to set up services works for `deluged` but does not work for `deluge-web`.
Everything looks file until this command for checking the status
{{{
root@debian-s-1vcpu-1gb-ams3-01:~# sudo systemctl status deluge-web
● deluge-web.service - Deluge Bittorrent Client Web Interface
Loaded: loaded (/etc/systemd/system/deluge-web.service; enabled; vendor
preset: enabled)
Drop-In: /etc/systemd/system/deluge-web.service.d
└─user.conf
Active: failed (Result: exit-code) since Sun 2020-05-03 09:15:37 UTC;
5min ago
Docs: man:deluge-web
Process: 461 ExecStart=/usr/bin/strace -f /usr/bin/deluge-web -l
/var/log/deluge/web.log -L debug (code=exited, status=203/EXEC)
Main PID: 461 (code=exited, status=203/EXEC)
May 03 09:15:37 debian-s-1vcpu-1gb-ams3-01 systemd[1]: deluge-web.service:
Service RestartSec=100ms expired, scheduling restart.
May 03 09:15:37 debian-s-1vcpu-1gb-ams3-01 systemd[1]: deluge-web.service:
Scheduled restart job, restart counter is at 5.
May 03 09:15:37 debian-s-1vcpu-1gb-ams3-01 systemd[1]: Stopped Deluge
Bittorrent Client Web Interface.
May 03 09:15:37 debian-s-1vcpu-1gb-ams3-01 systemd[1]: deluge-web.service:
Start request repeated too quickly.
May 03 09:15:37 debian-s-1vcpu-1gb-ams3-01 systemd[1]: deluge-web.service:
Failed with result 'exit-code'.
May 03 09:15:37 debian-s-1vcpu-1gb-ams3-01 systemd[1]: Failed to start
Deluge Bittorrent Client Web Interface.
}}}
You may wish to reference the bug report [https://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=927197 #927197], though I have not verified if this
works yet.
You may also wish to reference this old
[https://www.reddit.com/r/linuxquestions/comments/47jzln/systemctl_wont_start_delugewebservice/
Reddit post]
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3395>
Deluge <https://deluge-torrent.org/>
Deluge Project
Comment (by totavent43):
Edit: the above log contained my own debug flag, hence the line
{{{
Process: 461 ExecStart=/usr/bin/strace -f /usr/bin/deluge-web -l
/var/log/deluge/web.log -L debug (code=exited, status=203/EXEC)
}}}
Which by the way, did not make any logs.
Since this is not in the official guide, I remove the debug flag and ran
it again. Here is the result
{{{
root@debian-s-1vcpu-1gb-ams3-01:~# sudo systemctl status deluge-web
● deluge-web.service - Deluge Bittorrent Client Web Interface
Loaded: loaded (/etc/systemd/system/deluge-web.service; enabled; vendor
preset: enabled)
Drop-In: /etc/systemd/system/deluge-web.service.d
└─user.conf
Active: failed (Result: exit-code) since Sun 2020-05-03 10:13:28 UTC;
2s ago
Docs: man:deluge-web
Process: 638 ExecStart=/usr/bin/deluge-web -d (code=exited, status=2)
Main PID: 638 (code=exited, status=2)
May 03 10:13:28 debian-s-1vcpu-1gb-ams3-01 systemd[1]: deluge-web.service:
Main process exited, code=exited, status=2/INVALIDARGUMENT
May 03 10:13:28 debian-s-1vcpu-1gb-ams3-01 systemd[1]: deluge-web.service:
Failed with result 'exit-code'.
May 03 10:13:28 debian-s-1vcpu-1gb-ams3-01 systemd[1]: deluge-web.service:
Service RestartSec=100ms expired, scheduling restart.
May 03 10:13:28 debian-s-1vcpu-1gb-ams3-01 systemd[1]: deluge-web.service:
Scheduled restart job, restart counter is at 5.
May 03 10:13:28 debian-s-1vcpu-1gb-ams3-01 systemd[1]: Stopped Deluge
Bittorrent Client Web Interface.
May 03 10:13:28 debian-s-1vcpu-1gb-ams3-01 systemd[1]: deluge-web.service:
Start request repeated too quickly.
May 03 10:13:28 debian-s-1vcpu-1gb-ams3-01 systemd[1]: deluge-web.service:
Failed with result 'exit-code'.
May 03 10:13:28 debian-s-1vcpu-1gb-ams3-01 systemd[1]: Failed to start
Deluge Bittorrent Client Web Interface.
}}}
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3395#comment:1>
Comment (by Calajese):
Appears to be that the issue #3090 has somehow appeared again.[[BR]]
Remove the "-d" in the "ExecStart=" line from "/etc/systemd/system/deluge-
web.service" and run the commands "sudo systemctl daemon-reload" and "sudo
systemctl restart deluge-web".
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3395#comment:2>
Comment (by richardsjenkins):
Great help! Thank you for this guide[https://www.kitchenremodelhawaii.com
.]
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3395#comment:3>
* status: new => closed
* resolution: => WontFix
Comment:
The service file in the docs is for Deluge 2.0 that introduced the `-d` to
damonize web like deluged so of course is not valid for running Deluge 1.3
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3395#comment:4>