OpenWrt Forum Archive

Topic: Ctorrent and Kamikaze 7.06 Errors

The content of this topic has been archived on 1 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi!

I have Asus WL-500G Deluxe Kamikaze 7.06 (before I used RC5 with ctorrent succefully).

I experienced troubles with ctorrent version dnh3 shipped in packages with 7.06: http://downloads.openwrt.org/kamikaze/7 … mipsel.ipk

It logs in console:
Input error: Inappropriate ioctl for device
Input error: Resource temporarily unavailable
....
MANY times. It seems to me that it does that when tries to open socket.

So I found that newer version of ctorrent  available - dnh3.1, and noticed that it comes compiled in snapshots.

http://downloads.openwrt.org/snapshots/ … mipsel.ipk

And it works succefully.

(Last edited by dmbutko on 9 Jul 2007, 09:01)

Problem with ctorrent 3.1 and Kami 7.07: can`t connect to tracker.
NAT configured for port 20003 forwarding to 10.0.3.184.

--------------------------------------------------------------------------
root@OpenWrt:/mnt/usbdrive/torrent# ctorrent -i 10.0.3.184  -p 20003 -C 4 -v 1.torrent
META INFO
Announce: http://xxxxxxxxxxxxxx/announce.php?passkey=xxxxxxxxxxxxxxxxxxx
Created On: Sat Sep 29 14:22:59 2007
Piece length: 65536
FILES INFO
<1> xxxxxxxxxxxxxxxxx [21606400]
Total: 20 MB
946721100 DL need: 64K  UL need: 0K  Cache: 80K  Used: 0K
Listening on 10.0.3.184:20003
Press 'h' or '?' for help (display/control client options).
Checking completed.
FILES INFO
<1> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx [21606400] 0/330 (0%)
Total: 20 MB
- 0/0/1 [0/330/0] 0MB,0MB | 0,0K/s | 0,0K E:0,0 Connecting
946721100 Cache: 0K/4M  Hits: 0  Miss: 0  0%  Pre: 0/0
946721100 Connected to tracker
\ 0/1/1 [0/330/0] 0MB,0MB | 0,0K/s | 0,0K E:0,0 Connected
946721101 Cache: 0K/4M  Hits: 0  Miss: 0  0%  Pre: 0/0
946721101 close: bad handshake
946721101 0x478258 closed
warn, tracker reponse invalid. No html header found.
| 0/0/1 [0/330/0] 0MB,0MB | 0,0K/s | 0,0K E:0,0
--------------------------------------------------------------------------

(Last edited by ansov on 29 Sep 2007, 22:59)

Please, help to solve this problem.
If I need recompile ctorrent or use some patch - please give detailed info and, if possible, instructions.

New detail: this is problem with PASSKEY, torrent without passkey processed ok:
root@OpenWrt:/mnt/usbdrive/torrent# ctorrent -v -p 20003 -i 10.0.3.184 -C 2 2.torrent
META INFO
Announce: http://torrent.linux.duke.edu:6969/announce
Created On: Tue May 29 18:01:19 2007
Piece length: 262144
FILES INFO
Directory: Fedora-7-x86_64
<1>  F-7-x86_64-DVD.iso [3447975936]
<2>  F-7-x86_64-rescuecd.iso [102604800]
<3>  SHA1SUM [363]
Total: 3386 MB
946759713 DL need: 256K  UL need: 0K  Cache: 272K  Used: 0K
warn, couldn't bind on specified port 20003:  Address already in use
Listening on 10.0.3.184:20002
Press 'h' or '?' for help (display/control client options).
- 0/0/1 [1/13545/1] 0MB,0MB | 0,0K/s | 0,0K E:0,0 Connecting
946759714 Cache: 0K/2M  Hits: 0  Miss: 0  0%  Pre: 0/0
946759714 Connected to tracker
\ 0/0/1 [5/13545/5] 0MB,0MB | 0,0K/s | 0,0K E:0,0 Connected
946759715 Cache: 0K/2M  Hits: 0  Miss: 0  0%  Pre: 0/0
946759715 new peers=100; next check in 1800 sec
946759715 Connecting to 59.95.37.119:17627 (peer 0x4884a0)
...

(Last edited by ansov on 30 Sep 2007, 12:49)

Is more new files?

0. ?????????
1. general packages set    - 02-08-07
2. snapshot ?                   - 14-07-07
3. packages for Kami 706  - 05-06-07

PS. ctorrent 3.2 released      23-07-07 ( http://www.rahul.net/dholmes/ctorrent/ )

And in subversion (/packages/net/ctorrent/Makefile) ctorrent is already updated. You just have to check it out and build it by yourself if you can't wait.

And yes. 3.1 is a bit unstable and segfaulted for some people.

forum2006 wrote:

...You just have to check it out and build it by yourself if you can't wait...

Ok. I have not experience in cross compilation. I can wait some time (week or month).
OR if you can give instruction (or link to good How-To) how I can cross compile Ctorrent for WL-500gP

Kamikaze 7.09 has CTorrent 3.2 in it's package repository:

root@OpenWrt:~# ipkg list ctorrent
ctorrent - dnh3.2-1 - CTorrent is a BitTorrent client written in the C programming language,
Done.
root@OpenWrt:~#
forum2006 wrote:

Kamikaze 7.09 has CTorrent 3.2 in it's package repository...

Thanks a lot!

Now ctorrent starts Ok, but with cache=1M is unstable, when seeding. I read info about normal stability with big swap partition (I have no swap, use dtach for manage multiple instances of ctorrent). How I can increase stability of ctorrent???

The discussion might have continued from here.