I have been trying to configure punjab connection manager to point to the ejabberd server for over 3 days now.
I am currently doing it on a docker container. Here is my docker-compose file. *version: '2'services: punjab: image: punjab ports: - "5280:5280" links: - ejabberd ejabberd: image: ejabberd depends_on: - mysql links: - mysql mysql: image: mysql:5.6* Here punjab, ejabberd and mysql:5.6 are my local docker images. *Here is my session establishment request<body xml:lang='en' to='irc.hereim.co <http://irc.hereim.co>' hold='1' ack='1' rid='535412679923676' wait='60' ver='1.8' xmlns:xmpp='urn:xmpp:xbosh' xmpp:version='1.0' xmlns='http://jabber.org/protocol/httpbind <http://jabber.org/protocol/httpbind>'></body>As you can make out that I am trying to connect to establish an xmpp session for irc.hereim.co <http://irc.hereim.co>In my docker container for punjab I have installed dnsmasq and added the following entry to the /etc/dnsmasq.confsrv-host=_xmpp-client._tcp.irc.hereim.co <http://tcp.irc.hereim.co>,ejabberd,5222,0,5Below is my dnsmasq.conf filesrv-host=_xmpp-client._tcp.irc.hereim.co <http://tcp.irc.hereim.co>,ejabberd,5222,0,5no-dhcp-interface=server=8.8.8.8user=rootresolv-file=/etc/resolv.dnsmasq.confno-hostsaddn-hosts=/etc/dnsmasq.hosts*Following are the contents of /etc/resolv.dnsmasq.conf *search irc.hereim.co <http://irc.hereim.co>nameserver 8.8.8.8* Also the contents of /etc/dnsmasq.hosts are *127.0.0.1 irc.hereim.co <http://irc.hereim.co>* But when I try to make a connection with the connection manager and establish a connection I get the error as below. in the connection manager logs *2016-06-08T13:27:44+0000 [_GenericHTTPChannelProtocol,0,192.168.99.1] HEADERS 1465392464.73:2016-06-08T13:27:44+0000 [_GenericHTTPChannelProtocol,0,192.168.99.1] Headers({'connection': ['Keep-Alive'], 'content-length': ['196'], 'content-type': ['text/xml; charset=utf-8'], 'host': ['192.168.99.100:5280']})2016-06-08T13:27:44+0000 [_GenericHTTPChannelProtocol,0,192.168.99.1] HTTPB POST : 2016-06-08T13:27:44+0000 [_GenericHTTPChannelProtocol,0,192.168.99.1] <body xml:lang='en' to='irc.hereim.co <http://irc.hereim.co>' hold='1' ack='1' rid='546595092185986' wait='60' ver='1.8' xmlns:xmpp='urn:xmpp:xbosh' xmpp:version='1.0' xmlns='http://jabber.org/protocol/httpbind <http://jabber.org/protocol/httpbind>'></body>2016-06-08T13:27:44+0000 [_GenericHTTPChannelProtocol,0,192.168.99.1] Session Created : 7cb7958707ffc49b7ab55ea99d787c3e4f276548 1465392464.732016-06-08T13:27:44+0000 [_GenericHTTPChannelProtocol,0,192.168.99.1] ================================== 1465392464.73 connect to irc.hereim.co:0 <http://irc.hereim.co:0> ==================================2016-06-08T13:27:44+0000 [punjab.session.Session#info] Starting factory <punjab.session.Session object at 0x7f913a4b8350>2016-06-08T13:27:44+0000 [Uninitialized] <twisted.internet.tcp.Connector instance at 0x7f913a4b0c20> will retry in 2 seconds2016-06-08T13:27:44+0000 [punjab.session.Session#info] Stopping factory <punjab.session.Session object at 0x7f913a4b8350>2016-06-08T13:27:47+0000 [punjab.session.Session#info] Starting factory <punjab.session.Session object at 0x7f913a4b8350>2016-06-08T13:27:47+0000 [Uninitialized] <twisted.internet.tcp.Connector instance at 0x7f913a4b0c20> will retry in 8 seconds2016-06-08T13:27:47+0000 [punjab.session.Session#info] Stopping factory <punjab.session.Session object at 0x7f913a4b8350>2016-06-08T13:27:56+0000 [punjab.session.Session#info] Starting factory <punjab.session.Session object at 0x7f913a4b8350>2016-06-08T13:27:56+0000 [Uninitialized] Abandoning <twisted.internet.tcp.Connector instance at 0x7f913a4b0c20> after 3 retries.2016-06-08T13:27:56+0000 [punjab.session.Session#info] Stopping factory <punjab.session.Session object at 0x7f913a4b8350>2016-06-08T13:28:12+0000 [-] ================================== 7cb7958707ffc49b7ab55ea99d787c3e4f276548 1465392492.53 startup timeout ==================================2016-06-08T13:28:12+0000 [-] HTTPB Error 2002016-06-08T13:28:12+0000 [-] HTTPB Return Error: 200 -> <body xmlns='http://jabber.org/protocol/httpbind <http://jabber.org/protocol/httpbind>' type='terminate' condition='remote-connection-failed'/>2016-06-08T13:28:12+0000 [twisted.python.log#info] "192.168.99.1" - - [08/Jun/2016:13:28:11 +0000] "POST /http-bind HTTP/1.1" 200 105 "-" "-"2016-06-08T13:29:44+0000 [-] SESSION -> Terminate2016-06-08T13:29:44+0000 [-] expire (7cb7958707ffc49b7ab55ea99d787c3e4f276548)2016-06-08T13:29:44+0000 [-] 0* Can anybody please help me with this deployment. I may be missing some important piece which may tie the whole story together. I assume the same architecture will go ahead with the AWS or production like deployment as well. Regards
