new install: bad link to rtorrent. Check if it is really running

simur612

Member
May 25, 2018
879
0
16
Hi,

I followed the tutorial http://forums.rutorrent.org/index.php?topic=256.0 and I have some problems with the https setup, but I would first like to sort out the issue with the scgi_port and scgi_host settings preventing me from using rutorrent.

rtorrent is running with screen. I also installed all the plugins that were mentioned in the tutorial. Starting rutorrent from firefox gives me the "bad link to rtorrent. Check if it is really running" error, telling me to check the scgi_port and scgi_host settings.

When I first tried using the settings from the tutorial, I got a "Bad response from server: (500 [error,list]" error, with none of the plugins visible from the rutorrent webui

I then changed the settings in /var/www/rutorrent/conf/config.php to:

Code:
scgi_port = 0
scgi_host = "unix:///home/rtor/.rtorrent/rpc.socket";
with rtor being the user that I added for using rtorrent

Settings in .rtorrent.rc :

Code:
scgi_port = 0
I tried adding the following line to .rtorrent.rc to no avail:

Code:
scgi_local = /home/rtor/.rtorrent//rpc.socket

This is where I'm stuck. I have used rtorrent and rutorrent before for several months without any problems. I installed now on a server that had previously run rtorrent. I did uninstall everything related to rtorrent, libtorrent, xmlrpc-c before I started the tutorial. I had to install some other tools to make everything (ubuntu 8.04 hardy) but I did succeed in installing.

Your advice would be greatly appreciated. I think I'm almost there, just some small settings that need to be changed. Hopefully smiley.gif

Thanks
 

randac56

Member
May 25, 2018
915
0
16
use tcp based sockets.

It's much easier.


In general you have to:


configure a webserver with mod_scgi

set the scgi mountpoint in the webserver config

set the scgi settings in .rtorrentrc

set the config.php to match



Another option is to use the rpc or httprpc plugin, but this will STILL require rtorrent compiled with xmlrpc-c and .rtorrent.rc setup properly


heres some examples of using apache with mod_scgi


you'd need something like this in your apache config:
Code:
SCGIMount /RPC2 127.0.0.1:5000


something like this in your .rtorrent.rc:
Code:
scgi_port = 127.0.0.1:5000

and something like this in your config.php for rutorrent:
Code:
$scgi_port = 5000;
$scgi_host = "127.0.0.1";

$XMLRPCMountPoint = "/RPC2"; // DO NOT DELETE THIS LINE!!! DO NOT COMMENT THIS LINE!!!





understand?
 

simur612

Member
May 25, 2018
879
0
16
thank you for your reply, wonslung.

Those were the settings I used at first, since they are the ones from the tutorial. However, I am getting the same error with these settings:

"bad link to rtorrent. Check if it is really running. Check the $scgi_host and $scgi_port settings in config.php and scgi_port in rTorrent configuration file"

I just checked with screen -r and rtorrent is still running. I've gone over the steps a few times now and can't see anything wrong...
 

simur612

Member
May 25, 2018
879
0
16
still getting the same error message. I can click the plugins tab on the rutorrent ui, it show two plugins (diskspace and rss). I did install all of the plugins from the tutorial though, is it normal that only two show in the ui?

I read that some people have issues with the plugins, should I disable them to see if that makes a difference? thx
 

randac56

Member
May 25, 2018
915
0
16
Quote :
still getting the same error message. I can click the plugins tab on the rutorrent ui, it show two plugins (diskspace and rss). I did install all of the plugins from the tutorial though, is it normal that only two show in the ui?​

These two plugins doesn't require rtorrent for its works. As result - its will be loaded in any rtorrent state.
 

lisas4567

Member
May 25, 2018
773
0
16
I'd have to look at your system man...you're probably missing a CRUCIAL step somewhere....which os are you using again?

Is it possible to do a fresh os install then follow a guide? If so let me know...otherwise, i've made a standing offer to help via ssh...i can't do much more.
 

simur612

Member
May 25, 2018
879
0
16
I did incur some problems - I'm using ubuntu 8.04 hardy - but I thought I solved all the errors I got by installing other components. Perhaps not sad.gif

oh well re-installing the OS might not be bad idea. I noticed ovh recently added more choices to their OS. I might give Ubuntu 10.04 a try. Ubuntu 8.04 is getting more outdated every day, it seems..

thank you both for your assistance, hopefully I won't need it anymore after a fresh install and wonslung's guide wink.gif
 

simur612

Member
May 25, 2018
879
0
16
yes I restarted it, didn't influence the outcome. Sadly undecided.gif

wonsluw, you may be right that freebsd pwns linux when it comes to speed. But for us people that have jobs unrelated to IT and that already spend lots of (or too much grin.gif) time torrenting, it is, sometimes, a burden to have to know all these different computer OS just to get the damn program to work on a server. I interest myself in these things, and it is fun to play with, but time is limited... How would you sell freebsd to me if I even have a hard time getting linux to work properly. Isn't freebsd more hard-core?

Ubuntu- beginner's level--
 

lisas4567

Member
May 25, 2018
773
0
16
honestly, for what you are doing FreeBSD is easier than ubuntu. here's why:

ports

freebsd ports will install all the software (including rtorrent) properly....then all you have to do is configure rutorrent/apache (or lighttpd)


but it's all on you....i see many people use ubuntu....it's not a BAD os....it's just not as good as FreeBSD for server applications.
 

simur612

Member
May 25, 2018
879
0
16
I'm really open for your suggestions. I just did some reading and installing from ports seems to be fairly straightforward. I take it that configuring apache and rutorrent is the same in ubuntu and freebsd? I.e. the settings from the tutorial on-site can also be used in freebsd?

Is rtorrent even faster in a freebsd environment? Of course upload speeds also depend on speed and torrent popularity, but does the OS have any influence on upload speed?

I have the choice between freebsd 7.3 and 8.0 - which version would receive your recommendation?
 

lisas4567

Member
May 25, 2018
773
0
16
my reason for likeing freebsd over linux isn't due to speed. It's due to stability and load.

A FreeBSD system runs at less load than a linux system, and when it DOES become loaded, it handles the load much better. The only thing linux does better with rtorrent is hashing (and this is due to code problems in rtorrent itself)

It's not a major issue though, but linux does hash files slightly faster (this is the period when downloads are done where it checks the files)

I just disable hashing.
 

simur612

Member
May 25, 2018
879
0
16
installed on ubuntu server 10.04. I tried freebsd but couldn't install with raid0 (I have two disks on the server that I both want to use, in one partition), had to do a rather complex growfs so I just went for the latest ubuntu server edition. Installing with raid0 was very easy with that OS.

Your tutorial for installing rtorrent/ rutorrent worked well this time, wonslung, thanks again. All the plugins are working and I'm maxing out my speeds. cool.gif
 

lisas4567

Member
May 25, 2018
773
0
16
Quote
installed on ubuntu server 10.04. I tried freebsd but couldn't install with raid0 (I have two disks on the server that I both want to use, in one partition), had to do a rather complex growfs so I just went for the latest ubuntu server edition. Installing with raid0 was very easy with that OS.

Your tutorial for installing rtorrent/ rutorrent worked well this time, wonslung, thanks again. All the plugins are working and I'm maxing out my speeds. cool.gif


ahh, yes. some server companies don't have good "auto setup" tools for FreeBSD.

in this case you almost always have to do things manually... It's still doable but it can be a major pain.


Glad you got it working.
 

saroos1

Member
May 25, 2018
718
0
16
Hi there!

I got x-actly the same issue here on a SuSE 11.1 Server with Plsek 9.5! ^^

I tried to run rutorrent
  • rtorrent + xmlrpc-c is installed
  • .rtorrent.rc has scgi_port = localhost:5000
  • Runnin Apache2 WITH mod_scgi
  • Apache's vhosts.conf has SCGIMount /RPC2 127.0.0.1:5000
  • rutorrent's setup.php has $scgi_port = 5000;
  • rutorrent's setup.php has $scgi_host = "127.0.0.1";
  • rutorrent's setup.php has $XMLRPCMountPoint = "/RPC2";
Error:When entering rtorrent, only the 2 Plugins "diskspace" and "cpuload" are available and the logger says: Bad link 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 sure also tried to use httprpc/rpc, but still there are NO Plugins and the same Error in the logger: Bad link 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.

PLS HELP! ^^
 

lisas4567

Member
May 25, 2018
773
0
16
is rtorrent running?

rutorrent won't start it automatically.


when you start rtorrent, do you see that it is

"XMLRPC initialized with xxx functions"

also, there is no file called setup.php in rutorrent.

there is a rutorrent/conf/config.php
 

peshua19

Member
May 25, 2018
897
0
16
Quote
is rtorrent running?
rutorrent won't start it automatically.​


Sure! I start it automaticly and it runs....

Quote
when you start rtorrent, do you see that it is
"XMLRPC initialized with xxx functions"​


Where should i see that!? ^^
When i run rtorrent from the console it alerts something like "can't find ~/.rtorrent.rc"...
so i tried # rtorrent -n -o "scgi_port = localhost:5000" whitch also results in an error:
rtorrent: Failed to parse command line option: Command "scgi_port " does not exist.
*confused*

Quote
also, there is no file called setup.php in rutorrent.
there is a rutorrent/conf/config.php​


Yeah! SRY! That's what i meant... wink.gif
 

peshua19

Member
May 25, 2018
897
0
16
SRY for the double-post but i found out sth new! ^^

Quote :
...When i run rtorrent from the console it alerts something like "can't find ~/.rtorrent.rc"...
so i tried # rtorrent -n -o "scgi_port = localhost:5000" whitch also results in an error:
rtorrent: Failed to parse command line option: Command "scgi_port " does not exist.
*confused*​


Right command to start with scgi_port configured is:
# rtorrent -n -o "scgi_port=localhost:5000"

So rtorrent startet up with the "XMLRPC initialized with xxx functions" u named and suddenly rutorrent could connect! ^^
That leads me to the assumption that my autorun-script contains failures!*

As rutorrent connected the logger told me that my xmlrpc-c library is too old (missing i8 support)!**

ad*: Could anyone have a look at my AutorunScript pls!?
ad**: How do I update the xmlrpc-c library!?

THX 4 ur help! =)