You are not logged in.

#1 2007-10-21 16:29:06

alleyoopster
Member
From: Cape Town
Registered: 2006-11-19
Posts: 95

rtorrent not transfering up or down

Since last night I have lost download / upload ability with rtorrent. Every torrent I try just sits there. Checking the log this is what I get:

(18:19:57) Incoming connection from 90.24.232.21:2117
(18:19:59) Incoming connection from 84.100.130.165:3086
(18:20:00) Outgoing encrypted connection to 213.44.90.134:14530
(18:20:01) Handshake failed: 213.44.90.134:14530 - Network error
(18:20:05) Handshake failed: 81.48.189.97:2378 - Network error
(18:20:11) Handshake failed: 83.177.210.66:55319 - Network error
(18:20:22) Incoming connection from 81.56.36.60:55417

I installed SSH last night, not sure if that could have affected rtorrent.

Any help to troubleshoot this would be appreciated

Last edited by alleyoopster (2007-10-21 16:29:32)

Offline

#2 2007-10-21 16:41:11

buttons
Member
From: NJ, USA
Registered: 2007-08-04
Posts: 620

Re: rtorrent not transfering up or down

Try changing (and randomising) your ports...maybe your ISP is meddling.


Cthulhu For President!

Offline

#3 2007-10-21 16:52:19

alleyoopster
Member
From: Cape Town
Registered: 2006-11-19
Posts: 95

Re: rtorrent not transfering up or down

It wouldn't surprise me, it is club internet in France who are known to be unfriendly, but alas deluge is working ok, so I guess it is not that. I tried anyway but I am getting 0 up and 0 down still.

Offline

#4 2007-10-22 23:52:08

ramoneur
Member
Registered: 2007-06-04
Posts: 89

Re: rtorrent not transfering up or down

i had the same problem some tiime ago, i tried everything.
only thing that worked was finding new torrents for the ones that didnt worked. (i know all my torrents had alot of seeders and leechers and so on...)
im practically only downloading tv-series with torrent so its easy to find new torrents for me. maybe it isnt as easy for you.

what i did was, remove everything in my sessions folder and tried some new torrents. it worked and i didnt think more about the problem... but i guess its still there.

the problem came after a night of downloading 5-6 torrents simultaneously(spelling? haha), so after that im only downloading 1 or 2 torrents at a time since there isnt any auto queue feature in rtorrent, thats the only thing im missing sad


A w e s o m e
r
c
h

Offline

#5 2007-10-23 04:57:43

alleyoopster
Member
From: Cape Town
Registered: 2006-11-19
Posts: 95

Re: rtorrent not transfering up or down

ramoneur I owe you one. It is a simple solution and it worked a treat. I just cleared out the session folder and tried a new torrent (Arch in fact) and all kicked in again. I was running ktorrent over the last couple of days which I must say was doing a fine job and with a web interface, but I'll think I'll switch back now rtorrent it is working again and just run with 1 torrent

thanks

Offline

#6 2007-10-23 05:03:21

ramoneur
Member
Registered: 2007-06-04
Posts: 89

Re: rtorrent not transfering up or down

happy it worked for you to alleyoopster big_smile
although it isnt the best solution, it works.
since you owe me one now (haha wink ) if you find out about any script or something that can make rtorrent queue files and only download 1 at a time, can you tell me? (cause its getting on my nerves starting a new torrent every time after one torrent is finished.)
i have looked but havent found any such thing, maybe you will have more luck then me smile

Last edited by ramoneur (2007-10-23 05:04:12)


A w e s o m e
r
c
h

Offline

#7 2007-10-23 05:29:29

alleyoopster
Member
From: Cape Town
Registered: 2006-11-19
Posts: 95

Re: rtorrent not transfering up or down

Maybe this

max_downloads_global = value

EDIT: I tried this, but it didn't really seem to work.

Or maybe this script from Max Bordelon

#!/usr/bin/perl

use strict;
use File::stat;
use File::Copy;

#
# Configure for your setup
##########################
my $max_downloads = 2;
my $session_dir = "/your/session/dir";
my $watch_dir = "/your/watch/dir";
my $queue_dir = "/some/directory/to/act/as/a/queue";
##########################

my @downloading;
my $oldest_name;
my $oldest_time;
my $finfo;
while(1)
{
    opendir(SESSION, $session_dir);
    @downloading = grep(/\.torrent$/, readdir(SESSION));
    closedir(SESSION);

    if(@downloading < $max_downloads)
    {
        $oldest_name = "";
        $oldest_time = 0;
        opendir(QUEUE, $queue_dir);
        foreach my $file (grep(/\.torrent$/, readdir(QUEUE)))
        {
            $file = "$queue_dir/$file";
            $finfo = stat($file);
            if($finfo->atime < $oldest_time || $oldest_name eq "")
            {
                $oldest_name = $file;
                $oldest_time = $finfo->atime;
            }
        }
        closedir(QUEUE);

        move("$oldest_name", $watch_dir) unless($oldest_name eq "");
    }

    sleep 30;
}

Or maybe using the 

on_finished = id,command

(see man page)

Last edited by alleyoopster (2007-10-23 05:59:46)

Offline

#8 2007-10-23 06:21:25

ramoneur
Member
Registered: 2007-06-04
Posts: 89

Re: rtorrent not transfering up or down

thank you gonna try this when i get home big_smile


A w e s o m e
r
c
h

Offline

#9 2007-10-24 22:33:18

ramoneur
Member
Registered: 2007-06-04
Posts: 89

Re: rtorrent not transfering up or down

im sorry, but how do i use that perl script alleyoopster? it doesnt seem to start rtorrent, and if so how do i implement it with rtorrent, or else how do i even start the script? i have absolutely no knowledge of perl.


A w e s o m e
r
c
h

Offline

#10 2007-10-24 22:50:21

alleyoopster
Member
From: Cape Town
Registered: 2006-11-19
Posts: 95

Re: rtorrent not transfering up or down

I don' t know much about it and I havent tried it. I found the script through google. I am not familiar with Perl, but what I understand is that the script will update the watch directory from the queue directory. So, you have rtorrent running as normal with watch directory, untied and session directory setup. You make yourself a queue directory and this is where you place all your torrents that you want to queue. Then run the script (after updating it to suit your system) and it should monitor the sessions and add torrents to the watch directory from the queue.


Take the code and save it into a file with an extension .pl such as rtwatch.pl

To run the program you need to make the file executable. To do this, enter:

chmod +x rtwatch.pl

To run the program, enter:

./rtwatch.pl

Offline

#11 2007-10-25 13:46:20

ramoneur
Member
Registered: 2007-06-04
Posts: 89

Re: rtorrent not transfering up or down

thank you so much big_smile i got it working perfectly big_smile


A w e s o m e
r
c
h

Offline

#12 2007-10-25 18:38:28

alleyoopster
Member
From: Cape Town
Registered: 2006-11-19
Posts: 95

Re: rtorrent not transfering up or down

no worries smile

Offline

Board footer

Powered by FluxBB