Anope IRC Services

Anope Support => 1.8.x/1.7.x Support (Read Only) => Topic started by: alex336 on February 24, 2007, 03:02:51 PM

Title: Panic !
Post by: alex336 on February 24, 2007, 03:02:51 PM
Hello !

I have an little problem ... :

-irc.dl-torrent.com- *** Global -- from services.dl-torrent.com: PANIC! buffer = :Alex336 PRIVMSG nickserv@services.dl-torrent.com :register winarulz alex44835@hotmail.com
-
-irc.dl-torrent.com- *** LocOps -- Server services.dl-torrent.com[213.251.169.23] closed the connection
-

And ...

-OperServ- Current Module list:
-
-OperServ- Module: cs_appendtopic [$Id: cs_appendtopic.c 1122 2006-08-06 15:00:13Z certus $] [Supported]
-
-OperServ- Module: cs_enforce [$Id: cs_enforce.c 957 2006-01-24 07:54:48Z certus $] [Supported]
-
-OperServ- Module: enc_sha1 [$Id$] [Encryption]
-
-OperServ- Module: hs_request [$Id$] [Supported]
-
-OperServ- Module: ns_maxemail [$Id: ns_maxemail.c 953 2006-01-14 11:36:29Z certus $] [Supported]
-
-OperServ- Module: os_info [$Id: os_info.c 1162 2006-09-29 17:54:07Z geniusdex $] [Supported]
-
-OperServ- Module: unreal32 [$Id: unreal32.c 1185 2006-10-17 20:42:40Z rob $] [Protocol]
Title:
Post by: alex336 on February 26, 2007, 08:34:03 PM
Up ...
Title:
Post by: katsklaw on February 26, 2007, 08:53:41 PM
we'll need a full backtrace of the core because this error tells us nothing.
Title:
Post by: alex336 on February 27, 2007, 08:32:20 PM
[Feb 24 21:31:21.747021 2007] debug: [hs_request] Set config vars: MemoUser=0 MemoOper=0 MemoSetters=0 DBName='hs_request.db'
[Feb 24 21:31:21.747272 2007] debug: hs_request Adding 21 texts for language 0
[Feb 24 21:31:21.747450 2007] debug: hs_request Adding 21 texts for language 12
[Feb 24 21:31:21.747624 2007] debug: hs_request Adding 21 texts for language 5
[Feb 24 21:31:21.747785 2007] debug: hs_request Adding 21 texts for language 8
[Feb 24 21:31:21.747946 2007] [hs_request] Loading database...
[Feb 24 21:31:21.748394 2007] [hs_request] Succesfully loaded database
[Feb 24 21:31:21.748592 2007] hs_request loaded
[Feb 24 21:31:21.748750 2007] status: [Feb 24 21:31:21.748935 2007] debug: Received: :irc.dl-torrent.com NOTICE AUTH :*** Looking up your hostname...
[Feb 24 21:31:21.749194 2007] debug: Received: :irc.dl-torrent.com NOTICE AUTH :*** Found your hostname
[Feb 24 21:31:22.705622 2007] debug: Received: PROTOCTL NOQUIT TOKEN NICKv2 SJOIN SJOIN2 UMODE2 VL SJ3 NS SJB64 TKLEXT NICKIP CHANMODES=beI,kfL,lj,psmntirRcOAQKVCuzNSMTG NICKCHARS=
[Feb 24 21:31:22.705828 2007] debug: Received: PASS :*****
[Feb 24 21:31:22.705959 2007] debug: Received: SERVER irc.dl-torrent.com 1 :U2309-FhiXeOoE-1 IRC Dl-torrent.com
[Feb 24 21:31:22.706048 2007] debug: Server introduced (irc.dl-torrent.com)
[Feb 24 21:31:22.706100 2007] debug: Emitting event "server_connect" (1 args)
[Feb 24 21:31:22.706284 2007] debug: Received: :irc.dl-torrent.com SMO o :(link) Link irc.dl-torrent.com -> services.dl-torrent.com[@213.251.169.23.45262] established
[Feb 24 21:31:22.706433 2007] debug: Received: NETINFO 0 1172348954 2309 MD5:54e7ada2a88e4609a3cfb292ac550c77 0 0 0 :Dl-torrent.com
[Feb 24 21:31:22.706622 2007] debug: Sent: NETINFO 3 1172349082 2309 MD5:54e7ada2a88e4609a3cfb292ac550c77 0 0 0 :Dl-torrent.com
[Feb 24 21:31:22.706736 2007] debug: Received: :irc.dl-torrent.com EOS
[Feb 24 21:31:22.706791 2007] debug: Finishing sync for server irc.dl-torrent.com
[Feb 24 21:31:22.706845 2007] Server irc.dl-torrent.com is done syncing
[Feb 24 21:31:22.706991 2007] debug: Received: :irc.dl-torrent.com TKL + Q * NickServ services.dl-torrent.com 0 1172348954 :Reserved for services
[Feb 24 21:31:22.707142 2007] debug: Received: :irc.dl-torrent.com TKL + Q * ChanServ services.dl-torrent.com 0 1172348954 :Reserved for services
[Feb 24 21:31:22.707293 2007] debug: Received: :irc.dl-torrent.com TKL + Q * HostServ services.dl-torrent.com 0 1172348954 :Reserved for services
[Feb 24 21:31:22.707444 2007] debug: Received: :irc.dl-torrent.com TKL + Q * MemoServ services.dl-torrent.com 0 1172348954 :Reserved for services
[Feb 24 21:31:22.707592 2007] debug: Received: :irc.dl-torrent.com TKL + Q * BotServ services.dl-torrent.com 0 1172348954 :Reserved for services
[Feb 24 21:31:22.707742 2007] debug: Received: :irc.dl-torrent.com TKL + Q * HelpServ services.dl-torrent.com 0 1172348954 :Reserved for services
[Feb 24 21:31:22.707891 2007] debug: Received: :irc.dl-torrent.com TKL + Q * OperServ services.dl-torrent.com 0 1172348954 :Reserved for services
[Feb 24 21:31:22.708086 2007] debug: Received: :irc.dl-torrent.com TKL + Q * Global services.dl-torrent.com 0 1172348954 :Reserved for services
[Feb 24 21:31:22.744509 2007] debug: Received: :irc.dl-torrent.com SMO o :(sync) Possible negative TS split at link services.dl-torrent.com (1172348955 - 1172349082 = -127) [PLEASE SYNC YOUR CLOCKS!]
[Feb 24 21:31:22.744774 2007] debug: Received: :irc.dl-torrent.com SMO o :(sync) Link services.dl-torrent.com -> irc.dl-torrent.com is now synced [secs: -127 recv: 1.468 sent: 1.356]
[Feb 24 21:31:25.221065 2007] debug: Received: NICK alex336 1 1172348956 alex336 modemcable100.88-131-66.mc.videotron.ca irc.dl-torrent.com 0 +iwx rox-6D810A45.mc.videotron.ca QoNYZA== :alex
[Feb 24 21:31:25.234407 2007] debug: new user: alex336
[Feb 24 21:31:25.235239 2007] debug: Sent: :services.dl-torrent.com SVSMODE alex336 +d 1
[Feb 24 21:31:25.235455 2007] debug: Emitting event "newnick" (1 args)
[Feb 24 21:31:25.235624 2007] debug: Changing mode for alex336 to +iwx
[Feb 24 21:31:25.235777 2007] debug: alex336 changes its host to rox-6D810A45.mc.videotron.ca
[Feb 24 21:31:37.918291 2007] debug: Received: :irc.dl-torrent.com SENDSNO o :alex336 (alex336@rox-6D810A45.mc.videotron.ca) [Alex336] is now a network administrator (N)
[Feb 24 21:31:37.918449 2007] debug: Received: :alex336 UMODE2 +oghaAN
[Feb 24 21:31:37.918515 2007] debug: Changing mode for alex336 to +oghaAN
[Feb 24 21:31:37.918618 2007] debug: Received: :irc.dl-torrent.com SJOIN !15uA0f #opers :@alex336
[Feb 24 21:31:37.929760 2007] debug: Emitting event "join_channel" (3 args)
[Feb 24 21:31:37.929977 2007] debug: Creating channel #opers
[Feb 24 21:31:37.930150 2007] debug: alex336 joins #opers
[Feb 24 21:31:37.930325 2007] debug: Changing modes for #opers to +o alex336
[Feb 24 21:31:37.930481 2007] debug: Setting +o on #opers for alex336
[Feb 24 21:31:37.930639 2007] debug: Emitting event "join_channel" (3 args)
[Feb 24 21:31:43.433808 2007] debug: Received: :alex336 PRIVMSG nickserv@services.dl-torrent.com :register winarulz alex44835@hotmail.com
[Feb 24 21:31:43.455591 2007] NickServ: Nick alex336 has been requested
[Feb 24 21:31:43.455857 2007] NickServ: group alex336 has been created
[Feb 24 21:31:43.456144 2007] enc_sha1: hashed from [winarulz] to [2E7C4D1A43EEA178818DDA35CAF8D1F5F2558B0F]
[Feb 24 21:31:43.456608 2007] PANIC! buffer = :alex336 PRIVMSG nickserv@services.dl-torrent.com :register winarulz alex44835@hotmail.com
[Feb 24 21:31:43.457068 2007] debug: Sent: :services.dl-torrent.com GLOBOPS :PANIC! buffer = :alex336 PRIVMSG nickserv@services.dl-torrent.com :register winarulz alex44835@hotmail.com
Title:
Post by: Jan Milants on February 27, 2007, 08:34:38 PM
Backtrace also...

1. On your shell: ulimit -c unlimited
2. Enable the DumpCore directive on services.conf
3. Start Anope and reproduce the crash to create a core.
4. Load the core using: gdb services core.number
5. On gdb type: bt

then paste or link here the result...
Title:
Post by: alex336 on February 27, 2007, 08:55:50 PM
Okey ! Stay in the area ^^
Title:
Post by: alex336 on February 27, 2007, 08:59:40 PM
Quote
Originally posted by Viper
Backtrace also...

1. On your shell: ulimit -c unlimited
2. Enable the DumpCore directive on services.conf --- ?
3. Start Anope and reproduce the crash to create a core.
4. Load the core using: gdb services core.number
5. On gdb type: bt

then paste or link here the result...

[Edited on 27-2-2007 by alex336]
Title:
Post by: Jan Milants on February 27, 2007, 09:18:03 PM
Code: [Select]
# DumpCore [OPTIONAL]
#
#    Setting this directive will make Anope dump core when a segmentation
#    fault occurs. This is generally not needed, but if Anope is crashing
#    on your network and you want to make a bug report, having a core
#    file may be of great help.

#DumpCore


whether it is available on windows is another matter...
Title:
Post by: alex336 on February 27, 2007, 09:25:06 PM
/home/dltorren/irc/Unreal3.2/services$ gdb services core.number
-bash: line 59: gdb: command not found
Title:
Post by: alex336 on February 27, 2007, 09:27:04 PM
is that ??


#!/bin/sh
#
# $Id: mydbgen 953 2006-01-14 11:36:29Z certus $

# Location of the .sql file with the schema
DBSQL="tables.sql"

# Schema Version
SVER="1"

# Local Version, defaults to 0
LVER="0"

TFILE="/tmp/.anopedb.$$"

if [ "`eval echo -n 'a'`" = "-n a" ] ; then
        c="\c"
else
        n="-n"
fi

# Fix for bug 10
for try in HOME/services anope/data ../data data .. .
do
   if [ -f "$try/$DBSQL" ]; then
      DBFILE="$try/$DBSQL"
   fi
done

if [ ! -f "./$DBFILE" ] ; then
   echo "Error: Required file $DBSQL was not found!";
   exit
fi

echo ""
echo "This script will guide you through the process of configuring your Anope"
echo "installation to make use of MySQL support. This script must be used for both"
echo "new installs as well as for upgrading for users who have a previous version"
echo "of Anope installed"

while [ -z "$SQLHOST" ] ; do
        echo ""
        echo "What is the hostname of your MySQL server?"
        echo $n "-> $c"
            read cc
        if [ ! -z "$cc" ] ; then
            SQLHOST=$cc
        fi
done

while [ -z "$SQLUSER" ] ; do
        echo ""
        echo "What is your MySQL username?"
        echo $n "-> $c"
            read cc
        if [ ! -z "$cc" ] ; then
            SQLUSER=$cc
        fi
done

OLD_TTY=`stty -g`

echo ""
echo "What is your MySQL password?"
echo $n "-> $c"
stty -echo echonl
read cc
SQLPASS_PREFIX=""
if [ ! -z "$cc" ] ; then
   SQLPASS_PREFIX="-p"
   SQLPASS=$cc
fi
stty $OLD_TTY

mysqlshow -h$SQLHOST -u$SQLUSER $SQLPASS_PREFIX$SQLPASS >/dev/null 2>&1
if test "$?" = "1" ; then
   echo "Error: Unable to login, verify your login/password and hostname"
   exit
fi

while [ -z "$SQLDB" ] ; do
        echo ""
        echo "What is the name of the Anope SQL database?"
        echo $n "-> $c"
            read cc
        if [ ! -z "$cc" ] ; then
            SQLDB=$cc
        fi
done

MYSQLDUMP="mysqldump -h$SQLHOST -u$SQLUSER $SQLPASS_PREFIX$SQLPASS $SQLDB"
MYSQLSHOW="mysqlshow -h$SQLHOST -u$SQLUSER $SQLPASS_PREFIX$SQLPASS $SQLDB"
MYSQL="mysql -h$SQLHOST -u$SQLUSER $SQLPASS_PREFIX$SQLPASS $SQLDB"

echo ""

$MYSQLSHOW | grep -q $SQLDB
if test "$?" = "1" ; then
   echo -n "Unable to find databse, creating... "
   mysql -h$SQLHOST -u$SQLUSER $SQLPASS_PREFIX$SQLPASS -Bs -e "create database $SQLDB" >/dev/null 2>&1
   if test "$?" = "0" ; then
      echo "done!"
   else
      echo "failed!"
      FAILED="$FAILED 'database creation'"
   fi
fi

$MYSQL -Bs -e "show tables like 'anope_os_core'" | grep -q anope_os_core
if test "$?" = "1" ; then
   echo -n "Unable to find Anope schema, creating... "
   $MYSQL < $DBFILE
   if test "$?" = "0" ; then
      echo "done!"
   else
      echo "failed!"
      FAILED="$FAILED 'schema creation'"
   fi
else
   # Introduced on Anope 1.6.0 -> Table anope_info
   $MYSQL -Bs -e "show tables like 'anope_info'" | grep -q anope_info
   if test "$?" = "1" ; then
      echo -n "Unable to find Anope info table, creating... "
      echo "CREATE TABLE anope_info (version int, date datetime) TYPE=MyISAM" > $TFILE
      mysql -h$SQLHOST -u$SQLUSER $SQLPASS_PREFIX$SQLPASS $SQLDB < $TFILE >/dev/null 2>&1
      if test "$?" = "0" ; then
         echo "done!"

      else
         echo "failed!"
         FAILED="$FAILED 'anope_info table'"
      fi
   else
      LVER="$($MYSQL -sB -e "select version from anope_info")"
      if test "x$LVER" = "x" ; then
         LVER=0
      fi
   fi

   # Introduced on Anope 1.5.14.5 -> anope_cs_info.memomax
   $MYSQL -Bs -e "describe anope_cs_info memomax" 2> /dev/null | grep -q memomax
   if test "$?" = "1" ; then
      echo -n "Unable to find anope_cs_info.memomax, altering... "
      echo "ALTER TABLE anope_cs_info ADD memomax smallint unsigned NOT NULL default 0" > $TFILE
      mysql -h$SQLHOST -u$SQLUSER $SQLPASS_PREFIX$SQLPASS $SQLDB < $TFILE >/dev/null 2>&1
      if test "$?" = "0" ; then
         echo "done!"

      else
         echo "failed!"
         FAILED="$FAILED 'anope_cs_info.memomax alter'"
      fi
   fi

   # Introduced on Anope 1.5.14.5 -> anope_cs_info.ttb
   $MYSQL -Bs -e "describe anope_cs_info ttb" 2> /dev/null | grep -q ttb
   if test "$?" = "1" ; then
      echo -n "Unable to find anope_cs_info.ttb, altering... "
      echo "ALTER TABLE anope_cs_info ADD ttb smallint NOT NULL default 0" > $TFILE
      mysql -h$SQLHOST -u$SQLUSER $SQLPASS_PREFIX$SQLPASS $SQLDB < $TFILE >/dev/null 2>&1
      if test "$?" = "0" ; then
         echo "done!"

      else
         echo "failed!"
         FAILED="$FAILED 'anope_cs_info.ttb alter'"
      fi
   fi

   # Introduced on Anope 1.7.7 -> status smallint to inst unsigned.
   echo "Blindly altering status for bigger capacity... "
   echo "ALTER TABLE anope_ns_alias CHANGE status status int(11) unsigned NOT NULL default 0" > $TFILE
   mysql -h$SQLHOST -u$SQLUSER $SQLPASS_PREFIX$SQLPASS $SQLDB < $TFILE >/dev/null 2>&1

   # Introduced on Anope 1.7.8 (620) proxy scanner removed.
   echo "Removing proxy scanner cache... "
   echo "DROP TABLE IF EXISTS anope_os_cache" > $TFILE
   mysql -h$SQLHOST -u$SQLUSER $SQLPASS_PREFIX$SQLPASS $SQLDB < $TFILE >/dev/null 2>&1

   echo "done!"

fi

echo ""

# Insert initial version number. This will have to be redesigned for 1.7
if [ $LVER -ne $SVER ]; then
echo -n "Inserting initial version number... "
$MYSQL -Bs -e "delete from anope_info"
echo "INSERT INTO anope_info (version, date) VALUES ($SVER, now())" > $TFILE
$MYSQL < $TFILE >/dev/null 2>&1
if test "$?" = "0" ; then
   echo "done!"
else
   echo "failed!"
   FAILED="$FAILED 'version insert'"
fi
fi

rm -f $TFILE
if test "x$FAILED" = "x" ; then
   # Try to find out more about this installation
   SQLSOCK="$(mysql_config --socket 2> /dev/null)"
   SQLPORT="$(mysql_config --port 2> /dev/null)"
   echo ""
   echo "Your MySQL setup is complete and your Anope schema is up to date. Make"
   echo "sure you configure MySQL on your services.conf file prior to launching"
   echo "Anope with MySQL support. Your configuration values are:"
   echo ""
   echo "MysqlHost \"$SQLHOST\""
   echo "MysqlUser \"$SQLUSER\""
   echo "MysqlPass \"$SQLPASS\""
   echo "MysqlName \"$SQLDB\""
   echo "MysqlSock \"$SQLSOCK\""
   echo "MysqlPort \"$SQLPORT\""
   echo ""
else
   echo "The following operations failed:"
   echo "$FAILED"
fi

exit

[Edited on 27-2-2007 by alex336]
Title:
Post by: Jan Milants on February 27, 2007, 09:34:07 PM
no that s the configuration script of anope... gdb is something that s usually (but not always) installed on linux boxes... it s a simple debugger, but in your case probably not installed.
Title:
Post by: alex336 on February 27, 2007, 09:38:23 PM
Hum ... What i do now ? :(
Title:
Post by: Jan Milants on February 27, 2007, 09:52:17 PM
i honestly have no idea... the debug output it pretty much useless (at least to me).
Except for trying to reinstall anope, or get your host to install gdb, there s not much i can say... you could try the same databases on another to see whether it may be a db problem, but i doubt it would.
Title:
Post by: alex336 on February 27, 2007, 10:39:15 PM
Hum i dont have no any database actived ^^
Title:
Post by: katsklaw on February 28, 2007, 12:09:32 AM
ok I think I see what's happening. You have a 127 second TS offset, this is caused by Unreal using it's own time and Anope using the system time (as it should).

OK, based on the timestamps you are starting Anope and trying to register your nick within a span of 22 seconds. With your 127 second offset, your IRCd will have a totally different timestamp that Anope will have so it seems that your trying to register a non-existant nick 2 minutes in the past. Anope should reply with no such user in this case but it's possible that it's panicing instead.

I suggest you get your clocks syncronized and try again. TS offsets can really be nasty all around so your TS offset is a bigger issue than not being able to register a nick at this time.

It's always best to run ntpd on all servers. I don't have a URL for it but you can just google for "ntpd" (with or without quotes).