I'm running deluge on a ubuntu machine alongside sonarr.
I have noticed that the sonarr app cannot connect to the web ui interface without me manually connecting one time to the web interface via the browser and selecting the one (and only) available connection.
If i don't do that, sonarr complains it can't connect to web ui.
Once I do it once, it works as expected and can communicate with deluge.
Would that be a deluge or a sonarr problem, has someone else encountered this problem?
Web ui won't accept connections from sonarr after reboot
Re: Web ui won't accept connections from sonarr after reboot
For anyone facing this issue in the future, the problem lies in how fast deluge-web service starts after deluged service. I fixed the problem by adding a 10 second delay to the deluge-web service. "ExecStartPre=/bin/sleep 10"
cat << EOF | sudo tee /etc/systemd/system/deluge-web.service > /dev/null
[Unit]
Description=Deluge Bittorrent Client Web Interface
Documentation=man:deluge-web
After=deluged.service
Wants=deluged.service
[Service]
Type=simple
UMask=027
ExecStartPre=/bin/sleep 10
ExecStart=/usr/bin/deluge-web -d
Restart=on-failure
[Install]
WantedBy=multi-user.target
EOF
cat << EOF | sudo tee /etc/systemd/system/deluge-web.service > /dev/null
[Unit]
Description=Deluge Bittorrent Client Web Interface
Documentation=man:deluge-web
After=deluged.service
Wants=deluged.service
[Service]
Type=simple
UMask=027
ExecStartPre=/bin/sleep 10
ExecStart=/usr/bin/deluge-web -d
Restart=on-failure
[Install]
WantedBy=multi-user.target
EOF