Deluge (daemon mode) seems to crash oftenly

General support for problems installing or using Deluge
Xi0N
Member
Member
Posts: 48
Joined: Mon Oct 06, 2008 7:23 am

Deluge (daemon mode) seems to crash oftenly

Postby Xi0N » Fri Feb 20, 2009 9:45 am

I have a headless server running debian 5.0 without any graphical window manager or any x server running on it.
I just followed the instructions in the README inside the source file downloaded ftom http://download.deluge-torrent.org/source/1.1.3/

Code: Select all

sudo apt-get install g++ make python-all-dev python-all python-dbus \
    python-gtk2 python-notify librsvg2-common python-xdg python-support \
    subversion libboost-dev libboost-python-dev libboost-iostreams-dev \
    libboost-thread-dev libboost-date-time-dev libboost-filesystem-dev \
    libboost-serialization-dev libssl-dev zlib1g-dev python-setuptools

The names of the packages may vary depending on your OS / distro.

Once you have the needed libraries installed, build and install by running:

   $ python setup.py build
   $ sudo python setup.py install


All went really well... Deluge got compiled and installed properly.

Then, i created the file under /etc/rc.d/deluged with this content:

Code: Select all

#!/bin/sh
# Headless deluge startup script

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DELUGE="/usr/bin/deluge"
DELUGE_OPTIONS="-u web"
USER="myusername"    #Please change

DELUGEDAEMON="/usr/bin/deluged"
DESC1="Deluge Daemon"
DESC2="WebUi"
NAME1="deluged"
NAME2="Deluge webserver"

set -e


case "$1" in
  start)
        echo -n "Starting $DESC1 : "
        start-stop-daemon -c $USER --start --background --quiet --exec $DELUGEDAEMON
        echo "$NAME1"
        sleep 2
        echo -n "Starting $DESC2 : "
        start-stop-daemon -c $USER --start --background --quiet --exec $DELUGE -- ${DELUGE_OPTIONS}
        echo "$NAME2"
        ;;
  stop)
        echo -n "Stopping $DESC1 : "
        PIDDELUGE=`ps ax |grep deluged |sed -n 1p |awk '{print $1}'`
        kill $PIDDELUGE
        echo "$NAME1."
        echo -n "Stopping $DESC2 : "
        PIDWEB=`ps ax |grep deluge |sed -n 2p |awk '{print $1}'`
        kill $PIDWEB
        echo "$NAME2."
        ;;
  *)
        N=deluge-daemon
        echo "Usage: $N {start|stop|restart}" >&2

        exit 1
        ;;
esac

exit 0


And, whenever i want to start it, i do it through webmin. Anyway, it does something equivalent to /etc/rc.d/deluged start

Deluge starts properly and i connect to the web interface without any problem... i add some torrents and so... but sometimes, unexpectedly, the daemon just stops working suddenly... and i have to restart the whole daemon again.. it has to do file chechking for the torrents that were downloading in the moment of the crash and so...

Can anyone tell me how to get a backtrace or an error report for knowing what exactly happens everytime deluge crashes?
I also want to share this outputs here for getting deluge daemon and web interface better (even that what it already is :P)

Thank you very much!!

gamerzz
New User
New User
Posts: 7
Joined: Tue Dec 02, 2008 6:37 am

Re: Deluge (daemon mode) seems to crash oftenly

Postby gamerzz » Fri Feb 20, 2009 1:38 pm

I'm having the same crash once or twice a day since 1.12, I'll activate logging and post the next crash soon...

Xi0N
Member
Member
Posts: 48
Joined: Mon Oct 06, 2008 7:23 am

Re: Deluge (daemon mode) seems to crash oftenly

Postby Xi0N » Fri Feb 20, 2009 7:47 pm

gamerzz wrote:I'm having the same crash once or twice a day since 1.12, I'll activate logging and post the next crash soon...



I want to do same...... how can i activate logging, and where to take the logs from?

johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: Deluge (daemon mode) seems to crash oftenly

Postby johnnyg » Fri Feb 20, 2009 9:44 pm

Xi0N wrote:
gamerzz wrote:I'm having the same crash once or twice a day since 1.12, I'll activate logging and post the next crash soon...



I want to do same...... how can i activate logging, and where to take the logs from?


http://dev.deluge-torrent.org/wiki/Faq# ... tshouldIdo

Xi0N
Member
Member
Posts: 48
Joined: Mon Oct 06, 2008 7:23 am

Re: Deluge (daemon mode) seems to crash oftenly

Postby Xi0N » Fri Feb 20, 2009 11:19 pm

You mean deleting the program's configurations and reconfiguring it all over again may fix it?

johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: Deluge (daemon mode) seems to crash oftenly

Postby johnnyg » Fri Feb 20, 2009 11:25 pm

possibly but before doing that post us some logs (it's the last section on the faq).
also do you have upnp enabled? apparently it has been causing the daemon to crash.

Xi0N
Member
Member
Posts: 48
Joined: Mon Oct 06, 2008 7:23 am

Re: Deluge (daemon mode) seems to crash oftenly

Postby Xi0N » Sat Feb 21, 2009 12:56 am

Here you have a log of what happened (after resetting the whole program):

http://pastebin.com/m2ec32d5

I hope it helps :(
The program allways lasts less than 10 minutes....

Xi0N
Member
Member
Posts: 48
Joined: Mon Oct 06, 2008 7:23 am

Re: Deluge (daemon mode) seems to crash oftenly

Postby Xi0N » Sun Feb 22, 2009 4:02 pm

Any word on this issue? I can download nothing... :(

andar
Top Bloke
Top Bloke
Posts: 1050
Joined: Fri Jun 08, 2007 8:38 pm
Location: Victoria, BC
Contact:

Re: Deluge (daemon mode) seems to crash oftenly

Postby andar » Mon Feb 23, 2009 3:17 am

The logs don't really help much in this situation.. It seems like libtorrent is crashing so you'll need to start deluged in gdb and get a backtrace when it crashes.

Code: Select all

gdb --args python /usr/bin/deluged -d
run
(once it crashes)
bt

Xi0N
Member
Member
Posts: 48
Joined: Mon Oct 06, 2008 7:23 am

Re: Deluge (daemon mode) seems to crash oftenly

Postby Xi0N » Mon Feb 23, 2009 7:20 am

Code: Select all

GNU gdb 6.8-debian
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 "i486-linux-gnu"...
(no debugging symbols found)
(gdb) run
Starting program: /usr/bin/python /usr/bin/deluged -d
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[New Thread 0xb7e278c0 (LWP 2528)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
---Type <return> to continue, or q <return> to quit---
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)

Program exited normally.
(gdb) bt
No stack.
(gdb)


I think i have to recompile deluge with some special arguments to be able to use gbd, dont i?


Return to “Support”

Who is online

Users browsing this forum: No registered users and 12 guests