Page 2 of 5 FirstFirst 1234 ... LastLast
Results 16 to 30 of 65

Thread: CTorrent Control Server (SCTCS)

  1. For all the people still in doubt, the problem was fixed and everything works like a charm now.

  2. #17

    Plain Fantastic

    Seaky, I must say... this is fantastic work. Your Torrent Client makes everything else around look like dog shit.

    Thanks so much for this. It is so easy to use and the best part... it actually works and it's still BETA. Can't wait for v1.0.

    Since this is still a work in progress i'd like to add somethings to the wishlist

    1) Some sort of Flash or Java Applet that continuously updates the onscreen stats (Download Speed, Percentage etc)
    2) This is just me shooting off since i'm from a networking background with no coding knowledge but it would be great to see DHT support in the future

    Other than that... it's perfect.

    Thanks again. Really appreciate what you have done.

  3. #18

    Question SCTCS not working - missing IPTABLES entries???

    Hi,

    I have WL-500gx with Oleg's firmware. I have currently enabled only stupid-ftp(built-in daemon), dropbear(SSH), and OpenVPN server.

    Recently I've found nice topic related to ability to use torrent client with WEB interface on router. It's SCTCS from SEAKY's web site.

    I followed the step-by-step documentation from his site, but I was not able to make it works. I am able to access SCTCS web interf. on port TCP:8080(busybox_httpd is shown in 'ps -e').

    When I upload new torrent through web interf. it doesn't start downloading. I've obtained this output:

    ***********************************
    Segmentation fault File:
    Uploaded sucessfully SCTCS_ERROR: Unable to start torrent
    Unable to start. Please check logs
    ***********************************

    In attachement is a log file.

    I was wondering that in step-by-step instructions is not section regarding to IPTABLES settings(I suppose that it is needed to add some rules). Also, I don't know what port is used in default for incoming connections(6881 like in BtTorrent???). There is not ability to set it in "/opt/etc/sctcs.conf" file.

    Please help me someone, who have allready made it work.

    THX

    P.S.: Sorry for my poooor english .
    Attached Files Attached Files

  4. #19
    Join Date
    Mar 2007
    Location
    Budapest / Hungary
    Posts
    79
    Hi!

    Sorry my english. I think your hdd mount to /tmp/harddisk and the sctcs working with mount to /opt. (Your log 3rd line: "error, open /opt/var/sctcs.db failed. No such file or directory" and 25th line: "/tmp/harddisk/ftp_pvt/lce/TorrentTemp" etc.
    Check this on telnet or ssh console: mount

    Mount your hdd to /opt (on /usr/local/sbin/post-boot script)
    Check /opt/var dir, if not have, create it (mkdir -p /opt/var).
    The /opt/var/sctcs.db file created and managed by sctcs service. If you erase this file, you remove all torrent defs from sctcs (before delete you stop sctcs service, delete file and start sctcs service)
    Modify yout sctcs.conf file some line (store downloaded file and torrent defs dir (/tmp/harddisk/.. to /opt/...))
    My sctcs.conf:
    ...
    SCTCS_DOWNLOAD=/opt/etc/samba/Share/torrent/download/
    SCTCS_TORRENTS=/opt/etc/samba/Share/torrent/torrents/
    ...

    Don't forget '/' char end of line.

    Download sctcs manual from http://sctcs.seaky.hu/download/click.php?id=2
    And read seaky's forum:
    http://sctcs.seaky.hu/forum/

    Used ports:
    sctcs service using port: 8080 (or other) to communicate between you and your sctcs service on internet (wan) and LAN (manage sctcs), if you control this only lan, not set iptables.

    enhanced-ctorrent service: all loaded torrent file use 1 tcp port: (control by sctcs service when create e-ct service for all torrent file)
    1st 2697
    2nd 2698
    3rd 2699 and etc. if you not open this ports in post-firewall, you not download/upload files (blocked e-ct communication by your firewall).

    My /usr/local/sbin/post-firewall file:

    ....
    iptables -A INPUT -i $1 -p tcp --dport 2697:2706 -j ACCEPT
    iptables -A INPUT -j DROP
    ....

    I open 10 tcp port to enhanced-ctorrent (2697...2706). if I upload 11th torrent defs to sctcs, the 11th e-ct service not communicate with other BT clients (2707 port not open in my firewall).
    All e-ctorrent service required 3-25MB memory on router. Don'f forget a swap (partition or swapfile (like windows ), min 128MB. Check on console: free

    George

  5. #20

    Post More specific

    Thank you very much for port numbers. I will add it to IPTABLES


    I tested to type command for enhanced-ctorrent directly, and it has worked. It seems that there is not problem with IPTABLES rules now.

    I typed this and all files have been downloaded:
    enhanced-ctorrent -s /tmp/harddisk/ftp_pvt/lce/TorrentDown/ -U 32 -C 4 -p 6881 /tmp/harddisk/ftp_pvt/lce/TorrentTemp/nve3.torrent

    If I try to upload(and start)torrent file throught SCTCS web if. I still obtain following messages.

    Log file of SCTCS says "Error opening /opt/var/sctcs.db".
    I have /opt/var created with permitions 775. But still this message --->

    ***********************************
    Segmentation fault File:
    Uploaded sucessfully SCTCS_ERROR: Unable to start torrent
    Unable to start. Please check logs
    ***********************************

    Log is same.



    And YES I have mounted /tmp/harddisk through /usr/local/sbin/post-boot script. Folder where I want torrent to download "/tmp/harddisk/ftp_pvt/lce/TorrentDown/" is subfolder of "/tmp/harddisk/".(that is mounted USBstick and of course root of FTP server). I want to download torrent to that location and after that download downloaded data using FTP client(later maybe using SAMBA ) to PC(through LAN).

    I have two USB sticks. This one is only for testing of SCTCS and has small capacity. I have 3 partitions.

    1st - FAT32 (FTP root and place for torrent downloads) -->/tmp/harddisk (400MB)
    2nd - EXT3 --> opt/ (64MB)
    3rd - swap (27MB) - I know this should be larger

    Here is post-boot:

    ************************************************
    #!/bin/sh

    #starting SSH dropbear daemon
    dropbear

    #adding definitions of host(s) to DNS records
    echo "172.20.0.40 p4.xxxxxx.sk p4" >> /etc/hosts

    #creating command aliases
    alias l='ls -al'
    alias lm='ls -al | more'

    #mounting /opt
    mount /dev/discs/disc0/part2 /opt

    #Activate swap(3rd partition on USB_FLASHDISK)
    swapon /dev/discs/disc0/part3

    #Run all active services - active means starts with S
    #/opt/etc/init.d/rc.unslug

    #Run OpenVPN server
    START_openvpn

    #Run SCTCS
    /opt/etc/init.d/S90sctcs start
    ************************************************** *****


    Output of 'ps -e'
    **************************************************
    PID Uid VmSize Stat Command
    1 wl500adm 672 S /sbin/init
    2 wl500adm SW [keventd]
    3 wl500adm RWN [ksoftirqd_CPU0]
    4 wl500adm SW [kswapd]
    5 wl500adm SW [bdflush]
    6 wl500adm SW [kupdated]
    7 wl500adm SW [mtdblockd]
    63 wl500adm 376 S httpd vlan1
    64 wl500adm 524 S nas /tmp/nas.lan.conf /tmp/nas.lan.pid lan
    68 wl500adm 384 S syslogd -m 0 -O /tmp/syslog.log -S -l 7
    69 wl500adm 340 S klogd
    71 nobody 496 S dnsmasq
    72 wl500adm SW [khubd]
    84 wl500adm SW [usb-storage-0]
    85 wl500adm SW [scsi_eh_0]
    99 wl500adm 684 S pppd file /tmp/ppp/options.wan0
    101 wl500adm 480 S watchdog
    103 wl500adm 340 S ntp
    115 wl500adm 436 S dropbear
    130 wl500adm SW [kjournald]
    151 nobody 1904 S /opt/sbin/openvpn --daemon --cd /opt/etc/openvpn/LCEHOME_profile --config LCEHOME_server.ovpn
    162 wl500adm 392 S /usr/sbin/busybox_httpd -c /opt/etc/sctcs_httpd.conf -p 8080 -h /opt/share/www
    163 wl500adm 336 S /opt/bin/sctcsd 1980 1
    169 wl500adm 388 S stupid-ftpd
    185 wl500adm 744 R dropbear
    186 wl500adm 552 S -sh
    191 wl500adm 388 R ps -e
    ************************************************** ******


    SCTCS.CONF file:

    ***********************************************
    #!/bin/sh
    SCTCS_HOST=localhost
    SCTCS_PORT=1980
    SCTCS_DOWNLOAD=/tmp/harddisk/ftp_pvt/lce/TorrentDown/
    SCTCS_TORRENTS=/tmp/harddisk/ftp_pvt/lce/TorrentTemp/
    SCTCS_HTTP_PORT=8080
    SCTCS_HTTP_USER=
    SCTCS_HTTP_PASSWORD=
    ************************************************

    Filesystem and memory
    ***********************************************
    [wl500admin@ASUSRT etc]$ df -k
    Filesystem 1k-blocks Used Available Use% Mounted on
    /dev/root 3008 3008 0 100% /
    /dev/discs/disc0/part2 63869 24843 35728 41% /opt
    /dev/discs/disc0/part1 409344 44 409300 0% /tmp/harddisk
    [wl500admin@ASUSRT etc]$ free
    total used free shared buffers
    Mem: 30140 16504 13636 0 2576
    Swap: 26280 0 26280
    Total: 56420 16504 39916
    ***********************************************

    thx anyway...

  6. #21

    Upload limit

    I set upload limit to 10K, restart daemon and see 10960K.
    On what it could depend?

  7. #22
    Join Date
    Mar 2007
    Location
    Budapest / Hungary
    Posts
    79
    Hi!

    I think you running sctcs service 2x (from rc.unslung and running from post-boot).
    Remove 2nd running commands:

    "#Run SCTCS
    /opt/etc/init.d/S90sctcs start"

    from post-boot and save flashfs (
    flashfs save
    flashfs commit
    flashfs enable

    ) and reboot router.

    Bye, George

  8. #23
    Join Date
    Mar 2007
    Location
    Budapest / Hungary
    Posts
    79
    Hi!

    /opt/var/sctcs.db file not create from package. Create file by sctcs service:

    Login to sctcs web manager: http://<your_router_ip>:8080

    If sctcs service not running, don't response busibox_httpd service this html links (http://<your_router_ip>:8080) :-)

    Click Options -> Check Use bitfield file -> Click Set

    (and sctcs service create sctcs.db file....)

    Or

    Click Manage -> Browse .torrent file for download... -> Click start download

    (and sctcs service create sctcs.db file....)

    After restart (service or router) /opt/var/sctcs.log not include "...open /opt/var/sctcs.db failed.." line.

    Bye, George

  9. #24

    Maybe bug???

    thx, but nothing helped...

    BTW, only one instance of busybox_httpd is running on my ASUS. As you can see, I have commented out line which handles starting of "rc.unslung"(from unknown reason "rc.unslung" doesn't start SXX scripts in /opt/etc/init.d/ - maybe script error )

    I am able to access SCTCS web interf. on "http://X.X.X.X:8080".

    I've tried to check "use bitfield file" checkbox, but it haven't helped much
    When I clicked "Set" button, I've received this error message:

    ********************************************
    Error: SCTCS_ERROR: No Response
    ********************************************

    Here is part of log file when it occurs:
    **********************************************
    2007.04.23-21:35:04 [main][debug]:connection closed socket: 8
    2007.04.23-21:35:13 [do_accept][info]:new connection from 127.0.0.1 on socket 8
    2007.04.23-21:35:13 [RECV][debug]:socket: 8 size:29
    2007.04.23-21:35:13 [RECV][debug]:socket: 8 size:-1
    2007.04.23-21:35:13 [handle][debug]:socket: 8 size:29 data:SCMD SETCONFIG 0 25 . 1 0 . .
    2007.04.23-21:35:13 [handleSCMD][debug]:got command: SETCONFIG
    2007.04.23-21:35:13 [setConfig][debug]:setconfig gdl:0 gul:25 dontcheck:. usebitfield:1 cachesize
    1970.01.01-01:00:15 [_file2mem][error]:error, open /opt/var/sctcs.db failed. No such file or directory
    2007.04.23-21:40:47 [do_accept][info]:new connection from 127.0.0.1 on socket 7
    2007.04.23-21:40:47 [RECV][debug]:socket: 7 size:14
    2007.04.23-21:40:47 [RECV][debug]:socket: 7 size:-1
    2007.04.23-21:40:47 [handle][debug]:socket: 7 size:14 data:SCMD GETCONFIG
    2007.04.23-21:40:47 [handleSCMD][debug]:got command: GETCONFIG
    2007.04.23-21:40:47 [sendData][debug]:sended:[SCTCS OK
    ************************************************** *

    As you can see there is same error message in log file: /opt/var/sctcs.db failed(also after couple of restart - service and router too)

    I've checked filesystem and I have /opt/var created with 775 permitions

    Apparently problem is somewhere else - I am getting a feeling that only author can break this problem - maybe bug

    OR I missing something simple in configuration???

  10. #25

    Some progress

    Problem partially solved...

    Error message caused by clicking "Set" button on "Option" page is gone.
    It was apparently program bug in version 0.85b. With version 0.851 it's OK with same settings. Messages of type "Cannot create/open /opt/var/sctcs.db" is gone.(file is really created in that folder)


    But problem with adding(starting) new torrents persists. Same as before, logfile too. Here is part of that log.

    ******************************************
    2007.04.24-00:06:59 [main][debug]:connection closed socket: 7
    2007.04.24-00:07:22 [do_accept][info]:new connection from 127.0.0.1 on socket 7
    2007.04.24-00:07:22 [RECV][debug]:socket: 7 size:88
    2007.04.24-00:07:22 [RECV][debug]:socket: 7 size:-1
    2007.04.24-00:07:22 [handle][debug]:socket: 7 size:88 data:SCMD START /tmp/harddisk/ftp_pvt/lce/TorrentTemp/ /tmp/harddisk/ftp_pvt/lce/TorrentDown/
    2007.04.24-00:07:22 [handleSCMD][debug]:got command: START
    2007.04.24-00:07:22 [handleSCMD_START][error]:Unable to add torrent filename:
    2007.04.24-00:07:22 [sendData][debug]:sended:[SCTCS ERR
    **********************************************

    I tried to uploading testing torrent in format "something something something.torrent", and also "somenthing_something_something.torrent", so it seems that there is not problem of interpreting filename of torrent.

    Very strange....

    LCE

  11. #26

    Problem Solved



    So final success.

    SCTCS doesn't know to use vfat partition. My torrent destination directory was FAT32 partition and ftp root simultaneosly.

    When SCTCS is adding new torrent for download it creates 3 files in "torrent" folder defined in /opt/etc/sctcs.conf.

    1st file- torrent file which was uploaded throught web interf(something.torrent)
    2nd file- log file for this torrent
    3rd file(optional) - bitfield file for current torrent

    So if SCTCS have problem when creating these files - torrent download won't start.

    This is maybe caused by permitions on FAT32 partition(which AFAIK FAT32 doesn't have.)

    SOLUTION:
    I changed partition type from FAT32(vfat-0xc) to Linux(0x83).

    LCE

  12. #27
    Quote Originally Posted by carlan1 View Post
    I set upload limit to 10K, restart daemon and see 10960K.
    On what it could depend?
    Unfornately its a bug with the display of upload limit I'll fix it after May because I have to finish my diploma documentation and do my final exams.
    Sorry for the inconvenience.

  13. #28
    I just switched to SCTSC and I love it.
    Thanks.


  14. #29
    Quote Originally Posted by carlan1 View Post
    I set upload limit to 10K, restart daemon and see 10960K.
    On what it could depend?
    After a pair of stop/erase/restart now the value upload it's correct, but it does not respect the limit. Why?

  15. #30
    Whell finaly put my asus 500gp in action :P

    Now a question:

    Does this bittorrent client, makes verification of the existing torrents ?
    Its something very important to me

Page 2 of 5 FirstFirst 1234 ... LastLast

Similar Threads

  1. HowTo install a lightweight blog server
    By Tamadite in forum WL-500g/WL-500gx Tutorials
    Replies: 0
    Last Post: 03-12-2006, 01:46
  2. Gameserver
    By blingbling in forum WL-500gP Q&A
    Replies: 2
    Last Post: 17-07-2006, 15:37
  3. twonky media server, network drive with oleg firmware
    By black_bottom in forum WL-HDD Q&A
    Replies: 3
    Last Post: 22-03-2006, 07:15
  4. FTP server op wl500g-dlx niet bereikbaar vanaf internet
    By Sawilla in forum Dutch Discussion - Nederlands
    Replies: 16
    Last Post: 19-12-2005, 09:37

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •