create plugin & mktorrent issues

shwetha17

Member
May 24, 2018
785
0
16
Hi

I've got rtorrent + rutorrent webui up and running on my Ubuntu server. Seeding & leeching are all OK but I'm getting all sorts of problems when creating torrents no matter using the built-in create plugin or mktorrent...

issue 1 - default create plugin
After choosing a source directory it will manage to create a .torrent file and I can download the file to my home PC. But after add to torrent to server the torrent size would appear to be roughly 10 times smaller (8gb become 800mb) and the torrent status would be downloading instead of checking. I've tried with other files but still same issue with the created torrent....


issue 2 - mktorrent
So after having the issue I gave mktorrent a shot and the process I install is:
Code: [Select]
wget http://downloads.sourceforge.net/mktorrent/mktorrent-1.0.tar.gz
tar -xvzf mktorrent-1.0.tar.gz
rm *.tar.gz
cd mktorrent-1.0
make
sudo make install
cd /var/www
cd rutorrent/plugins
cd create
nano conf.php
edited:
$ useExternal = 'mktorrent';
$ pathToCreateTorrent = 'usr/local/bin/mktorrent';whenever I tried to create a torrent I get this error - Error stat'ing '.torrent': Value too large for defined data type. I tried with other files and set the piece size to 4mb or 8mb but every attempt is giving me the same error.... And with the error coming very quickly after create attempt, it feels as if mktorrent is not even attempting to create the torrent??

Any help with the above issues is very appreciated notworthy.gif
Thanks in advance
 

das329717

Member
May 25, 2018
928
0
16
thank you very much for the help guys notworthy.gif
have managed to solve the issue by removing mktorrent and recompile as advised


for the benefit of other ppl that might have the same problem/want to use mktorrent to create torrent:
Code:
wget http://downloads.sourceforge.net/mktorrent/mktorrent-1.0.tar.gz
tar -xvzf mktorrent-1.0.tar.gz
rm *.tar.gz
cd mktorrent-1.0
make USE_OPENSSL=1 USE_LONG_OPTIONS=1 USE_LARGE_FILES=1
sudo make install
cd /var/www
cd rutorrent/plugins
cd create
nano conf.php
at the resulting text editor, u will need to find the lines below:
$useExternal = false;
pathToCreatetorrent = ''​
and edit it to become:
$useExternal = 'mktorrent';
$pathToCreatetorrent = '/usr/local/bin/mktorrent';​
then everything should be up and running