Opened 5 years ago

Closed 3 years ago

#3395 closed bug (WontFix)

deluge-web.service does not work on debian 10 stable based on the official guide

Reported by: totavent43 Owned by:
Priority: blocker Milestone: Future
Component: Web UI Version: 1.3.15
Keywords: Cc:

Description

On a fresh install of Debian 10 stable test environment

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 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 #927197, though I have not verified if this works yet.

You may also wish to reference this old Reddit post

Change History (4)

comment:1 by totavent43, 5 years ago

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.

comment:2 by Jean, 4 years ago

Appears to be that the issue #3090 has somehow appeared again.

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".

comment:3 by Calum, 3 years ago

Milestone: 1.3.16Future

Ticket retargeted after milestone deleted

comment:4 by Calum, 3 years ago

Resolution: WontFix
Status: newclosed

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

Note: See TracTickets for help on using tickets.