magnet links for transmission-cli

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
erenthesun
Posts: 1
Joined: Fri Jul 06, 2012 1:02 pm

magnet links for transmission-cli

Post by erenthesun »

Hey guys!

Did you try using magnet links with transmission-cli, yet? For me it doesn't work.

On machine_1 I used transmission-gtk to create a .torrent of a test.txt file (no tracker, local_peer_discovery enabled). It gave me the magnet-link "magnet:?xt=urn:btih:0124eee7e17439d34c5bb52c868a7fc56f89add3&dn=test.txt".

On machine_2 I installed transmission-cli, changed it's settings at "/home/user/.config/transmissioncli/settings.json".

Code: Select all

"lpd-enabled": true,
Then I run

Code: Select all

transmissioncli "magnet:?xt=urn:btih:0124eee7e17439d34c5bb52c868a7fc56f89add3&dn=test.txt"
and this is the outcome:
Image

Code: Select all

Progress: 0.00%, dl from 1 of 1 peers (0 KiB/s), ul to 0 (0 KiB/s) [0.00]
[15:35:18.932] magnet status: checksum passed 0, metainfo parsed 0
The transmission-cli client appears in the peer-list of the -gtk client. But there is no data shared.

If I transfer the .torrent from machine_1 to machine_2 and run "transmissioncli test.txt.torrent" instead, everything works.

Does anyone know, why the magnet-link doesn't work?

Thx a lot for trying to help! :)
ceph
Posts: 7
Joined: Tue Nov 06, 2012 7:25 pm

Re: magnet links for transmission-cli

Post by ceph »

i confirm it, same happens to me.

EDIT:
looks like cli client never downloads metadata for some reason.
Image
incomplete line should be [download metadata], and progress is progress of metadata (yeah i modified cli client a little to display metadata download progress if its less than 1.0f)
ceph
Posts: 7
Joined: Tue Nov 06, 2012 7:25 pm

Re: magnet links for transmission-cli

Post by ceph »

bump :|

come on people, its not critical, but hell for someone who knows code base it probably is a quick fix. GUI version works just fine afterall.
ceph
Posts: 7
Joined: Tue Nov 06, 2012 7:25 pm

Re: magnet links for transmission-cli

Post by ceph »

but there is no info about peers on screenshot :O progress is progress of torrent ( metadata or download )
cfpp2p
Posts: 290
Joined: Sat Aug 08, 2009 3:14 pm

Re: magnet links for transmission-cli

Post by cfpp2p »

come on people, its not critical, but hell for someone who knows code base it probably is a quick fix.
It is working for me transmission-cli 2.73 (13608)

using the magnet link from ticket 5063 trac:
https://trac.transmissionbt.com/ticket/5063

# transmission-cli -g "/root/.config/transmission-cli" "magnet link from ticket 5063 trac"
transmission-cli 2.73 (13608)
[13:18:24.280] Found 2 blocklists in "/root/.config/transmission-cli/blocklists"
[13:18:24.277] Transmission 2.73 (13608) started
[13:18:24.320] Cache: Maximum cache size set to 4.00 MiB (256 blocks)
[13:18:24.321] RPC Server: Adding address to whitelist: *.*.*.*
[13:18:24.316] RPC Server: Serving RPC and Web requests on port 127.0.0.1:9091/transmission/
[13:18:24.326] RPC Server: Whitelist enabled
[13:18:24.327] RPC Server: Password required
[13:18:24.329] Bound socket 13 to port 51413 on 0.0.0.0
[13:18:24.331] Port Forwarding: Stopped
[13:18:24.336] UDP: Failed to set receive buffer: requested 4194304, got 131070
[13:18:24.337] UDP: Please add the line "net.core.rmem_max = 4194304" to /etc/sysctl.conf
[13:18:24.338] UDP: Failed to set send buffer: requested 1048576, got 131070
[13:18:24.339] UDP: Please add the line "net.core.wmem_max = 1048576" to /etc/sysctl.conf
[13:18:24.340] DHT: Initializing DHT
[13:18:24.336] DHT: Reusing old id
[13:18:24.338] DHT: DHT initialized
[13:18:24.345] LPD: Initialising Local Peer Discovery
[13:18:24.348] LPD: Local Peer Discovery initialised
[13:18:24.375] DHT: Bootstrapping from 58 IPv4 nodes
[13:18:24.377] Blocklist "blocklist-2.bin" contains 227150 entries
[13:18:24.378] Blocklist "blocklist.bin" contains 314895 entries
[13:18:24.385] Couldn't read "magnet link from ticket 5063 trac": File name too long
[13:18:24.388] Couldn't read "/root/.config/transmission-cli/resume/xxxxxx.15c80f07be8fd54c.resume": No such file or directory
[13:18:24.389] xxxxxx: Couldn't read "/root/.config/transmission-cli/resume/xxxxxx.15c80f07be8fd54c.resume"
[13:18:24.385] Saved "/root/.config/transmission-cli/torrents/xxxxxx.15c80f07be8fd54c.torrent"
[13:18:24.395] xxxxxx: Pausing
[13:18:24.399] Saved "/root/.config/transmission-cli/resume/xxxxxx.15c80f07be8fd54c.resume"
[13:18:25.009] xxxxxx: IPv4 DHT not ready (broken, 0 nodes)
[13:18:25.286] xxxxxx: Announcing to tracker
[13:18:25.290] xxxxxx: Announcing to tracker
[13:18:25.286] xxxxxx: Announcing to tracker
[13:18:25.288] xxxxxx: Announcing to tracker
[13:18:26.296] xxxxxx: Announcing to tracker
[13:18:26.298] xxxxxx: Announcing to tracker
[13:18:26.436] xxxxxx: Got 14 peers from tracker
[13:18:26.458] xxxxxx: Got 15 peers from tracker
Progress: 0.0%, dl from 0 of 0 peers (0 KiB/s), ul to 0 (0 KiB/s) [None]
[13:18:28.386] SO_SNDBUF size is 16384
[13:18:28.387] SO_RCVBUF size is 43689
[13:18:29.277] xxxxxx: LPD announce message away
Progress: 0.0%, dl from 4 of 4 peers (0 KiB/s), ul to 0 (0 KiB/s) [None]
[13:18:30.491] xxxxxx: Scrape successful. Rescraping in 1800 seconds.
[13:18:30.507] xxxxxx: Scrape successful. Rescraping in 1800 seconds.
Progress: 0.0%, dl from 5 of 5 peers (0 KiB/s), ul to 0 (0 KiB/s) [None]
[13:18:31.010] xxxxxx: IPv4 DHT not ready (broken, 5 nodes)
Progress: 0.0%, dl from 5 of 5 peers (0 KiB/s), ul to 0 (0 KiB/s) [None]
[13:18:36.358] Saved "/root/.config/transmission-cli/torrents/xxxxxx.15c80f07be8fd54c.torrent"
Progress: 0.0%, dl from 3 of 6 peers (0 KiB/s), ul to 0 (0 KiB/s) [None]
[13:18:37.011] xxxxxx: IPv4 DHT not ready (broken, 7 nodes)
Progress: 0.0%, dl from 4 of 6 peers (69 KiB/s), ul to 0 (0 KiB/s) [0.00]
[13:18:42.003] xxxxxx: Starting IPv4 DHT announce (poor, 16 nodes)
Progress: 0.0%, dl from 4 of 6 peers (69 KiB/s), ul to 0 (0 KiB/s) [0.00]
Progress: 0.0%, dl from 4 of 6 peers (71 KiB/s), ul to 0 (0 KiB/s) [0.00]
Progress: 0.1%, dl from 4 of 6 peers (66 KiB/s), ul to 0 (0 KiB/s) [0.00]
Progress: 0.2%, dl from 4 of 6 peers (68 KiB/s), ul to 0 (0 KiB/s) [0.00]
Progress: 0.2%, dl from 4 of 6 peers (66 KiB/s), ul to 0 (0 KiB/s) [0.00]
[13:19:04.763] xxxxxx: Pausing
[13:19:05.092] Saved "/root/.config/transmission-cli/resume/xxxxxx.15c80f07be8fd54c.resume"
[13:19:05.121] Saved "/root/.config/transmission-cli/settings.json"
Progress: 0.2%, dl from 4 of 6 peers (66 KiB/s), ul to 0 (0 KiB/s) [0.00]
try updating your build to more current version.
Last edited by cfpp2p on Fri Nov 16, 2012 4:41 pm, edited 2 times in total.
ceph
Posts: 7
Joined: Tue Nov 06, 2012 7:25 pm

Re: magnet links for transmission-cli

Post by ceph »

I get interesting output with your magnet link - progress that is supposed to be progress of metadata download is changing. Also my build is tiny bit older than yours - 2.73 (13592)
Ill test svn version see if it works

Code: Select all

Progress: 50.0%, dl from 2 of 2 peers (0 kB/s), ul to 0 (0 kB/s) [downloading m
Progress: 50.0%, dl from 2 of 2 peers (0 kB/s), ul to 0 (0 kB/s) [downloading m
Progress: 50.0%, dl from 2 of 2 peers (0 kB/s), ul to 0 (0 kB/s) [downloading m
Progress: 50.0%, dl from 2 of 2 peers (0 kB/s), ul to 0 (0 kB/s) [downloading m
Progress: 50.0%, dl from 2 of 2 peers (0 kB/s), ul to 0 (0 kB/s) [downloading m
Progress: 0.0%, dl from 2 of 2 peers (0 kB/s), ul to 0 (0 kB/s) [downloading me
Progress: 0.0%, dl from 2 of 2 peers (0 kB/s), ul to 0 (0 kB/s) [downloading me
Progress: 0.0%, dl from 2 of 2 peers (0 kB/s), ul to 0 (0 kB/s) [downloading me
Progress: 0.0%, dl from 2 of 2 peers (0 kB/s), ul to 0 (0 kB/s) [downloading me
Progress: 0.0%, dl from 2 of 2 peers (0 kB/s), ul to 0 (0 kB/s) [downloading me
Progress: 0.0%, dl from 2 of 2 peers (0 kB/s), ul to 0 (0 kB/s) [downloading me
Progress: 0.0%, dl from 2 of 2 peers (0 kB/s), ul to 0 (0 kB/s) [downloading me
Progress: 0.0%, dl from 2 of 2 peers (0 kB/s), ul to 0 (0 kB/s) [downloading me
Progress: 0.0%, dl from 2 of 2 peers (0 kB/s), ul to 0 (0 kB/s) [downloading me
Progress: 0.0%, dl from 2 of 2 peers (0 kB/s), ul to 0 (0 kB/s) [downloading me
Progress: 0.0%, dl from 2 of 2 peers (0 kB/s), ul to 0 (0 kB/s) [downloading me
Progress: 0.0%, dl from 2 of 2 peers (0 kB/s), ul to 0 (0 kB/s) [downloading me
Progress: 50.0%, dl from 2 of 2 peers (0 kB/s), ul to 0 (0 kB/s) [downloading m
Progress: 50.0%, dl from 2 of 2 peers (0 kB/s), ul to 0 (0 kB/s) [downloading m
Progress: 50.0%, dl from 2 of 2 peers (0 kB/s), ul to 0 (0 kB/s) [downloading m
Progress: 50.0%, dl from 2 of 2 peers (0 kB/s), ul to 0 (0 kB/s) [downloading m
Progress: 50.0%, dl from 2 of 2 peers (0 kB/s), ul to 0 (0 kB/s) [downloading m
Progress: 50.0%, dl from 2 of 2 peers (0 kB/s), ul to 0 (0 kB/s) [downloading m
Progress: 50.0%, dl from 2 of 2 peers (0 kB/s), ul to 0 (0 kB/s) [downloading m
Progress: 0.0%, dl from 2 of 2 peers (0 kB/s), ul to 0 (0 kB/s) [downloading me
Progress: 0.0%, dl from 2 of 2 peers (0 kB/s), ul to 0 (0 kB/s) [downloading me
cfpp2p
Posts: 290
Joined: Sat Aug 08, 2009 3:14 pm

Re: magnet links for transmission-cli

Post by cfpp2p »

my above post uses(used) the magnet link from ticket 5063 trac:
https://trac.transmissionbt.com/ticket/5063
Post Reply