Rtorrent - "No connection to rtorrent" following restart

Hi all

I’ve had Quickbox running on a dedi for a couple months working flawlessly on Ubuntu 16.10.

I recently ran ‘apt-get upgrade’ and rebooted the server. Now, rtorrent won’t start, and I get the following error message:

No connection to rTorrent. Check if it is really running. Check $scgi_port and $scgi_host settings in config.php and scgi_port in rTorrent configuration file.

I have tried restarting and enabling/disabling via the dashboard and the systemctl restart [email protected] command and no luck.

Running systemctl status gives the following:

 [email protected] - rTorrent
   Loaded: loaded (/etc/systemd/system/[email protected]; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2017-03-18 14:16:44 CET; 1min 3s ago
  Process: 15444 ExecStop=/usr/bin/killall -w -s 2 /usr/bin/rtorrent (code=exited, status=1/FAILURE)
  Process: 15426 ExecStart=/usr/bin/screen -d -m -fa -S rtorrent /usr/bin/rtorrent (code=exited, status=0/SUCCESS)
  Process: 15424 ExecStartPre=/bin/rm -f /home/%I/.sessions/rtorrent.lock (code=exited, status=0/SUCCESS)
 Main PID: 15428 (code=exited, status=0/SUCCESS)

Mar 18 14:16:44 guiserver systemd[1]: Starting rTorrent...
Mar 18 14:16:44 guiserver systemd[1]: Started rTorrent.
Mar 18 14:16:44 guiserver systemd[1]: [email protected]: Control process exited, code=exited status=1
Mar 18 14:16:44 guiserver systemd[1]: [email protected]: Unit entered failed state.
Mar 18 14:16:44 guiserver systemd[1]: [email protected]: Failed with result 'exit-code'.

I have tried manually changing the scgi ports on rtorrent.rc and the config.php files to make sure they match, but still no luck.

I am no out of ideas on how to get rtorrent working again, so any guidance will be helpful! Let me know if any further information is needed to assist.

Thanks a bunch!

The best way to debug startup errors is to launch rtorrent directly from your user. Just login as the user who it will not launch on and issue the command rtorrent

If anything is preventing it from starting, you’ll get a read out in your console.

I’m having a very similar issue. I’ve been working to configure rtorrent to use an NFS share for all storage. I finally have that setup right but now rtorrent will not start automatically on the start of the QuickBox machine. This is what appears in journalctl after boot:

Apr 22 15:06:12 QuickBox systemd[1]: Started rTorrent.
Apr 22 15:06:12 QuickBox sshd[1016]: Server listening on 0.0.0.0 port 4747.
Apr 22 15:06:12 QuickBox sshd[1016]: Server listening on :: port 4747.
Apr 22 15:06:12 QuickBox systemd[1]: Started OpenBSD Secure Shell server.
Apr 22 15:06:12 QuickBox iscsid[1066]: iSCSI logger with pid=1073 started!
Apr 22 15:06:12 QuickBox systemd[1]: Started iSCSI initiator daemon (iscsid).
Apr 22 15:06:12 QuickBox iscsid[1073]: iSCSI daemon with pid=1074 started!
Apr 22 15:06:12 QuickBox systemd[1]: Starting Login to default iSCSI targets...
Apr 22 15:06:12 QuickBox systemd[1]: Starting Serve a login-terminal over http on  port 4224....
Apr 22 15:06:12 QuickBox systemd[1]: Started Serve a login-terminal over http on  port 4224..
Apr 22 15:06:12 QuickBox iscsiadm[1083]: iscsiadm: No records found
Apr 22 15:06:12 QuickBox systemd[1]: Started Login to default iSCSI targets.
Apr 22 15:06:12 QuickBox systemd[1]: Reached target Remote File Systems (Pre).
Apr 22 15:06:12 QuickBox systemd[1]: Mounting /Data_Share...
Apr 22 15:06:12 QuickBox kernel: FS-Cache: Loaded
Apr 22 15:06:12 QuickBox kernel: FS-Cache: Netfs 'nfs' registered for caching
Apr 22 15:06:12 QuickBox killall[1100]: /usr/bin/rtorrent: no process found
Apr 22 15:06:12 QuickBox systemd[1]: [email protected]: Control process exited, code=exited status=1
Apr 22 15:06:12 QuickBox systemd[1]: [email protected]: Unit entered failed state.
Apr 22 15:06:12 QuickBox systemd[1]: [email protected]: Failed with result 'exit-code'.

Thus, when I go to this machine’s IP address, rtorrent is not running in the service control center and is not shown in the menu. When ssh’ing in as my ‘user’ user (this is the user initially created during the Ubuntu server install), and running “systemctl status rtorrent@master” I get the following:

user@QuickBox:~$ systemctl status rtorrent@master
● [email protected] - rTorrent
   Loaded: loaded (/etc/systemd/system/[email protected]; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2017-04-22 15:06:12 MDT; 48min ago
  Process: 1100 ExecStop=/usr/bin/killall -w -s 2 /usr/bin/rtorrent (code=exited, status=1/FAILURE)
  Process: 1054 ExecStart=/usr/bin/screen -d -m -fa -S rtorrent /usr/bin/rtorrent (code=exited, status=0/SUCCESS)
  Process: 1031 ExecStartPre=/bin/rm -f /home/%I/.sessions/rtorrent.lock (code=exited, status=0/SUCCESS)
 Main PID: 1062 (code=exited, status=0/SUCCESS)

Apr 22 15:06:11 QuickBox systemd[1]: Starting rTorrent...
Apr 22 15:06:12 QuickBox systemd[1]: Started rTorrent.
Apr 22 15:06:12 QuickBox killall[1100]: /usr/bin/rtorrent: no process found
Apr 22 15:06:12 QuickBox systemd[1]: [email protected]: Control process exited, code=exited status=1
Apr 22 15:06:12 QuickBox systemd[1]: [email protected]: Unit entered failed state.
Apr 22 15:06:12 QuickBox systemd[1]: [email protected]: Failed with result 'exit-code'.

Note: the user created during the QuickBox install process is named ‘master’.

When ssh’ing in as the ‘master’ user and running “systemctl start rtorrent@master” I get the following:

[master@QuickBox]:(0b)~$ systemctl start rtorrent@master
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to start '[email protected]'.
Authenticating as: user,,, (user)
Password:

.I can enter the password and it will then start the service.

Once I do that, the service control center shows Rtorrent as running but it is still not in the menu. If I go to the url for accessing rtorrent, it is now working and I can add torrents just fine.

Also, rtorrent runs perfectly fine if I ssh in as ‘master’ and just run “rtorrent”.

My question is this: why can’t rtorrent run on startup? I’m guess it has something to do with the prompt for authentication but I can’t seem to solve it. Any ideas?

Bump. Anyone?

Real quick before this delves too far. Will you perform an ls -al /install and paste it’s output here?

This topic was automatically closed 4 days after the last reply. New replies are no longer allowed.