Automove after finish download

Questions regarding modifying the torrent engine or download station may go here.
Forum rules
Please note the disclaimer before modifying your Synology Product.

Automove after finish download

Postby Dizzad » Sun Feb 22, 2009 5:45 pm

What´s wrong ?
All those directory exist...
But i got errorcode @ all torrents...
Runnig @ Synology 207+
Download event action failed: Bad return code.
Code: Select all
# Default directory to save the downloaded torrents.
directory = ./Running/

# Default session directory. Make sure you don't run multiple instance
# of rtorrent using the same session directory. Perhaps using a
# relative path?
session = ./system/


# When the torrent finishes, it executes "mv -n <base_path> ./"
# and then sets the destination directory to "~/Download/". (0.7.7+)
on_finished = move_complete,"execute=mv,-u,$d.get_base_path=,./Running/ ;d.set_directory=./Complete/"


# Watch a directory for new torrents, and stop those that have been
# deleted.
schedule = watch_directory,5,5,load_start=./New/*.torrent
#schedule = untied_directory,5,5,stop_untied=






Code: Select all
                                                                       *** rTorrent 0.8.3/0.12.3 - DiskStation:11559 ***
[View: main]
   Movits_-_Aeppelknyckarjazz-SE-2008-x3m
            done       63.2 MB Rate:   0.0 /   0.0 KB Uploaded:     0.0 MB                 [T  R: 0.00]
  Tracker: [Tried all trackers.]









(17:45:50) Download event action failed: Bad return code.
[Throttle off/off KB] [Rate   2.6/1127.4 KB] [Port: 6790]      [U 0/0] [D 0/0] [H 0/32] [S 0/2/768] [F 17/128]
Dizzad
I'm New!
I'm New!
 
Posts: 5
Joined: Thu Oct 02, 2008 9:41 pm

Re: Automove after finish download

Postby BobTheZealot » Sun Nov 15, 2009 8:46 am

It's been months since you had this problem but this may be useful to others who are trying to troubleshoot.

Basically, the -u option on the mv command is not supported on BusyBox (whereas it is on GNU). BusyBox doesn't have an -u equivalent but I just used -f which overwrites without prompting so the moves can happen without requiring intervention.

http://www.busybox.net/downloads/BusyBox.html

So basically your on_finished line would be:
Code: Select all
on_finished = move_complete,"execute=mv,-f,$d.get_base_path=,./Running/ ;d.set_directory=./Complete/"


Note that on_finished is deprecated in newer rTorrent versions.

I'd recommend using execute_log in your rtorrent config so you can see the error messages in the log when the execute commands encounters a problem. Just add something like this to your config file:

Code: Select all
execute_log = /root/.rtorrent/rtorrent.log


Hope this helps.
BobTheZealot
I'm New!
I'm New!
 
Posts: 6
Joined: Mon Apr 21, 2008 1:04 pm


Return to Torrent Engines/Download Station Mods

Who is online

Users browsing this forum: No registered users and 1 guest