Hi!
Please, start dctcs with -v -v -v options and send me the logs.
Printable View
Hi!
Please, start dctcs with -v -v -v options and send me the logs.
Hi,
I'm sorry for this question, but I'm new to linux :-) I have yodctcs and it used to start automatically. But recently I made new clean installation and I don't know how to configure it to start on router startup. Can you help me? Thanx.
I'm sorry. The file rc.unslung wasn't created properly. It is working now.
Hi again
what log?
Can anyone post a full running dctcs.conf and a torrent.conf? only to take references (thats because the values not documented). Maybe I'm missunderstandin' the meanin of certain variables...
TOA for the help.
Edit: Ok. Now its working (only need to re-install)
This is the dctcs.conf
and this is the ctorrent.conf:Quote:
#sample config file
#change these according to your system
torrent-directory=/tmp/harddisk/torrent
download-directory=/tmp/harddisk/compartidos
#change user name and password
user=me
password=just
exit-hours=168
exit-ratio=5.6
cache-size=1
restart-torrents=0
download-limit=350
upload-limit=35
check-interval=180
port=23000
#arbitrary arguments to ctorrent
#ctorrent-args=-a
#url to prepend in the details box
detail-url=ftp://192.168.1.1/tmp/harddisk/compartidos
#arbitrary arguments to wget
#wget-args=-c
#write-stats=1
#ctorrent=/opt/bin/ctorrent
client-host=localhost:22000
htmlroot-directory=/opt/share/dctcs/www/darkside.ctcs.gui/
wget=/opt/bin/wget
Its something wrong ?Quote:
##
# Configuration
# NOTE: no spaces around the = sign
# the config will be sourced (eg. . torrent.conf)
SOURCE=/tmp/harddisk/torrent/source
WORK=/tmp/harddisk/torrent/work
TARGET=/tmp/harddisk/torrent/target
MAILTO=
MAILFROM=
# default MAILER is mini_sendmail
MAILOPT="-javitxusan.dnsalias.com -f"
USER=admin
GROUP=root
DATE_FORMAT="%d %h %H:%M"
# btget port range environment
BTLIB_MINPORT=21500
export BTLIB_MINPORT
BTLIB_MAXPORT=22000
export BTLIB_MAXPORT
#time between logs
LOG_TIME=59
# Seed torrent after completition (YES or NO)
AUTOSEED="YES"
#Colors for command line. # comment out if not needed
GREEN="\033[32;1m"
#NC="\033[0m"
#BACK_UP="\033[1K\033[0G"
NORMAL="\033[0m"
WARN="\033[33;1m"
BAD="\033[31;1m"
BOLD="\033[1m"
GOOD="\033[32;1m"
I´ve just uploaded 2 torrents (1 of them with more than 1000 seeders) but down speed its from 0.5 to 4.5 KB/s (just in the torrent with less seeders, the other dont move)...
Now. I tried to delete the static one... first I stopped. then hide the active and show the stopped torrents. After that, I´ve selected the torrent and delete it. Only thing I had was both torrent out from list and a message: "error getWgetDownloads".
....
Ok. don't worry..
I´ve stopped ctorrent (and remove it) , re-installed (again) the dctcs, and delete files from torrents.
...
And now what I have are 2 torrents in the STOPPED list but I cant start'em...
all test in both FF and IE.
Any ideas??
the log what dctcs creates via syslog.
Code:root@OpenWrt:~# cat /etc/dctcs.conf
#sample config file with compiled in default values
#change these according to your system
torrent-directory=/mnt/disc0_1/torrent/
download-directory=/mnt/disc0_1/
#change user name and password
user=*****
password=***
exit-hours=9999
exit-ratio=8
cache-size=1
restart-torrents=0
download-limit=0
upload-limit=0
#port=18000
#arbitrary arguments to ctorrent
ctorrent-args=-d -a
#url to prepend in the details box
detail-url=ftp://root@192.168.1.1/mnt/disc0_1/
ctorrent=/dctcs/ctorrent-3.3
#client-host=localhost:15000
#htmlroot-directory=/usr/share/dctcs/www/darkside.ctcs.gui/
wget-args=-c
Hi!
Ok. I made it work a few days ago, but it SOOO LOOOWWW (1 ex: download rarely ups to 40 kB, from 1 or more torrents). I test ctorrent meanwhile uploading a torrent to /source directory, and its much faster... (I was thinkin dctcs was using ctorrent...)
My question is :
If you want use the ctorrent original conf directories, what directories must write in dctcs.conf?
torrent-directory=/tmp/harddisk/torrent/source
download-directory=/tmp/harddisk/torent/target
????
or
torrent-directory=/tmp/harddisk/torrent/source
download-directory=/tmp/harddisk/torent/work
????
Thank you on advance for your help
me too :)
so it _is_using_ctorrent so if you did not set up/download limit it must be exactly as fast/slow as ctorrent
sorry never heard about ctorrent conf directories, so i can not answer this question.
the torrent-directory is the dir where dctcs "stores" the torrent files and the download-directory is the dir where the downloaded data goes to.
Hi again!
Thanks a lot for your fast answer.
I mean with ctorrent conf (really a mean torrent.conf) that ctorrent uses 3 directories: source, work and target (where torrents are, where work while download and where finished files are going to), but dctcs uses only 2:1 for torrent files + 1 to work-and-completed files.
If dctcs is using ctorrent there must be the files in work directory while dctcs is downloading , but this is not true, because (at least in my case) working file is in the definitive directory.
And as I see that ctorrent working in background is 8 times faster than dctcs (tested with same torrent), I´m going to try this: use the same directoy source to both ctorrent and dctcs, and use de completed-files-dctcs as same work-ctorrent-directory, I´m goin' to let ctorrent to move completed torrent to "target" directory when finish.
Cross fingers.....
TOA
Hi again!
I put in source directory some torrent. those torrent started with watchdog and I've check the time in the log files.
Result: ctorrent (and this is the better, because I installed OLD ctorrent, not enhanced-ctorrent) its 6 times faster working alone, than torrents in dtcts...
And about enhanced-ctorrent... I find that the packet you can find if you make "ipkg install" its not the last 3.3.1 There is older version.
I was checking torrential last days (same low speed as dctcs) and I´m thinking on made my own gui. ( )
Cross your fingers.
TOA.
Hi,
I like YoDCTCS. One question, is YoDCTCS provide some kind interface so I can change my downloading limit automatically? So I can utilize my off-peak downloading quote better.
Thanks,
Simon
HI ,
it is not providing an interface, but you can change the config file then send a SIGHUP to dctcs.
Hi dske,
Thank you very much. This solved my problem!
Simon
Hello,
I am new to this forum.
But i hope someone can help me
I have 2 routers on is running openwrt whiterussian the other is running oleg
on both router yodctcs is installed.
i have edited the dctcs.conf file accordingly
On whiterussian torrents start and download very fast.
on oleg`s the torrents upload and i can see them in the upload map i specified in the config file.
but the torrents never start they show up in the web interface as stopped and if i click start nothing happens.
My understanding of linux is not so very good so i hope someone can help me with this.
If i need to post config files please tell me and i will post them.
Thanx in advance
Hi,
are you using enhanced-ctorrent on oleg?
can you download with ctorrent (in "command line")?
if yes can you please post the log files after starting dctcs like:
dctcs -v -v -v
Excellent piece of software!
I would like to have the following function featured: The possibility to limit number of downloads.
In other words if I add 10 torrents to my list, instead of it downloading all torrent at the same time (as it currently is) it should be possible to set that only the first 3 torrents or something is downloaded, and once they are done it will automatically go on downloading the next 3, until the entire list is done.
Is this possible to implement? :)
Hi,
Thanx for the reply i tried both ctorrent and enhanced-ctorrent both wont run
if i start ctorrent manual it works and it is downloading
I have started dctcs -v -v -v but where can i find the log file i cant find it
if i look in syslog the only thing what i get is: Jul 21 12:58:13 dctcs: new file uploaded
nothing more
thanx in advance
Yeah, I understand. It would be great if it had a built in queue system so I can add like 10 torrents and it will only download let's say 5 at the time, and when they are done it will go on taking the next 5.
Another thing I was wondering is how can I open up the Web GUI for external access? I have it installed on port 18000 as said in the guide, but I can't access the page externally (even though I can access port 80 and 8080).
How can I open up 18000 so I can start downloads from the outside as well?
YOD CTCS works nice for me... when it works :( unfortunately there are times (especially when I add a new torrent) that dctcs just quits and web browser cannot open the page (I am using Oleg f/w on ASUS wl500gp). When I run it again withit works ok. And I like enhanced-ctoreent, it gives me better download than rTorrent and gives me a per-file control (which I miss in transmission).Code:/opt/etc/init.d/S90dctcs start
But as I said there are some problems. Some times when I refresh the page, it does not see the torrents I am downloading. And the most pity is that sudden exit thing.
But anyway - overall this is a simple and clean WebUI, has all the features I need. Thanks a lot to dske and I am looking forward to improvements. Good luck.
Maybe you could suggest do I need ctorrent-args=-a (to preallocate files) and how it will affect my router? Will it help download or maybe it will be too heavy work for the router at the time when ctorrent allocates these files?
is there a very easy step by step guide for this?
because its hard to follow the steps here since there is no step by step guide
Thanks, dske, for reply. I'll leave -a on then. And I will try to not disturb the torrent while it preallocates files, should be more stable, I hope.
Anyway, I 'll try to find some script which monitors running processes and starts dctcs if it is not running, that could help.
@mark_q4xprt
Actually, I miss instructions, too, but it was surprisingly easy to install and configure. I'll try to remember what I did.
At first I assume you have working USB storage attached and working on your router.
I have 3 partitions on one USB HDD. 1st partition contains a root folder /opt.
It gets mounted as /tmp/mnt/disc0_1 and I modified the post-mount script to mount it also to the very root /opt:
The second partition is for swap so I do not mount it.Code:mount -obind /tmp/mnt/disc0_1/opt /opt
The third gets automounted to /tmp/mnt/disc0_3 and I have a folder /data on it so I mount it again in post-mount script:
After that I have installed lots of stuff (experimenting with various torrent clients to find the best for me) but I hope that did not affect the dctcs installation.Code:mount -obind /tmp/mnt/disc0_3/data /mnt
I did
then I went here and downloaded latest "Package for Oleg firmware". I put it in /data folder (I have samba running and can access the share withCode:ipkg update
ipkg install enhanced-ctorrent
from my Windows PC).Code:\\192.168.1.1\disc0_1$\data
Then I did
and everything went ok.Code:ipkg install /mnt/data/dctcs_0.7.0-1-oleg_mipsel.ipk
Then I opened \\192.168.1.1\disc0_1$\opt\etc\dctcs.conf (you can use a free program called Notepad ++, it can load and save Unix files on Windows PC and it has also syntax highlighter, really useful program).
I was a bit confused with the meaning of the settings, especially about what port is for webUI and what is for enhanced-ctorrent, but I sorted it out so I got the following (added some comments from me, maybe dske can correct me if I misunderstood something):
Then I also opened \\192.168.1.1\disc0_1$\opt\etc\init.d\S90dctcs and checked if it contains:Code:#change these according to your system
torrent-directory=/mnt/data/ect/torrent/
download-directory=/mnt/data/ect
#change user name and password
user=secret
password=secret
exit-hours=168
exit-ratio=5.6
cache-size=1
# midix: this means to start enhanced-ctorrent when dctcs starts, so
# the "Running" torrents will really be running again.
restart-torrents=1
download-limit=0
# midix: ctorrent user manual suggests to set some Upload value which
# corresponds your bandwidth. Then ctorrent can make some additional
# adjustments to use your bandwidth more efficiently.
upload-limit=50
#check-interval=0
# midix: this is a port of web-gui, you have to open it with iptables in
# your post-firewall if you want to access your torrents from the Internet
port=8008
#arbitrary arguments to ctorrent
ctorrent-args=-a
#write-stats=1
# midix: the path in my system is the following by default
ctorrent=/opt/bin/enhanced-ctorrent
# midix: address for dctcs communications with ctorrent
# it is used only internally, it has nothing to do with downloading nor
# uploading
# client-host=localhost:15000
# midix: hmm, I have a question for this - does this mean, I can make my
# own webGUI for yoddctcs ?
#htmlroot-directory=/usr/share/dctcs/www/darkside.ctcs.gui/
# midix: I do not have wget (but I am thinking about having it ;) )
#wget=/usr/bin/wget
#arbitrary arguments to wget
#wget-args=-c
#url to prepend in the details box
#detail-url=ftp://192.168.1.1/mnt/disc0_1/
and also checked if dctcs is really located in /opt/bin.Code:start() {
/opt/bin/dctcs
}
I have also \\192.168.1.1\disc0_1$\opt\etc\init.d\rc.unslung script that starts all the other scripts in \\192.168.1.1\disc0_1$\opt\etc\init.d directory (if the name of the script starts with S). BTW, if you have installed many stuff you can disable unneeded things form starting up just by prependidng _ before the Sxxxx file name.
Then you can just do
and then in your browser:Code:/opt/etc/init.d/S90dctcs start
http://192.168.1.1:8008
and you should get to the login page and the just add new torrents. But I suggest you do not disturb YODCTCS some 30 secs or so - it may just quit because ctorrent may get really busy when allocating space and preparing to download.
------------------------------------------------------------
The next thing I will try to access the YODCTCS from my work (we are behind a proxy there but I tried to access transmission WebGUI and it worked fine).
And also it would be great to have a WebGUI that is just a php app which I can put in my SSL enabled site on lighttpd (and modify because I am kinda a programmer too but I prefer something I do not need to compile :D). But I guess it would require much work because of implementing communications between ctorrent and php script. I tried php GUI Torrential but it did not work well and it does not have individual file control for torrents.
Noticed also that YODCTCS forgot my per-file settings - I set to download only some files of the torrent but now I see that those files are completed and ctorrent is downloading ALL the other files - but I did not told him to do so...
P.S.English is not my native so excuse me for some weird things I have said here :D
if you want you can but i did not documented the interface. You can always use the source of course.
yodctcs uses non standard "html" requests so if the proxy only forwards standard requests it wont work.
if ctorrent and dctcs is stoped then the per-file settings is lost (these are not stored permanently)
why does it always says it fails when i try to use the http link?
all it want is to save the .torrent to my desktop and upload it
but unfortunately i encounter this problem
Downloading 0% TRACKER FAILURE REASON: Please redownload the torrent. PID system is active and pid was not found in the torrent
what seems to be the problem here?
i see,
do you happen to know i can set it up to dyndns?
i already input my account info in the router but when i tried to acces its link it loads my modems ip
my modem ip is
192.168.1.1
my asus
192.168.0.1
my pc
192.168.0.2
in the web config i chose to expose 192.168.0.1 so i can acces the dctcs outside
i also tried to simulate just incase of power failure
it seems that its stuck on checking before it was on 50% and now its back to 0%
http://acer.gotdns.com:8008/
admin:admin
these ip addresses are for private networks you can not use them to access the device from "outside"
host acer.gotdns.com
acer.gotdns.com has address 192.168.1.2
this is wrong you need to figure out the "public ip address"
i dont use oleg fw, but ifconfig should work:
you will see something like:
you should find something like in the above example: inet addr:89.135.XXX.XXXCode:root@OpenWrt:~# ifconfig
.....
eth0 Link encap:Ethernet HWaddr 00:1B:FC:45:27:13
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:27819194 errors:0 dropped:0 overruns:0 frame:0
TX packets:25154007 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3716665059 (3.4 GiB) TX bytes:3513070839 (3.2 GiB)
Interrupt:4
....
eth0.1 Link encap:Ethernet HWaddr 00:50:22:9F:FB:CD
inet addr:89.135.XXX.XXX Bcast:255.255.255.255 Mask:255.255.248.0
....
and set it up with dyndns anyway on the "add new hostname" page dyndns will auto detect the ip.
[admin@WL-500G root]$ ifconfig
br0 Link encap:Ethernet HWaddr 00:1B:FC:91:7A:EB
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::21b:fcff:fe91:7aeb/10 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12902 errors:0 dropped:0 overruns:0 frame:0
TX packets:20951 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1729578 (1.6 MiB) TX bytes:10817755 (10.3 MiB)
eth0 Link encap:Ethernet HWaddr 00:1B:FC:91:7A:EB
inet6 addr: fe80::21b:fcff:fe91:7aeb/10 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:59040 errors:0 dropped:0 overruns:0 frame:0
TX packets:65969 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:22926548 (21.8 MiB) TX bytes:21732733 (20.7 MiB)
Interrupt:4 Base address:0x1000
eth1 Link encap:Ethernet HWaddr 00:1B:FC:91:7A:EB
inet6 addr: fe80::21b:fcff:fe91:7aeb/10 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:120
TX packets:12451 errors:57 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:2767108 (2.6 MiB)
Interrupt:12 Base address:0x2000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MULTICAST MTU:16436 Metric:1
RX packets:14828 errors:0 dropped:0 overruns:0 frame:0
TX packets:14828 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1242894 (1.1 MiB) TX bytes:1242894 (1.1 MiB)
vlan0 Link encap:Ethernet HWaddr 00:1B:FC:91:7A:EB
inet6 addr: fe80::21b:fcff:fe91:7aeb/10 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12903 errors:0 dropped:0 overruns:0 frame:0
TX packets:26768 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1781279 (1.6 MiB) TX bytes:11273875 (10.7 MiB)
vlan1 Link encap:Ethernet HWaddr 00:1D:6A:04:16:FF
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21d:6aff:fe04:16ff/10 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:46137 errors:0 dropped:0 overruns:0 frame:0
TX packets:39198 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
ive already updated the ip on dyndns but it doesnt work, but when i type my ip http://121.96.138.174:8008 it does work but it is the same ip on the dyndns, im wondering why it doesnt refer to acer.gotdns.com account
im really confused, acer.gotdns.com refers to the modem mtx not the wl 500gp here on my end :confused:
http://img297.imageshack.us/img297/2149/mt88es6.jpg
you should add the port number as you used for the ip address:
http://121.96.138.174:8008
http://acer.gotdns.com:8008
yup but when i add it it doenst work it says connection error / network problem
what i meant is acer.gotdns.com is redirecting to my modem wich is 192.168.1.1 not the asus router that holds 192.168.0.1
Hi,
minor updates:
Version 0.7.1 - 14/09/2008
* bugfix: popups can be opened only one at a time
* show size and downloaded percentage of stopped torrents
* if a translation does not contain a key then the default is loaded
* using GWT Version 1.5
Hi, I'm using your software, together with enhanced ctorrent on a Movie Cube Q800, and I have some doubts.
1) If I shutdown the device, when rebooting and starting dctcs, the downloaded % of each file resets to 0%. Aparently, it grows up quite fast after that. Is this normal?
2) If I add a ctorrent parameter in the config file to move a downloaded file to a different directory:
ctorrent-args=-X "mv &d /tmp/hdd/volumes/HDD1/files/torrent-downloads/"
the torrents don't start (they show as Stopped and no ctorrent process is running). With 4 torrent files in the directory, I get the following output on the log file
Oct 1 00:34:02 NAS daemon.debug dctcs: restarting torrents
Oct 1 00:34:02 NAS daemon.debug dctcs: starting torrent
Oct 1 00:34:02 NAS daemon.debug dctcs: starting torrent
Oct 1 00:34:02 NAS daemon.debug dctcs: starting torrent
Oct 1 00:34:02 NAS daemon.debug dctcs: starting torrent
Oct 1 00:34:02 NAS daemon.debug dctcs: starting torrent
Oct 1 00:34:02 NAS daemon.debug dctcs: starting torrent
Oct 1 00:34:02 NAS daemon.debug dctcs: starting torrent
Oct 1 00:34:02 NAS daemon.debug dctcs: starting torrent
Oct 1 00:34:03 NAS daemon.debug dctcs: setting alarm to check torrent-directory
after: 300 sec
Thanks in advance for any help you can provide.
Best regards,
Gabriel
Hi,
this is two question the first part is (defective if you want to say so) by design dctcs should run continuously and do not store data (except statistical data but you can disable that). The percentage grows up fast as ctorrent checks the data and reports the status (but it does not report whether it is checking or downloading so dctcs guessing about this)
dctcs splits the string by spaces and then pass it to ctorrent so you can not use arguments that requires spaces. workaround: you can set the ctorrent parameter to a shell script which properly invokes ctorrent (don't forget to pass the parameters coming from dctcs)
regards