"basic" example does not work

16 views
Skip to first unread message

stella

unread,
Aug 16, 2011, 11:30:21 AM8/16/11
to Punjab
Hi,

I have apache and punjab setup on my ubuntu host. I am using the
"basic" example on https://github.com/metajack/strophejs/tree/master/examples
to test.

I have changed the BOSH_SERVICE value to my punjab 'http://localhost:
5280/http-bind'. Then I use my facebook jid (j...@chat.facebook.com)
and password to connect. However, the connection was failed.

The log says:
Strophe is connecting
SENT: <body rid='2506141826' xmlns='http://jabber.org/protocol/
httpbind' to='chat.facebook.com' xml:lang='en' wait='60' hold='1'
content='text/xml; charset=utf-8' ver='1.6' xmpp:version='1.0'
xmlns:xmpp='urn:xmpp:xbosh'/>
RECV: <body xmlns='http://jabber.org/protocol/httpbind'
type='terminate' condition='remote connection-failed'/>


And the twisd.log looks like this:
2011-08-16 16:37:57+0200 [HTTPChannel,3,127.0.0.1] 127.0.0.1 - -
[16/Aug/2011:14:37:57 +0000] "OPTIONS /http-bind HTTP/1.1" 200 -
"http://localhost/fbOttSignal/basic.html" "Mozilla/5.0 (X11; Linux
x86_64) AppleWebKit/534.26+ (KHTML, like Gecko) Version/5.0 Safari/
534.26+"
2011-08-16 16:37:57+0200 [HTTPChannel,3,127.0.0.1] HEADERS
1313505477.23:
2011-08-16 16:37:57+0200 [HTTPChannel,3,127.0.0.1] {'origin':
'http://localhost', 'content-length': '215', 'accept-encoding':
'gzip', 'accept': '*/*', 'user-agent': 'Mozilla/5.0 (X11; Linux
x86_64) AppleWebKit/534.26+ (KHTML, like Gecko) Version/5.0 Safari/
534.26+', 'host': 'localhost:5280', 'referer': 'http://localhost/
fbOttSignal/basic.html', 'content-type': 'application/xml'}
2011-08-16 16:37:57+0200 [HTTPChannel,3,127.0.0.1] HTTPB POST :
2011-08-16 16:37:57+0200 [HTTPChannel,3,127.0.0.1] <body
rid='3651938121' xmlns='http://jabber.org/protocol/httpbind'
to='chat.facebook.com' xml:lang='en' wait='60' hold='1' content='text/
xml; charset=utf-8' ver='1.6' xmpp:version='1.0'
xmlns:xmpp='urn:xmpp:xbosh'/>
2011-08-16 16:37:57+0200 [HTTPChannel,3,127.0.0.1] Session
Created : 7024312e129db428e6f575e17e77a3ae1455ce9e 1313505477.23
2011-08-16 16:37:57+0200 [HTTPChannel,3,127.0.0.1]
================================== 1313505477.24 connect to
chat.facebook.com:5222 ==================================
2011-08-16 16:37:57+0200 [HTTPChannel,3,127.0.0.1] Starting
factory <punjab.session.Session object at 0x1731b90>
2011-08-16 16:37:57+0200 [HTTPChannel,3,127.0.0.1] <class
'twisted.names.dns.DNSDatagramProtocol'> starting on 51281
2011-08-16 16:37:57+0200 [HTTPChannel,3,127.0.0.1] Starting
protocol <twisted.names.dns.DNSDatagramProtocol object at 0x1731a10>
2011-08-16 16:37:57+0200 [twisted.names.dns.DNSDatagramProtocol
(UDP)] <punjab.session.XMPPClientConnector instance at 0x17c30e0> will
retry in 3 seconds
2011-08-16 16:37:57+0200 [twisted.names.dns.DNSDatagramProtocol
(UDP)] Stopping factory <punjab.session.Session object at 0x1731b90>
2011-08-16 16:37:57+0200 [-] (Port 51281 Closed)
2011-08-16 16:37:57+0200 [-] Stopping protocol
<twisted.names.dns.DNSDatagramProtocol object at 0x1731a10>
2011-08-16 16:38:01+0200 [-] Starting factory <punjab.session.Session
object at 0x1731b90>
2011-08-16 16:38:01+0200 [-] <class
'twisted.names.dns.DNSDatagramProtocol'> starting on 35711
2011-08-16 16:38:01+0200 [-] Starting protocol
<twisted.names.dns.DNSDatagramProtocol object at 0x1725c50>
2011-08-16 16:38:01+0200 [twisted.names.dns.DNSDatagramProtocol (UDP)]
<punjab.session.XMPPClientConnector instance at 0x17c30e0> will retry
in 8 seconds
2011-08-16 16:38:01+0200 [twisted.names.dns.DNSDatagramProtocol (UDP)]
Stopping factory <punjab.session.Session object at 0x1731b90>
2011-08-16 16:38:01+0200 [-] (Port 35711 Closed)
2011-08-16 16:38:01+0200 [-] Stopping protocol
<twisted.names.dns.DNSDatagramProtocol object at 0x1725c50>
2011-08-16 16:38:09+0200 [-] Starting factory <punjab.session.Session
object at 0x1731b90>
2011-08-16 16:38:09+0200 [-] <class
'twisted.names.dns.DNSDatagramProtocol'> starting on 34062
2011-08-16 16:38:09+0200 [-] Starting protocol
<twisted.names.dns.DNSDatagramProtocol object at 0x1725c50>
2011-08-16 16:38:10+0200 [twisted.names.dns.DNSDatagramProtocol (UDP)]
Abandoning <punjab.session.XMPPClientConnector instance at 0x17c30e0>
after 3 retries.
2011-08-16 16:38:10+0200 [twisted.names.dns.DNSDatagramProtocol (UDP)]
Stopping factory <punjab.session.Session object at 0x1731b90>
2011-08-16 16:38:10+0200 [-] (Port 34062 Closed)
2011-08-16 16:38:10+0200 [-] Stopping protocol
<twisted.names.dns.DNSDatagramProtocol object at 0x1725c50>
2011-08-16 16:38:25+0200 [-] ==================================
7024312e129db428e6f575e17e77a3ae1455ce9e 1313505505.78 startup timeout
==================================
2011-08-16 16:38:25+0200 [-] HTTPB Error 200
2011-08-16 16:38:25+0200 [-] HTTPB Return Error: 200 -> <body
xmlns='http://jabber.org/protocol/httpbind' type='terminate'
condition='remote-connection-failed'/>
2011-08-16 16:38:25+0200 [-] 127.0.0.1 - - [16/Aug/2011:14:38:25
+0000] "POST /http-bind HTTP/1.1" 200 105 "http://localhost/
fbOttSignal/basic.html" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/
534.26+ (KHTML, like Gecko) Version/5.0 Safari/534.26+"
2011-08-16 16:39:57+0200 [-] SESSION -> Terminate
2011-08-16 16:39:57+0200 [-] expire
(7024312e129db428e6f575e17e77a3ae1455ce9e)
2011-08-16 16:39:57+0200 [-] 0
======================================================================================================================================

Could you kindly help me to analyse the problem? Is there anything
with my setting?

Thanks for your kind help!

/Stella

Christopher Zorn

unread,
Aug 17, 2011, 12:34:48 AM8/17/11
to punja...@googlegroups.com
This looks to be a dns issue when looking up chat.facebook.com. It seems to be timing out there. 

--
You received this message because you are subscribed to the Google Groups "Punjab" group.
To post to this group, send email to punja...@googlegroups.com.
To unsubscribe from this group, send email to punjab-xmpp...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/punjab-xmpp?hl=en.


stella

unread,
Aug 17, 2011, 4:55:09 AM8/17/11
to Punjab
Any suggestion on how to fix that?

On Aug 17, 6:34 am, Christopher Zorn <christopher.z...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages