[JDEV] RE: My first jabber1.4 Crashed

Frank Wang frank.wang at viant.com
Mon Feb 12 15:23:47 CST 2001


I am running the jabberd in a init.d script with all std-out and std-error
redirect to
a file called debug.log.

Where is the "xterm" coming from in my debug.log? Is what crashing the
server? It definitely
printed out page of xterm before crashing I noticed. A section from my
debug.log:

____________

xtermxtermxtermMon Feb 12 22:15:38 2001  msntrans.c:152 1 session(s)
Mon Feb 12 22:15:44 2001  msntrans.c:152 1 session(s)
Mon Feb 12 22:15:50 2001  msntrans.c:152 1 session(s)
Mon Feb 12 22:15:56 2001  msntrans.c:152 1 session(s)
Mon Feb 12 22:16:02 2001  msntrans.c:152 1 session(s)
Mon Feb 12 22:16:08 2001  msntrans.c:152 1 session(s)
____________

My /etc/rc.d/init.d/jabberd script:

#! /bin/sh
#
# jabberd       Init script to start jabberd and auxiliary transports
#
#               Created from Bernd Eckenfels <ecki at lina.inka.de>
#
#               Written by Miquel van Smoorenburg <miquels at cistron.nl>.
#               Modified for Debian GNU/Linux
#               by Ian Murdock <imurdock at gnu.ai.mit.edu>.
#
# Version:      @(#)skeleton  1.8  03-Mar-1998  miquels at cistron.nl
#
# Modified for my attempt at running jabber-1.1 by Gleef
# Modified again for jabber-1.4 by Gleef
# Modified again for jabber-1.4 on RH Linux by AIM:frank3wang

HOST="mydomain.com"
JDIR="/usr/local/jabber-1.4"
DAEMON="$JDIR/jabberd/jabberd"
PIDFILE="$JDIR/jabber.pid"
DEBUGFILE="$JDIR/debug.log"
CONF="$JDIR/jabber.xml"
JABARGS="-h $HOST"
NAME=jabberd
DESC=jabberd
JUID="jabber:jabber"

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

test -f $DAEMON -a -f $CONF || exit 0

set -e

case "$1" in
  start)
        # Check if jabberd is already running
        if [ ! -f $PIDFILE ]; then
            echo -n "Starting $DESC: "
            $DAEMON -h $HOST -c $CONF &
            echo -n "$NAME "
            echo "."
        else
            echo -n "$DESC is already running "
        fi
        ;;
  stop)
        echo -n "Stopping $DESC: "
        pid=`cat $PIDFILE`
        echo -n "killing $NAME with pid $pid "
        kill $pid
        rm -f $PIDFILE
        echo "."
        ;;
  rundebug)
        # Check if jabberd is already running
        if [ ! -f /var/lock/subsys/jabberd ]; then
            echo -n "Starting $DESC: `date` "
            $DAEMON -h $HOST -c $CONF -D >> $DEBUGFILE  2>&1 &
            echo -n "$NAME "
            echo "."
        else
            echo -n "$DESC is already running "
        fi
        ;;
  *)
        N=/etc/init.d/$NAME
        # echo "Usage: $N {start|stop|rundebug}" >&2
        echo "Usage: $N {start|stop|rundebug}" >&2
        exit 1
        ;;
esac

exit 0

  -----Original Message-----
  From: Frank Wang [mailto:frank.wang at viant.com]
  Sent: 2001?2?12? 18:08
  To: jadmin at mailman.jabber.org; jdev at jabber.org
  Subject: My first jabber1.4 Crashed


  I have started jabber1.4 with ICQ, MSN, AIM and Yahoo transports as user
jabber apart of daemon group
  ./jabberd/jabberd -h mydomain.com -D &

  I can't close the xterm window since that will cause jabber crash with
error "PID change server exiting"
  so I left it running in xterm window

  ....

  It has crashed after 24 hour with following error just before the
crashing. I have rename the mydomain name.

  _______________

  20010212T18:33:33: [alert] (s2s): We were told by update.jabber.org that
our sending name mydomain.com is invalid, either something went wrong on
their end, we tried using that name improperly, or dns does not resolve to
us
  20010212T18:33:33: [notice] (update.jabber.org): bouncing a packet to
959967039 at update.jabber.org/0.9.3.5 from remi at mydomain.com/Laptop: Server
Connect Failed
  20010212T18:33:33: [notice] (update.jabber.org): bouncing a packet to
959967039 at update.jabber.org/0.9.3.5 from remi at mydomain.com/Laptop: Server
Connect Failed
  ________________

  I restarted the server now and running as user jabber without putting it
into a backgroup process:
  ./jabberd/jabberd -h mydomain.com -D

  I will see how long it will take before it crashes again.
  Anyone has the same problem or know the result for a fix?  Please let me
know.
  I'm running
  Red Hat Linux release 6.0 (Hedwig)
  Kernel 2.2.5-15 on an i686

  and all jabber src are from jabber1.4/final/

  Hmm.. I start to have doubt on the stability of the current src.  It's
very much like any servers during first few months of its release.

  FW
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20010212/f937af33/attachment-0002.htm>


More information about the JDev mailing list