PDA

Bekijk de volledige versie : Understanding and debugging Transmission [oleo?]



wengi
01-03-2007, 13:15
Hi,

im am running a WL-HDD with Olegs firmware and transmission. (details here, sorry for german (http://wl500g.info/showthread.php?t=8424)).

First of all: Thanks to oleo for working on transmission!

Since i was testing some things i finaly broke transmission.
the watchdog is started but nothing happens.
No transmission processes active at all.
No error messages. Only "silence" :(

This is the point where i need to understand transmission better ;)

I found a debug variable in watchdog. How do i use it?
What general possibilities are there to debug transmission?
What does 'Unable to find recent transfer stats in syslog' on web interface mean.
Why are the dl-lines in syslog missing when transmission is running (start/stop is logged)?

And at all: Is this the right place to ask this questions?

thanks

wengi

oleo
01-03-2007, 14:54
Read some intro at http://www.nslu2-linux.org/wiki/Optware/Transmission

libbt is not neeeded.

If you want to debug Transmission there are three components.

.cgi UI interface that moves files arround
_watchdog takes care for queueing and watches for daemon
daemon reads active-torrents.txt file and outputs some info on its state


What do you want to debug?

wengi
01-03-2007, 15:13
First step i need to debug if watchdog is working. It is called by cron or command line but nothing happens...


[admin@blechbuechse root]$ ps axf
PID TTY STAT TIME COMMAND
1 ? S 0:03 /sbin/init
2 ? S 0:00 [keventd]
3 ? SN 0:00 [ksoftirqd_CPU0]
4 ? S 0:00 [kswapd]
5 ? S 0:00 [bdflush]
6 ? S 0:00 [kupdated]
7 ? S 0:00 [mtdblockd]
42 ? S 0:00 telnetd
46 ? S 0:00 httpd
51 ? S 0:00 klogd
55 ? S 0:00 [khubd]
57 ? S 0:00 udhcpc -i br0 -p /var/run/udhcpc_lan.pid -s /tmp/landhcpc
72 ? S 0:00 /usr/sbin/portmap
74 ? S 0:00 [nfsd]
75 ? S 0:00 [lockd]
76 ? S 0:00 \_ [rpciod]
78 ? Ss 0:00 /usr/sbin/mountd
81 ? Ss 0:04 watchdog
83 ? Ss 0:00 \_ ntp
91 ? S 0:00 dropbear
240 ? Ss 0:02 \_ dropbear
241 pts/0 Ss 0:00 \_ -sh
245 pts/0 R+ 0:00 \_ ps axf
92 ? S 0:00 [kjournald]
96 ? S 0:00 [kjournald]
106 ? S 0:00 /sbin/syslogd -m 0 -O /opt/var/log/messages -S -l 7
112 ? Ss 0:00 /opt/sbin/cron
118 ? Ss 0:00 /opt/sbin/xinetd
126 ? S 0:00 /usr/sbin/busybox_httpd -c /opt/etc/httpd.conf -p 8008 -h /opt/share/www
133 ? Ss 0:00 /opt/sbin/smbd -D
135 ? Ss 0:00 /opt/sbin/nmbd -D
[admin@blechbuechse root]$ transmission_watchdog
[admin@blechbuechse root]$ ps axf
PID TTY STAT TIME COMMAND
1 ? S 0:03 /sbin/init
2 ? S 0:00 [keventd]
3 ? SN 0:00 [ksoftirqd_CPU0]
4 ? S 0:00 [kswapd]
5 ? S 0:00 [bdflush]
6 ? S 0:00 [kupdated]
7 ? S 0:00 [mtdblockd]
42 ? S 0:00 telnetd
46 ? S 0:00 httpd
51 ? S 0:00 klogd
55 ? S 0:00 [khubd]
57 ? S 0:00 udhcpc -i br0 -p /var/run/udhcpc_lan.pid -s /tmp/landhcpc
72 ? S 0:00 /usr/sbin/portmap
74 ? S 0:00 [nfsd]
75 ? S 0:00 [lockd]
76 ? S 0:00 \_ [rpciod]
78 ? Ss 0:00 /usr/sbin/mountd
81 ? Ss 0:04 watchdog
83 ? Ss 0:00 \_ ntp
91 ? S 0:00 dropbear
240 ? Ss 0:02 \_ dropbear
241 pts/0 Ss 0:00 \_ -sh
252 pts/0 R+ 0:00 \_ ps axf
92 ? S 0:00 [kjournald]
96 ? S 0:00 [kjournald]
106 ? S 0:00 /sbin/syslogd -m 0 -O /opt/var/log/messages -S -l 7
112 ? Ss 0:00 /opt/sbin/cron
118 ? Ss 0:00 /opt/sbin/xinetd
126 ? S 0:00 /usr/sbin/busybox_httpd -c /opt/etc/httpd.conf -p 8008 -h /opt/share/www
133 ? Ss 0:00 /opt/sbin/smbd -D
135 ? Ss 0:00 /opt/sbin/nmbd -D
[admin@blechbuechse root]$


and this is syslog:

Mar 1 17:30:01 /opt/sbin/cron[144]: (admin) CMD (nice /opt/sbin/transmission_watchdog)
Mar 1 17:30:01 /opt/sbin/cron[146]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 1 17:35:01 /opt/sbin/cron[157]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 1 17:40:01 /opt/sbin/cron[162]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 1 17:45:01 /opt/sbin/cron[167]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 1 17:50:01 /opt/sbin/cron[172]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 1 17:55:01 /opt/sbin/cron[178]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 1 18:00:01 /opt/sbin/cron[185]: (admin) CMD (nice /opt/sbin/transmission_watchdog)
Mar 1 18:00:02 /opt/sbin/cron[186]: (admin) CMD (run-parts /opt/etc/cron.hourly)
Mar 1 18:00:02 /opt/sbin/cron[187]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 1 18:05:01 /opt/sbin/cron[202]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 1 18:10:01 /opt/sbin/cron[207]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 1 18:15:01 /opt/sbin/cron[212]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 1 18:20:01 /opt/sbin/cron[217]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 1 18:25:01 /opt/sbin/cron[222]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 1 18:30:01 /opt/sbin/cron[229]: (admin) CMD (nice /opt/sbin/transmission_watchdog)
Mar 1 18:30:01 /opt/sbin/cron[230]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 1 18:30:53 dropbear[240]: password auth succeeded for 'admin' from ::ffff:192.168.201.10:1730
:




Does watchdog support a debug log?
I want to know why the deamon is _not_ started.

There is a line in watchdog:
DEBUG= How is it used?
Set it to 1 or logfile_location?

Thanks

wengi

oleo
01-03-2007, 19:13
transmission_watchdog is a script that runs several seconds every half an hour or so. There is nothing special about DEBUG. It just prints out some messages when running. You can set

DEBUG=1
in transmission_watchdog. Anyway, I should remove it as I do not use it as

sh -x /opt/sbin/transmission_watchdog
is a better way to do this.

Debug daemon through syslog messages! There is also foreground mode to daemon (-f switch)

Issue transmissiond -? to see all the options.

wengi
02-03-2007, 07:59
[admin@blechbuechse root]$ sh -x /opt/sbin/transmission_watchdog
+ sh -x /opt/sbin/transmission_watchdog
+ . /opt/etc/transmission.conf
+ SOURCE=/tmp/harddisk/torrent/source
+ WORK=/tmp/harddisk/torrent/work
+ TARGET=/tmp/harddisk/torrent/target
+ MAILOPT=-smail.somedomain.com -f
+ USER=admin
+ GROUP=root
+ DATE_FORMAT=%d %h %H:%M
+ PIDFILE=/opt/var/run/transmission.pid
+ ACTIVE=/tmp/harddisk/torrent/active-torrents.txt
+ HOME=/tmp/harddisk/torrent
+ WATCHDOG=300
+ LISTENING_PORT=65534
+ UPLOAD_SPEED=-1
+ DOWNLOAD_SPEED=-1
+ SYSLOG=/opt/var/log/messages
+ AUTOSEED=YES
+ MAX_ACTIVE_TORRENTS=10
+ GNUPLOT=/opt/bin/gnuplot
+ GNUPLOT_COMMAND=/tmp/harddisk/torrent/work/transfer.gnuplot
+ GNUPLOT_DATA=/tmp/harddisk/torrent/work/transfer.data
+ GNUPLOT_OUTPUT=/opt/share/www/transfer.png
+ HTTP_IMG_LOCATION=../transfer.png
+ TIMEZONE_OFFSET=+3600
+ GREEN=\033[32;1m
+ NORMAL=\033[0m
+ WARN=\033[33;1m
+ BAD=\033[31;1m
+ BOLD=\033[1m
+ GOOD=\033[32;1m
+ PATH=/bin:/sbin:/usr/bin:/opt/sbin:/opt/bin:/usr/sbin
+ export PATH
+ DEBUG=1
+ [ ! -d /tmp/harddisk/torrent/source ]
+ [ ! -d /tmp/harddisk/torrent/target ]
+ [ ! -d /tmp/harddisk/torrent/work ]
+ [ -n 1 ]
+ echo SOURCE: /tmp/harddisk/torrent/source
SOURCE: /tmp/harddisk/torrent/source
+ echo WORK: /tmp/harddisk/torrent/work
WORK: /tmp/harddisk/torrent/work
+ echo TARGET: /tmp/harddisk/torrent/target
TARGET: /tmp/harddisk/torrent/target
+ echo USER: admin
USER: admin
+ [ -f /tmp/harddisk/torrent/work/.watchdog ]
+ exit 0
[admin@blechbuechse root]$


watchdog exits because there exists a .watchdog in $work. Thats what i understood. So you try do detect if another watchdog is still running?
If yes: It would be helpfull to ad a line like
if [ -f $WORK/.watchdog ]; then
echo "An other transmission_watchdog is running. If you are sure this is not the case, delete $WORK.watchdog"
exit 0
fi



What could be the reason for the existing .watchdog? (ctrl+c during running manual?)
Is it save to delete the .watchdog and run watchdog again? EDIT: I tested it. transmissiond works again :-)

Sorry, but i did not find an explanation of the .watchdog file in http://www.nslu2-linux.org/wiki/Optware/Transmission.

Thanks
wengi

oleo
02-03-2007, 10:13
You're right. This .watchdog thing is to prevent bites bethween dogs. But we can allow one bite and remove .watchdog at that time. Added this in http://trac.nslu2-linux.org/optware/changeset/5684

tnx

wengi
02-03-2007, 10:59
"Who let the (watch)dogs out...." Thank you :D

Its looking good now:

Mar 2 11:55:01 /opt/sbin/cron[165]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 2 12:00:01 /opt/sbin/cron[172]: (admin) CMD (nice /opt/sbin/transmission_watchdog)
Mar 2 12:00:01 /opt/sbin/cron[173]: (admin) CMD (run-parts /opt/etc/cron.hourly)
Mar 2 12:00:01 /opt/sbin/cron[174]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 2 12:00:05 transmissiond[210]: Transmission daemon 0.7-svn (1504) started - http://transmission.m0k.org/
Mar 2 12:00:05 transmission_watchdog: Transmission daemon restarted!
Mar 2 12:00:05 transmissiond[210]: Starting torrent /tmp/harddisk/torrent/work/111/111.torrent
Mar 2 12:00:05 transmissiond[210]: Starting torrent /tmp/harddisk/torrent/work/222/222.torrent
Mar 2 12:00:06 transmissiond[210]: Starting torrent /tmp/harddisk/torrent/work/333/333.torrent
Mar 2 12:00:06 transmissiond[210]: Starting torrent /tmp/harddisk/torrent/work/444/444.torrent
Mar 2 12:00:07 transmissiond[210]: Starting torrent /tmp/harddisk/torrent/work/555/555.torrent
Mar 2 12:00:08 transmissiond[210]: Starting torrent /tmp/harddisk/torrent/work/666/666.torrent
Mar 2 12:00:23 transmissiond[210]: Starting torrent /tmp/harddisk/torrent/work/777/777.torrent
Mar 2 12:03:38 transmissiond[210]: Starting torrent /tmp/harddisk/torrent/work/888/888.torrent
Mar 2 12:05:02 /opt/sbin/cron[235]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 2 12:10:02 /opt/sbin/cron[240]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 2 12:13:14 transmissiond[210]: Starting torrent /tmp/harddisk/torrent/work/999/999.torrent
Mar 2 12:13:31 transmissiond[210]: Starting torrent /tmp/harddisk/torrent/work/000/000.torrent
Mar 2 12:13:36 transmissiond[210]: Starting torrent /tmp/harddisk/torrent/target/aaa/aaa.torrent.seeding
Mar 2 12:14:24 transmissiond[210]: Starting torrent /tmp/harddisk/torrent/target/bbb/bbb.torrent.seeding
Mar 2 12:15:01 /opt/sbin/cron[249]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 2 12:19:25 transmissiond[210]: 1172834365 12 dl 42.37 ul 37.80 ld 3.96
Mar 2 12:20:01 /opt/sbin/cron[254]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 2 12:24:26 transmissiond[210]: 1172834665 12 dl 63.16 ul 28.63 ld 4.00
Mar 2 12:25:02 /opt/sbin/cron[259]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 2 12:29:26 transmissiond[210]: 1172834966 12 dl 53.85 ul 27.69 ld 4.55
Mar 2 12:30:02 /opt/sbin/cron[266]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 2 12:30:02 /opt/sbin/cron[265]: (admin) CMD (nice /opt/sbin/transmission_watchdog)
Mar 2 12:30:36 transmissiond[210]: Stopping torrent /tmp/harddisk/torrent/work/333/333.torrent
Mar 2 12:30:48 transmission_watchdog: Moving files to: /tmp/harddisk/torrent/target/333
Mar 2 12:30:49 transmission_watchdog: Auto seeding /tmp/harddisk/torrent/target/333/333.torrent.seeding
Mar 2 12:31:34 transmissiond[210]: 1172835094 11 dl 0.91 ul 0.23 ld 3.83
Mar 2 12:35:02 /opt/sbin/cron[494]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 2 12:36:49 transmissiond[210]: 1172835409 11 dl 7.56 ul 5.83 ld 3.91
Mar 2 12:40:01 /opt/sbin/cron[499]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 2 12:41:52 transmissiond[210]: 1172835712 11 dl 18.75 ul 11.37 ld 4.07
Mar 2 12:43:07 dropbear[503]: password auth succeeded for 'admin' from ::ffff:195.52.210.3:3331
Mar 2 12:45:02 /opt/sbin/cron[509]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 2 12:46:53 transmissiond[210]: 1172836013 11 dl 20.01 ul 15.30 ld 4.36
Mar 2 12:50:02 /opt/sbin/cron[514]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 2 12:55:01 /opt/sbin/cron[719]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 2 13:00:02 /opt/sbin/cron[729]: (admin) CMD (nice /opt/sbin/transmission_watchdog)
Mar 2 13:00:02 /opt/sbin/cron[730]: (admin) CMD (run-parts /opt/etc/cron.hourly)
Mar 2 13:00:02 /opt/sbin/cron[731]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 2 13:05:02 /opt/sbin/cron[915]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 2 13:10:01 /opt/sbin/cron[921]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 2 13:15:02 /opt/sbin/cron[928]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 2 13:20:01 /opt/sbin/cron[952]: (admin) CMD (run-parts /opt/etc/cron.5mins)


Questions:
1) syslog: Is dl and ul in kbit or kbyte?
2) what does "Unable to find recent transfer stats in syslog" in Webinterface mean. There is transfer data in syslog! See above.
3) where / how can i change the links to source, work and target in Webinterface. I get a 404 on these links. (see EDIT)

And a feature request:
If i got all right, a torrent is seeded after download is finished. Seeding can only be stopped by manualy pushing it.
It would be fine to stop seeding automaticly after [a predefined seeding-ratio is reached] AND [New torrents are in source/suspended].

Background:

If i copy e.g. 30 torrents to source and the MAX_ACTIVE_TORRENTS in conf is set to 10, it will download these 10 and seed them.
The next torrents are downloaded. In the end, there will be 30 downloads seeding.
Would be nice if we could stop seeding a torrent after a "fair" ratio of e.g. 2 is reached. This would keep the sum of torrents small.
My WL-HDD becomes very slow with many torrents loading/seeding.

Thanks

wengi


EDIT: to question 3

I had a look at transmission.cgi.

<h3>Links</h3>
<ul>
<li><a href=../torrent/source>source</a></li>
<li><a href=../torrent/work>work</a></li>
<li><a href=../torrent/target>target</a></li>
</ul>
<hr>
this does not seem to work. My hdd is mounted at /tmp/harddisk -> source is /tmp/harddisk/torrent/source.

oleo
02-03-2007, 14:05
Recent means that in last 10 lines of syslog should be a speed tick from daemon. If this is not enough change to "last -20 " in transmission.cgi
All units are in kBytes
ln -s /tmp/harddisk/torrent /opt/share/www if you are using thttpd or similar httpd that knows hout to autodir index page.
Although I always wanted to implement unseed method, I do not know what is the proper way to do this. From my taughts the proper way is to stay seedind predefined time and then decide what to do. If there are few clients, it is not right to stop. We could throw away some torrents without any peers. But as I said up to now I didn't figure out proper way. How do other autoqueue clients handle this issue?
There is an option to disable autoseed in .conf, but then you should push all the seeds by yourself.

wengi
02-03-2007, 14:50
Recent means that in last 10 lines of syslog should be a speed tick from daemon. If this is not enough change to "last -20 " in transmission.cgi
This is not enough for me because of cron all 5 mins. Is it right that transmission writes this information every 3 hours?


ln -s /tmp/harddisk/torrent /opt/share/www if you are using thttpd or similar httpd that knows hout to autodir index page.
i am usin busybox-http. Have no idea if it knows autodir... i will try


How do other autoqueue clients handle this issue?
enhanced- and ctorrent have a time limit and a seed ratio.
seed until seed ratio of xxx or a timeout of xx hours is reached.

from here (http://www.rahul.net/dholmes/ctorrent/userguide.html)

-e int Exit while seed hours later. (default 72 hours)

Indicate how long (in hours) you want to "seed" (continue uploading) after download has completed. It is considered polite and fair (and required by some tracker sites) to seed for some time after downloading.

-E num Exit after seeding to ratio (UL : DL).

Specify a desired "seed ratio". After downloading completes, the client will continue seeding (uploading) until your total upload volume divided by your download volume equals this number. Fractional values (such as 1.5) are allowed. It is considered polite and fair (and required by some tracker sites) to seed until your ratio is at least 1:1.

Example: Download with a limit of 100KB/s, upload limit of 10KB/s, and seed until a ratio of 1.5:1 is achieved:
ctorrent -D 100 -U 10 -E 1.5 example.torrent
I think this is fair with defaults set to 1.5 and 72.
This should not apply to torrents i created. Creating a torrent should set a "seed always" option.


There is an option to disable autoseed in .conf, but then you should push all the seeds by yourself.
I saw this. But i want to autoseed.

oleo
02-03-2007, 17:13
Daemon writes marks every WATCHDOG=300 seconds = 5 minutes.

Administration on the torrents is purely transmission_watchdog task. So changes should go there. The only problem is that there is no uniform 'date' program for all platforms and that it is hard to calculate time difference in a script.
But maybe we could use some format to date in case of missing %s. But now I see that xwrt, dd-wrt and oleg all support /bin/date +%s. So it could be simple to implement this auto unseed.


If you want to see directory contents with busybox_html then you should create a script that creates index.html in each directory or in shadow directory with symlinks to files if you do not want to polute directories.
This is not an easy task. It is easier to install thttpd.

But here is tiny sed magic sample to create index.html from a script

#!/bin/sh
#
DIR=/tmp/harddisk
(echo "<h2>Index of ${DIR}</h2><pre>"
ls -lgF "${DIR}" | tail +2 | sed \
-e 's/^\([^ ]*\)\( *[^ ]* *[^ ]*\)\( *[^ ]*\) *\([^ ][^ ]* *[^ ][^ ]* *[^ ][^ ]*\) *\(.*\)$/\1 \3 \4 |\5/' \
-e '/ -> /!s,|\([^*]*\)$,|<A HREF="\1">\1</A>,' \
-e '/ -> /!s,|\(.*\)\( \)$,|<A HREF="\1">\1</A>\2,' \
-e '/ -> /s,|\([^@]*\)\(@* -> \),|<A HREF="\1">\1</A>\2,' -e 's/|//'
echo "</pre>" ) > "${DIR}/index.html"

wengi
03-03-2007, 07:13
Daemon writes marks every WATCHDOG=300 seconds = 5 minutes.
Not on my system:

Mar 3 01:00:01 /opt/sbin/cron[3787]: (admin) CMD (nice /opt/sbin/transmission_watchdog)
Mar 3 01:00:02 /opt/sbin/cron[3789]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 01:05:01 /opt/sbin/cron[3986]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 01:10:01 /opt/sbin/cron[3991]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 01:15:01 /opt/sbin/cron[3996]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 01:20:01 /opt/sbin/cron[4001]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 01:25:02 /opt/sbin/cron[4006]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 01:30:01 /opt/sbin/cron[4012]: (admin) CMD (nice /opt/sbin/transmission_watchdog)
Mar 3 01:30:01 /opt/sbin/cron[4013]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 01:35:02 /opt/sbin/cron[4207]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 01:40:01 /opt/sbin/cron[4212]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 01:45:01 /opt/sbin/cron[4217]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 01:50:02 /opt/sbin/cron[4222]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 01:55:02 /opt/sbin/cron[4227]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 02:00:02 /opt/sbin/cron[4235]: (admin) CMD (run-parts /opt/etc/cron.hourly)
Mar 3 02:00:02 /opt/sbin/cron[4234]: (admin) CMD (nice /opt/sbin/transmission_watchdog)
Mar 3 02:00:02 /opt/sbin/cron[4236]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 02:05:01 /opt/sbin/cron[4433]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 02:10:01 /opt/sbin/cron[4438]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 02:12:07 ntp client: Synchronizing time with ptbtime1.ptb.de ...
Mar 3 02:15:02 /opt/sbin/cron[4446]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 02:20:01 /opt/sbin/cron[4451]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 02:25:02 /opt/sbin/cron[4456]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 02:30:01 /opt/sbin/cron[4462]: (admin) CMD (nice /opt/sbin/transmission_watchdog)
Mar 3 02:30:01 /opt/sbin/cron[4463]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 02:35:02 /opt/sbin/cron[4657]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 02:40:01 /opt/sbin/cron[4662]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 02:45:02 /opt/sbin/cron[4667]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 02:50:02 /opt/sbin/cron[4672]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 02:55:01 /opt/sbin/cron[4677]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 03:00:02 /opt/sbin/cron[4684]: (admin) CMD (nice /opt/sbin/transmission_watchdog)
Mar 3 03:00:02 /opt/sbin/cron[4685]: (admin) CMD (run-parts /opt/etc/cron.hourly)
Mar 3 03:00:02 /opt/sbin/cron[4686]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 03:05:01 /opt/sbin/cron[4883]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 03:10:02 /opt/sbin/cron[4888]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 03:15:01 /opt/sbin/cron[4893]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 03:20:01 /opt/sbin/cron[4898]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 03:25:01 /opt/sbin/cron[4903]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 03:30:01 /opt/sbin/cron[4909]: (admin) CMD (nice /opt/sbin/transmission_watchdog)
Mar 3 03:30:01 /opt/sbin/cron[4910]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 03:35:01 /opt/sbin/cron[5104]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 03:40:02 /opt/sbin/cron[5109]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 03:45:01 /opt/sbin/cron[5114]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 03:50:02 /opt/sbin/cron[5119]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 03:55:02 /opt/sbin/cron[5124]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 04:00:02 /opt/sbin/cron[5132]: (admin) CMD (run-parts /opt/etc/cron.hourly)
Mar 3 04:00:02 /opt/sbin/cron[5131]: (admin) CMD (nice /opt/sbin/transmission_watchdog)
Mar 3 04:00:02 /opt/sbin/cron[5133]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 04:05:02 /opt/sbin/cron[5330]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 04:10:01 /opt/sbin/cron[5335]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 04:12:20 ntp client: Synchronizing time with ptbtime1.ptb.de ...
Mar 3 04:15:02 /opt/sbin/cron[5343]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 04:20:02 /opt/sbin/cron[5348]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 04:25:02 /opt/sbin/cron[5353]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 04:30:01 /opt/sbin/cron[5359]: (admin) CMD (nice /opt/sbin/transmission_watchdog)
Mar 3 04:30:01 /opt/sbin/cron[5360]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 04:35:01 /opt/sbin/cron[5554]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 04:40:01 /opt/sbin/cron[5559]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 04:45:02 /opt/sbin/cron[5564]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 04:50:02 /opt/sbin/cron[5569]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 04:55:02 /opt/sbin/cron[5574]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 05:00:02 /opt/sbin/cron[5581]: (admin) CMD (nice /opt/sbin/transmission_watchdog)
Mar 3 05:00:02 /opt/sbin/cron[5582]: (admin) CMD (run-parts /opt/etc/cron.hourly)
Mar 3 05:00:02 /opt/sbin/cron[5583]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 05:05:02 /opt/sbin/cron[5783]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 05:10:01 /opt/sbin/cron[5788]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 05:15:02 /opt/sbin/cron[5793]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 05:20:01 /opt/sbin/cron[5798]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 05:25:01 /opt/sbin/cron[5803]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 05:30:02 /opt/sbin/cron[5810]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 05:30:02 /opt/sbin/cron[5809]: (admin) CMD (nice /opt/sbin/transmission_watchdog)
Mar 3 05:35:02 /opt/sbin/cron[6004]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 05:40:01 /opt/sbin/cron[6009]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 05:45:02 /opt/sbin/cron[6014]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 05:50:01 /opt/sbin/cron[6019]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 05:55:01 /opt/sbin/cron[6024]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 06:00:01 /opt/sbin/cron[6031]: (admin) CMD (nice /opt/sbin/transmission_watchdog)
Mar 3 06:00:01 /opt/sbin/cron[6032]: (admin) CMD (run-parts /opt/etc/cron.hourly)
Mar 3 06:00:01 /opt/sbin/cron[6033]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 06:05:01 /opt/sbin/cron[6230]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 06:10:01 /opt/sbin/cron[6235]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 06:12:38 ntp client: Synchronizing time with ptbtime1.ptb.de ...
Mar 3 06:15:01 /opt/sbin/cron[6243]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 06:20:01 /opt/sbin/cron[6248]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 06:25:02 /opt/sbin/cron[6253]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 06:30:02 /opt/sbin/cron[6260]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 06:30:02 /opt/sbin/cron[6259]: (admin) CMD (nice /opt/sbin/transmission_watchdog)
Mar 3 06:35:01 /opt/sbin/cron[6454]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 06:40:01 /opt/sbin/cron[6459]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 06:45:01 /opt/sbin/cron[6464]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 06:50:02 /opt/sbin/cron[6469]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 06:55:02 /opt/sbin/cron[6474]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 07:00:02 /opt/sbin/cron[6482]: (admin) CMD (run-parts /opt/etc/cron.hourly)
Mar 3 07:00:02 /opt/sbin/cron[6481]: (admin) CMD (nice /opt/sbin/transmission_watchdog)
Mar 3 07:00:02 /opt/sbin/cron[6483]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 07:05:01 /opt/sbin/cron[6680]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 07:10:02 /opt/sbin/cron[6685]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 07:15:01 /opt/sbin/cron[6690]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 07:20:02 /opt/sbin/cron[6695]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 07:25:02 /opt/sbin/cron[6700]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 07:30:02 /opt/sbin/cron[6706]: (admin) CMD (nice /opt/sbin/transmission_watchdog)
Mar 3 07:30:02 /opt/sbin/cron[6707]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 07:35:01 /opt/sbin/cron[6901]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 07:40:02 /opt/sbin/cron[6906]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 07:45:02 /opt/sbin/cron[6911]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 07:50:01 /opt/sbin/cron[6916]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 07:55:02 /opt/sbin/cron[7412]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 07:57:43 dropbear[7609]: password auth succeeded for 'admin' from ::ffff:192.168.201.10:1119
Mar 3 08:00:02 /opt/sbin/cron[7934]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 3 08:00:02 /opt/sbin/cron[7935]: (admin) CMD (run-parts /opt/etc/cron.hourly)
Mar 3 08:00:02 /opt/sbin/cron[7933]: (admin) CMD (nice /opt/sbin/transmission_watchdog)
Mar 3 08:00:43 transmission_watchdog: Removing .watchdog protection
transmission was definitely running. The other strange thing: There was no activity on network this morning. The network led was not blinking at all for more than 2 minutes. But HDD is blinking like mad (swapping). There are 11 active torrents! I dont get it....

I am not a good programmer, so first i will have to see what
/bin/date +%s does. But let me know if i can help.

I will try to install thttp.

wengi

oleo
03-03-2007, 13:14
kill -HUP2 transmisisonPID
should list all active torrents to syslog. One by one.

I have never seen unix system that runs cron every 5 minutes. This instructions from macsat are total missuse of crontab and should be regarded as bad practice. Remove this!

FYI. I am running wathdog every hour from cron. Not even half an hour.

What router/disk/swap are you using?

wengi
03-03-2007, 13:15
Other problem:
transmissiond is running fine for about 30 minutes.
After that time there is no more network traffic (really NO traffic)

There are still 8 torrents running but no traffic...

I dont get it...:confused:

oleo
03-03-2007, 16:36
HUh. send me PM with ssh access to your router. Then I can figure out.

wengi
04-03-2007, 07:57
Hi,
sorry for not answering yesterday.
I had to resart the router this morning. It works at the moment. But it will not last very long...


kill -HUP2 transmisisonPID
should list all active torrents to syslog. One by one.
I will give it a try when its hanging again.


I have never seen unix system that runs cron every 5 minutes. This instructions from macsat are total missuse of crontab and should be regarded as bad practice. Remove this!
Done.


FYI. I am running wathdog every hour from cron. Not even half an hour.
Done.


What router/disk/swap are you using?
This is a WL-HHD. Router in my network is an AVM Fritzbox 7170 (with ds-mod). I use NAT-Traversal but the torrent port is open anyway at Fritzbox.
The WL-HDD has only 16MB RAM. I use a 512MB swap.
HDD is a FUJITSU MHT2080AT 80GB.

You have PM.

EDIT: restart was at 08:27am. Last transmissiond entry at 09:28am.

Mar 4 08:26:08 dropbear[143]: password auth succeeded for 'admin' from ::ffff:xx.xx.xx.xx:1165
Mar 4 08:27:07 transmissiond[177]: Transmission daemon 0.7-svn (1504) started - http://transmission.m0k.org/
Mar 4 08:27:07 transmission_watchdog: Transmission daemon restarted!
Mar 4 08:27:08 transmissiond[177]: Starting torrent /tmp/harddisk/torrent/work/111/111.torrent
Mar 4 08:27:08 transmissiond[177]: Starting torrent /tmp/harddisk/torrent/work/222/222.torrent
Mar 4 08:27:08 transmissiond[177]: Starting torrent /tmp/harddisk/torrent/work/333/333.torrent
Mar 4 08:27:09 transmissiond[177]: Starting torrent /tmp/harddisk/torrent/work/444/444.torrent
Mar 4 08:27:11 transmissiond[177]: Starting torrent /tmp/harddisk/torrent/work/555/555.torrent
Mar 4 08:30:03 /opt/sbin/cron[223]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 4 08:30:03 /opt/sbin/cron[222]: (admin) CMD (nice /opt/sbin/transmission_watchdog)
Mar 4 08:31:24 transmissiond[177]: Starting torrent /tmp/harddisk/torrent/work/666/666.torrent
Mar 4 08:33:17 transmissiond[177]: Starting torrent /tmp/harddisk/torrent/work/777/777.torrent
Mar 4 08:35:04 /opt/sbin/cron[426]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 4 08:39:24 transmissiond[177]: Starting torrent /tmp/harddisk/torrent/work/888/888.torrent
Mar 4 08:40:02 /opt/sbin/cron[469]: (admin) CMD (run-parts /opt/etc/cron.5mins)
Mar 4 08:44:02 /opt/sbin/cron[107]: (*system*) RELOAD (/opt/etc/crontab)
Mar 4 08:49:01 /opt/sbin/cron[107]: (*system*) RELOAD (/opt/etc/crontab)
Mar 4 08:52:05 transmissiond[177]: 1172994725 8 dl 0.01 ul 0.00 ld 7.21
Mar 4 08:57:05 transmissiond[177]: 1172995025 8 dl 24.05 ul 38.94 ld 4.74
Mar 4 09:00:01 /opt/sbin/cron[638]: (admin) CMD (nice /opt/sbin/transmission_watchdog)
Mar 4 09:02:05 transmissiond[177]: 1172995325 8 dl 52.12 ul 29.23 ld 4.58
Mar 4 09:03:52 transmissiond[177]: 1172995432 8 dl 26.13 ul 16.31 ld 5.00
Mar 4 09:08:53 transmissiond[177]: 1172995733 8 dl 43.04 ul 25.43 ld 6.05
Mar 4 09:13:54 transmissiond[177]: 1172996033 8 dl 19.39 ul 5.60 ld 5.42
Mar 4 09:18:55 transmissiond[177]: 1172996335 8 dl 24.06 ul 12.32 ld 4.82
Mar 4 09:20:26 crontab[895]: (admin) AUTH (crontab command not allowed)
Mar 4 09:23:56 transmissiond[177]: 1172996636 8 dl 20.42 ul 25.76 ld 4.05
Mar 4 09:28:57 transmissiond[177]: 1172996937 8 dl 56.11 ul 31.42 ld 4.57
Mar 4 10:00:01 /opt/sbin/cron[1130]: (admin) CMD (nice /opt/sbin/transmission_watchdog)
But transmission is still running. Above log is from 10:06am

oleo
04-03-2007, 10:38
I've took a look at your wl-hdd. What I've saw that transmiisiond eated 44MB VMEM and that was the teason for choke. There was nothing wrong with config or else. I'ts just that You have pushed WL-HDD to the limits.

You cannot have 10 simultaneous downloads with 10GB/200 peers for each torrent and hope that 14MB RAM and 80MHz processor will handle that. No matter how large your swap is.

You have also xinetd and samba 2.2.12 running that eats about 8MB VMEM.
I suggest that you disable NFS and dropbear and use only telnet for access.


If samba 2.2.12 is necessary due to vista then such large memory requirement could choke wl-hdd. Options are:
run samba through xinetd and not as daemons
Use ftp or NFS instead
use http for transfer instead
pause transmission when doing other tasks (copy from wlhdd) to prevent choke.


No matter what you will do, You must change your download habbits. One-by-one and follow virtual size with top to see where are the limits. Or upgrade hardware somehow.

If you do not reveive mark from daemon. Then it is choked and only kill -9 could help him to die. The issue pause and remove active torrents and leave only one for check. Then you can gradually add other for recheck.

Hope that this helps you get started.

Edit: I see that you have load 0.8 with one 10GB torrent and 50 peers. I suspect that three torrents are practical limits for current config. Private trackers wilt less peers behave better than public.


rmmod printer
killall mountd
rmmod lockd
rmmod nfsd
rmmod wl

wengi
04-03-2007, 11:15
Thanks for your help.

I will try to run samba via xinetd (even if i have no idea how to do it... until now... newbie... :o )

regarding to manpage of top the VIRT column is VMEM.
I think i have a lack of understanding the top output... :(

I am so sorry. The error was in front of the keyboard :(

wengi

EDIT: Ok. i see what you did. I will try to get it right.

wengi
07-03-2007, 07:35
Hi Oleo,

i managed to start samba with xinetd and optimized loaded modules.
nfsd will be started with xinetd too.

Thanks again for your help.

wengi

oleo
07-03-2007, 09:20
It would be nice if you could write a wiki at http://www.nslu2-linux.org/wiki/Optware/Samba2


And for other packages too.

wengi
07-03-2007, 10:28
Done for samba2

oleo
07-03-2007, 12:30
Fine. Some config intro would also be helpful.

wengi
07-03-2007, 12:39
Fine. Some config intro would also be helpful.
config intro for samba2 or general setup of WLxxx??

One more question.
Where can i read about the kernel modules?
Just a brief description would be fine for every module.
I want to link to it for my howto so people can better guess which modules are needed and which ones can be removed.

Any source?

wengi

oleo
07-03-2007, 19:37
for samba2

any kernel documentation would do.

radko
08-03-2007, 09:24
Hello
I am new happy wl-500gP user.
I had installed transmission in my box, but after one day my graph looks like doesn't work.
Pls help me to repair it.

Which command restore the graph?

Regrads

charming
05-04-2007, 05:32
I was modify the transmission.cgi to display the actual downloaded (base on .status file)
I found the actual downloaded is over the real file size.
Example:
File :perfume.iso
Actual size: 4465 MB
% of completed: 54%
Actual downloaded: 4695MB
(when finished it's download around 8.3GB :confused: )
http://www.googeb.com/images/klz1175520091f.gif
This torrent I use time to download more than 24Hrs (Bandwidth ~100KB/s) but if I calculate the time to download I found it's use only 12-14 Hrs...

Please check my transmission.cgi as attach. I'm new in cgi and linux. I think it has some bug in that file.

Thank you.

oleo
05-04-2007, 08:20
Looks like http://transmission.m0k.org/trac/ticket/202 Update ticket with your findings.

I have updated Transmisison to r1664, bud did not tried yet. Now it features PEX. See http://trac.nslu2-linux.org/optware/changeset/5888

See if that helps and post report.


I've taked a look on CGI changes and I suggest for CGI:

Start/Stop Log for seeding is really unnecassary. REmove this from listing. Instead include dowloload/upload ratio and separate UL/DL quantity.
fieldset and legend looks nice. Maybe we could drop label on table to save space.
no bold End time. We could use style markup configured in /opt/etc/transmisison.conf
No images for buttons please.
Delete should be integraded under remove. With proper checking what we are deleting. And configurable option to prevent deletion of finished torrents.
LOG should not be grawn with lines. We could introduce rrdtool. But until Oleg fixes its firmware kernel FP emulation. This is not an option.
Link can be configurable include string in /opt/etc/transmission.conf
Wish: change timestamp to unix date +%s to be able to calculate auto unseed time


Post your updated .CGI here and I can include this in future release.

shag3doo
12-04-2007, 02:48
Hi,

I've been using my wl500gp for a while and so far so good. except that the speed is not that acceptable. I noticed that when you press the info button, there's only one tracker displayed. does this mean that transmission is not connecting to all the trackers available for the specific torrent file?

is there a way to hack this to get more peers?

Thanks

shag3doo
12-04-2007, 03:12
make sure syslog is running and your transmission.conf is pointed to /opt/var/log/messages

oleo
12-04-2007, 06:42
Transmission can handle multitracker as well as peer exchange aka PEX protocol like Azureus.

wengi
19-04-2007, 13:51
Me again :D

Feature request for transmission:

ATM transmission is running even if there are no torrents at all.
no downloading, no seeding.

172 ? SNs 0:00 transmissiond -p 65534 -w 300 -u 40 -d 400 -i /opt/var/run/transmission.pid /tmp/harddisk/torrent/active-torrents.txt
174 ? SN 0:00 \_ transmissiond -p 65534 -w 300 -u 40 -d 400 -i /opt/var/run/transmission.pid /tmp/harddisk/torrent/active-torrents.txt
175 ? SN 0:00 \_ transmissiond -p 65534 -w 300 -u 40 -d 400 -i /opt/var/run/transmission.pid /tmp/harddisk/torrent/active-torrents.txt
177 ? RN 0:00 \_ transmissiond -p 65534 -w 300 -u 40 -d 400 -i /opt/var/run/transmission.pid /tmp/harddisk/torrent/active-torrents.txt

Is it possible to exit transmission if there are no active torrents (to save system performance)?
torrent_watchdog should also only start transmission if there are active torrents. As an alternative watchdog starts transmission and transmission exits immediately.

just an idea.

wengi

oleo
19-04-2007, 23:49
If you press Pause, daemon will not be started in any way. It is rather easy to autodetect number of active torrents, but this is rare case and unneeded as Pause will do just the same. You can even simulate shutdown with killing daemon and creating "${WORK}/.paused" file.

wengi
20-04-2007, 08:20
Thank you again :)

wengi

charming
26-04-2007, 15:19
http://transmission.m0k.org/

How to implement to WL-500GP?
Thank you

wengi
27-04-2007, 07:51
- Use oleg firmware
- use ipkg
- ipkg install transmission.

There are enough howtos.

wengi

Elect
28-04-2007, 10:24
I think he want's to use the new transmission that came out recently. The one above the 0.71 version is allowed on some private trackers that banned transmission.

So, anyone who can update? :P

Elect
30-04-2007, 09:23
0.71, Bugs and Private Trackers
In light of a small handful bugs exposed in 0.70 we will be pushing out 0.71 in the near future. We predict that this version should be unblocked on most of the private trackers that it was previously banned on.

As the transmission site says. I'm on one of the private trackers that blocks it, so the upgrade to the new version would be very nice..

frankic
15-05-2007, 08:02
I got message about install tranmission

[admin@asus root]$ ipkg install transmission
Installing transmission (0.7+r1865-1) to root...
Nothing to be done
An error ocurred, return value: 1.
Collected errors:
ERROR: The following packages conflict with transmission:
torrent


any idea?

wengi
15-05-2007, 09:58
you allready have an other torrent package installed.
If you want to install transmission you have to uninstall torrent.

try 'ipkg list_installed' to see if torrent is installed.
try 'ipkg remove torrent' to remove torrent. There may be dependencies.

oleo
15-05-2007, 17:19
Transmission is updated to latest svn version although it states to tracker that it is 0.72.

Semkaa
15-05-2007, 20:53
Transmission is updated to latest svn version although it states to tracker that it is 0.72.

ipkg list
transmission - 0.7+r1865-1 - lightweight BitTorrent client and daemon with WWW interface

can you help me
how I can install 0.72 version?

wengi
16-05-2007, 06:39
have a look at this: http://trac.nslu2-linux.org/optware/search?q=transmission&wiki=on&changeset=on&ticket=on
You can see that you have the newest version installed!

And believe oleo when he writes
Transmission is updated to latest svn version

Semkaa
16-05-2007, 07:37
have a look at this: http://trac.nslu2-linux.org/optware/search?q=transmission&wiki=on&changeset=on&ticket=on
You can see that you have the newest version installed!

And believe oleo when he writes

ok thx
I'll try it today!

frank8080
16-05-2007, 16:07
I have installed the program and it seems that it works, but
1) I can't display the graph of the throughtput information.:confused:
2) show error when I Click on the "source/work/target":confused:

Can anyone please help !!!

oleo
16-05-2007, 22:46
Visit http://wl500g.info/showthread.php?t=6823 for similar problem of nonexistent directory.

frank8080
17-05-2007, 18:49
Thanks oleo, it works after I install:
1) gnuplot_4.2.rc2-5_mipsel.ipk
2) uclibc-opt_0.9.28-12_mipsel.ipk

Thanks!!!

Gerdi
31-05-2007, 23:36
In the web interface of transmission:

My links: "source" "work" and "target" are not valid.
(Also "URL" doesn't work)

Is it because my username is root instead of admin?

Where can I correct it?

oleo
01-06-2007, 07:32
This depends on your http daemon. If you are using busybox_httpd then there is no autodir feature and links are preaty useless. If thttpd is used the you can create symlinks to directories and enable follow symlinks in config. Same goes to other servers. Anyway this links are not regarded as a feature but rather useless convenience.

Gerdi
01-06-2007, 09:58
Thanks a lot (Oleg and Wengi)!

Both of you do a very nice job.
How can I be thankful to you?

jrosado
13-07-2007, 22:05
Hi:

sometimes, i put transmission pushing a torrent file. After a few hours or on the next day, when i go see how it is, the torrent simply is missing on the list and the folder where it should go (inside the target folder) is simply empty :eek: No file at all...Anyone with the same strange events? :confused:

avberk
16-07-2007, 17:00
I haven't had this problem before. Are you running on an older version of transmission maybe?

The most annoying problem with transmission i have encountered so far are:

-Sometimes the download stops although there are enough seeders. (i solve it by hitting the 'push' button twice. active->suspended->active)

It looks like 'transmission' doesn't like to encounter some type of errors. If it does it just stops. i am on transmission version 0.7+r2295-2


I am planning to go back to enhanced-ctorrent when seaky's sctcs version 1.0 web front end is final.

jrosado
17-07-2007, 22:38
Maybe your are right. My version is 0.7+r1874-1. I do have that same problem of torrents stopping sometimes :(

I did try to make the upgrade (using ipkg upgrade), but i got the message:

Nothing to be done
Successfully terminated.

oleo
21-07-2007, 09:23
This is a known problem that occurs only if you upgrade in the middle of torrent download. I suggest to copy torrent back to source, purge stalled torrent and start freshly.

Versions after r1888 changed file checkup to serializing.

avberk
31-07-2007, 08:50
I tried to use another user than root or admin by adapting
transmision.conf, but...

After i reboot the wl500g and start a torrent, the files are still
owned by de root/admin user.

Am i doing something wrong? :confused:

oleo
31-07-2007, 20:44
work files should be owned by root. watchdog changes to user specified.

avberk
01-08-2007, 12:56
Hi Oleo,

I want to be able to delete those files via ftp, but since
i cannot use the root user for an ftp (vsftpd) connection i also cannot delete those torrent files via ftp.

Do you have an idea how i can solve this ftp dillema?

Wessie
02-08-2007, 08:08
I was happy to see a working log, plot and transmission deamons after a few setup problems, but now I get the following error in the transmission list "Error: Generic I/O error Start: 02 Aug 08:50 uploaded: 0.0 MB".

If i look in the list just after starting the watchdog and pressing update then the list shows the following status line
`KNOPPIX_V5.1.1DVD-2007-01-04-DE Progress: 0.00 %, 9 peers, dl from 0 (0.00 KB/s), ul to 0 (0.00 KB/s) Start: 02 Aug 08:50 uploaded: 0.0 MB`

I looked in the transmission log and there is only one line added since the start of the torrent:
"Aug 2 08:50:58 transmissiond[392]: Starting torrent /tmp/harddisk/torrent/work/KNOPPIX_V5.1.1DVD-2007-01-04-DE/KNOPPIX_V5.1.1DVD-2007-01-04-DE.torrent
Aug 2 08:51:07 transmissiond[392]: Fatal error, stopping download (-2147483584)"

What could be wrong?
I use Oleg version 1.9.2.7-7g and all packages are re-installed for ipkg-opt with the following feed:
http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable

Please help!

oleo
02-08-2007, 08:14
I suggest that you erase all files from $WORK, move .torrent to $SOURCE and start over. I've seen this issue once during upgrade in the middle. And recent changes to fast resume are completelly different so it is also recommended to erase $WORK/.transmission/cache files.
All this should be done when daemon is paused.

oleo
02-08-2007, 08:19
Here is a watchdog snippet that should be clear enough.

move_to_target ()
{
debug "Move to target"
DIRNAME="${TORRENT%/*}"
DEST="${TARGET}/${DIRNAME##*/}"

mkdir -p "${DEST}"
chmod 775 "${DEST}"
grep -q ${GROUP} /etc/group && chgrp ${GROUP} "${DEST}"
grep -q ${USER} /etc/passwd && chown ${USER} "${DEST}"

cd "${TORRENT%/*}"

grep -q ${GROUP} /etc/group && chgrp ${GROUP} * .info .status
grep -q ${USER} /etc/passwd && chown ${USER} * .info .status
chmod 775 * .info .status

notice "Moving files to: ${DEST}"
mv * .info .status "${DEST}"
chmod 775 "${DEST}"

STATUS="Ok"
}


So If you do not have proper group and user in /etc/passwd and /etc/group then changing permissions will not be taken. If tou use Oleg firmware then you shout have /etc/passwd and /etc/group specified in /usr/local/.files

I suggest to have the same group in ftp clients. Leave owner admin. chgrp and chown should have -R for recursion. Will chenge this in future releases.

Wessie
02-08-2007, 08:28
Thanks for the quick response!

I erased the files with transmission in pause mode, but it doesnīt seem to fix my problem.

Wessie
02-08-2007, 14:53
I forgot to mention that I also opened the incoming ports on the firewall.

I just wonder why I get the I/O error when the download is started. Can it be a problem of ctorrent (which is doing the real torrent DL)?

oleo
02-08-2007, 15:14
Geve us some more logs, trz different torrent. Check permissions on $WORK. Maybe you do not have write permission in $HOME to accomodate .torrent/cache files!

Wessie
02-08-2007, 20:36
1) I have tried several torrents which I first tested with the Bitcomet client.

2) I canīt find any .cache file where should it normally be created?
In the /tmp/harddisk/torrent/work directory I have the following files:
KNOPPIX_V5.1.1DVD-2007-01-04-DE
transfer.data
transfer.gnuplot

I checked the directory permissions and admin has r/w access.

3) some more logging of /opt/var/log/messages:
Aug 2 21:27:04 transmissiond[365]: 1186082824 1 dl 0.00 ul 0.00 ld 0.14
Aug 2 21:27:08 transmissiond[365]: 1186082828 1 dl 0.00 ul 0.00 ld 0.15
Aug 2 21:27:11 transmissiond[365]: 1186082831 1 dl 0.00 ul 0.00 ld 0.17
Aug 2 21:27:16 transmission_watchdog: Error from tracker
Aug 2 21:27:16 transmission_watchdog: Torrent /tmp/harddisk/torrent/work/KNOPPIX_V5.1.1DVD-2007-01-04-DE/KNOPPIX_V5.1.1DVD-2007-01-04-DE.torrent suspended
Aug 2 21:27:22 transmissiond[365]: Stopping torrent /tmp/harddisk/torrent/work/

4) I also have ctorrent installed, is this ok or is it conflicting like torrent?

thira
02-08-2007, 22:57
Hello
I use 500gP with oleg's firmware 1.9.2.7-7g with Transmission 0.7+r2474-1
I have some problems with Transmission.
- Torrent's filename with foreign characters can use with Transmission(Transmission.cgi show correct character and can load it), but filename of loaded file(s) is unreadable, I must use RenameFileFolder.exe to convert it back to my language(Thai).
- If some loading file generate too many "Piece xxxx hash FAILED", it will never finish. The Progress: will be up and down between 91.00% and 91.99%, never reach 92%. I notice that this will happen only large file(more than 4Gbs, my hd filesystem is ext3)

Thanks you for help

oleo
03-08-2007, 18:11
Post such request directly to http://transmission.m0k.org/ developers (forum or trac) but try their Linux client first.

thira
04-08-2007, 02:10
Thanks you, Oleo

avberk
04-08-2007, 16:08
Thanks for the help!
I'll try to figure it out.

Wessie
05-08-2007, 09:36
It works!

The problem was:
The torrent directory paths were pointing at a FAT32 partition.
the FAT32 filesystem was mounted on /tmp/harddisk/torrent and I think that transmission needs a ext2 or ext3 filesystem.

The Fix:
I changed the torrent locations $source, $work and $target to /tmp/harddisk/part1/torrent/ (this is a ext3 filesystem) and now everything runs fine!