Page 1 of 3 123 LastLast
Results 1 to 15 of 39

Thread: Transmission Setup Help

  1. #1

    Transmission Setup Help

    I'm trying to get Transmission working on my WL-500gx. I have a flash drive setup as /opt and installed the transmission package off of ipkg.

    I also setup thttpd; however, when I try to access the CGI I receive the following error message: "The requested URL '/cgi-bin/transmission.cgi' resolves to a file which is marked executable but is not a CGI file; retrieving it is forbidden."

    I also copied a file into the configured source directory and processing never occurs.

    Can anyone give me insight on getting this working?

  2. #2
    I think I'm a little farther. I updated transmission today which placed a nice index in the www root. I also noticed that this package uses busybox_httpd so I didn't need to install and setup thttpd.

    I've uninstalled thttpd and am now trying to access the CGI script from the busybox_httpd server which now appears to be running the script. However, I'm now receiving the following error:

    /opt/share/www/cgi-bin/transmission.cgi: /opt/share/www/cgi-bin/transmission.cgi: 224: Syntax error: redirection unexpected


    Any help would be appreciated.

  3. #3
    Do you have your work directory and configuration file set up properly?

  4. #4
    I've attached my config I'm using.

    Code:
    #   Configuration
    #   NOTE: no spaces around the = sign
    #   the config will be sourced (eg. . transmission.conf)
    
    SOURCE=/opt/torrents/source
    WORK=/opt/torrents/work
    TARGET=/opt/torrents/target
    #MAILTO=torrent@somedomain.com
    #MAILFROM=torrent@somedomain.com
    MAILOPT="-smail.somedomain.com -f"
    USER=admin
    GROUP=root
    DATE_FORMAT="%d %h %H:%M"
    
    # Transmission daemon variables
    PIDFILE=/opt/var/run/transmission.pid
    ACTIVE=/opt/torrents/active-torrents.txt
    HOME=/opt/torrents
    WATCHDOG=300
    LISTENING_PORT=65534
    # set SPEED in kB/s or -1 for unlimited
    UPLOAD_SPEED=-1
    DOWNLOAD_SPEED=-1
    #UPLOAD_SPEED=41
    #DOWNLOAD_SPEED=180
    # change SYSLOG from /tmp/syslog.log to
    SYSLOG=/opt/var/log/messages
    
    #Uncomment the following for UPNP NAT traversal
    #NAT_TRAVERSAL=--nat-traversal
    
    # Seed torrent after completition (YES or NO)
    AUTOSEED="YES"
    
    # Creating graphical log of transfer with gnuplot
    # can be very site specific issue. See transmission.cgi
    # how this variables are used.
    GNUPLOT=/opt/bin/gnuplot
    GNUPLOT_COMMAND=${WORK}/transfer.gnuplot
    GNUPLOT_DATA=${WORK}/transfer.data
    GNUPLOT_OUTPUT=/opt/share/www/transfer.png
    HTTP_IMG_LOCATION=../transfer.png
    #TZ offset in seconds. Use +- sign. DST manually
    TIMEZONE_OFFSET=+3600
    
    #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'm using a new install of the 1.9.2.7-7f firmware. I have a usb flash drive setup and mapped to /opt and also used for swap that I'm testing this with before I get an enclosure.

    I'm using the default unslung ipkg feed from: http://ipkg.nslu2-linux.org/feeds/unslung/wl500g

    I also have the following packages installed.
    Code:
    expat - 2.0.0-6 - XML Parser library
    fontconfig - 2.3.2-4 - Font configuration library
    freetype - 2.1.10-4 - Free truetype library
    gconv-modules - 2.2.5-6 - Provides gconv modules missing from the firmware.  These are used by glibc's iconv() implementation.
    gnuplot - 4.2.rc2-5 - Command-line driven interactive data and function plotting utility
    ipkg - 0.99.149-2 - lightweight package management system
    libgd - 2.0.33-3 - An ANSI C library for the dynamic creation of images
    libjpeg - 6b-2 - collection of jpeg tools
    libpng - 1.2.15-2 - Portable Network Graphics Libraries
    libstdc++ - 0.2.0-6 - =Standard C++ library, wrapped for uClibc++
    libuclibc++ - 0.1.12-4 - C++ standard library designed for use in embedded systems
    nano - 2.0.2-1 - A pico like editor
    ncurses - 5.6-1 - NCurses libraries
    openssl - 0.9.7l-3 - Openssl provides the ssl implementation in libraries libcrypto and libssl, and is needed by many other applications and librari
    readline - 5.2-2 - The GNU Readline library provides a set of functions for use by applications that allow users to edit command lines as they are
    transmission - 0.6+r1378-4 - lightweight BitTorrent client and daemon with WWW interface
    zlib - 1.2.3-2 - zlib is a library implementing the 'deflate' compression system.
    Any idea on what the problem could be?
    Code:
    drwxr-xr-x    5 admin    root         4096 Jan 18 19:30 torrents
    
    drwxr-xr-x    2 admin    root         4096 Jan 18 19:30 source
    drwxr-xr-x    2 admin    root         4096 Jan 18 19:30 target
    drwxr-xr-x    2 admin    root         4096 Jan 18 19:30 work

  5. #5
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    you need to add cgipat

    Code:
    $ cat /opt/etc/thttpd.conf
    dir=/opt/share/www
    port=80
    user=admin
    nochroot
    nosymlink
    charset=iso-8859-2
    cgipat=cgi-bin/*
    novhost
    logfile=/opt/var/log/thttpd.log
    pidfile=/opt/var/run/thttpd.pid

  6. #6
    Quote Originally Posted by SScorpio View Post
    /opt/share/www/cgi-bin/transmission.cgi: /opt/share/www/cgi-bin/transmission.cgi: 224: Syntax error: redirection unexpected


    Any help would be appreciated.
    I've got the same error after upgrade from transmission_0.6+r1320-1 to transmission_0.6+r1378-4.

  7. #7
    Thanks maros,

    I just rolled back to 1320 rather than 1378 and everything appears to be functioning correctly.

  8. #8
    Quote Originally Posted by SScorpio View Post
    Thanks maros,

    I just rolled back to 1320 rather than 1378 and everything appears to be functioning correctly.
    Transmission-0.6+r1378-5 fixes this bug.

  9. #9
    Yes Transmission-0.6+r1378-5 is now running the CGI interface like it should.

    I place torrents in the source folder via samba and do a push on them to active and they are moved to the working folder.

    At this point it never appears that they start. I see three processes of "transmissiond -p 58431 -w 300 -u -1 -d -1 -i /opt/var/run/transmission.pid /opt/torrents/active-torrents"; however, the .status files are never created and the log only contains:

    Jan 20 15:57:10 transmission_watchdog: Transmission daemon restarted!
    Jan 20 15:57:10 transmissiond[278]: Transmission daemon 0.7-svn (1378) started - http://transmission.m0k.org/

    The transmissiond processes stay active; however, it does not appear that anything ever downloads and transfer.data file is always empty.

    I am using public trackers that shouldn't care about the client and I have the port forwarded correctly.

  10. #10
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    Snipet from help file:
    Known bugs:
    * There is a problem with fork and pthreads in uclibc 0.9.19
    See http://www.busybox.net/lists/uclibc/...ch/005825.html
    This affect only users of Oleg firmware on Asus routers with
    http://ipkg.nslu2-linux.org/feeds/op.../cross/stable/
    package feed. Users are instructed to switch to
    http://ipkg.nslu2-linux.org/feeds/op.../cross/stable/
    which uses newer uClibc 0.9.28 and NLPT or change transmission_watchdog
    daemon startup code to

    nohup transmissiond -v 1 -p ${LISTENING_PORT} \
    -w ${WATCHDOG} \
    -u ${UPLOAD_SPEED} \
    -d ${DOWNLOAD_SPEED} \
    -i ${PIDFILE} ${ACTIVE} 2> /dev/null &

    which will spawn daemon in foreground mode and trash error messages.
    7. Tried manually pressing watchdog for nothing. Im still having that text under the buttons on the script page : /opt/share/www/cgi-bin/transmission.cgi: kill: 624: (249) - No such process .
    It looks like daemon died for some reason. Take a look into syslog messages.
    The recommended way for running is using "Oleg" feed and not default "wl500g".

  11. #11
    Quote Originally Posted by SScorpio View Post
    Yes Transmission-0.6+r1378-5 is now running the CGI interface like it should.

    I place torrents in the source folder via samba and do a push on them to active and they are moved to the working folder.

    At this point it never appears that they start. I see three processes of "transmissiond -p 58431 -w 300 -u -1 -d -1 -i /opt/var/run/transmission.pid /opt/torrents/active-torrents"; however, the .status files are never created and the log only contains:

    Jan 20 15:57:10 transmission_watchdog: Transmission daemon restarted!
    Jan 20 15:57:10 transmissiond[278]: Transmission daemon 0.7-svn (1378) started - http://transmission.m0k.org/

    The transmissiond processes stay active; however, it does not appear that anything ever downloads and transfer.data file is always empty.

    I am using public trackers that shouldn't care about the client and I have the port forwarded correctly.
    Can't confirm. It works for me.

    Try to kill the transmissiond, then run "sh -x /opt/sbin/transmission_watchdog" and check the output for errors.

  12. #12
    Manually running the watchdog did not produce any errors.

    I took oleo's advice and switched over to the oleg branch rather than the default wl500g branch and installed the new uLibC. After messing around to get everything setup correctly again I am now downloading torrents using the latest version of Transmission.

    Everyone, thank you for all of the help.

  13. #13
    Hi,
    I installed lighttpd and php along this tutorial
    http://wl500g.info/showthread.php?t=5247 and this works.
    Now I would like to use transmission how-to start it.I installed it but what's now how can i to run web-gui and how to start download torrents.
    Can someone to write little tutorial please?

    thanks very much
    Last edited by greengreen; 30-01-2007 at 14:05.

  14. #14
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    You can improve wiki at http://www.nslu2-linux.org/wiki/Optware/Transmission with your comments.

    For Oleg firmware there is no need for other httpd as busybox_httpd is enough.
    Last edited by oleo; 30-01-2007 at 15:19.

  15. I have read everything many many times and reinstalled everything several times. Still can't get it running. Can't access the page at the transmission address.

    Haven't find a clear installation instruction...

Page 1 of 3 123 LastLast

Similar Threads

  1. Torrentflux mod, controls Transmission - can someone package it?
    By nant15 in forum WL-500g Custom Development
    Replies: 5
    Last Post: 14-11-2006, 19:49
  2. How to setup Speedtouch 246 to the Asus wl-700gE
    By ronnylar in forum WL-700g Q&A
    Replies: 5
    Last Post: 14-11-2006, 17:11
  3. What setup should I go for?
    By FixXxeR in forum WL-500gP Q&A
    Replies: 0
    Last Post: 07-08-2006, 19:28
  4. how to setup the router as acces point
    By arnold in forum WL-500g Q&A
    Replies: 0
    Last Post: 22-02-2006, 13:34
  5. Replies: 0
    Last Post: 10-02-2006, 17:46

Posting Permissions

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