Page 1 of 1

Deluge not generating Logs. Other issues, but no logs

Posted: Sat Mar 29, 2014 6:30 pm
by aSystemOverload
Hi,
libtorrent v: 0.15.10.0
Deluged Version: {1.3.3-2+nmu1}
{Linux rasp001 3.10.25+ #622 PREEMPT Fri Jan 3 18:41:00 GMT 2014 armv6l GNU/Linux}.

I've set up logging as detailed below, but no files are being generated in the specified folder.

I did the following for permissions:

Code: Select all

sudo mkdir -p /var/log/deluge
sudo chown -R deluge:deluge /var/log/deluge
sudo chmod -R 750 /var/log/deluge
The following are in [/etc/init.d/deluge-daemon]:

Code: Select all

DAEMON1=/usr/bin/deluged
DAEMON1_ARGS="-d -L warning -l /var/log/deluge/daemon/warning.log" # Consult `man deluged` for more options
DAEMON2=/usr/bin/deluge-web
DAEMON2_ARGS="-L warning -l /var/log/deluge/web/warning.log" # Consult `man deluge-web` for more options

Code: Select all

do_start()
{
   # Return
   #   0 if daemon has been started
   #   1 if daemon was already running
   #   2 if daemon could not be started

   is_alive $PIDFILE1
   RETVAL1="$?"

   if [ $RETVAL1 != 0 ]; then
       rm -f $PIDFILE1
       start-stop-daemon --start --background --quiet --pidfile $PIDFILE1 --make-pidfile \
       --exec $DAEMON1 --chuid $DELUGED_USER --user $DELUGED_USER --umask $UMASK -- $DAEMON1_ARGS
       RETVAL1="$?"
   else
       is_alive $PIDFILE2
       RETVAL2="$?"
       [ "$RETVAL2" = "0" -a "$RETVAL1" = "0" ] && return 1
   fi

   is_alive $PIDFILE2
   RETVAL2="$?"

   if [ $RETVAL2 != 0 ]; then
        sleep 2
        rm -f $PIDFILE2
        start-stop-daemon --start --background --quiet --pidfile $PIDFILE2 --make-pidfile \
        --exec $DAEMON2 --chuid $DELUGED_USER --user $DELUGED_USER --umask $UMASK -- $DAEMON2_ARGS
        RETVAL2="$?"
   fi
   [ "$RETVAL1" = "0" -a "$RETVAL2" = "0" ] || return 2
}
Any idea why the log files are not being created. I'm having trouble with the deluged process randomly stopping, this can happen after an hour or a day or two. But I fear I won't get this sorted it I can't provide logs, which are not currently being generated.

Help!

Re: Deluge not generating Logs. Other issues, but no logs

Posted: Mon Mar 31, 2014 12:14 pm
by Cas

Re: Deluge not generating Logs. Other issues, but no logs

Posted: Wed Apr 02, 2014 8:47 am
by aSystemOverload
How can I tell what version Deluge is running. libtorrent is v: 0.15.10.0, but I can't find anywhere that tells me how to identify what version deluge is itself. And deluge -v (or deluged) (or with a capital -v) does not work (deluged: error: no such option: -v).