Error: torrent wasn't passed to rTorrent

randac56

Member
May 25, 2018
915
0
16
Hello there, I have brand new box with Debian and tTorrent/ruTorrent installed and set up (libtorrent-0.12.6,rtorrent-0.8.6,rutorrent-3.2) Everything seems to be ok, rTorrent is passing data to ruTorrent, but there is some kind of problem when adding a new torrent file from ruTorrent. The Error: torrent wasn't passed to rTorrent keeps poping out and the torrent is not added. Nothing else, no error messages in logs, nothing. I guess there maybe be a problem with the torrent file making its path to the /var/www/share/users/****/torrent dir however, I have no idea how to verify it.


webserver:apache
setup used:http://filesharingtalk.com/threads/393861-Installing-rtorrent-and-rutorrent-on-Debian-based-linux

Any idea?
 

randac56

Member
May 25, 2018
915
0
16
Code:
directory = /home/lolo/FTP-NASE/

http_capath=/etc/ssl/certs

scgi_port = 127.0.0.1:5000
encoding_list = UTF-8

port_range = 55990-56000

port_random = no

use_udp_trackers = no
dht = disable
check_hash = no

peer_exchange = no
encryption = allow_incoming,enable_retry,try_outgoing

schedule = watch_directory,5,5,load_start=/home/lolo/FTP-NASE/watch/*.torrent
session = /home/b0naqua/session/
Apache config is default with two added lines

Code:
SCGIMount /rutorrent/RPC2 127.0.0.1:5000
servername localhost

ruTorrent is like this
Code:
<?php
// configuration parameters

// for snoopy client
@define(&#39;HTTP_USER_AGENT&#39;, &#39;Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9) Gecko/2008052906 Firefox/3.0&#39;, true);
@define(&#39;HTTP_TIME_OUT&#39;, 30, true); // in seconds
@define(&#39;HTTP_USE_GZIP&#39;, true, true);

@define(&#39;RPC_TIME_OUT&#39;, 5, true); // in seconds

@define(&#39;LOG_RPC_CALLS&#39;, false, true);
@define(&#39;LOG_RPC_FAULTS&#39;, true, true);

// for php
@define(&#39;PHP_USE_GZIP&#39;, false, true);
@define(&#39;PHP_GZIP_LEVEL&#39;, 2, true);

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

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

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

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

$pathToExternals = array(
"php" => &#39;&#39;, // Something like /usr/bin/php. If empty, will be founded in PATH.
"curl" => &#39;&#39;, // Something like /usr/bin/curl. If empty, will be founded in PATH.
"gzip" => &#39;&#39;, // Something like /usr/bin/gzip. If empty, will be founded in PATH.
"id" => &#39;&#39;, // Something like /usr/bin/id. If empty, will be founded in PATH.
"stat" => &#39;&#39;, // Something like /usr/bin/stat. 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 = 0;
// $scgi_host = "unix:///tmp/rpc.socket";

?>
 

randac56

Member
May 25, 2018
915
0
16
Quote
does it hapen on every single torrent? it could be your php upload settings in php.ini​

Great, that did the trick. I raised the file size limit to 20M. I was testing it with some huge pr0n pack which was way over the default 2M limit. Thank you.
 

saroos1

Member
May 25, 2018
718
0
16
I am getting this error too... I read the thread and changed the upload to 20M and still getting the error.

I have two php.ini.... one located in: /etc/php5/cgi/ and the other /etc/php5/cli/. I changed both just to be sure...then restarted lighttpd... but still getting the error.

This is a new install of ubuntu 10.10.

Any Ideas?

Thanks.
 

peshua19

Member
May 25, 2018
897
0
16
cgi is the only one which should matter for lighttpd

that issue can also be due to permission problems, does this happen with every single torrent or only especially large torrents?
 

lisas4567

Member
May 25, 2018
773
0
16
I stand corrected...it is NOT every torrent just some of them...but if I retry 1 or 2 times...it will get passed to rtorrent... got about 5-6 torrents going now...some were passed first try and some it took 2-3 tries...

any idea why?
 

lisas4567

Member
May 25, 2018
773
0
16
The more torrents I add...the less times it gives me the error... not that big of a deal...as long as it adds the torrents.

The server could be overloaded...as I am running the worldcommunitygrid... however, it wasn't running when I was first testing RUTorrent and getting the errors...but the is running now.

Thanks!
 

saroos1

Member
May 25, 2018
718
0
16
I´v got the same error msg.
premissions:
Code: [Select]
drwxr-xr-x 11 root root 4096 2 feb 17.02 rutorrent

drwxr-xr-x 4 root root 4096 2 feb 17.02 conf
drwxr-xr-x 3 root root 4096 2 feb 17.02 css
-rw-r--r-- 1 root root 5430 2 feb 17.02 favicon.ico
drwxr-xr-x 3 root root 4096 2 feb 17.02 images
-rw-r--r-- 1 root root 12458 2 feb 17.02 index.html
drwxr-xr-x 3 root root 4096 2 feb 17.02 js
drwxr-xr-x 3 root root 4096 2 feb 17.02 lang
drwxr-xr-x 3 root root 4096 2 feb 23.01 php
drwxr-xr-x 25 root root 4096 2 feb 22.25 plugins
drwxrwxrwx 6 www-data www-data 4096 2 feb 17.02 share

knarkarkvart:/var/www/rutorrent/share# ls -l
totalt 12
drwxrwxrwx 6 www-data www-data 4096 2 feb 23.00 settings
drwxrwxrwx 3 www-data www-data 4096 2 feb 23.23 torrents
drwxrwxrwx 4 www-data www-data 4096 2 feb 23.04 users

knarkarkvart:/var/www/rutorrent/share/users# ls -l
totalt 4
drwxrwxrwx 4 www-data www-data 4096 2 feb 23.04 rtor

knarkarkvart:/var/www/rutorrent/share/users/rtor# ls -l
totalt 8
drwxrwxrwx 4 www-data www-data 4096 2 feb 23.23 settings
drwxrwxrwx 2 www-data www-data 4096 2 feb 23.23 torrents

is it right?

here is my .rtorrent.rc
Code: [Select]
directory = /mnt/2tb/rtor/torrent
schedule = watch_directory,5,5,load_start=/mnt/2tb/rtor/watch/*.torrent
schedule = untied_directory,5,5,stop_untied=/mnt/2tb/rtor/watch/*.torrent
schedule = low_diskspace,5,60,close_low_diskspace=100M
port_range = 58271-58300
port_random = no
use_udp_trackers = no
encryption = allow_incoming,try_outgoing
dht = off
peer_exchange = no
#The Following Are VERY Important
encoding_list = UTF-8
scgi_local = /tmp/rpc.socket
schedule = chmod,0,0,"execute=chmod,777,/tmp/rpc.socket"
session = /mnt/2tb/rtor/session
directory = /mnt/2tb/rtor/torrent
max_peers_seed = -1
min_peers_seed = -1


iv changed the max file size in cgi/php.ini to 20M ..

iv followd this tutorial
http://filesharefreak.com/2010/02/13/how-to-install-rtorrent-rutorrent-using-socket-ssl-authentication-on-ubuntu-or-debian/
 

lisas4567

Member
May 25, 2018
773
0
16
You also need to restart your web server if you edit php.ini. If you have eg. php-cgi or php-fpm running, those need to be restarted also. Also make sure you edit the correct php.ini file.
 

peshua19

Member
May 25, 2018
897
0
16
Maybe the first one requires a valid cookie?

EDIT: If that's a valid passkey, remove it from the 2nd link. smiley.gif
 

saroos1

Member
May 25, 2018
718
0
16
it could also be a bad torrent.

try to add the torrent directly to rtorrent and see if it works there

if it DOES then it's an issue with rutorrent
if it DOESNT then it's an issue with the torrent
 

lisas4567

Member
May 25, 2018
773
0
16
Quote
Maybe the first one requires a valid cookie?

EDIT: If that's a valid passkey, remove it from the 2nd link. smiley.gif


well, if it does.. i think i saw a plugin that saves cookies hm..

how do i fix it? iv been seting up my seedbox now for about 10 hours.. im a bit tired smiley.gif
 

simur612

Member
May 25, 2018
879
0
16
when i pass a direct link to the .torrent in rtorrent cli i get this message:
Code:
Could not create download, the input is not a valid torrent.
but just some days ago.. before i tried to upgrade to debian squeeze on my seedbox and i had to reinstall it.. there where this plugin that i could login to tl and other private trackers.. but i cant seam to find it now


well.. i installed the Loginmgr plugin and loged in to tl.. now it works.. im so tired lol

thank you for the help smiley.gif