Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 33

Thread: Rtorrent + Ntorrent Thru SSH Solid,Complete And Working Guide.

  1. #16
    I dont know why but when i try to stop rtorrent with "/opt/etc/init.d/S99rtorrent stop" even if i get the message "Stopping rtorrent: rtorrent." rtorrent is still working.

  2. #17
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    ah... it is this random problem, that rtorrent doesnt recognizes every torrent file... it's still working

    Quote Originally Posted by outkastm View Post
    I dont know why but when i try to stop rtorrent with "/opt/etc/init.d/S99rtorrent stop" even if i get the message "Stopping rtorrent: rtorrent." rtorrent is still working.
    are you using the first or second how-to in this thread?
    can you see all your running processes with:
    ps
    or
    ps afx
    if "ps afx" is the case, you shouldn't have changed the ps option
    (at least... I guess)

  3. #18
    i use second guide and i see the process with "ps axf". I will try to restore to see if that is the problem.

  4. #19
    Quote Originally Posted by ravikjab View Post
    hello

    I have a problem,

    when I try and watch for errors, ad is in /opt/share/torrent/rtorrentInit.log:
    Code:
    rtorrent -n -o import=/opt/etc/rtorrent.conf

    I have answer :
    (10:33:41) The SCGI socket is bound to a specific network device yet may still pose a security risk, consid
    er using 'scgi_local'.ommand failed: ratio: Command "stop_on_ratio" does not exist.
    (10:35:11) Scheduled command failed: ratio: Command "stop_on_ratio" does not exist.


    Now I don't know what shall I do.

    Thanks for help.
    If you updated your rtorrent to version 0.8.4 you'll notice that it won't except the scheduled ratio check,
    this is because it has now been built in and only the values have to be set.
    So you can quote or remove that schedule and use the settings below

    Here is a basic example
    -first it enables ratio check
    -sets the min and max ratios (1,0 and 2,0) also 20MB
    -when the ratio is attained it triggers some commands

    # Enable the default ratio group.
    ratio.enable=

    # Change the limits, the defaults should be sufficient.
    ratio.min.set=100
    ratio.max.set=200
    ratio.upload.set=20M

    # Changing the command triggered when the ratio is reached.
    system.method.set = group.seeding.ratio.command, d.close=, d.erase=
    You can read more on the rtorrent site, on working with different groups of torrents
    (i.e. fast and slow lanes )
    http://libtorrent.rakshasa.no/wiki/R...tRatioHandling
    Last edited by Melicous; 29-01-2009 at 04:16.

  5. #20
    Thx for the howto

    I had all but given up on running torrents on my box
    Transmission kept on crashing the server or was slowing
    down the samba to a crawl, ctorrent was no better

    But the rtorrent and ntorrent combo really works great
    Just for test purpose the first torrent was debian
    did a reboot 3/4 of the way and a hash check took about 1h
    but all the files where still there unlike transmission where
    some percentage always got lost in the reboot.
    My box still runs stable even with the sftp, samba, etc.

    Thx again t68kv

  6. #21
    Join Date
    Sep 2007
    Location
    czech republic
    Posts
    182
    problem with units(download/upload speed) Kb = kB, it's very confusing, did you thing?
    Last edited by gouryella; 13-04-2009 at 23:26.
    RT-N13u dd-wrt | Toshiba 2.5" 160GB | pxe boot server

  7. #22
    Well, I did everything just as the gouryella's tutorial said, and I'm getting 'Connection reset' when I try to connect through nTorrent. Any idea?

  8. #23
    Join Date
    Sep 2007
    Location
    czech republic
    Posts
    182
    Quote Originally Posted by k0n View Post
    Well, I did everything just as the gouryella's tutorial said, and I'm getting 'Connection reset' when I try to connect through nTorrent. Any idea?
    Hi, i checked my tutorial today, clean install to my new 32GB flash drive and it's working fine.
    please repeat tutorial again, i make some changes in.
    ipkg remove rtorrent before

    try manually start and watch for errors:
    Code:
    rtorrent -n -o import=/opt/etc/rtorrent.conf
    Last edited by gouryella; 19-03-2009 at 17:28.
    RT-N13u dd-wrt | Toshiba 2.5" 160GB | pxe boot server

  9. #24
    Join Date
    Mar 2007
    Location
    Milano - Italy
    Posts
    164
    Hello gouryella
    can you please check what the hell happens to you upgrading with ipkg to the latest rtorrent_0.8.4-2_mipsel.ipk ?

    Mine doesn't start automatically at every reboot as before, but if I start manually using sh /opt/etc/init.d/S99rtorrent start it works fine...

    No need to change S99rtorrent in the new startup file.

    Thanks

    Max

    PROBLEM SOLVED:
    I replaced at the very beginning of S99rtorrent the line

    #!/opt/bin/bash
    with

    #!/bin/sh
    Last edited by QMax; 13-04-2009 at 16:05. Reason: Update

  10. #25

    ntorrent isn't checking hash

    hi,

    yesterday i start downloading a torrent (here), at that time, it was making progress. a few hours later i turned off the router. today i turned it on and opened ntorrent. i found it's stuck at checking hash. the icon showed it's checking hash, but it's not making any progress. see the picture "ntorrent.png".

    i execute "rtorrent -n -o import=/opt/etc/rtorrent.conf" to see if something's wrong, nothing wrong. i entered the rtorrent console and see it checking hash. see picture "ssh.png".

    all the files in the torrent total 13GB, my /tmp/harddisk partition has only 7GB, but i turned most of the files "off" in ntorrent. does this matter?

    anyone help me out, please?
    Attached Images Attached Images   

  11. #26
    Join Date
    Sep 2007
    Location
    czech republic
    Posts
    182
    Delete session files (/opt/share/torrent/session), but you must manually add all torrents again / or copy *.torrents to dl.
    Hash will be checked again, it takes lot of time.
    RT-N13u dd-wrt | Toshiba 2.5" 160GB | pxe boot server

  12. #27
    Join Date
    Mar 2007
    Location
    Milano - Italy
    Posts
    164
    Mmmmm... just ipkg upraded to rtorrent 0.8.5-1...
    it seems is running correctly but I'm not able to connect from nTorrent....

  13. #28
    after update to latest version, rtorrent don't start automatic

  14. #29
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by QMax View Post
    Mmmmm... just ipkg upraded to rtorrent 0.8.5-1...
    it seems is running correctly but I'm not able to connect from nTorrent....
    mine works fine
    got this as start script:
    Code:
    #!/opt/bin/bash
    
    ############################################################################
    #Optware package of rtorrent uses non-standard layout of directories.     ##
    #Uncomment the following line to switch to the default layout of rtorrent.##
    ############################################################################
    #dirlayout="RTORRENT_DEFAULT"
    
    #############
    ###<Notes>###
    #############
    # This script depends on screen.
    # For the stop function to work, you must set an
    # explicit session directory using ABSOLUTE paths (no, ~ is not absolute) in you                                             r rtorrent.rc.
    # If you typically just start rtorrent with just "rtorrent" on the
    # command line, all you need to change is the "user" option.
    # Attach to the screen session as your user with
    # "screen -dr rtorrent". Change "rtorrent" with srnname option.
    # Licensed under the GPLv2 by lostnihilist: lostnihilist _at_ gmail _dot_ com
    ##############
    ###</Notes>###
    ##############
    
    #######################
    ##Start Configuration##
    #######################
    # You can specify your configuration in a different file
    # (so that it is saved with upgrades, saved in your home directory,
    # or whateve reason you want to)
    # by commenting out/deleting the configuration lines and placing them
    # in a text file (say /home/user/.rtorrent.init.conf) exactly as you would
    # have written them here (you can leave the comments if you desire
    # and then uncommenting the following line correcting the path/filename
    # for the one you used. note the space after the ".".
    # . /etc/rtorrent.init.conf
    
    #Do not put a space on either side of the equal signs e.g.
    # user = user
    # will not work
    # system user to run as
    user="root"
    
    # the system group to run as, not implemented, see d_start for beginning impleme                                             ntation
    # group=`id -ng "$user"`
    
    prefix="/opt"
    
    # the full path to the filename where you store your rtorrent configuration
    if [ "${dirlayout}" = "RTORRENT_DEFAULT" ] ; then
      config="${prefix}/home/${user}/.rtorrent.rc"
    else
      config="/opt/etc/rtorrent.conf"
    fi
    
    # set of options to run with
    if [ "${dirlayout}" = "RTORRENT_DEFAULT" ] ; then
      options=""
    else
      options="-n -o import=${config}"
    fi
    
    # default directory for screen, needs to be an absolute path
    if [ "${dirlayout}" = "RTORRENT_DEFAULT" ] ; then
      base="${prefix}/home/${user}"
    else
      base="/opt/share/torrent"
    fi
    
    # name of screen session
    srnname="rtorrent"
    
    # file to log to (makes for easier debugging if something goes wrong)
    logfile="/opt/var/log/rtorrentInit.log"
    
    #######################
    ###END CONFIGURATION###
    #######################
    PATH=/opt/bin:/opt/sbin:/usr/bin:/sbin:/bin:/usr/sbin
    DESC="rtorrent"
    NAME=rtorrent
    DAEMON=$NAME
    SCRIPTNAME=/etc/init.d/$NAME
    
    # Do not proceed unless some apps are available.
    test -x /opt/bin/screen || ( echo "screen not found." | tee -a "$logfile" >&2 ;                                              exit 2 )
    test -x /opt/bin/su -o -x /bin/su || ( echo "su not found." | tee -a "$logfile"                                              >&2 ; exit 2 )
    
    checkcnfg() {
            exists=0
            for i in `echo "$PATH" | tr ':' '\n'` ; do
                    if [ -f "$i/$NAME" ] ; then
                            exists=1
                            break
                    fi
            done
    
    
            if [ $exists -eq 0 ] ; then
                    echo "cannot find rtorrent binary in PATH $PATH" | tee -a "$logf                                             ile" >&2
                    exit 3
            fi
            if ! [ -r "${config}" ] ; then
                    echo "cannot find readable config ${config}. check that it is th                                             ere and permissions are appropriate" | tee -a "$logfile" >&2
                    exit 3
            fi
            session=`getsession "$config"`
            if ! [ -d "${session}" ] ; then
                    echo "cannot find readable session directory ${session} from con                                             fig ${config}. check permissions" | tee -a "$logfile" >&2
                    exit 3
            fi
    }
    
    d_start() {
      [ -d "${base}" ] && cd "${base}"
    
      stty stop undef && stty start undef
      su -c "screen -ls | grep -sq "\.${srnname}[[:space:]]" " ${user} || su -c "scr                                             een -dm -S ${srnname} 2>&1 1>/dev/null" ${user} | tee -a "$logfile" >&2
      # this works for the screen command, but starting rtorrent below adopts screen                                              session gid
      # even if it is not the screen session we started (e.g. running under an undes                                             irable gid
      #su -c "screen -ls | grep -sq "\.${srnname}[[:space:]]" " ${user} || su -c "sg                                              \"$group\" -c \"screen -fn -dm -S ${srnname} 2>&1 1>/dev/null\"" ${user} | tee                                              -a "$logfile" >&2
      su -c "screen -S "${srnname}" -X screen rtorrent ${options} 2>&1 1>/dev/null"                                              ${user} | tee -a "$logfile" >&2
    }
    
    d_stop() {
            session=`getsession "$config"`
            if ! [ -s ${session}/rtorrent.lock ] ; then
                    return
            fi
            pid=`cat ${session}/rtorrent.lock | awk -F: '{print($2)}' | sed "s/[^0-9                                             ]//g"`
            if ps | grep -sq ${pid}.*rtorrent ; then # make sure the pid doesn't bel                                             ong to another process
                    kill -s INT ${pid}
            fi
    }
    
    getsession() {
            session=`awk '/^[[:space:]]*session[[:space:]]*=[[:space:]]*/{print($3)}                                             ' "$config"`
            echo $session
    }
    
    checkcnfg
    
    case "$1" in
      start)
            echo -n "Starting $DESC: $NAME"
            d_start
            echo "."
            ;;
      stop)
            echo -n "Stopping $DESC: $NAME"
            d_stop
            echo "."
            ;;
      restart|force-reload)
            echo -n "Restarting $DESC: $NAME"
            d_stop
            sleep 1
            d_start
            echo "."
            ;;
      *)
            echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
            exit 1
            ;;
    esac
    
    exit 0
    [root@wpte root]$ clear
    'xterm': unknown terminal type.
    [root@wpte root]$ clean
    -sh: clean: not found
    [root@wpte root]$ screen
    /opt/var/run/utmp: No such file or directory
    
    getsession() {
            session=`awk '/^[[:space:]]*session[[:space:]]*=[[:space:]]*/{print($3)}' "$config"`
            echo $session
    }
    
    checkcnfg
    
    case "$1" in
      start)
            echo -n "Starting $DESC: $NAME"
            d_start
            echo "."
            ;;
      stop)
            echo -n "Stopping $DESC: $NAME"
            d_stop
            echo "."
            ;;
      restart|force-reload)
            echo -n "Restarting $DESC: $NAME"
            d_stop
            sleep 1
            d_start
            echo "."
            ;;
      *)
            echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
            exit 1
            ;;
    esac
    
    exit 0

  15. #30

    rtorrent does not start dl

    I can successfully start rtorrent (as seen in ps), but the torrents never start dl. Anybody know how to resolve?

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Replies: 3
    Last Post: 01-11-2014, 13:16
  2. [How to] rtorrent & ntorrent
    By mancub in forum WL-500gP Tutorials
    Replies: 101
    Last Post: 18-12-2008, 07:21
  3. auto start of mvc in post-mount not working
    By dyonisos in forum WL-500gP Q&A
    Replies: 3
    Last Post: 15-09-2008, 13:26
  4. Is rtorrent working?
    By Ovydake in forum WL-500gP Q&A
    Replies: 2
    Last Post: 01-10-2007, 09:30
  5. How to setup and get Dropbear ssh working?
    By kopi_bean in forum WL-700g Firmware Discussion
    Replies: 34
    Last Post: 19-04-2007, 23:25

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •