Deluge not generating Logs. Other issues, but no logs

General support for problems installing or using Deluge
Post Reply
aSystemOverload
New User
New User
Posts: 3
Joined: Sat Sep 21, 2013 8:17 pm

Deluge not generating Logs. Other issues, but no logs

Post 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!
Last edited by aSystemOverload on Wed Apr 02, 2014 9:06 am, edited 1 time in total.
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

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

Post by Cas »

aSystemOverload
New User
New User
Posts: 3
Joined: Sat Sep 21, 2013 8:17 pm

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

Post 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).
Post Reply