mpetazzoni / ttorrent

BitTorrent Java library with tracker and download client
http://mpetazzoni.github.com/ttorrent/
Apache License 2.0
1.38k stars 502 forks source link

File not downloading #156

Closed ckganesan closed 8 years ago

ckganesan commented 8 years ago

Please help me to solve my issue.

My Server log:

2015-11-26 11:29:03,862 [main ] INFO : Loading torrent from test.torrent 2015-11-26 11:29:04,275 [main ] INFO : Single-file torrent information: 2015-11-26 11:29:04,276 [main ] INFO : Torrent name: waves_computer_106106049_mod03lec23_videoclips_computer106106049mod03lec23-001600-001705.mp4 2015-11-26 11:29:04,276 [main ] INFO : Announced at: 2015-11-26 11:29:04,277 [main ] INFO : 1. http://10.0.0.20:81/announce 2015-11-26 11:29:04,281 [main ] INFO : Pieces......: 35 piece(s) (262144 byte(s)/piece) 2015-11-26 11:29:04,289 [main ] INFO : Total size..: 9,002,637 byte(s) 2015-11-26 11:29:04,290 [main ] INFO : Registered new torrent for 'waves_computer_106106049_mod03lec23_videoclips_computer106106049mod03lec23-001600-001705.mp4' with hash 0000FAE17AF5E9652A08F581C24F788C8389D945. 2015-11-26 11:29:04,291 [main ] INFO : Starting tracker with 1 announced torrents... ^C root@email:~/Desktop/ttorrent-master# ./bin/ttorrent-tracker -p 81 /classle-mp4/ 2015-11-26 11:29:15,617 [main ] INFO : Loading torrent from test.torrent 2015-11-26 11:29:15,865 [main ] INFO : Single-file torrent information: 2015-11-26 11:29:15,865 [main ] INFO : Torrent name: waves_computer_106106049_mod03lec23_videoclips_computer106106049mod03lec23-001600-001705.mp4 2015-11-26 11:29:15,866 [main ] INFO : Announced at: 2015-11-26 11:29:15,867 [main ] INFO : 1. http://10.0.0.20:81/announce 2015-11-26 11:29:15,871 [main ] INFO : Pieces......: 35 piece(s) (262144 byte(s)/piece) 2015-11-26 11:29:15,879 [main ] INFO : Total size..: 9,002,637 byte(s) 2015-11-26 11:29:15,880 [main ] INFO : Registered new torrent for 'waves_computer_106106049_mod03lec23_videoclips_computer106106049mod03lec23-001600-001705.mp4' with hash 0000FAE17AF5E9652A08F581C24F788C8389D945. 2015-11-26 11:29:15,881 [main ] INFO : Starting tracker with 1 announced torrents... 2015-11-26 11:29:15,889 [peer-collector:81 ] INFO : Starting tracker peer collection for tracker at http://0.0.0.0:81/announce... 2015-11-26 11:29:15,889 [tracker:81 ] INFO : Starting BitTorrent tracker on http://0.0.0.0:81/announce... 2015-11-26 11:30:43,005 [Dispatcher-0 ] INFO : Peer peer://10.0.0.20:40/663730 started download of waves_computer_106106049_mod03lec23_videoclips_computer106106049mod03lec23-001600-001705.mp4. 2015-11-26 11:34:28,132 [Dispatcher-1 ] INFO : Peer peer://10.0.0.20:40/663730 started download of waves_computer_106106049_mod03lec23_videoclips_computer106106049mod03lec23-001600-001705.mp4. 2015-11-26 11:39:13,187 [Dispatcher-2 ] INFO : Peer peer://10.0.0.20:40/663730 started download of waves_computer_106106049_mod03lec23_videoclips_computer106106049mod03lec23-001600-001705.mp4. 2015-11-26 11:44:13,244 [Dispatcher-3 ] INFO : Peer peer://10.0.0.20:40/663730 started download of waves_computer_106106049_mod03lec23_videoclips_computer106106049mod03lec23-001600-001705.mp4. 2015-11-26 11:49:13,385 [Dispatcher-4 ] INFO : Peer peer://10.0.0.20:40/663730 started download of waves_computer_106106049_mod03lec23_videoclips_computer106106049mod03lec23-001600-001705.mp4. 2015-11-26 11:54:13,445 [Dispatcher-5 ] INFO : Peer peer://10.0.0.20:40/663730 started download of waves_computer_106106049_mod03lec23_videoclips_computer106106049mod03lec23-001600-001705.mp4. 2015-11-26 11:59:26,505 [Dispatcher-6 ] INFO : Peer peer://127.0.0.1:49152/666230 started download of waves_computer_106106049_mod03lec23_videoclips_computer106106049mod03lec23-001600-001705.mp4.

my client log:

2015-11-26 11:59:25,217 [main ] INFO : Single-file torrent information: 2015-11-26 11:59:25,221 [main ] INFO : Torrent name: waves_computer_106106049_mod03lec23_videoclips_computer106106049mod03lec23-001600-001705.mp4 2015-11-26 11:59:25,221 [main ] INFO : Announced at: 2015-11-26 11:59:25,350 [main ] INFO : 1. http://10.0.0.20:81/announce 2015-11-26 11:59:25,357 [main ] INFO : Pieces......: 35 piece(s) (262144 byte(s)/piece) 2015-11-26 11:59:25,371 [main ] INFO : Total size..: 9,002,637 byte(s) 2015-11-26 11:59:25,379 [main ] DEBUG: Downloading new file to /tmp/waves_computer_106106049_mod03lec23_videoclips_computer106106049mod03lec23-001600-001705.mp4.part... 2015-11-26 11:59:25,418 [main ] INFO : Initialized byte storage file at /tmp/waves_computer_106106049_mod03lec23_videoclips_computer106106049mod03lec23-001600-001705.mp4.part (0+9002637 byte(s)). 2015-11-26 11:59:25,434 [main ] INFO : Initialized torrent byte storage on 1 file(s) (9002637 total byte(s)). 2015-11-26 11:59:25,547 [main ] INFO : Listening for incoming connections on email/127.0.0.1:49152. 2015-11-26 11:59:25,577 [main ] INFO : Initialized announce sub-system with 1 trackers on waves_computer_106106049_mod03lec23_videoclips_computer106106049mod03lec23-001600-001705.mp4. 2015-11-26 11:59:25,580 [main ] INFO : BitTorrent client [..666230] for waves_computer_106106049_mod03lec23_videoclips_computer106106049mod03lec23-001600-001705.mp4 started and listening at 127.0.0.1:49152... 2015-11-26 11:59:25,635 [bt-client(..666230) ] INFO : Analyzing local data for waves_computer_106106049_mod03lec23_videoclips_computer106106049mod03lec23-001600-001705.mp4 with 4 threads (35 pieces)... 2015-11-26 11:59:25,986 [bt-client(..666230) ] INFO : ... 10% complete 2015-11-26 11:59:26,024 [bt-client(..666230) ] INFO : ... 20% complete 2015-11-26 11:59:26,071 [bt-client(..666230) ] INFO : ... 30% complete 2015-11-26 11:59:26,142 [bt-client(..666230) ] INFO : ... 40% complete 2015-11-26 11:59:26,143 [bt-client(..666230) ] INFO : ... 50% complete 2015-11-26 11:59:26,169 [bt-client(..666230) ] INFO : ... 60% complete 2015-11-26 11:59:26,190 [bt-client(..666230) ] INFO : ... 70% complete 2015-11-26 11:59:26,223 [bt-client(..666230) ] INFO : ... 80% complete 2015-11-26 11:59:26,265 [bt-client(..666230) ] INFO : ... 90% complete 2015-11-26 11:59:26,311 [bt-client(..666230) ] DEBUG: waves_computer_106106049_mod03lec23_videoclips_computer106106049mod03lec23-001600-001705.mp4: we have 0/9002637 bytes (0.0%) [0/35 pieces]. 2015-11-26 11:59:26,315 [bt-announce(..666230) ] INFO : Starting announce loop... 2015-11-26 11:59:26,326 [bt-announce(..666230) ] INFO : Announcing STARTED to tracker with 0U/0D/9002637L bytes... 2015-11-26 11:59:26,338 [bt-client(..666230) ] INFO : SHARING 0/35 pieces (0.00%) [0/0] with 0/0 peers at 0.00/0.00 kB/s. 2015-11-26 11:59:26,546 [bt-announce(..666230) ] INFO : Setting announce interval to 10s per tracker request. 2015-11-26 11:59:29,343 [bt-client(..666230) ] INFO : SHARING 0/35 pieces (0.00%) [0/0] with 0/0 peers at 0.00/0.00 kB/s. 2015-11-26 11:59:32,347 [bt-client(..666230) ] INFO : SHARING 0/35 pieces (0.00%) [0/0] with 0/0 peers at 0.00/0.00 kB/s. 2015-11-26 11:59:35,353 [bt-client(..666230) ] INFO : SHARING 0/35 pieces (0.00%) [0/0] with 0/0 peers at 0.00/0.00 kB/s. 2015-11-26 11:59:36,549 [bt-announce(..666230) ] INFO : Announcing to tracker with 0U/0D/9002637L bytes... 2015-11-26 11:59:38,358 [bt-client(..666230) ] INFO : SHARING 0/35 pieces (0.00%) [0/0] with 0/0 peers at 0.00/0.00 kB/s. 2015-11-26 11:59:41,364 [bt-client(..666230) ] INFO : SHARING 0/35 pieces (0.00%) [0/0] with 0/0 peers at 0.00/0.00 kB/s. 2015-11-26 11:59:44,368 [bt-client(..666230) ] INFO : SHARING 0/35 pieces (0.00%) [0/0] with 0/0 peers at 0.00/0.00 kB/s. 2015-11-26 11:59:46,592 [bt-announce(..666230) ] INFO : Announcing to tracker with 0U/0D/9002637L bytes... 2015-11-26 11:59:47,371 [bt-client(..666230) ] INFO : SHARING 0/35 pieces (0.00%) [0/0] with 0/0 peers at 0.00/0.00 kB/s. 2015-11-26 11:59:50,375 [bt-client(..666230) ] INFO : SHARING 0/35 pieces (0.00%) [0/0] with 0/0 peers at 0.00/0.00 kB/s. 2015-11-26 11:59:53,379 [bt-client(..666230) ] INFO : SHARING 0/35 pieces (0.00%) [0/0] with 0/0 peers at 0.00/0.00 kB/s. 2015-11-26 11:59:56,383 [bt-client(..666230) ] INFO : SHARING 0/35 pieces (0.00%) [0/0] with 0/0 peers at 0.00/0.00 kB/s. 2015-11-26 11:59:56,634 [bt-announce(..666230) ] INFO : Announcing to tracker with 0U/0D/9002637L bytes... 2015-11-26 11:59:59,388 [bt-client(..666230) ] INFO : SHARING 0/35 pieces (0.00%) [0/0] with 0/0 peers at 0.00/0.00 kB/s. 2015-11-26 12:00:02,393 [bt-client(..666230) ] INFO : SHARING 0/35 pieces (0.00%) [0/0] with 0/0 peers at 0.00/0.00 kB/s. 2015-11-26 12:00:05,397 [bt-client(..666230) ] INFO : SHARING 0/35 pieces (0.00%) [0/0] with 0/0 peers at 0.00/0.00 kB/s. 2015-11-26 12:00:06,695 [bt-announce(..666230) ] INFO : Announcing to tracker with 0U/0D/9002637L bytes... 2015-11-26 12:00:08,401 [bt-client(..666230) ] INFO : SHARING 0/35 pieces (0.00%) [0/0] with 0/0 peers at 0.00/0.00 kB/s. 2015-11-26 12:00:11,404 [bt-client(..666230) ] INFO : SHARING 0/35 pieces (0.00%) [0/0] with 0/0 peers at 0.00/0.00 kB/s. 2015-11-26 12:00:14,410 [bt-client(..666230) ] INFO : SHARING 0/35 pieces (0.00%) [0/0] with 0/0 peers at 0.00/0.00 kB/s. 2015-11-26 12:00:16,730 [bt-announce(..666230) ] INFO : Announcing to tracker with 0U/0D/9002637L bytes... 2015-11-26 12:00:17,414 [bt-client(..666230) ] INFO : SHARING 0/35 pieces (0.00%) [0/0] with 0/0 peers at 0.00/0.00 kB/s. 2015-11-26 12:00:20,418 [bt-client(..666230) ] INFO : SHARING 0/35 pieces (0.00%) [0/0] with 0/0 peers at 0.00/0.00 kB/s. 2015-11-26 12:00:23,423 [bt-client(..666230) ] INFO : SHARING 0/35 pieces (0.00%) [0/0] with 0/0 peers at 0.00/0.00 kB/s. 2015-11-26 12:00:26,429 [bt-client(..666230) ] INFO : SHARING 0/35 pieces (0.00%) [0/0] with 0/0 peers at 0.00/0.00 kB/s. 2015-11-26 12:00:26,772 [bt-announce(..666230) ] INFO : Announcing to tracker with 0U/0D/9002637L bytes... 2015-11-26 12:00:29,432 [bt-client(..666230) ] INFO : SHARING 0/35 pieces (0.00%) [0/0] with 0/0 peers at 0.00/0.00 kB/s. 2015-11-26 12:00:32,435 [bt-client(..666230) ] INFO : SHARING 0/35 pieces (0.00%) [0/0] with 0/0 peers at 0.00/0.00 kB/s. 2015-11-26 12:00:35,439 [bt-client(..666230) ] INFO : SHARING 0/35 pieces (0.00%) [0/0] with 0/0 peers at 0.00/0.00 kB/s. 2015-11-26 12:00:36,820 [bt-announce(..666230) ] INFO : Announcing to tracker with 0U/0D/9002637L bytes... 2015-11-26 12:00:38,445 [bt-client(..666230) ] INFO : SHARING 0/35 pieces (0.00%) [0/0] with 0/0 peers at 0.00/0.00 kB/s. 2015-11-26 12:00:41,448 [bt-client(..666230) ] INFO : SHARING 0/35 pieces (0.00%) [0/0] with 0/0 peers at 0.00/0.00 kB/s. 2015-11-26 12:00:44,453 [bt-client(..666230) ] INFO : SHARING 0/35 pieces (0.00%) [0/0] with 0/0 peers at 0.00/0.00 kB/s. 2015-11-26 12:00:46,865 [bt-announce(..666230) ] INFO : Announcing to tracker with 0U/0D/9002637L bytes... 2015-11-26 12:00:47,458 [bt-client(..666230) ] INFO : SHARING 0/35 pieces (0.00%) [0/0] with 0/0 peers at 0.00/0.00 kB/s. 2015-11-26 12:00:50,462 [bt-client(..666230) ] INFO : SHARING 0/35 pieces (0.00%) [0/0] with 0/0 peers at 0.00/0.00 kB/s. 2015-11-26 12:00:53,466 [bt-client(..666230) ] INFO : SHARING 0/35 pieces (0.00%) [0/0] with 0/0 peers at 0.00/0.00 kB/s. 2015-11-26 12:00:56,469 [bt-client(..666230) ] INFO : SHARING 0/35 pieces (0.00%) [0/0] with 0/0 peers at 0.00/0.00 kB/s.

b3nj0 commented 8 years ago

Looks like you're missing a seed for your torrent. You could try modifying your server to share the file after announcing it.

ckganesan commented 8 years ago

Thanks for information. Please guide me how to do it.

mpetazzoni commented 8 years ago

The tracker doesn't seed the file, it only announces it. You need at least one client that seeds the file so another client can download it; that's the whole concept of the BitTorrent protocol.