rtorrent on Gentoo issues

somus1735

Member
May 25, 2018
833
0
16
Just recently setup my Gentoo box and was going to use rtorrent + rutorrent as a torrenting solution however I seem to be running into some strange issues with rtorrent.

When I first emerged it I ran it as root to check it out and see how it worked, and it worked fine there, but then I read that the recommended practice is to run it under a non-root user so I created a user named rtorrentd, stopped rtorrent and moved my .rtorrent.rc file to the new user's directory. Then I edited my /etc/conf.d/rtorrentd file to specify the new user and then tried to restart the daemon. It restarted without displaying any errors but does not attach to any screen for me to access. If I try and restart the daemon it outputs the following:
Code:
* Stopping rtorrent ...
* start-stop-daemon: no matching processes found [ ok ]
* Starting rtorrent ... [ ok ]
And still has no screen session to attach to. There's also no rtorrent process anywhere on my machine and switching the execution back to starting under root did not help either, it exhibits the same behavior.

Can anyone help me or at least offer some suggestions on where to start trying to troubleshoot these issues.
 

somus1735

Member
May 25, 2018
833
0
16
Quote
Try su to your user:
screen -S rtorrent
rtorrent

If if fires up Ctrol + D to detachs from screen. Then check this for a more simple startup method:
http://forums.rutorrent.org/index.php?topic=1442.msg9218


This is what I get:

Code:
Wakko rtorrentd # su - rtorrentd
rtorrentd@Wakko ~ $ screen -S rtorrent
Cannot open your terminal '/dev/pts/1' - please check.
rtorrentd@Wakko ~ $ rtorrent
rtorrent: Invalid port_range argument.

I know that the cannot open terminal error stems from my root user already having a screen session open, could that cause issues with the screen being opened up under my rtorrent user?
 

shwetha17

Member
May 24, 2018
785
0
16
What is your port range in .rtorrent.rc post it please.
Also make sure its not below 1024 otherwise only root can bind to it (in normal circumstances).
 

somus1735

Member
May 25, 2018
833
0
16
It's set to a single port 46318

EDIT: I corrected the port range setting to be 46318-46318 and now it starts up fine, is it ok to leave it running like this in one of my root's screens? Is there a way to let it run in the background?
 

shwetha17

Member
May 24, 2018
785
0
16
If you su'd over then the screen session or rtorrent process will be running as root so you're good.