Hi,

tried my first installation months ago from darcs during 0.4.4 times,
then again around 0.5.0 from darcs, both on Debian Etch amd64 inside a
Xen DomU. xmppdaemon hung shortly after starting consuming 100% cpu
time.

Since Debian Etch only has PHP 5.2.0 I and others in the #laconica IRC
channel suspected the following PHP bug fixed in PHP 5.2.6 to be the
reason:

  http://bugs.php.net/bug.php?id=42682
  http://bugs.php.net/bug.php?id=40735
  http://bugs.php.net/bug.php?id=40458

(The bug reports are all about the bug, the newer bug reports all say
"This bug is the same as #<before> but I am unable to modify the
status of that bug.". :-)

So I used another Xen DomU which I prematurely upgraded to Debian
Lenny (the current "testing" and upcoming "stable" release) because
Debian Lenny has PHP 5.2.6. But nothing changed, even not with 0.6.0.

I tried it with two different Jabber servers, both running jabberd 1.4
running on Debian Etch amd64 (one in a Xen DomU, the other one on real
hardware). Both Jabber servers work fine except this laconica issue. I
use one of them daily for all my Jabber communication, e.g. also for
my XMPP posts on identi.ca.

I turned on debugging for XMPP and it gives me the following:

[EMAIL PROTECTED]:~/laconica$ php5 scripts/xmppdaemon.php 
1222622323 [INFO]: Connecting to tcp://jabber.lugs.ch:5222
1222622323 [INFO]: Socket is ready; send it.
1222622323 [VERBOSE]: SENT: <stream:stream to="jabber.lugs.ch" 
xmlns:stream="http://etherx.jabber.org/streams"; xmlns="jabber:client" 
version="1.0">
1222622323 [INFO]: Successfully sent 119 bytes.
1222622323 [VERBOSE]: RECV: <?xml version='1.0'?><stream:stream 
xmlns:stream='http://etherx.jabber.org/streams' id='48DFBC73' 
xmlns='jabber:client' from='jabber.lugs.ch'>

[EMAIL PROTECTED]:~/laconica$ php5 scripts/xmppdaemon.php 
1222623051 [INFO]: Connecting to tcp://noone.org:5222
[EMAIL PROTECTED]:~/laconica$ 1222623051 [INFO]: Socket is ready; send it.
1222623051 [VERBOSE]: SENT: <stream:stream to="noone.org" 
xmlns:stream="http://etherx.jabber.org/streams"; xmlns="jabber:client" 
version="1.0">
1222623051 [INFO]: Successfully sent 114 bytes.
1222623051 [VERBOSE]: RECV: <?xml version='1.0'?><stream:stream 
xmlns:stream='http://etherx.jabber.org/streams' id='48DFBF4B' 
xmlns='jabber:client' from='noone.org'>

Independent of the server, they just say "hello" to each other and
then nothing more happens. (Looks the same in a packet sniffer I setup
for port 5222.) No usernames and no passwords are transfered.

The last think the sniffer sees is the TCP ACK from the client to the
server for the last received message.

When I try to add my personal jabber id to my account in this laconica
instance, I get the following error message after some timeout:

1222622377 [INFO]: Connecting to tcp://jabber.lugs.ch:5222
1222622377 [INFO]: Socket is ready; send it.
1222622377 [VERBOSE]: SENT: <stream:stream to="jabber.lugs.ch" 
xmlns:stream="http://etherx.jabber.org/streams"; xmlns="jabber:client" 
version="1.0">
1222622377 [INFO]: Successfully sent 119 bytes.
1222622377 [VERBOSE]: RECV: <?xml version='1.0'?><stream:stream 
xmlns:stream='http://etherx.jabber.org/streams' id='48DFBCA9' 
xmlns='jabber:client' from='jabber.lugs.ch'>
<br />
<b>Fatal error</b>:  Maximum execution time of 30 seconds exceeded in 
<b>/home/laconica/laconica-0.6.0/extlib/XMPPHP/XMLStream.php</b> on line 
<b>343</b><br />

Oh, and there's btw. a small bug, but I'm not sure if it's a laconica
or PHP bug: The debug messages are not escaped and therefore the XML
send to and received from the Jabber server are not shown in the
browser. You only see them if view the source of the message.

Any ideas what could be the reason why XMPP isn't working here and why
it is consuming 100% CPU time? Port 5222 is not firewalled (one of the
tested Jabber servers is on the same hardware, just in another Xen
DomU) and other Jabber clients (pidgin, bitlbee, etc.) in the same LAN
work fine.

P.S.: Since laconica is no fun without XMPP, we didn't go public with
the server yet.

                Regards, Axel
-- 
Axel Beckert - [EMAIL PROTECTED], [EMAIL PROTECTED] - http://noone.org/abe/
_______________________________________________
Laconica-dev mailing list
[email protected]
http://mail.laconi.ca/mailman/listinfo/laconica-dev

Reply via email to