Page 1 of 5 123 ... LastLast
Results 1 to 15 of 67

Thread: Understanding and debugging Transmission [oleo?]

  1. #1
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt
    Posts
    1,548

    Question Understanding and debugging Transmission [oleo?]

    Hi,

    im am running a WL-HDD with Olegs firmware and transmission. (details here, sorry for german).

    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

  2. #2
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    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.
    1. .cgi UI interface that moves files arround
    2. _watchdog takes care for queueing and watches for daemon
    3. daemon reads active-torrents.txt file and outputs some info on its state


    What do you want to debug?

  3. #3
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt
    Posts
    1,548
    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
    Last edited by wengi; 01-03-2007 at 17:34.

  4. #4
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    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
    Code:
    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.
    Last edited by oleo; 01-03-2007 at 19:16. Reason: daemon debug

  5. #5
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt
    Posts
    1,548
    [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
    Code:
    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
    Last edited by wengi; 02-03-2007 at 09:46.

  6. #6
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    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

  7. #7
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt
    Posts
    1,548
    "Who let the (watch)dogs out...." Thank you

    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.
    Last edited by wengi; 02-03-2007 at 13:06.

  8. #8
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    1. 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
    2. All units are in kBytes
    3. ln -s /tmp/harddisk/torrent /opt/share/www if you are using thttpd or similar httpd that knows hout to autodir index page.
    4. 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?
    5. There is an option to disable autoseed in .conf, but then you should push all the seeds by yourself.

  9. #9
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt
    Posts
    1,548
    Quote Originally Posted by oleo
    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?

    Quote Originally Posted by oleo
    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

    Quote Originally Posted by oleo
    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
    -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.

    Quote Originally Posted by oleo
    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.
    Last edited by wengi; 02-03-2007 at 14:58.

  10. #10
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    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
    Code:
    #!/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"

  11. #11
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt
    Posts
    1,548
    Daemon writes marks every WATCHDOG=300 seconds = 5 minutes.
    Not on my system:
    Code:
    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

  12. #12
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    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?

  13. #13
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt
    Posts
    1,548
    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...

  14. #14
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    HUh. send me PM with ssh access to your router. Then I can figure out.

  15. #15
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt
    Posts
    1,548
    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...

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

    Quote Originally Posted by oleo View Post
    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.

    Quote Originally Posted by oleo View Post
    FYI. I am running wathdog every hour from cron. Not even half an hour.
    Done.

    Quote Originally Posted by oleo View Post
    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
    Last edited by wengi; 04-03-2007 at 09:07.

Page 1 of 5 123 ... LastLast

Posting Permissions

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