[SOLVED] Can't connect via ThinClient/WebUI
Posted: Tue Aug 22, 2017 5:02 pm
I've created a torrent box using a Raspberry Pi (first series), I've started it on raspbian Jessie (based on debian Jessie) and it was running but irregularly and with various issues, so I've upgraded system to Rasbpian Stretch (based on the present debian stable release).
I've followed this article for configuration: http://dev.deluge-torrent.org/wiki/UserGuide/ThinClient
I've followed this article for services: http://dev.deluge-torrent.org/wiki/User ... ce/systemd
NOTE: I'm downloading stuff on an external disk mounted via fstab under /media/tordown:
When I was on Jessie, services were running but ThinClient/WebYU weren't working and irregularly the two systemcd services were failing, I could connect from remote only after killing services (using 'killall deluged' and 'killall deluge-web') and restarting them as normal raspbian user (which is different from the deluge user suggested by the wiki). So I thought it was an issue with permissions accessing my USB disk, but I don't know how to solve this.
I've commented out User and Group line in deluged.service and deluge-web.service and WebUI appears.
I've then upgraded distro from Jessie to Stretch and these are the installed packages and their versions:
Now nothing is working, but this time the two services are active and running and don't fail after few seconds.
If I kill deluge-web and restart it as user, it works but it has lost my configurations (download location, changed password, saved host, selected plugins, etc.), it doesn't save new configurations (like password, download locations and saved host) and it doesn't connect to host.
Host is 192.168.1.50:58846 and these are my services:
I've followed this article for configuration: http://dev.deluge-torrent.org/wiki/UserGuide/ThinClient
I've followed this article for services: http://dev.deluge-torrent.org/wiki/User ... ce/systemd
NOTE: I'm downloading stuff on an external disk mounted via fstab under /media/tordown:
Code: Select all
$ cat /etc/fstab
proc /proc proc defaults 0 0
#PARTUUID=442b7a91-01 /boot vfat defaults 0 2
UUID=109A-9113 /boot vfat defaults 0 2
#PARTUUID=442b7a91-02 / ext4 defaults,noatime 0 1
UUID=673b8ab6-6426-474b-87d3-71bff0fcebc3 / ext4 defaults,noatime 0 1
# a swapfile is not a swap partition, no line here
# use dphys-swapfile swap[on|off] for that
#/dev/sda1: LABEL="TorDown" UUID="B27C0F097C0EC855" TYPE="ntfs" PARTUUID="4d0741b4-01"
PARTUUID=4d0741b4-01 /media/tordown ntfs defaults,nofail 0 2
#UUID=B27C0F097C0EC855 /media/tordown ntfs defaults,nofail 0 2
I've commented out User and Group line in deluged.service and deluge-web.service and WebUI appears.
I've then upgraded distro from Jessie to Stretch and these are the installed packages and their versions:
Code: Select all
$ dpkg-query -l 'deluge*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii deluge-common 1.3.13+git20 all bittorrent client written in Pyth
ii deluge-console 1.3.13+git20 all bittorrent client written in Pyth
un deluge-core <none> <none> (no description available)
un deluge-torrent <none> <none> (no description available)
un deluge-torrent <none> <none> (no description available)
ii deluge-web 1.3.13+git20 all bittorrent client written in Pyth
un deluge-webui <none> <none> (no description available)
ii deluged 1.3.13+git20 all bittorrent client written in Pyth
Now nothing is working, but this time the two services are active and running and don't fail after few seconds.
If I kill deluge-web and restart it as user, it works but it has lost my configurations (download location, changed password, saved host, selected plugins, etc.), it doesn't save new configurations (like password, download locations and saved host) and it doesn't connect to host.
Host is 192.168.1.50:58846 and these are my services:
Code: Select all
$ cat /etc/systemd/system/deluged.service
[Unit]
Description=Deluge Bittorrent Client Daemon
Documentation=man:deluged
After=network-online.target media-tordown.mount
#After=network-online.target
Requires=media-tordown.mount
BindsTo=media-tordown.mount
[Service]
Type=simple
#User=deluge
#Group=deluge
UMask=007
ExecStart=/usr/bin/deluged -d -l /var/log/deluge/daemon.log -L warning
#ExecStart=/usr/bin/deluged -l /var/log/deluge/daemon.log -L warning
Restart=on-failure
# Time to wait before forcefully stopped.
TimeoutStopSec=300
[Install]
WantedBy=multi-user.target media-tordown.mount
#WantedBy=multi-user.target
$ cat /etc/systemd/system/deluge-web.service
[Unit]
Description=Deluge Bittorrent Client Web Interface
Documentation=man:deluge-web
After=network-online.target deluged.service tordown.mount
#After=network-online.target deluged.service
Requires=tordown.mount
BindsTo=tordown.mount
Wants=deluged.service
[Service]
Type=simple
#User=deluge
#Group=deluge
UMask=027
ExecStart=/usr/bin/deluge-web -l /var/log/deluge/web.log -L warning
Restart=on-failure
[Install]
WantedBy=multi-user.target tordown.mount
#WantedBy=multi-user.target