[solved - uClibc] Transmission 2.04 can`t start

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
hooky-mars
Posts: 6
Joined: Sun Oct 03, 2010 9:00 am

[solved - uClibc] Transmission 2.04 can`t start

Post by hooky-mars »

Hello world! :D

I have box with:

Code: Select all

# cat /proc/cpuinfo
system type             : Realtek Venus
processor               : 0
cpu model               : MIPS 4KEc V6.12
BogoMIPS                : 202.34
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : yes
hardware watchpoint     : yes
ASEs implemented        :
VCED exceptions         : not available
VCEI exceptions         : not available
BusyBox v1.1.3
Linux Venus 2.6.12.6-VENUS
uclibc 0.9.28
libevent 1.4.12
openssl 1.0.0
zlib 1.2.5
curl 7.21.1
transmission-daemon 2.04
After I ran "transmission-daemon -g etc/transmission -t -u mars -v 12345 -a 192.168.1.2 -f".... it is nothing doing

Code: Select all

#transmission-daemon -g etc/transmission -t -u mars -v 12345 -a 192.168.1.2 -f
_
Another console:

Code: Select all

# ps | grep trans
  334 root        912 S   transmission-daemon -g etc/transmission -t -u mars -v
  335 root        912 S   transmission-daemon -g etc/transmission -t -u mars -v
  336 root        912 R   transmission-daemon -g etc/transmission -t -u mars -v
  353 root        304 S   grep trans 
# kill -9 334

Code: Select all

#transmission-daemon -g etc/transmission -t -u mars -v 12345 -a 192.168.1.2 -f
Killed
How I compile transmission:

Code: Select all

#!/bin/sh
BASE=$HOME/SOFT/new1/bin
COMPILE=$HOME/soft/mipsel-unknown-linux-uclibc
export CC=mipsel-unknown-linux-uclibc-gcc
export AR=mipsel-unknown-linux-uclibc-ar
export PATH=$COMPILE/bin:$PATH
export LIBCURL_CFLAGS=-I$COMPILE/mipsel-unknown-linux-uclibc/include/curl
export OPENSSL_CFLAGS=-I$COMPILE/mipsel-unknown-linux-uclibc/include/openssl
export LIBCURL_LIBS=-"L$COMPILE/mipsel-unknown-linux-uclibc/lib -lcurl"
export OPENSSL_LIBS=-"L$COMPILE/mipsel-unknown-linux-uclibc/lib -lcrypto"
export CFLAGS=-Os
../configure --host=mipsel-unknown-linux-uclibc --target=mipsel-unknown-linux-uclibc \
      --prefix=$BASE \
      --libdir=$COMPILE/mipsel-unknown-linux-uclibc/lib \
      --includedir=$COMPILE/mipsel-unknown-linux-uclibc/include \
      --disable-gtk --disable-cli \
      --disable-nls --enable-daemon
make
make install
Where does I have mistake?

I look forward to hearing from you!
gunzip
Posts: 272
Joined: Wed May 05, 2010 2:12 am

Re: Transmission can`t start

Post by gunzip »

hooky-mars wrote:After I ran "transmission-daemon -g etc/transmission -t -u mars -v 12345 -a 192.168.1.2 -f" ... it is nothing doing
maybe nothing is wrong. it appears you started the dameon but you never added a torrent so it has nothing to do. i would kill all but one instance of transmission-daemon process, and try adding a torrent

Code: Select all

# transmission-remote -a name.torrent
# transmission-remote -l
the first line adds a torrent, the second lists active torrents.

check "transmission-remote -h" for more info
hooky-mars
Posts: 6
Joined: Sun Oct 03, 2010 9:00 am

Re: Transmission can`t start

Post by hooky-mars »

When I use -f option, transmission-daemon must print into the console same rows. For example:

Code: Select all

#transmission-daemon -g etc/transmission -t -u mars -v 12345 -a 192.168.1.2 -f
Start Transmission
....
But transmission doesn't do it!
And transmission must open socket on port 9091, but it doesn't happen
gunzip
Posts: 272
Joined: Wed May 05, 2010 2:12 am

Re: Transmission can`t start

Post by gunzip »

hooky-mars wrote:When I use -f option, transmission-daemon must print into the console same rows. For example:

#transmission-daemon -g etc/transmission -t -u mars -v 12345 -a 192.168.1.2 -f
Start Transmission
....
But transmission doesn't do it!
i tried -f option here and i got no "Start Transmission" as you claim. in fact nothing was printed .. i believe only errors, if they exist, output to console.

looking back on your ./configure you have --disable-cli option. if you don't presently have the executable transmission-remote, which is used to communicate with the daemon, maybe you should re-run the install with "./configure --enable-cli" and see if it makes a difference.
hooky-mars
Posts: 6
Joined: Sun Oct 03, 2010 9:00 am

Re: Transmission can`t start

Post by hooky-mars »

Thank you for your replies!

But you are wrong. Because I compiled transmission-demon for Ubuntu 10.04 today.
This is result:

Code: Select all

#transmission-daemon -f
[08:11:30.534] Transmission 2.04 (11151) started (../../libtransmission/session.c:622)
[08:11:30.534] RPC Server Adding address to whitelist: 192.168.1.2 (../../libtransmission/rpc-server.c:767)
[08:11:30.534] RPC Server Serving RPC and Web requests on port 9091 (../../libtransmission/rpc-server.c:940)
[08:11:30.534] RPC Server Whitelist enabled (../../libtransmission/rpc-server.c:944)
[08:11:30.534] RPC Server Password required (../../libtransmission/rpc-server.c:947)
[08:11:30.534] Couldn't bind port 51413 on 0.0.0.0: Address already in use (Is another copy of Transmission already running?) (../../libtransmission/net.c:381)
[08:11:30.534] Couldn't bind port 51413 on ::: Address already in use (Is another copy of Transmission already running?) (../../libtransmission/net.c:381)
[08:11:30.534] Using settings from "/home/hooky-mars/.config/transmission-daemon" (../../daemon/daemon.c:443)
[08:11:30.534] Saved "/home/hooky-mars/.config/transmission-daemon/settings.json" (../../libtransmission/bencode.c:1651)
[08:11:30.534] transmission-daemon requiring authentication (../../daemon/daemon.c:461)
[08:11:30.534] Port Forwarding (NAT-PMP) initnatpmp succeeded (0) (../../libtransmission/natpmp.c:67)
[08:11:30.534] Port Forwarding (NAT-PMP) sendpublicaddressrequest succeeded (2) (../../libtransmission/natpmp.c:67)
[08:11:32.534] Port Forwarding (UPnP) Found Internet Gateway Device "http://192.168.1.1:5431/uuid:0000e018-d0a0-00e0-60a0-48e802e86048/WANPPPConnection:1" (../../libtransmission/upnp.c:113)
[08:11:32.534] Port Forwarding (UPnP) Local Address is "192.168.1.2" (../../libtransmission/upnp.c:115)
[08:11:32.534] Port Forwarding (UPnP) Port forwarding through "http://192.168.1.1:5431/uuid:0000e018-d0a0-00e0-60a0-48e802e86048/WANPPPConnection:1", service "urn:schemas-upnp-org:service:WANPPPConnection:1".  (local address: 192.168.1.2:51413) (../../libtransmission/upnp.c:202)
[08:11:32.535] Port Forwarding (UPnP) Port forwarding successful! (../../libtransmission/upnp.c:205)
[08:11:32.535] Port Forwarding State changed from "Not forwarded" to "Forwarded" (../../libtransmission/port-forwarding.c:89)

Another console:

Code: Select all

#nmap 192.168.1.2

Starting Nmap 5.21 ( http://nmap.org ) at 2010-10-05 08:11 MSD
Nmap scan report for 192.168.1.2
Host is up (0.00036s latency).
Not shown: 996 closed ports
PORT     STATE SERVICE
21/tcp   open  ftp
22/tcp   open  ssh
80/tcp   open  http
9091/tcp open  unknown    <--- transmission-daemon
So, do you have other ideas?
Why does transmission-daemon don't work with uclibc 0.9.28?
gunzip
Posts: 272
Joined: Wed May 05, 2010 2:12 am

Re: Transmission can`t start

Post by gunzip »

Code: Select all

$ transmission-daemon --config-dir /home/john/.config/transmissioncli/ --logfile /home/john/.config/transmissioncli/messages.log -f

(no console output)

OK i guess the -f option didn't produce any output for me as everything was directed to the log file.
hooky-mars wrote:So, do you have other ideas?
Why does transmission-daemon don't work with uclibc 0.9.28?
No, i have no idea about that. but hopefully one of the transmission developers will see this thread and give you some expert help.
hooky-mars
Posts: 6
Joined: Sun Oct 03, 2010 9:00 am

Re: Transmission can`t start

Post by hooky-mars »

May be I didn't correct to compile other libraries.
zlib

Code: Select all

#!/bin/sh
BASE=$HOME/SOFT/new1/bin
COMPILE=$HOME/soft/mipsel-unknown-linux-uclibc
export PATH=$COMPILE/bin:$PATH
export CC=mipsel-unknown-linux-uclibc-gcc
export AR=mipsel-unknown-linux-uclibc-ar
make clean
./configure --shared --prefix=$BASE \
            --libdir=$COMPILE/mipsel-unknown-linux-uclibc/lib \
            --includedir=$COMPILE/mipsel-unknown-linux-uclibc/include
make all libz.a
make install
openssl

Code: Select all

#!/bin/sh
BASE=$HOME/SOFT/new1/bin
COMPILE=$HOME/soft/mipsel-unknown-linux-uclibc
INSTALLTOP=$BASE
OPENSSLDIR=$BASE
export PATH=$COMPILE/bin:$PATH
export CC=mipsel-unknown-linux-uclibc-gcc
export AR=mipsel-unknown-linux-uclibc-ar r
export RANLIB=mipsel-unknown-linux-uclibc-ranlib
./Configure --prefix=$BASE \
            linux-generic32 -DL_ENDIAN  -DOPENSSL_EMBED \
            shared zlib-dynamic
make clean
make depend
make build_libs
make install
curl

Code: Select all

COMPILE=$HOME/soft/mipsel-unknown-linux-uclibc
BASE=$HOME/SOFT/new1/bin
export CC=mipsel-unknown-linux-uclibc-gcc
export AR=mipsel-unknown-linux-uclibc-ar
export as=mipsel-unknown-linux-uclibc-as
export ranlib=mipsel-unknown-linux-uclibc-ranlib
export PATH=$COMPILE/bin:$PATH
make clean
./configure CFLAGS=-Os --enable-shared --prefix=$BASE \
            --host=mipsel-linux-uclibc \
            --libdir=$BASE/mipsel-unknown-linux-uclibc/lib \
            --includedir=$BASE/mipsel-unknown-linux-uclibc/include \
            --disable-ipv6 --disable-proxy --disable-verbose \
            --enable-hiden-symbols --with-random=/dev/urandom \
            --disable-manual --disable-telnet
make
make install
libevent

Code: Select all

#!/bin/sh
BASE=$HOME/SOFT/new1/bin
COMPILE=$HOME/soft/mipsel-unknown-linux-uclibc
export PATH=$COMPILE/bin:$PATH
export CC=mipsel-unknown-linux-uclibc-gcc
export AR=mipsel-unknown-linux-uclibc-ar
../configure --prefix=$BASE \
            --libdir=$COMPILE/mipsel-unknown-linux-uclibc/lib \
            --includedir=$COMPILE/mipsel-unknown-linux-uclibc/include \
            --host=mipsel-linux-uclibc
make all
make install
hooky-mars
Posts: 6
Joined: Sun Oct 03, 2010 9:00 am

Re: Transmission can`t start

Post by hooky-mars »

May be, is this help?

Code: Select all

#gdb transmission-daemon
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "mipsel-linux-uclibc"...
(gdb) start -g /tmp/hdd/volumes/HDD2/etc/transmission -t -u mars -v 12345 -a 192.168.1.2
Breakpoint 1 at 0x409880: file ../../daemon/daemon.c, line 314.
Starting program: /tmp/hdd/volumes/HDD2/bin/transmission-daemon -g etc/transmission -t -u mars -v 12345 -a 192.168.1.2
warning: Cannot initialize thread debugging library: generic error
warning: Cannot initialize thread debugging library: generic error
warning: Cannot initialize thread debugging library: generic error
main (argc=0, argv=0x0) at ../../daemon/daemon.c:314
314     ../../daemon/daemon.c: No such file or directory.
        in ../../daemon/daemon.c
(gdb) stop
(gdb) quit
The program is running.  Exit anyway? (y or n) y
KyleK
Posts: 57
Joined: Fri Feb 29, 2008 10:41 pm

Re: Transmission can`t start

Post by KyleK »

You need to update your version of uClibc. I had the very same issue on a NAS, upgrading to v0.9.29 fixed the issue.

And the gdb error you get is a uClibc problem as well, although I haven't found a solution for that yet.
hooky-mars
Posts: 6
Joined: Sun Oct 03, 2010 9:00 am

Re: [solved - uClibc] Transmission 2.04 can`t start

Post by hooky-mars »

Thank you for your reply!

Unfortunatly, I can't change uclibc :cry: I can only use "chroot" with another uclibc.
Post Reply