-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strange connection bug #49
Comments
Is your hostname 'website' ? It looks like its a DNS lookup issue for you xmpp hostname you are trying to connect to. |
I edited the log, replacing the url of my website with "website.info", and the domain without extension to "website" so that shouldn't be the issue. |
Yeah but it looks like DNS lookups are failing. It is either not connecting or after the lookup it has an error. Can you do an srv lookup from the server running punjab? |
I have two servers:
root@openfire-production:~# dig chat.website.com ; <<>> DiG 9.9.3-rpz2+rl.13214.22-P2-Ubuntu-1:9.9.3.dfsg.P2-4ubuntu1.1 <<>> chat.website.com ;; OPT PSEUDOSECTION: ;; ANSWER SECTION: ;; Query time: 5 msec (*I changed the ips) |
Punjab will do a SRV lookup for the host you are trying to connect to, in most cases, its is the domain part of the jid. Unfortunately, this part is a bit difficult to debug in Punjab. It is something I want to fix. However, there are a few things you can do to debug this, try and make a simple script to debug just the SRV lookup part, force a direct connection in Punjab's session.make_session code, or put route attributes in your session initialization xml, which will bypass the SRV lookup. If you can determine that DNS is not the issue then we can go from there. |
I have added bosh.connect_srv = False right after bosh = HttpbService(1) in punjab.tac. Now, it does not do the SRV lookup, but there is still a connection issue. Here's the log: 2014-02-17 17:27:04-0500 [-] twistd 13.0.0 (/usr/bin/python 2.7.5) starting up. |
That looks like it can not make the connection to port 5222 of the xmpp server. |
netstat shows: Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name -punjab is on the same server as openfire Can it be related to the prior srv issue? |
The issue has been solved by adding the chat domain/ip pair to /etc/hosts. Thanks! |
I am having issues connecting to my Openfire via Candy Chat + Punjab.
-The http-bind url is fine (returns XEP-0124 - BOSH )
-When proxypass is set to Openfire's http-bind (7070), chat logs in fine (so Openfire is not an issue).
That's what I see in the browser:
Response Headers
Access-Control-Allow-Head... Content-Type
Access-Control-Allow-Orig... *
Connection Keep-Alive
Content-Encoding gzip
Content-Length 107
Content-Type text/xml
Date Thu, 13 Feb 2014 04:36:42 GMT
Keep-Alive timeout=5, max=120
Server TwistedWeb/13.0.0
Vary Accept-Encoding
Request Headers
Accept text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Encoding gzip, deflate
Accept-Language en-US,en;q=0.5
Content-Length 207
Content-Type text/plain; charset=UTF-8
Cookie SESSID=il9pqufgugh99p90jkat9ckkk3
Host callision.info
Referer https://website.info/public/gui/candy-chat/example/
User-Agent Mozilla/5.0 (Windows NT 6.3; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0
Post is:
Response:
Here's the log:
Please advise.
Thanks!
The text was updated successfully, but these errors were encountered: