How to get auto-tools working properly

simur612

Member
May 25, 2018
879
0
16
I haven't had a problem with it reporting incorrectly. And, no, this doesn't use fastresume, this was working well before fastresume was included.
 

randac56

Member
May 25, 2018
915
0
16
Ok, but i've changed back to rtorrents watchdir as i don't like the fact that download stat is "lost" when it changes from download to seeding. This is the way skipping the hashcheck works. Make a new torrent with fastresume, but download/upload stats on trackers are "lost". And by that i mean you're seeding but you havn't downloaded anything. Så using tracker to see tratio pr. torrent is impossible.
ditto....not a huge deal, but would love a solution

directories are setup like this

download folder: home/rtor/torrents
move to folder: home/ftpaccess/completed

once completed the tracker reports 0mb dl/0mb ul

thanks in advance for any help
 

lisas4567

Member
May 25, 2018
773
0
16
ditto....not a huge deal, but would love a solution

directories are setup like this

download folder: home/rtor/torrents
move to folder: home/ftpaccess/completed

once completed the tracker reports 0mb dl/0mb ul

thanks in advance for any help
this doesn't make sense. If the tracker loses stats, that's the trackers fault, not rutorrent.

On the otherhand, rutorrent might report incorrectly, but again, that has NOTHING to do with the tracker.
 

saroos1

Member
May 25, 2018
718
0
16
maybe I didn't word it properly

overall stats are fine but the current stats are not once the files are moved:





in the above examples I've been seeding for some time so it does show how much has uploaded, but as you can see it shows nothing downloaded

I've tried it without utilizing auto-move and the currents stats are always right on
 

simur612

Member
May 25, 2018
879
0
16
all i'm saying is this:

If the stats get f'd up, it's on the tracker. not on rutorrent.


moving a file, stopping it and restarting it does not do anything to your "real" stats.

If you are seeing something else, it is a tracker issue. I use this exact plugin on EVERY torrent, on every tracker and it's NEVER caused a problem.


also, it's important to note that, technically, the stats you are showing are a net GAIN on your side, not a loss.


I think you're really just upset over what boils down to be a cosmetic issue.


but your "total" stats should be correct. If not, then your tracker is 100% totally fucked.
 

randac56

Member
May 25, 2018
915
0
16
I'm not upset at all


just wondering if I have setup everything correctly and this is a normal situation

I understand that my overall stats are cool

I realize they are 2 completely different programs but Utorrent kept the current stats up to date, even when the file moved

no disrespect intended....just trying to learn
 

peshua19

Member
May 25, 2018
897
0
16
again, i'm not mad either, let me see if i can explain it better.


rutorrent is not a torrent client AT ALL

it's simply a web front end for rtorrent. A lot of the fancy features are either addons or tricks of code. "auto-tools" uses one of these tricks. basically, what autotools does is this:

you download the file, it pauses the torrent, it moves the data, and then edits the torrent and restarts it.

Because of this "stop/start" your tracker (if it's not smart) will register you as doing this:

download a file to 100% (add this to your total)
stop the torrent
then add the torrent back (resetting your total for the TORRENT, but not for your OVERALL score)
seed -> ratio shows as INF but, since the tracker kept track of the original bits, your overall ratio = exactly the same.

It's the TRACKERS error, for not being able to keep track.


and again, it's important for you to understand, IF ANYTHING IS WRONG, ITS AT THE TRACKER.

some trackers show 2 stats.

your overall ratio

and stats per torrent.

the problem is, some trackers are "dumb" in that, they show the "current stats for the torrent" based on whatever the most current stats are, not the cumlative stats.....so, for instance, if you start downloading, stop halfway, start again, stop at 99% then start again

your overall ratio will be right, but your "per torrent" listing will be only from the point it last started, to the current, in this case 1% download : N SEED

understand?

It's the tracker, but it's 100% cosmetic, as your overall stats are FINE
 

lisas4567

Member
May 25, 2018
773
0
16
completely understand and I know my overall stats are cool

what you are saying is that once a file is in the process of moving from the downloaded directory to the completed directory the tracker thinks the torrent has stopped and your current (not overall) stats start again from the time seeding starts and this is a tracker issue, not a rtorrent/libtorrent/rutorrent issue or the way I have setup my directories

thanks for the feedback
 

saroos1

Member
May 25, 2018
718
0
16
exactly. The only reason you don't see the EXACT same issue with utorrent, is utorrent has special code to keep the torrent from every "stopping"

as far as the tracker is concerned, it's the same "connection"


unfortunately, this is going to be difficult with rtorrent, but ultimately it's not even an rtorrent problem, it's a problem in tracker reporting.

The tracker code should be smart enough to keep track of each torrent, unfortunately, in the situation you are seeing, the tracker isn't.
 

peshua19

Member
May 25, 2018
897
0
16
Thx for explaining this


I am still hoping for you to come up with something though
dude, there is nothing to "come up with"

It's not OUR PROBLEM

IT's not even a REAL ISSUE.

It's purely cosmetic, if you want someone to work on something, complain to the BROKEN ASS TRACKERS
 

saroos1

Member
May 25, 2018
718
0
16
I have all of the autotools enabled and configured but it is not picking up any of the torrent files I have.

I believe I am using php cli. Here is the output of 'php -v'
Code:
PHP 5.2.12 (cli) (built: Jan 1 2010 11:17:49)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

This is the autotools log
Code:
12.05.10 15:15:26] AutoWatch: --- begin ---
[12.05.10 15:15:26] AutoWatch: enabled : 1
[12.05.10 15:15:26] AutoWatch: autostart : 1
[12.05.10 15:15:26] AutoWatch: path_to_watch : /volume1/Warehouse/Incoming/Torrents/
[12.05.10 15:15:26] AutoWatch: get_directory : ./

In my php.ini I have 'register_argc_argv = On'

If I set rtorrent's watch dir on it picks up torrents in the Incoming/Torrents directory right away. But when I disable it and enable autotools it does not find any of the torrents in the subdirectories Incoming/Torrents/Music, Incoming/Torrents/Movies, etc
 

simur612

Member
May 25, 2018
879
0
16
Instead of starting a new topic I decided to post here as it relates to the original post.

I am using rutorrent on my xbmc media box, I set it up using the great Seedbox tutorial at
http://forums.rutorrent.org/index.php?topic=256.0.

I am running ubuntu 10.04 and I cannot get autotools to automove files after download as per their label.

I have php-cli as my output of "php-v" is
Code:
PHP 5.3.2-1ubuntu4.2 with Suhosin-Patch (cli) (built: May 13 2010 20:01:00)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

Also my /etc/php5/cli/php.ini contains
Code:
register_argc_argv = On
My download directory in rtorrent.rc is /mnt/DATA/Torrents/Downloading/

rtorrent.rc:
Code:
# Default directory to save the downloaded torrents.
directory = /mnt/DATA/Torrents/Downloading/
this folder has subfolders Movie, TV Show and Other:
/mnt/DATA/Torrents/Downloading/Movie
/mnt/DATA/Torrents/Downloading/TV Show
/mnt/DATA/Torrents/Downloading/Other

when torrents are set to download to these folders they get the correct labels.

My move to completed folder in rtorrent.rc is /mnt/DATA/Torrents/Complete

rtorrent.rc
Code:
# When the torrent finishes, it executes "mv -n <base_path> ~/Download/"
# and then sets the destination directory to "~/Download/". (0.7.7+)
on_finished = move_complete,"execute=mv,-u,$d.get_base_path=,/mnt/DATA/Torrents/Complete/ ;d.set_directory=/mnt/DATA/Torrents/Complete/"
When I download an ubuntu .iso torrent into the "Downloading/Other" directory my errors.log from autotools contains the following:

Code:
[18.09.10 19:55:51] AutoWatch: --- begin ---
[18.09.10 19:55:51] AutoWatch: enabled : 1
[18.09.10 19:55:51] AutoWatch: autostart : 1
[18.09.10 19:55:51] AutoWatch: path_to_watch : /mnt/DATA/Torrents/TorrentFiles/
[18.09.10 19:55:51] AutoWatch: get_directory : /mnt/DATA/Torrents/Downloading/
[18.09.10 19:55:51] AutoWatch: --- end ---
[18.09.10 19:55:59]
[18.09.10 19:55:59] AutoLabel: --- begin ---
[18.09.10 19:55:59] AutoLabel: enabled : 1
[18.09.10 19:55:59] AutoLabel: template : "{DIR}"
[18.09.10 19:55:59] AutoLabel: get_directory : /mnt/DATA/Torrents/Downloading/
[18.09.10 19:55:59] AutoLabel: d.get_directory : /mnt/DATA/Torrents/Downloading/Other
[18.09.10 19:55:59] AutoLabel: d.get_custom3 :
[18.09.10 19:55:59] AutoLabel: d.is_multy_file :
[18.09.10 19:55:59] AutoLabel: label : "Other"
[18.09.10 19:55:59] rtExec: d.set_custom1
[18.09.10 19:55:59] AutoLabel: --- end ---
[18.09.10 20:06:45]
[18.09.10 20:06:45] AutoMove: --- begin ---
[18.09.10 20:06:45] AutoMove: enabled : 1
[18.09.10 20:06:45] AutoMove: path_to_finished : /mnt/DATA/Torrents/Complete
[18.09.10 20:06:45] AutoMove: get_directory : /mnt/DATA/Torrents/Downloading/
[18.09.10 20:06:45] AutoMove: d.get_base_path : /mnt/DATA/Torrents/Complete/ubuntu-9.10-server-i386.iso
[18.09.10 20:06:45] AutoMove: d.get_name : ubuntu-9.10-server-i386.iso
[18.09.10 20:06:45] AutoMove: base_path : /mnt/DATA/Torrents/Complete/
[18.09.10 20:06:45] AutoMove: relative path :
[18.09.10 20:06:45] AutoMove: Source files are not in subdir of "directory"
[18.09.10 20:06:45] AutoMove: --- end ---
[18.09.10 20:06:51]

The File always just ends up in /Torrents/Complete
The /mnt/DATA/Torrents/Complete folder has permissions of 777.

Any Advice?
Sorry of the really long post, I was just trying to include all possible info to improve my chances of getting help!!

The Capt.
 

randac56

Member
May 25, 2018
915
0
16
the problem is you're trying to mix 2 types of "move on complete" things.


you have autotools set up AND you have a directive to move files in your .rtorrent.rc, in that case, the .rtorrent.rc "wins"

remove the line from .rtorrent.rc
 

peshua19

Member
May 25, 2018
897
0
16
the problem is you're trying to mix 2 types of "move on complete" things.


you have autotools set up AND you have a directive to move files in your .rtorrent.rc, in that case, the .rtorrent.rc "wins"

remove the line from .rtorrent.rc
Thanks A Million,
I commented out the line:
Code:
on_finished = move_complete,"execute=mv,-u,$d.get_base_path=,/mnt/DATA/Torrents/Complete/ ;d.set_directory=/mnt/DATA/Torrents/Complete/"
and now all works as planned!!
 

simur612

Member
May 25, 2018
879
0
16
Hi, and thx for you posts, It helped me a lot to set up auto-tools.

I got two issues :

1) It takes several minutes to start a torrent after I copy the .torrent in my watch directory. Is it normal ? Can I make it start faster ?

2) When the torrent starts, the .torrent disappear from the watch directory. I dont want this to happen. Where is the .torrent moved to ? Can I change something about that ?

Thank you in advance for your answers.
 

peshua19

Member
May 25, 2018
897
0
16
Hi, and thx for you posts, It helped me a lot to set up auto-tools.

I got two issues :

1) It takes several minutes to start a torrent after I copy the .torrent in my watch directory. Is it normal ? Can I make it start faster ?

2) When the torrent starts, the .torrent disappear from the watch directory. I dont want this to happen. Where is the .torrent moved to ? Can I change something about that ?

Thank you in advance for your answers.
The first one i can help with, the second one i can't.

if you check in the plugins/autotools/conf.php you will see the autowatch options.

you can change the default to anything, i believe it's at 300 seconds by default

Unfortunately, the guy who wrote auto-tools hasn't updated it and is sort of missing in action, so the second thing isn't possible to have fixed.


novik has said he may re-write auto-tools at some point, but this would be the only way i see your second question being address (outside of you doing it yourself)
 

lisas4567

Member
May 25, 2018
773
0
16
I'll just copy the .torrents I want to save in another folder.

I changed the default to 10 and it works perfectly.

Thanks
 

saroos1

Member
May 25, 2018
718
0
16
Wonslung;

Does "Unpack" work first or does AutoMove (from AutoTools) work first in the process?

I'm wondering because I'll have partially unpacked media in my final "completed media" folder.

Just wondering what the issue could be.

Also where are logs for these plugins' actions typically sent to in a normal linux (ubuntu server in this case) installation? I used brock's install script too if that helps with the troubleshooting.

Thanks much!
-rep