Create torrent Plugin

shwetha17

Member
May 24, 2018
785
0
16
Hi am having a problem with the create torrent plugin

When i click create torrent icon the window open

but there is not browse botton to choose the torrent.

Can somebody please assist me with this problem.

am using 3.0
 

das329717

Member
May 25, 2018
928
0
16
Thanks Working now..

One little problem when i create the torrent its take very long time

its 600mb

Is there any directory i have chmod?

Coz its not creating the torrent.
 

jith45

Member
May 25, 2018
960
0
16
a couple things to check:

do you have a command line php installed? i'm not sure if "create" needs it but some plugins refuse to work without it.

It would need to be set in your rutorrent/conf/config.php or rutorrent/conf/users/SOMEUSERNAME/config.php

are you on a 64 bit host? i know 64 bit works better for create (but hyou shouldn't have any issues with such a small torrent actually)

creating a torrent is a very cpu intensive task though.

If you are using a helper program, this might be the issue. did you edit anything in the plugins/create/conf.php file?
 

dsouvik215

Member
May 25, 2018
896
0
16
am using helper mkcreate... what should i configure in the conf/config.php?

still taking time
 

jith45

Member
May 25, 2018
960
0
16
The request to rTorrent has timed out.

/var/www/rutorrent/conf/config.php
Code:
<?php
// configuration parameters

@define(&#39;HTTP_USER_AGENT&#39;, &#39;Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9) Gecko/2008052906 Firefox/3.0&#39;, true);
@define(&#39;HTTP_TIME_OUT&#39;, 30, true); // in seconds
@define(&#39;HTTP_USE_GZIP&#39;, true, true);
@define(&#39;RPC_TIME_OUT&#39;, 15, true); // in seconds
@define(&#39;LOG_RPC_CALLS&#39;, false, true);
@define(&#39;LOG_RPC_FAULTS&#39;, true, true);

$do_diagnostic = true;
$log_file = &#39;/tmp/errors.log&#39;; // path to log file (comment or make empty to disable logging)
$saveUploadedTorrents = true;

$topDirectory = &#39;/home/rtor/torrents/&#39;; // Upper available directory. Absolute path with trail slash.

$scgi_port = 0;
$scgi_host = "unix:///tmp/rpc.socket";
$XMLRPCMountPoint = "/RPC2";

$pathToPHP = &#39;&#39;; // Something like /bin/php. If empty, will be founded in PATH.
$pathToCurl = &#39;&#39;; // Something like /bin/curl. If empty, will be founded in PATH.

// For web->rtorrent link through unix domain socket
// (scgi_local in rtorrent conf file), change variables
// above to something like this:
//
// $scgi_port = 0;
// $scgi_host = "unix:///tmp/rpc.socket";

?>



/var/www/rutorrent/plugins/create/config.php
Code:
<?php
// configuration parameters

define(&#39;MAX_CONSOLE_SIZE&#39;,25,true);

$useExternal = true; // Valid choices:
// false - use internal realization (may be too slow for large files)
// "transmissioncli" - use program transmissioncli (see http://www.transmissionbt.com/)
// "createtorrent" - use program createtorrent (see http://www.createtorrent.com)
// "mktorrent" - use program createtorrent (see http://mktorrent.sourceforge.net)
// "buildtorrent" - use program buildtorrent (see http://claudiusmaximus.goto10.org/cm/torrent.html)
$pathToCreatetorrent = &#39;/usr/local/bin/mktorrent&#39;; // Something like /bin/createtorrent, or /bin/transmissioncli. If empty, program will be founded in PATH.

?>


Permission

Code:
drwxrwxrwx 5 rtor rtor 4096 Mar 12 10:44 .
drwxrwxrwx 10 rtor rtor 4096 Mar 12 11:41 ..
drwxrwxrwx 6 rtor rtor 4096 Mar 12 10:44 .svn
-rwxrwxrwx 1 rtor rtor 4775 Mar 12 10:44 action.php
-rwxrwxrwx 1 rtor rtor 600 Mar 12 10:44 buildtorrent.sh
-rwxrwxrwx 1 rtor rtor 732 Mar 12 11:19 conf.php
-rwxrwxrwx 1 rtor rtor 2417 Mar 12 10:44 correct.php
-rwxrwxrwx 1 rtor rtor 1356 Mar 12 10:44 create.css
-rwxrwxrwx 1 rtor rtor 2656 Mar 12 10:44 createtorrent.php
-rwxrwxrwx 1 rtor rtor 600 Mar 12 10:44 createtorrent.sh
drwxrwxrwx 3 rtor rtor 4096 Mar 12 10:44 images
-rwxrwxrwx 1 rtor rtor 8711 Mar 12 10:44 init.js
-rwxrwxrwx 1 rtor rtor 472 Mar 12 10:44 init.php
-rwxrwxrwx 1 rtor rtor 400 Mar 12 10:44 inner.sh
-rwxrwxrwx 1 rtor rtor 57 Mar 12 10:44 konqueror.css
drwxrwxrwx 3 rtor rtor 4096 Mar 12 10:44 lang
-rwxrwxrwx 1 rtor rtor 599 Mar 12 10:44 mktorrent.sh
-rwxrwxrwx 1 rtor rtor 111 Mar 12 10:44 plugin.info
-rwxrwxrwx 1 rtor rtor 610 Mar 12 10:44 transmissioncli.sh
 

dsouvik215

Member
May 25, 2018
896
0
16
Can you understand english?
See this:
$useExternal = true; // Valid choices:
// false - use internal realization (may be too slow for large files)
// "transmissioncli" - use program transmissioncli (see http://www.transmissionbt.com/)
// "createtorrent" - use program createtorrent (see http://www.createtorrent.com)
// "mktorrent" - use program createtorrent (see http://mktorrent.sourceforge.net)
// "buildtorrent" - use program buildtorrent (see http://claudiusmaximus.goto10.org/cm/torrent.html)
$pathToCreatetorrent = &#39;/usr/local/bin/mktorrent&#39;; // Something like /bin/createtorrent, or /bin/transmissioncli. If empty, program will be founded in PATH.
Where you see the value 'true' in the list of valid choices for $useExternal?
 

somus1735

Member
May 25, 2018
833
0
16
Thanks for helping .

Another problem

Try to correct torrent file...
Done.

Notice: Undefined index: name in /srv/www/lighttpd/rutorrent/plugins/create/correct.php on line 68

Warning: file_put_contents(): The 2nd parameter should be either a string or an array in /srv/www/lighttpd/rutorrent/php/Torrent.php on line 363
 

das329717

Member
May 25, 2018
928
0
16
Hello Novik65

after recompile mktorrent

i get this one any idea how i can fix this?

Warning: file_put_contents(): The 2nd parameter should be either a string or an array in /srv/www/lighttpd/rutorrent/php/Torrent.php on line 363
 

dsouvik215

Member
May 25, 2018
896
0
16
make sure to compile mktorrent with multi thread support too
HowTo:
on x86
Code:
make USE_PTHREADS=1 USE_OPENSSL=1 USE_LONG_OPTIONS=1 USE_LARGE_FILES=1 NO_HASH_CHECK=1
on x64
Code:
make USE_PTHREADS=1 USE_OPENSSL=1 USE_LONG_OPTIONS=1 NO_HASH_CHECK=1