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

lisas4567

Member
May 25, 2018
773
0
16
ok, this is your problem.


Create a user, i don't care what you call it...

in that user's home directory, you put the .rtorrent.rc

This is the user running rtorrent.

Then run rtorrent as this user.....remember, rutorrent is NOT a client. It's a web front end for rtorrent.

you should be compiling rtorrent manually with xmlrpc-c support and you will need to be compiling xmlrpc-c as well...none of the os's have a new enough xmlrpc-c or rtorrent built with that correctly.
 

randac56

Member
May 25, 2018
915
0
16
hello, I have the same "problem" huh.gif :

v6uM0.jpg

I follow this guide:

http://www.webhostingtalk.com/showthread.php?t=1124849

my OS is Debian 6.0 (Squeeze) - 64 bits (English)

here is my /var/www/rutorrent/conf/config.php


Code:
<?php
// configuration parameters

@define('HTTP_USER_AGENT', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9) Gecko/2008052906 Firefox/3.0', true);
@define('HTTP_TIME_OUT', 30, true); // in seconds
@define('HTTP_USE_GZIP', true, true);
@define('RPC_TIME_OUT', 15, true); // in seconds
@define('LOG_RPC_CALLS', false, true);
@define('LOG_RPC_FAULTS', true, true);

$do_diagnostic = true;
$log_file = '/tmp/errors.log'; // path to log file (comment or make empty to disable logging)
$saveUploadedTorrents = true;

$topDirectory = '/'; // Upper available directory. Absolute path with trail slash.

$scgi_port = 5000;
$scgi_host = "127.0.0.1";
$XMLRPCMountPoint = "/RPC2";

$pathToPHP = ''; // Something like /bin/php. If empty, will be founded in PATH.
$pathToCurl = ''; // Something like /bin/curl. If empty, will be founded in PATH.

// For web->rtorrent link through unix domain socket
// (scgi_local in rtorrent conf file), change variables
// above to something like this:
//
$scgi_port = 5000;
$scgi_host = "127.0.0.1";
$XMLRPCMountPoint = "/RPC2";

?>

my /etc/apache2/httpd.conf is a blank file undecided.gif

my /var/www/rutorrent/conf/config.php :



Code:
<?php
// configuration parameters

@define('HTTP_USER_AGENT', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9) Gecko/2008052906 Firefox/3.0', true);
@define('HTTP_TIME_OUT', 30, true); // in seconds
@define('HTTP_USE_GZIP', true, true);
@define('RPC_TIME_OUT', 15, true); // in seconds
@define('LOG_RPC_CALLS', false, true);
@define('LOG_RPC_FAULTS', true, true);

$do_diagnostic = true;
$log_file = '/tmp/errors.log'; // path to log file (comment or make empty to disable logging)
$saveUploadedTorrents = true;

$topDirectory = '/'; // Upper available directory. Absolute path with trail slash.

$scgi_port = 5000;
$scgi_host = "127.0.0.1";
$XMLRPCMountPoint = "/RPC2";

$pathToPHP = ''; // Something like /bin/php. If empty, will be founded in PATH.
$pathToCurl = ''; // Something like /bin/curl. If empty, will be founded in PATH.

// For web->rtorrent link through unix domain socket
// (scgi_local in rtorrent conf file), change variables
// above to something like this:
//
$scgi_port = 5000;
$scgi_host = "127.0.0.1";
$XMLRPCMountPoint = "/RPC2";

?>

and I have the scgi_port = 127.0.0.1:5000 on my .rtorrent.rc


please help me , thanks in advance
 

randac56

Member
May 25, 2018
915
0
16
Code:
root@vks15539:~# cd /var/www/
root@vks15539:/var/www# svn co http://rutorrent.googlecode.com/svn/trunk/rutorrent
svn: Failed to add directory 'rutorrent/plugins': an unversioned directory of the same name already exists
root@vks15539:/var/www# cd rutorrent/
root@vks15539:/var/www/rutorrent# svn up
svn: Failed to add directory 'plugins': an unversioned directory of the same name already exists
root@vks15539:/var/www/rutorrent#
root@vks15539:/var/www/rutorrent# cd plugins/
root@vks15539:/var/www/rutorrent/plugins# svn co http://rutorrent.googlecode.com/svn/trunk/plugins/rpc
svn: Failed to add file 'rpc/plugin.info': an unversioned file of the same name already exists
root@vks15539:/var/www/rutorrent/plugins# cd rpc/
root@vks15539:/var/www/rutorrent/plugins/rpc# svn up
svn: Failed to add file 'plugin.info': an unversioned file of the same name already exists
root@vks15539:/var/www/rutorrent/plugins/rpc# svn up *
svn: Failed to add file 'init.js': an unversioned file of the same name already exists

Wonslung's Method

Code:
root@vks15539:~# cd /var/www/
root@vks15539:/var/www#svn co http://rutorrent.googlecode.com/svn/trunk
.........................
A trunk/rutorrent/js/plugins.js
A trunk/rutorrent/js/graph.js
A trunk/rutorrent/js/jquery.flot.js
A trunk/rutorrent/favicon.ico
Checked out revision 2076.
root@vks15539:/var/www#
root@vks15539:/var/www# rm -rf trunk/rutorrent/plugins/
root@vks15539:/var/www# rm -rf trunk/rutorrent/plugins/
root@vks15539:/var/www# rm -rf trunk/rutorrent/plugins/
root@vks15539:/var/www# mv trunk/plugins/ trunk/rutorrent/
root@vks15539:/var/www# mv trunk/rutorrent/ /var/www/
mv: cannot move `trunk/rutorrent/' to `/var/www/rutorrent': Directory not empty
root@vks15539:/var/www# sudo mv trunk/rutorrent/ /var/www/
mv: cannot move `trunk/rutorrent/' to `/var/www/rutorrent': Directory not empty
root@vks15539:/var/www#


huh.gif huh.gif sad.gif
 

peshua19

Member
May 25, 2018
897
0
16
Quote
svn: Failed to add directory 'rutorrent/plugins': an unversioned directory of the same name already exists
huh.gif huh.gif sad.gif


And? Are you understand english?
 

randac56

Member
May 25, 2018
915
0
16
Quote

And? Are you understand english?​


more or less, my native language is Spanish, and like I said before I am newbie on Linux, and I dont know how to proceed... sad.gif

so please help me, or give a link/webpage where I can find an update tutorial or guide how to clean (I guess because I think a made a bad installation) and install rtorrent+rutorrent+any web server, just to use it as seedbox

EDIT:
so I try to start over, first removing apache doing

Code:
apt-get remove --purge apache
I couldnt find how to remove rtorrent,rutorrent and xmlrpc

so simply I did:

Code:
rm -r /var/www/rutorrent/
and start with this guide:

http://forums.rutorrent.org/index.php?topic=256.0

in the part that says Install necessary basic packages with this

Code:
sudo apt-get install apache2 apache2.2-common apache2-utils autoconf automake autotools-dev binutils build-essential bzip2 ca-certificates comerr-dev cpp cpp-4.1 dpkg-dev file g++ g++-4.1 gawk gcc gcc-4.1 libapache2-mod-php5 libapache2-mod-scgi libapr1 libaprutil1 libc6-dev libcppunit-dev libcurl3 libcurl4-openssl-dev libexpat1 libidn11 libidn11-dev libkdb5-4 libgssrpc4 libkrb5-dev libmagic1 libncurses5 libncurses5-dev libneon26 libpcre3 libpq5 libsigc++-2.0-dev libsqlite0 libsqlite3-0 libssl-dev libssp0-dev libstdc++6-4.1-dev libsvn1 libtool libxml2 linux-libc-dev lynx m4 make mime-support ntp ntpdate openssl patch perl perl-modules php5 php5-cgi php5-cli php5-common php5-curl php5-dev php5-geoip php5-sqlite php5-xmlrpc pkg-config python-scgi screen sqlite ssl-cert subversion ucf unrar zlib1g-dev pkg-config unzip htop screen irssi libwww-perl curl
I get this:

Code: [Select]
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'gcc-4.1' instead of 'libssp0-dev'
E: Unable to locate package g++-4.1
E: Couldn't find any package by regex 'g++-4.1'
E: Unable to locate package libneon26
E: Unable to locate package libstdc++6-4.1-dev
E: Couldn't find any package by regex 'libstdc++6-4.1-dev'
so I remove that packages and continue with the guide, and eveything was fine I think, so when again go to https://MyServerIP/rutorrent

I get:

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

undecided.gif

config.php:

Code:
<?php
// configuration parameters

// for snoopy client
@define('HTTP_USER_AGENT', 'Mozilla/5.0 (Windows NT 6.0; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0', true);
@define('HTTP_TIME_OUT', 30, true); // in seconds
@define('HTTP_USE_GZIP', true, true);
$httpIP = null; // IP string. Or null for any.

@define('RPC_TIME_OUT', 5, true); // in seconds

@define('LOG_RPC_CALLS', false, true);
@define('LOG_RPC_FAULTS', true, true);

// for php
@define('PHP_USE_GZIP', false, true);
@define('PHP_GZIP_LEVEL', 2, true);

$do_diagnostic = true;
$log_file = '/tmp/errors.log'; // path to log file (comment or leave blank to disable logging)

$saveUploadedTorrents = true; // Save uploaded torrents to profile/torrents directory or not
$overwriteUploadedTorrents = false; // Overwrite existing uploaded torrents in profile/torrents directory or mak$

$topDirectory = '/'; // Upper available directory. Absolute path with trail slash.
$forbidUserSettings = false;

$scgi_port = 5000;
$scgi_host = "127.0.0.1";

// For web->rtorrent link through unix domain socket
// (scgi_local in rtorrent conf file), change variables
// above to something like this:
//
// $scgi_port = 0;
// $scgi_host = "unix:///tmp/rpc.socket";

$XMLRPCMountPoint = "/RPC2";
$pathToExternals = array(
"php" => '', // Something like /usr/bin/php. If empty, will be found in PATH.
"curl" => '', // Something like /usr/bin/curl. If empty, will be found in PATH.
"gzip" => '', // Something like /usr/bin/gzip. If empty, will be found in PATH.
"id" => '', // Something like /usr/bin/id. If empty, will be found in PATH.
"stat" => '', // Something like /usr/bin/stat. If empty, will be found in PATH.
);

$localhosts = array( // list of local interfaces
"127.0.0.1",
"localhost",
);

$profilePath = '../share'; // Path to user profiles
$profileMask = 0777; // Mask for files and directory creation in user profiles.
// Both Webserver and rtorrent users must have read-write access to it.
// For example, if Webserver and rtorrent users are in the same group then t$

?>



.rtorrent.rc
Code:
.............

scgi_port = 127.0.0.1:5000

# Check hash for finished torrents. Might be usefull until the bug is
# fixed that causes lack of diskspace not to be properly reported.
#check_hash = no

# Set whetever the client should try to connect to UDP trackers.
#use_udp_trackers = no

# Alternative calls to bind and ip that should handle dynamic ip's.
#schedule = ip_tick,0,1800,ip=rakshasa
#schedule = bind_tick,0,1800,bind=rakshasa
...........


sad.gif huh.gif

so I found this

http://forums.rutorrent.org/index.php?topic=1120.0

I dont have any rtorrent.lock file
how can I now If I have a unix socket?

and I also restart rtorrent and reboot my VPS and still the same message
sad.gif

please help me!
 

saroos1

Member
May 25, 2018
718
0
16
Follow this guide http://forums.rutorrent.org/index.php?topic=256.0 and if you don't need multi user just ignore this part.

There you have a step by step guide. You can not fall at this.

==============
Esa guia es un paso a paso, si solo tienes un usuario con ignorar la parte multi-user es suficiente.
Si lo haces paso por paso no puede fallar.
Te recomendaria que la hagas con una instalacion fresca del sistema operativo, para evitar cualquier basura que haya quedado y actualizar a las ultima versiones (libtorrent / rtorrent)
 

randac56

Member
May 25, 2018
915
0
16
Quote :
Follow this guide http://forums.rutorrent.org/index.php?topic=256.0 and if you don't need multi user just ignore this part.

There you have a step by step guide. You can not fall at this.

==============
Esa guia es un paso a paso, si solo tienes un usuario con ignorar la parte multi-user es suficiente.
Si lo haces paso por paso no puede fallar.
Te recomendaria que la hagas con una instalacion fresca del sistema operativo, para evitar cualquier basura que haya quedado y actualizar a las ultima versiones (libtorrent / rtorrent)


thats the guide I follow after follow a "bad" guide I guess, and I cant go with a fresh install thats a VPS that I win on some contest of OVH

so there is a way to remove all and start over? or I guess I just lost that VPS that is just for one month sad.gif
 

lisas4567

Member
May 25, 2018
773
0
16
You can always ask for some paid assistance smiley.gif
I am sure that the hosting company can do a OS reload for you to start over from a fresh installation.
 

randac56

Member
May 25, 2018
915
0
16
Login to your manager (managerv5) and click Reinstall and pick an OS. Can't really get much more simple.
 

peshua19

Member
May 25, 2018
897
0
16
As kolor says if you have a dedicated server you can do a reinstallation from the manager, if you have a BHS VKS I've heard they don't allow torrents on them (besides the disk I/O sucks)