Create a torrent file with transmissioncli

Discussion of Transmission that doesn't fit in the other categories
Post Reply
Balbuzard
Posts: 5
Joined: Mon Apr 06, 2009 6:21 am

Create a torrent file with transmissioncli

Post by Balbuzard »

Hi!
I am quite a new there,
I just want to know how to create a .torrent file from any files in the System with transmissioncli.
I can only use the shell (No graphic-interface)
I have ever tried:

Code: Select all

transmissioncli -n myFile justATry.torrent
as explained in this site, and there is no error displayed on the shell, just this line

Code: Select all

Transmission 1.34 (6778) - http://www.transmissionbt.com/
, but no .torrent file were created!!
Thank you very much for your help!
Balbuzard
Posts: 5
Joined: Mon Apr 06, 2009 6:21 am

Re: Create a torrent file with transmissioncli

Post by Balbuzard »

Hi,
well my issue does not interest a lot of people, I guess,
Is there any way to create a .torrent file from the file I have just downloaded with the Linux-shell? (I am currently working on Debian Lenny)
On Ubuntu, where Transmission is ever installed, it works perfectly but only through the graphic interface and I have no X-server on my Debian. (It is for a demonstration of P2P algorithms).
Can I create .torrent file from any file by the shell-way, or do I to find another bitTorrent Client?
Thanks a lot for your answers and for you help!
And don't hesitate to ask me any question if I am not perfectly clear.
JimBrowski
Posts: 5
Joined: Wed Aug 05, 2009 12:31 pm

Re: Create a torrent file with transmissioncli

Post by JimBrowski »

well my issue does not interest a lot of people, I guess,
There are people with interest! See
http://forum.transmissionbt.com/viewtop ... f=2&t=8019
But nobody seems to have a solution.

In the release note for version 1.73 you can read:
CLI * Some torrent files created with transmission-cli were invalid
I would be happy if transmissioncli (there is no transmission-cli) would create at least invalid torrents ...
Balbuzard
Posts: 5
Joined: Mon Apr 06, 2009 6:21 am

Re: Create a torrent file with transmissioncli

Post by Balbuzard »

the command is

Code: Select all

transmissioncli -n sourceFile -a http://YourTracker/ -r sourceFile.torrent
;-)
JimBrowski
Posts: 5
Joined: Wed Aug 05, 2009 12:31 pm

Re: Create a torrent file with transmissioncli

Post by JimBrowski »

Balbuzard wrote:the command is

Code: Select all

transmissioncli -n sourceFile -a http://YourTracker/ -r sourceFile.torrent
;-)
Thanks for your reply, but this does not work (at least for me).

If I use your command line, I get the same result that is mentioned here.
My output looks like this:

Code: Select all

Transmission 1.72 (8702) - http://www.transmissionbt.com/
[12:18:29.712] RPC Server: Adding address to whitelist: 127.0.0.1
[12:18:29.749] RPC Server: Serving RPC and Web requests on port 9091
[12:18:29.772] RPC Server: Whitelist enabled
[12:18:29.784] Transmission 1.72 (8702) started
[12:18:30.399] %s succeeded (%d): initnatpmp succeeded (0)
[12:18:30.401] %s succeeded (%d): sendpublicaddressrequest succeeded (2)
[12:18:32.453] Found Internet Gateway Device "%s": Found Internet Gateway Device "http://192.168.20.1:49000/upnp/control/WANIPConn1"
[12:18:32.464] Local Address is "%s": Local Address is "192.168.20.110"
[12:18:32.476] : Port forwarding through "http://192.168.20.1:49000/upnp/control/WANIPConn1", service "urn:schemas-upnp-org:service:WANIPConnection:1".  (local address: 192.168.20.110:65535)
[12:18:32.477] Starting: Starting
[12:18:38.258] Starting: Starting
And then ... nothing. This seems to start the transmission-daemon(?!), because I get access to the webUI. But no torrent gets created. Weird. :?
Balbuzard
Posts: 5
Joined: Mon Apr 06, 2009 6:21 am

Re: Create a torrent file with transmissioncli

Post by Balbuzard »

The syntax I gave you is completely correct, I have been using transmissioncli for some months and have created my own torrent files with it.
So I guess the problem may come from the tracker you use;
I have tried building a private tracker (rivettracker, free and open-source), the address had to be specified like this: http://your_ip_address/rivettracker/announce.php. Are you sure your address is correct? Which is sometimes not quite easy to check.
Which tracker are you using? This is the only parameter you may have with mistakes.

Looking closer to your output, I can read the line: found Internet gateway device.
For me, the creation of the torrent file should be possible even if there is no Internet connection, but maybe transmission tries to draw this connection to check your tracker. Try to do it in local, with your private tracker (there are a lot available on the Internet, rivettracker is easy if you know how to start up and stop apache). If the problem does not occur anymore, it could mean that because you are in a private network, the tracker cannot answer your request (you are trying to join it to port 80 and then, it tries to join you at another port, which is not possible without port forwarding, to be set on your gateway).

Good luck with that! (it has taken a long time for me to set it up, and I was lucky having the rights on my all network) and sorry for my bad English.
JimBrowski
Posts: 5
Joined: Wed Aug 05, 2009 12:31 pm

Re: Create a torrent file with transmissioncli

Post by JimBrowski »

Sorry sorry sorry ... You were completely right!

I started this command:

Code: Select all

transmissioncli -n UBUNTU.ISO -a http://www.mytracker.xy -w /shares/internal/torrents/ ubuntu.torrent
Transmission came up with the same output I posted above.

Than I went to lunch ...
... and as I came back, the job has finished, and the torrent has been created!

I just have been to impatient before and didn't let the job finish. DOH!

Sorry for all the fuss, and
Hail to the developer ;-)
faryus
Posts: 3
Joined: Thu Jan 12, 2012 5:59 pm

Re: Create a torrent file with transmissioncli

Post by faryus »

I am having a similar problem.

I'm trying to create a torrent from a folder and no torrent file is generated. I've tried multiple ways and nothing works. The command I used last was

Code: Select all

$ transmissioncli -n folder.name.here -a udp://tracker.example.com:80 /home/faryus/Public
I get the following output

Code: Select all

Transmission 2.03 (11030) - http://www.transmissionbt.com/
[21:02:19.462] Transmission 2.03 (11030) started
[21:02:19.481] RPC Server: Adding address to whitelist: 127.0.0.1
[21:02:19.482] DHT: Generating new id
creating torrent "/home/faryus/Public"
[21:02:19.793] Port Forwarding (NAT-PMP): initnatpmp succeeded (0)
[21:02:19.793] Port Forwarding (NAT-PMP): sendpublicaddressrequest succeeded (2)
And nothing happens. I get my prompt back, and no file gets generated. No progress is being shown either.

What am I doing wrong?

//edit

I did a

Code: Select all

ps aux | grep transmissioncli
to see if it's still running and... nothing.
faryus
Posts: 3
Joined: Thu Jan 12, 2012 5:59 pm

Re: Create a torrent file with transmissioncli

Post by faryus »

Sorry, I was using a torrent name, I just didn't paste it properly above.

And with -w I get this

Code: Select all

$ transmissioncli -n Dakar.2012.Stage09.Highlights.Eurosport.x264.English-asd.mp4 -a udp://tracker.example.com:80 -w /home/faryus/Public/test.torrent

Transmission 2.03 (11030) - http://www.transmissionbt.com/
No torrent specified!
faryus
Posts: 3
Joined: Thu Jan 12, 2012 5:59 pm

Re: Create a torrent file with transmissioncli

Post by faryus »

//edit

got some help on the IRC. read below:

Code: Select all

[23:22] <@jordan> faryus: that was moved to transmission-create
[23:22] <@jordan> so use transmission-create from the command line now
[23:22] <Lacrocivious> faryus: transmissioncli is deprecated and only remains because of some embedded device lockins. Use transmission-daemon and transmission-create/transmission-edit/transmission-show cli utils instead
jambuttons
Posts: 3
Joined: Thu Oct 14, 2010 4:07 pm

Re: Create a torrent file with transmissioncli

Post by jambuttons »

I had some frustration trying to create a torrent for magnet distribution, and get it seamlessly integrated into the other torrents.

Eventually, I found the following fudge:

0) Put your files in your main torrent output directory.
1) Create the torrent file:
--> transmission-create NEWTORRENT -t udp://tracker.example.com:80

This creates the .torrent in the same directory you are in.

2) Download it to a PC
3) Upload it back into the Transmission web interface.

From that point, Transmission will start to download the torrent, and find it already has it, and start verifying the data for real, and create a proper torrent file with hash in the name, in /var/lib/transmission/torrents
Post Reply