Deluge-web stuck after start

General support for problems installing or using Deluge
Post Reply
jools
New User
New User
Posts: 2
Joined: Sun Dec 30, 2018 11:28 pm

Deluge-web stuck after start

Post by jools »

Installed deluged, deluge-console and deluge-web on raspberry with raspbian stretch and external usb hdd. Got it working but then I tried to make the connection work through ssl. I followed the usual guide excep that I didn't use self-signed key but one from let's encrypt. I used the web-ui to set the new name for the cert and private key and restarted the daemon and client, but then the web-ui wouldn't start and there is also no output to the log or the console. It simply freezes silently.

I followed this guide for the ssl part: viewtopic.php?t=39785
And this guide for general setup: https://www.howtogeek.com/142044/how-to ... rrent-box/

This is the output from the log:

Code: Select all

[INFO    ] 00:13:01 ui:124 Deluge ui 1.3.13
[INFO    ] 00:13:01 ui:127 Starting web ui..
[INFO    ] 00:13:01 server:664 Starting server in PID 20034.
This is the start script in /etc/systemd/system:

Code: Select all

[Unit]
Description=Deluge Bittorrent Client Web Interface
Documentation=man:deluge-web
After=network-online.target deluged.service
Wants=deluged.service
[Service]
Type=simple
User=deluge
Group=deluge
UMask=027
# This 5 second delay is necessary on some systems
# to ensure deluged has been fully started
ExecStartPre=/bin/sleep 5
ExecStart=/usr/bin/deluge-web -l /var/log/deluge/web.log -L info
Restart=on-failure
[Install]
WantedBy=multi-user.target
This is how it looks like when starting from shell:
http://prntscr.com/m2ctb2

Versions:
pi@Jovian:~ $ deluged -v
deluged: 1.3.15.dev0
libtorrent: 1.1.11.0

raspbian stretch, python 2.7.13

Never had a linux program freeze silently like this.
shamael
Compulsive Poster
Compulsive Poster
Posts: 667
Joined: Sat Oct 08, 2016 9:28 am

Re: Deluge-web stuck after start

Post by shamael »

Hi,

May you set the log level to debug and restart the service?
('ExecStart=/usr/bin/deluge-web -l /var/log/deluge/web.log -L debug)
jools
New User
New User
Posts: 2
Joined: Sun Dec 30, 2018 11:28 pm

Re: Deluge-web stuck after start

Post by jools »

Here's the log with debug level:
https://pastebin.com/5Mv1f8zc

In terms of the process output to console: it's a little different when started as service: it doesn't freeze but it just exits with an error code. The freezing comes after starting it on command line.
pi@Jovian:~ $ sudo nano /etc/systemd/system/deluge-web.service
pi@Jovian:~ $ service deluge-web restart
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to restart 'deluge-web.service'.
Multiple identities can be used for authentication:
1. ,,, (pi)
2. root
Choose identity to authenticate as (1-2): ^C
pi@Jovian:~ $ ^C
pi@Jovian:~ $ sudo service deluge-web restart
Warning: deluge-web.service changed on disk. Run 'systemctl daemon-reload' to reload units.
pi@Jovian:~ $ sudo systemctl daemon-reload
pi@Jovian:~ $ sudo service deluge-web restart
pi@Jovian:~ $ service deluge-web status
* deluge-web.service - Deluge Bittorrent Client Web Interface
Loaded: loaded (/etc/systemd/system/deluge-web.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2019-01-03 22:31:38 EET; 2s ago
Docs: man:deluge-web
Process: 14283 ExecStartPre=/bin/sleep 5 (code=exited, status=0/SUCCESS)
Main PID: 14286 (deluge-web)
CGroup: /system.slice/deluge-web.service
`-14286 /usr/bin/python /usr/bin/deluge-web -l /var/log/deluge/web.log -L debug

Jan 03 22:31:33 Jovian systemd[1]: Starting Deluge Bittorrent Client Web Interface...
Jan 03 22:31:38 Jovian systemd[1]: Started Deluge Bittorrent Client Web Interface.
pi@Jovian:~ $ service deluge-web status
* deluge-web.service - Deluge Bittorrent Client Web Interface
Loaded: loaded (/etc/systemd/system/deluge-web.service; enabled; vendor preset: enabled)
Active: activating (start-pre) since Thu 2019-01-03 22:32:02 EET; 2s ago
Docs: man:deluge-web
Process: 14309 ExecStart=/usr/bin/deluge-web -l /var/log/deluge/web.log -L debug (code=exited, status=1/FAILURE)
Main PID: 14309 (code=exited, status=1/FAILURE); Control PID: 14317 (sleep)
CGroup: /system.slice/deluge-web.service
`-control
`-14317 /bin/sleep 5

Jan 03 22:32:02 Jovian systemd[1]: Starting Deluge Bittorrent Client Web Interface...
pi@Jovian:~ $
Post Reply