Hello list,

I have a problem with jabberd 2.1.22.
I have two users in authreg table :

mysql> select * from authreg;
+----------+--------------+----------+
| username | realm        | password |
+----------+--------------+----------+
| halil    | agin.name.tr | 1234     |
| devrim   | agin.name.tr | 1234     |
| mesut    | agin.name.tr | 1234     |
+----------+--------------+----------+
3 rows in set (0.00 sec)

here is active table content:

mysql> select * from active;
+---------------------+-----------------+------------+
| collection-owner    | object-sequence | time       |
+---------------------+-----------------+------------+
| [EMAIL PROTECTED] |               3 | 1202320051 |
| [EMAIL PROTECTED]  |               4 | 1202321769 |
+---------------------+-----------------+------------+
2 rows in set (0.00 sec)



i started jabberd2 with "./jabberd -D" by jabber user.

and when i connect to jabberd2 server with gaim  as [EMAIL PROTECTED] or
[EMAIL PROTECTED] , there occurs a problem and jabberd dies.

"jabberd -D" debug  output and /var/log/message content   are below. since
log messages are too long, i paste only related lines.


jabberd debug output:

-----------------------------------------
SM  : Wed Feb  6 20:15:42 2008 sm.c:243 write action on fd 6
S2S : Wed Feb  6 20:15:42 2008 router.c:44 reading from 5
C2S : Wed Feb  6 20:16:09 2008 c2s.c:501 read action on fd 8
ROUT: Wed Feb  6 20:16:09 2008 router.c:858 read action on fd 8
SM  : Wed Feb  6 20:15:42 2008 [notice] module 'iq-vcard' added to chain
'user-delete' (order 10 index 6 seq 2)
RSLV: sx (io.c:194) tag 5 event 2 data 0x8433490
SM  : sx (io.c:322) 6 ready for writing
S2S : Wed Feb  6 20:15:42 2008 router.c:69 read 88 bytes
C2S : sx (io.c:188) 8 ready for reading
ROUT: sx (io.c:188) 8 ready for reading
SM  : Wed Feb  6 20:15:42 2008 [notice] version: jabberd sm 2.1.22
RSLV: Wed Feb  6 20:15:42 2008 resolver.c:143 reading from 5
SM  : sx (io.c:280) encoding 240 bytes for writing: <route xmlns='
http://jabberd.jabberstudio.org/ns/component/1.0' from='agin.name.tr'
to='s2s'><iq xmlns='jabber:client' id='6my4eco9' from='agin.name.tr'
to='s2s' type='get'><query xmlns='http://jabber.org/protocol/disco#info'/
></iq></route>
S2S : sx (io.c:210) passed 88 read bytes
C2S : sx (io.c:194) tag 8 event 2 data 0x9c87160
ROUT: sx (io.c:194) tag 8 event 2 data 0x8b41038
SM  : Wed Feb  6 20:15:42 2008 [notice] attempting connection to router at
10.0.0.119, port=5347
RSLV: Wed Feb  6 20:15:42 2008 resolver.c:168 read 79 bytes
SM  : sx (chain.c:79) calling io write chain
S2S : sx (chain.c:93) calling io read chain
C2S : Wed Feb  6 20:16:09 2008 c2s.c:45 reading from 8
ROUT: Wed Feb  6 20:16:09 2008 router.c:526 reading from 8
SM  : Wed Feb  6 20:15:42 2008 [notice] connection to router established
RSLV: sx (io.c:210) passed 79 read bytes
SM  : sx (io.c:343) handing app 240 bytes to write
S2S : sx (io.c:234) decoded read data (88 bytes): <presence xmlns='
http://jabberd.jabberstudio.org/ns/component/1.0' from='agin.name.tr'/>
C2S : Wed Feb  6 20:16:09 2008 c2s.c:99 read 22 bytes
ROUT: Wed Feb  6 20:16:09 2008 router.c:584 read 277 bytes
SM  : Wed Feb  6 20:15:42 2008 [notice] ready for sessions
RSLV: sx (chain.c:93) calling io read chain
SM  : sx (io.c:344) tag 6 event 3 data 0x9eaeef8
S2S : sx (io.c:89) completed nad: <presence xmlns='
http://jabberd.jabberstudio.org/ns/component/1.0' from='agin.name.tr'/>
C2S : sx (io.c:210) passed 22 read bytes
ROUT: sx (io.c:210) passed 277 read bytes
SM  : Wed Feb  6 20:16:09 2008 [notice] created user: [EMAIL PROTECTED]
RSLV: sx (io.c:234) decoded read data (79 bytes): <presence xmlns='
http://jabberd.jabberstudio.org/ns/component/1.0' from='s2s'/>
SM  : Wed Feb  6 20:15:42 2008 sm.c:85 writing to 6
S2S : sx (chain.c:119) calling nad read chain
C2S : sx (chain.c:93) calling io read chain
ROUT: sx (chain.c:93) calling io read chain
ERROR: sm died.  Shutting down server.
JBRD: Got a signal... pass it on.
JBRD: It was a TERM.  Shut it all down!

----------------------------------------



/var/log/message file content

--------------------------------------------------
Feb  6 15:49:27 agin jabberd/sm[5418]: ready for sessions
Feb  6 15:49:47 agin jabberd/c2s[5420]: [8] [10.0.0.3, port=4335] connect
Feb  6 15:49:47 agin jabberd/c2s[5420]: [8] SASL authentication succeeded:
mechanism=DIGEST-MD5; [EMAIL PROTECTED]
Feb  6 15:49:47 agin jabberd/c2s[5420]: [8] bound: jid=
[EMAIL PROTECTED]/Home
Feb  6 15:49:47 agin jabberd/sm[5418]: user not found, can't start session:
[EMAIL PROTECTED]/Home
Feb  6 15:50:01 agin crond(pam_unix)[5428]: session opened for user mailman
by (uid=0)
Feb  6 15:50:02 agin crond(pam_unix)[5428]: session closed for user mailman
Feb  6 15:50:59 agin jabberd/c2s[5420]: [8] [10.0.0.3, port=4335] disconnect
[EMAIL PROTECTED]/Home, packets: 1
Feb  6 15:51:24 agin jabberd/c2s[5420]: [8] [10.0.0.3, port=4343] connect
Feb  6 15:51:24 agin jabberd/c2s[5420]: [8] SASL authentication succeeded:
mechanism=DIGEST-MD5; [EMAIL PROTECTED]
Feb  6 15:51:24 agin jabberd/c2s[5420]: [8] bound: jid=
[EMAIL PROTECTED]/Home
Feb  6 15:51:24 agin jabberd/sm[5418]: user not found, can't start session:
[EMAIL PROTECTED]/Home
Feb  6 15:53:17 agin jabberd/c2s[5420]: [9] [10.0.0.3, port=4352] connect
Feb  6 15:53:17 agin jabberd/c2s[5420]: [9] SASL authentication succeeded:
mechanism=DIGEST-MD5; [EMAIL PROTECTED]
Feb  6 15:53:17 agin jabberd/c2s[5420]: [9] bound: jid=
[EMAIL PROTECTED]/Home
Feb  6 15:53:17 agin jabberd/sm[5418]: user not found, can't start session:
[EMAIL PROTECTED]/Home
Feb  6 15:55:01 agin crond(pam_unix)[5471]: session opened for user mailman
by (uid=0)
Feb  6 15:55:02 agin crond(pam_unix)[5471]: session closed for user mailman
Feb  6 16:00:01 agin crond(pam_unix)[5517]: session opened for user mailman
by (uid=0)
Feb  6 16:00:02 agin crond(pam_unix)[5517]: session closed for user mailman
Feb  6 16:01:02 agin crond(pam_unix)[5527]: session opened for user root by
(uid=0)
Feb  6 16:01:02 agin crond(pam_unix)[5527]: session closed for user root
Feb  6 16:05:01 agin crond(pam_unix)[5561]: session opened for user mailman
by (uid=0)
Feb  6 16:05:02 agin crond(pam_unix)[5561]: session closed for user mailman
Feb  6 16:06:46 agin jabberd/router[5416]: shutting down
Feb  6 16:06:46 agin jabberd/router[5416]: [127.0.0.1, port=54775]
disconnect
Feb  6 16:06:46 agin jabberd/router[5416]: [resolver] offline
Feb  6 16:06:46 agin jabberd/router[5416]: [127.0.0.1, port=54776]
disconnect
Feb  6 16:06:46 agin jabberd/router[5416]: [s2s] default route offline
Feb  6 16:06:46 agin jabberd/router[5416]: [s2s] offline
Feb  6 16:06:46 agin jabberd/router[5416]: [10.0.0.119, port=58204]
disconnect
Feb  6 16:06:46 agin jabberd/router[5416]: [c2s] offline
Feb  6 16:06:46 agin jabberd/router[5416]: [10.0.0.119, port=58205]
disconnect
Feb  6 16:06:46 agin jabberd/router[5416]: [agin.name.tr] offline
Feb  6 16:06:46 agin jabberd/resolver[5417]: connection to router closed
Feb  6 16:06:46 agin jabberd/resolver[5417]: attempting reconnect (3 left)
Feb  6 16:06:46 agin jabberd/sm[5418]: connection to router closed
Feb  6 16:06:46 agin jabberd/s2s[5419]: connection to router closed
Feb  6 16:06:46 agin jabberd/c2s[5420]: connection to router closed
Feb  6 16:06:46 agin jabberd/sm[5418]: attempting reconnect (3 left)
Feb  6 16:06:46 agin jabberd/s2s[5419]: attempting reconnect (3 left)
Feb  6 16:06:46 agin jabberd/c2s[5420]: attempting reconnect (3 left)
Feb  6 16:06:48 agin jabberd/resolver[5417]: attempting connection to router
at 127.0.0.1, port=5347
Feb  6 16:06:48 agin jabberd/resolver[5417]: shutting down
Feb  6 16:06:48 agin jabberd/sm[5418]: attempting connection to router at
10.0.0.119, port=5347
Feb  6 16:06:48 agin jabberd/sm[5418]: shutting down
Feb  6 16:06:48 agin jabberd/s2s[5419]: attempting connection to router at
127.0.0.1, port=5347
Feb  6 16:06:48 agin jabberd/s2s[5419]: shutting down
Feb  6 16:06:48 agin jabberd/s2s[5419]: connection to router closed
Feb  6 16:06:48 agin jabberd/c2s[5420]: attempting connection to router at
10.0.0.119, port=5347
Feb  6 16:06:48 agin jabberd/c2s[5420]: shutting down


---------------------------------------------------


c2s.xml content

----------------------------------------
<c2s>
  <id>c2s</id>
  <pidfile>/usr/local/mailserver/jabberd/var/jabberd/pid/c2s.pid</pidfile>
  <router>
    <ip>10.0.0.119</ip>            <!-- default: 127.0.0.1 -->
    <port>5347</port>             <!-- default: 5347 -->
    <user>jabberd</user>          <!-- default: jabberd -->
    <pass>secret</pass>           <!-- default: secret -->
    <retry>
      <init>3</init>
      <lost>3</lost>
      <sleep>2</sleep>
    </retry>
  </router>

  <log type='syslog'>
    <ident>jabberd/c2s</ident>
    <facility>local3</facility>
  </log>
  <local>
    <id register-enable='true'>agin.name.tr</id>
    <ip>0.0.0.0</ip>
    <port>5222</port>
  </local>
  <io>
    <max_fds>1024</max_fds>
    <limits>
      <bytes>0</bytes>
      <connects>0</connects>
      <stanzasize>65535</stanzasize>
    </limits>
    <access>
      <order>allow,deny</order>
    </access>
    <check>
      <interval>0</interval>
      <idle>0</idle>
      <keepalive>0</keepalive>
    </check>
  </io>
  <stats>
  </stats>
  <authreg>
    <path>/usr/local/mailserver/jabberd/lib/jabberd</path>
    <module>mysql</module>

    <mechanisms>
      <traditional>
        <plain/>
        <digest/>
      </traditional>
      <sasl>
        <plain/>
        <digest-md5/>
      </sasl>
    </mechanisms>
    <ssl-mechanisms>
      <traditional>
        <plain/>
      </traditional>

      <sasl>
        <plain/>
      </sasl>

    </ssl-mechanisms>
    <mysql>
      <host>localhost</host>
      <port>3306</port>
      <dbname>jabberd2</dbname>
      <user>jabberd2</user>
      <pass>secret</pass>
    </mysql>
    <pipe>
      <exec>/usr/local/mailserver/jabberd/bin/pipe-auth.pl</exec>
    </pipe>
  </authreg>
</c2s>

----------------------------------------


smxml file content:


------------------------------
<sm>
  <id>agin.name.tr</id>
  <pidfile>/usr/local/mailserver/jabberd/var/jabberd/pid/sm.pid</pidfile>
  <router>
    <ip>10.0.0.119</ip>            <!-- default: 127.0.0.1 -->
    <port>5347</port>             <!-- default: 5347 -->
    <user>jabberd</user>          <!-- default: jabberd -->
    <pass>secret</pass>           <!-- default: secret -->
    <retry>
      <init>3</init>
      <lost>3</lost>
      <sleep>2</sleep>
    </retry>
  </router>
  <log type='syslog'>
    <ident>jabberd/sm</ident>
    <facility>local3</facility>
  </log>
  <storage>
    <path>/usr/local/mailserver/jabberd/lib/jabberd</path>
    <driver>mysql</driver>
    <mysql>
      <host>localhost</host>
      <port>3306</port>
      <dbname>jabberd2</dbname>
      <user>jabberd2</user>
      <pass>secret</pass>
      <transactions/>
    </mysql>
  </storage>

  <aci>
    <acl type='all'>
      <jid>[EMAIL PROTECTED]</jid>
    </acl>
  </aci>
.
.
.
.
.
  <discovery>
    <identity>
      <category>server</category>       <!-- default: server -->
      <type>im</type>                   <!-- default: im -->
      <name>Agin IM Server</name>     <!-- default: Jabber IM server -->
    </identity>
    <agents/>
    <items> </items>
  </discovery>

  <user>
<auto-create/>
    <template>
        <active-cache-ttl>60</active-cache-ttl>
    </template>
  </user>

  <amp> </amp>
  <offline> </offline>
  <roster> </roster>
  <status> </status>
</sm>


-----------------------------








I googled in net, but could not found a solution.

Secondly, i want to make search on maililing list threads, but i could not
find an address, where can i make search?


Regards,


-halil.

Reply via email to