ejabberd - Comments for "Can&amp;#039;t connect from client. Error in the logs: Option has invalid (outdated?) format." https://www.ejabberd.im/forum/28600/cant-connect-client-error-logs-option-has-invalid-outdated-format en Great, so your webbrowser can https://www.ejabberd.im/forum/28600/cant-connect-client-error-logs-option-has-invalid-outdated-format#comment-67191 <p>Great, so your webbrowser can connect correctly to ejabberd. Then only problem is the obvious thing that it's attempt an HTTP query to a XMPP server.</p> <p>Now try the "alternative" I mentioned earlier: Use a well-known Jabber client (like Gajim, Psi, Tkabber...) to login to your ejabberd server using a valid account. Also try with a non-existing account, just for testing.</p> Mon, 21 Nov 2016 09:39:38 +0000 badlop comment 67191 at https://www.ejabberd.im Found something suspicious in https://www.ejabberd.im/forum/28600/cant-connect-client-error-logs-option-has-invalid-outdated-format#comment-67187 <p>Found something suspicious in the install log.</p> <p>Found out that I installed ejabberd a couple of years ago and never deleted the debries.</p> <p>Reinstalled new after renaming those two dirs mentioned.</p> <p>Browser to <noindex><a href="http://localhost:5222/" title="http://localhost:5222/" rel="nofollow" >http://localhost:5222/</a></noindex> gets me this:</p> <div class="codeblock"><code>&lt;?xml version=&#039;1.0&#039;?&gt;&lt;stream:stream xmlns=&#039;jabber:client&#039; xmlns:stream=&#039;http://etherx.jabber.org/streams&#039; id=&#039;11101614011176778235&#039; from=&#039;myhost.de&#039; version=&#039;1.0&#039;&gt;&lt;stream:error&gt;&lt;xml-not-well-formed xmlns=&#039;urn:ietf:params:xml:ns:xmpp-streams&#039;&gt;&lt;/xml-not-well-formed&gt;&lt;/stream:error&gt;&lt;/stream:stream&gt;</code></div> <p>In the log i see this:</p> <div class="codeblock"><code>2016-11-17 20:30:17.003 [info] &lt;0.7.0&gt; Application lager started on node ejabberd@localhost<br />2016-11-17 20:30:17.183 [info] &lt;0.7.0&gt; Application crypto started on node ejabberd@localhost<br />2016-11-17 20:30:17.206 [info] &lt;0.7.0&gt; Application sasl started on node ejabberd@localhost<br />2016-11-17 20:30:17.601 [info] &lt;0.7.0&gt; Application asn1 started on node ejabberd@localhost<br />2016-11-17 20:30:17.602 [info] &lt;0.7.0&gt; Application public_key started on node ejabberd@localhost<br />2016-11-17 20:30:17.671 [info] &lt;0.7.0&gt; Application ssl started on node ejabberd@localhost<br />2016-11-17 20:30:17.936 [info] &lt;0.7.0&gt; Application fast_yaml started on node ejabberd@localhost<br />2016-11-17 20:30:18.248 [info] &lt;0.7.0&gt; Application fast_tls started on node ejabberd@localhost<br />2016-11-17 20:30:18.536 [info] &lt;0.7.0&gt; Application fast_xml started on node ejabberd@localhost<br />2016-11-17 20:30:18.576 [info] &lt;0.7.0&gt; Application stringprep started on node ejabberd@localhost<br />2016-11-17 20:30:18.821 [info] &lt;0.7.0&gt; Application cache_tab started on node ejabberd@localhost<br />2016-11-17 20:30:19.409 [info] &lt;0.7.0&gt; Application elixir started on node ejabberd@localhost<br />2016-11-17 20:30:20.182 [info] &lt;0.7.0&gt; Application mnesia started on node ejabberd@localhost<br />2016-11-17 20:30:25.712 [info] &lt;0.7.0&gt; Application inets started on node ejabberd@localhost<br />2016-11-17 20:30:33.473 [info] &lt;0.37.0&gt;@cyrsasl_digest:start:60 FQDN used to check DIGEST-MD5 SASL authentication: &lt;&lt;&quot;CT115772&quot;&gt;&gt;<br />2016-11-17 20:30:33.473 [info] &lt;0.37.0&gt;@ejabberd_app:add_windows_nameservers:165 Adding machine&#039;s DNS IPs to Erlang system:<br />[]<br />2016-11-17 20:30:33.849 [warning] &lt;0.37.0&gt;@gen_mod:sort_modules:108 module &#039;mod_mam&#039; is recommended for module &#039;mod_muc&#039; but is not found in the config<br />2016-11-17 20:30:33.901 [info] &lt;0.475.0&gt;@ejabberd_listener:listen_tcp:189 Reusing listening port for {5222,{0,0,0,0},tcp}<br />2016-11-17 20:30:33.901 [info] &lt;0.476.0&gt;@ejabberd_listener:listen_tcp:189 Reusing listening port for {5269,{0,0,0,0},tcp}<br />2016-11-17 20:30:33.902 [info] &lt;0.478.0&gt;@ejabberd_listener:listen_tcp:189 Reusing listening port for {5280,{0,0,0,0},tcp}<br />2016-11-17 20:30:33.902 [info] &lt;0.37.0&gt;@ejabberd_app:start:81 ejabberd 16.09 is started in the node ejabberd@localhost<br />2016-11-17 20:30:33.902 [info] &lt;0.7.0&gt; Application ejabberd started on node ejabberd@localhost<br />2016-11-17 20:37:11.769 [info] &lt;0.475.0&gt;@ejabberd_listener:accept:333 (#Port&lt;0.21703&gt;) Accepted connection 127.0.0.1:55480 -&gt; 127.0.0.1:5222<br />2016-11-17 20:37:12.052 [info] &lt;0.475.0&gt;@ejabberd_listener:accept:333 (#Port&lt;0.21726&gt;) Accepted connection 127.0.0.1:55481 -&gt; 127.0.0.1:5222</code></div> Thu, 17 Nov 2016 19:52:18 +0000 Do_Checkor comment 67187 at https://www.ejabberd.im You only made that change in https://www.ejabberd.im/forum/28600/cant-connect-client-error-logs-option-has-invalid-outdated-format#comment-67185 <p>You only made that change in the config file? The s2s_shaper (server to server) option problem is unrelated to your c2s (client to server) problem. If you tweaked other options, you can install from zero, and try to login even with no valid account, just to see if ejabberd receives the connection attempt.</p> <p>I tried this:<br /> 1. I configure similar to you<br /> 2. Start ejabberd<br /> 3. In a webbrowser in the server machine I open the page: <noindex><a href="http://localhost:5222/" title="http://localhost:5222/" rel="nofollow" >http://localhost:5222/</a></noindex><br /> 4. As expected, ejabberd receives the connection attempt:</p> <pre> 13:17:17.809 [info] (#Port&lt;0.17484&gt;) Accepted connection 127.0.0.1:52946 -&gt; 127.0.0.1:5222 </pre><p>5. And the browser receives some error report, because 5222 is for XMPP clients, not HTTP clients.</p> <p>Alternatively:<br /> 3. I use a jabber client with bad auth details to login to ejabberd<br /> 4. ejabberd logs the connection attempt and rejects it:</p> <pre> 13:24:39.744 [info] (#Port&lt;0.17415&gt;) Accepted connection 127.0.0.1:35889 -&gt; 127.0.0.1:5222 13:24:40.104 [info] ({socket_state,fast_tls,{tlssock,#Port&lt;0.17415&gt;,#Port&lt;0.17416&gt;},&lt;0.702.0&gt;}) Failed authentication for user1@localhost from 127.0.0.1 </pre> Wed, 16 Nov 2016 12:26:27 +0000 badlop comment 67185 at https://www.ejabberd.im