Deluge listening on localhost only

General support for problems installing or using Deluge
Post Reply
jokob

Deluge listening on localhost only

Post by jokob »

Hi guys!

I am trying to setup deluge on my raspberry pi, as described in this thread:

http://www.raspberrypi.org/forums/viewt ... 28&t=87782

I am now stuck (I think) because my instance of Deluge is listening for incoming connections only on the localhost address (last line):

Code: Select all

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 0.0.0.0:59684           0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:58846         0.0.0.0:*               LISTEN
I am running deluge with a cron script, because it seem to be crashing randomly so I check periodically, if it is running, and if not this script is making sure it is started again:

Code: Select all

#!/bin/bash
#make-run.sh
#make sure a process is always running.

process="deluged"
makerun="/usr/bin/deluged -p 58846 -L debug -l /home/pi/deluge.log"

date > /home/pi/deluge_sh.log

if ps ax | grep -vw grep | grep -w $process > /dev/null
        then
      echo "exiting" >> /home/pi/deluge_sh.log
                exit
        else
      echo "trying to run:" $makerun >> /home/pi/deluge_sh.log
        $makerun &
        fi
exit
So I have two issues, and I need to resolve at least on of those to get this working :) Either I find the cause of the crashes or I force listening the process on all addresses. I don't have the debug output available for when deluge runs on startup because I am using the daemon script submitted by HowToGeek so I am not sure what and where to alter to force a debug output:

http://www.howtogeek.com/142044/how-to- ... rrent-box/


However if I manually start deluge with debug enabled, it doesn't log any suspicious activities, here is the log:

http://pastebin.com/gbQLnfPz

Thanks in advance for any help!

Let me know if you need more info!

EDIT: If I run the set the debug to be written into the command line it shows a segmentation fault, so as per suggestion I implemented this workaround:
http://blog.backslasher.net/raspberry-p ... fault.html. Still I am curious about my first question, regarding the Local address.

deluged: 1.3.3
libtorrent: 0.15.10.0
HW: raspberry pi
Linux raspberrypi 3.12.28+ #709 PREEMPT Mon Sep 8 15:28:00 BST 2014 armv6l
Nargzul

Re: Deluge listening on localhost only

Post by Nargzul »

Hi, did you find a solution?

I'm also unable to do a remote connection(even by telnet). I don't have any firewall(server or client side) and when i check the netstat of the host, I see that it is listening only on "localhost", but not on 0.0.0.0.
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Deluge listening on localhost only

Post by Cas »

Post Reply