mimtek / rutorrent

Automatically exported from code.google.com/p/rutorrent
0 stars 0 forks source link

create plugin fails 90% of the time with large torrents #185

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Install rutorrent
2.Install create plugin
3.Install any of the helper programs (mktorrent, buildtorrent, transmissioncli)

What is the expected output? What do you see instead?

I can see that the process is running, but the torrent never downloads. 
Most of these programs take 3-10 minutes to make the torrent.  I'm not sure
why it is failing to send...but one thing i DO notice is that it will slow
a "status" bar for the first 30 seconds or so, then say DONE, the It's not
REALLY done, because you can see the program still running in "top"  If i
look in /tmp/  i can see the torrent being made, but when it disapears from
top, the .torrent is no longer in /tmp and it never downloads.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by Wonslung@gmail.com on 24 Nov 2009 at 3:48

GoogleCodeExporter commented 9 years ago
The php script of plugin "create" use call to set_time_limit(0) to avoid the
interrupt of execution. But here -
http://ru.php.net/manual/en/function.set-time-limit.php - you can see this:

"You can do set_time_limit(0); so that the script will run forever - however 
this is
not recommended and your web server might catch you out with an imposed HTTP 
timeout
(usually around 5 minutes). You should check your web server's guides for more
information about HTTP timeouts."

"Your web server can have other timeout configurations that may also interrupt 
PHP
execution. Apache has a Timeout directive and IIS has a CGI timeout function. 
Both
default to 300 seconds. See your web server documentation for specific details."

Original comment by novik65 on 24 Nov 2009 at 8:52

GoogleCodeExporter commented 9 years ago
ahh, so i need to increase the timeout?  i think it's set to 15 seconds.  

Original comment by Wonslung@gmail.com on 24 Nov 2009 at 5:57

GoogleCodeExporter commented 9 years ago
could you add an option to dump created torrents in a folder or leave them in 
/tmp at
least.  This would be at least SOMEWHAT better than the current system.

I think ideally this plugin needs to be rethought.  There needs to be a way to
trigger the download to start after the helper programs finish making the 
torrent. 
for now it would be nice to just have the torrents available to download via 
FTP.

Original comment by Wonslung@gmail.com on 25 Nov 2009 at 4:31

GoogleCodeExporter commented 9 years ago
>torrents in a folder or leave them in /tmp at least.

For which reason you search it in /tmp? The result is placed to ruTorrent upload
directory. By default - rtorrent/torrents.

>There needs to be a way to trigger the download to start after the helper 
programs
finish making the torrent.

I don't know something about such way. If web-server say - terminate, then 
connection
is terminated. And php script doesn't know anything about that. And it can't do
anythig - it *server*, not client. No request - no answer.

Original comment by novik65 on 25 Nov 2009 at 8:41

GoogleCodeExporter commented 9 years ago
i was searching in tmp because that's where i saw the process create the file.

It DOES create the file there, then it disapears.

are you saying it's moved to rtorrent/torrents?
if so is there a way to distinguish this file from the others?

Original comment by Wonslung@gmail.com on 25 Nov 2009 at 10:20

GoogleCodeExporter commented 9 years ago
would it be possible to set the plugin to save torrents created with one of the
helper programs in another location?  if so it would be easy to set this as a 
web
download dir or ftp dir which would go a long way to solving this issue.

Original comment by Wonslung@gmail.com on 25 Nov 2009 at 10:25

GoogleCodeExporter commented 9 years ago
>if so is there a way to distinguish this file from the others?

Which others? It has extension "torrent" and name, maked from torrent source
directory name. 

>if so it would be easy to set this as a web download dir or ftp dir which 
would go a
long way to solving this issue.

Change $uploads variable in config.php.

Original comment by novik65 on 25 Nov 2009 at 12:02

GoogleCodeExporter commented 9 years ago
ok, i think there is some confusion going on here.

When you upload a torrent via the webui it lands in this dir, yes, i know this 
much.

but when i use CREATE when it's set to use "createtorrent" "mktorrent" 
"buildtorrent"
or "transmissioncli" it doesn't seem to put the torrent there....i'll go try 
again i
guess.

Anyways, what i DO see are torrents like this:

5f06ac6852dbd4c92f950fbc4d101944.torrent
6486689759a11058e991aeefaa04cb9a.torrent
657ae3c2ab60922eacb0eb6095b1237f.torrent
97708f3a89d3164b70d57963efa4c8aa.torrent
a586e86c1f027314c52d61ebdbb9c059.torrent
b54882d70d37daba7b4775332179eb37.torrent
b8af56599619292940745bb11ba852c3.torrent
bb03d041ea8cd7a10e4db556afe2a102.torrent
bb4943440ee00ebe15c1b29a2e47295d.torrent
dbe636de6c71408df560614bde274612.torrent

these all are torrents i've uploaded manually.

now, i know the "Create" programs are working, i'm watching them in TOP and i 
can SEE
the file they create (which happens to be in /tmp while the program is RUNNING)

As soon as it ends, it disapears from /tmp

Original comment by Wonslung@gmail.com on 25 Nov 2009 at 12:10

GoogleCodeExporter commented 9 years ago
Try to use r536. May be it will help, may be no.

Original comment by novik65 on 25 Nov 2009 at 1:18

GoogleCodeExporter commented 9 years ago
ok, i'll try and let you know.  
thanks.

Original comment by Wonslung@gmail.com on 25 Nov 2009 at 1:53

GoogleCodeExporter commented 9 years ago
ok, this is PERFECT, it works. now i can use ADD TORRENT to add it.  

Thanks, this works.

The only thing that would make it better is if i could set it in it's own dir 
on the
server instead of the one it's currently set as but it's not a major big deal 
because
hyou made it name the torrent, so it's easy to tell.

5f06ac6852dbd4c92f950fbc4d101944.torrent
6486689759a11058e991aeefaa04cb9a.torrent
657ae3c2ab60922eacb0eb6095b1237f.torrent
97708f3a89d3164b70d57963efa4c8aa.torrent
Shaun Of The Dead 720p BluRay x264 DTS DXVA-FLAWL3SS.torrent
a586e86c1f027314c52d61ebdbb9c059.torrent
b54882d70d37daba7b4775332179eb37.torrent
b8af56599619292940745bb11ba852c3.torrent
bb03d041ea8cd7a10e4db556afe2a102.torrent
bb4943440ee00ebe15c1b29a2e47295d.torrent
dbe636de6c71408df560614bde274612.torrent

see, the only one that is an actual name is the one i just made...thanks again 
man

Original comment by Wonslung@gmail.com on 25 Nov 2009 at 2:22

GoogleCodeExporter commented 9 years ago
well, adding the torrent by browsing to it doesn't work...for some reason even 
though
the file is in a dir which is 777 and the file itself is 644, the ADD TORRENT 
module
doesn't seem to see anything in /usr/local/www/rtorrent/torrents/

this is a minor problem considering i can ftp download it then upload it with 
ADD
TORRENT (browse local computer files)

Original comment by Wonslung@gmail.com on 25 Nov 2009 at 2:36

GoogleCodeExporter commented 9 years ago
I don't understand - what do you doing. Which "ADD TORRENT module"? If you need 
to
create torrent and add it to rtorrent after that - set "Start seeding" checkbox 
in
creation form.

Original comment by novik65 on 25 Nov 2009 at 3:32

GoogleCodeExporter commented 9 years ago
i assumed this would fail for the same reason as the download fails.

when i click "create torrent" it says "done" after about 10 seconds and nothing 
ever
happens.

With the new changes, the file is saved in a place that allows me to download 
it at
least.

Original comment by Wonslung@gmail.com on 25 Nov 2009 at 3:36

GoogleCodeExporter commented 9 years ago
See to 
1) web-server errors log
2) rtorrent console (if you set "Start seeding" checkbox).

Original comment by novik65 on 25 Nov 2009 at 3:44

GoogleCodeExporter commented 9 years ago
another problem is, some private sites require you to upload the .torrent file 
to
them.  For these you need to be able to seed it AND upload it.  With the way it 
is
set now, where i can see the NAME of the torrent (fix in SVN you just added) 
this
should be possible.  I'll just download it via FTP.

If i just click "start seeding" i can't find the .torrent file 

This is one reason i suggested a module which lets you click a torrent on the 
list
and download that .torrent file (if you've ever used torrentflux it's called 
"get
meta info")

Original comment by Wonslung@gmail.com on 25 Nov 2009 at 3:46

GoogleCodeExporter commented 9 years ago
Yet another: if torrent doesn't added to rtorrent (after you set "Start seeding"
checkbox) or connection is terminated after 15 sec and torrent not downloaded - 
THIS IS A ERROR IN PHP SCRIPT.
See to web-server log. Paste error here.

Original comment by novik65 on 25 Nov 2009 at 3:54

GoogleCodeExporter commented 9 years ago
theres no error in my logs.  I just tried a small torrent and it seemed to 
work, i'll
try a much bigger one (over 4gb) and report back.  Again, the main issue is i 
need to
be able to download the actual .torrent file so i can upload it to the tracker. 
 just
adding it to rtorrent isn't sufficient for some sites.

BUT, having said that, the change in SVN is a decent work around.  With this i 
can at
least create the torrent and download the .torrent file via FTP, HTTP or SFTP

Thanks again for your help.

Original comment by Wonslung@gmail.com on 25 Nov 2009 at 4:01