Can't start deluge-web service

General support for problems installing or using Deluge
Post Reply
zerone
New User
New User
Posts: 1
Joined: Tue Dec 15, 2020 7:18 pm

Can't start deluge-web service

Post by zerone »

My SBC is the orange pi pc with latest OS Armbian_21.08.1_Orangepipc_bullseye_current_5.10.60.

However, after installing deluge , deluged , deluge-web package, I set up two systemd services, deluged.service and deluge-web.service.

deluged.service setting below:
[Unit]
Description=Deluge Bittorrent Client Daemon
Documentation=man:deluged
After=network-online.target
[Service]
Type=simple
User=pi
UMask=007
ExecStart=/usr/bin/deluged -d
ExecStop=/usr/bin/kill /usr/bin/deluged
Restart=on-failure
TimeoutStopSec=300
[Install]
WantedBy=multi-user.target

deluge-web.service setting below:
[Unit]
Description=Deluge Bittorrent Client Web Interface
Documentation=man:deluge-web
After=network-online.target deluged.service
Wants=deluged.service
[Service]
Type=simple
User=pi
UMask=007
ExecStart=/usr/bin/deluge-web -p 8112
ExecStop=/usr/bin/kill /usr/bin/deluge-web
Restart=on-failure
[Install]
WantedBy=multi-user.target

deluged.service can be activated, but deluged-web.service can not.

the error code below:

root@orangepipc:~# 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)
Active: failed (Result: exit-code) since Thu 2021-09-09 01:43:16 CST; 1min 9s ago
Docs: man:deluge-web
Process: 9985 ExecStart=/usr/bin/deluge-web -p 8112 (code=exited, status=0/SUCCESS)
Process: 9988 ExecStop=/usr/bin/kill /usr/bin/deluge-web (code=exited, status=1/FAILURE)
Main PID: 9985 (code=exited, status=0/SUCCESS)
CPU: 1.572s

Sep 09 01:43:16 orangepipc systemd[1]: deluge-web.service: Scheduled restart job, restart counter is at 5.
Sep 09 01:43:16 orangepipc systemd[1]: Stopped Deluge Bittorrent Client Web Interface.
Sep 09 01:43:16 orangepipc systemd[1]: deluge-web.service: Consumed 1.572s CPU time.
Sep 09 01:43:16 orangepipc systemd[1]: deluge-web.service: Start request repeated too quickly.
Sep 09 01:43:16 orangepipc systemd[1]: deluge-web.service: Failed with result 'exit-code'.
Sep 09 01:43:16 orangepipc systemd[1]: Failed to start Deluge Bittorrent Client Web Interface.
mhertz
Moderator
Moderator
Posts: 2215
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Can't start deluge-web service

Post by mhertz »

You're missing the '-d' parameter of 'deluge-web' in the 'ExecStart' line(, as currently it forks and exits parent process so systemd cannot supervise it anymore, well unless changing service-type, e.g 'Type=forking' presumably, but no need when '-d' works).
Post Reply