rTorrent: "Could not prepare socket for listening address Already in use"

rtorrent
ubuntu

#1

When I try to access rtorrent via the web ui, I receive a ‘no connection established’ error. When I try to run rtorrent via SSH I get the error above. I tried restarting the service ( sudo systemctl restart [email protected]<user>.service ) and then display status ( sudo systemctl status [email protected]<user>.service ). I get the following output:

Loaded: loaded (/etc/systemd/system/[email protected]; enabled; vendor preset
Active: active (running) since Fri 2017-03-24 04:03:37 EDT; 37s ago
Process: 13627 ExecStart=/usr/bin/screen -d -m -fa -S rtorrent /usr/bin/rtorre
Process: 13626 ExecStartPre=/bin/rm -f /home/%I/.sessions/rtorrent.lock (code=
Main PID: 340
CGroup: /system.slice/system-rtorrent.slice/[email protected]<user>.service
        ├─340 /usr/bin/SCREEN -d -m -fa -S rtorrent /usr/bin/rtorrent
        └─342 /usr/bin/rtorrent

Mar 24 04:03:37 <hostname> systemd[1]: Starting rTorrent...
Mar 24 04:03:37 <hostname> systemd[1]: Started rTorrent.

I’m not sure what the issue might be. Do I need to change the socket rtorrent is listening on? If so, how do I do this? And why would it suddenly become unusable?


#2

Just started getting this exact issue as well.


#3

If I remember correctly I got this problem when I wrongly set autodl port the same as rtorrent…


#4

For me, I had to kill rtorrent processes, make sure systemctl was stopped for rtorrent, then reboot box and start rtorrent once.