ejabberd - Comments for "2.1.3 invalid host error on OpenBSD 4.8 x64 (newbie)" https://www.ejabberd.im/node/4524 en Another clarification https://www.ejabberd.im/node/4524#comment-57042 <p>Just for completion, let's clarify also this problem:</p> <div class="quote-msg"> <div class="quote-author"><em>vesperto</em> wrote:</div> <p>I still get the erl error:</p> <p># erl<br /> Erlang (BEAM) emulator version 5.6.5 [source] [64-bit] [async-threads:0] [kernel-poll:false]</p> <p>Eshell V5.6.5 (abort with ^G)<br /> 1&gt; stringPrep:start().<br /> ** exception error: undefined function stringPrep:start/0<br /> 2&gt; stringprep:start().<br /> ** exception error: undefined function stringprep:start/0<br /> 3&gt; q().<br /> ok<br /> 4&gt; # </p></div> <p>In my previous comment I was running erl inside ejabberd/src with all the *.beam and *.so binaries.</p> <p>This is a more reproducible example:</p> <pre> $ cd /tmp /tmp $ erl Erlang R14B01 (erts-5.8.2) [source] [smp:2:2] [rq:2] [async-threads:0] [kernel-poll:false] Eshell V5.8.2 (abort with ^G) 1&gt; stringprep:start(). ** exception error: undefined function stringprep:start/0 2&gt; q(). ok $ erl -pa /lib/ejabberd/ebin Erlang R14B01 (erts-5.8.2) [source] [smp:2:2] [rq:2] [async-threads:0] [kernel-poll:false] Eshell V5.8.2 (abort with ^G) 1&gt; stringprep:start(). {ok,&lt;0.36.0&gt;} 2&gt; q(). ok </pre> Thu, 03 Feb 2011 15:11:55 +0000 mfoss comment 57042 at https://www.ejabberd.im 1/2 SOLVED https://www.ejabberd.im/node/4524#comment-57040 <p>I'm kinda glad my previous, lengthly, documented post didn't quite make it. I've maanged to solve it in the meantime. Newbie error (i'm sure you're surprised).</p> <p>I still get the erl error:</p> <p># erl<br /> Erlang (BEAM) emulator version 5.6.5 [source] [64-bit] [async-threads:0] [kernel-poll:false]</p> <p>Eshell V5.6.5 (abort with ^G)<br /> 1&gt; stringPrep:start().<br /> ** exception error: undefined function stringPrep:start/0<br /> 2&gt; stringprep:start().<br /> ** exception error: undefined function stringprep:start/0<br /> 3&gt; q().<br /> ok<br /> 4&gt; #</p> <p>As for the server, i had:</p> <p>{hosts, "test.domain.com"}.</p> <p>instead of:</p> <p>{hosts,["test.domain.com"]}.</p> <p>I assumed for a single host the [] wasn't necessary, but i was wrong[1].</p> <p>Thanks for the reply :)</p> <p>[1] <noindex><a href="http://www.process-one.net/docs/ejabberd/guide_en.html#htoc21" title="http://www.process-one.net/docs/ejabberd/guide_en.html#htoc21" rel="nofollow" >http://www.process-one.net/docs/ejabberd/guide_en.html#htoc21</a></noindex></p> Wed, 02 Feb 2011 22:38:32 +0000 vesperto comment 57040 at https://www.ejabberd.im I've stripped my .cfg[1] from https://www.ejabberd.im/node/4524#comment-57039 <p>I've stripped my .cfg[1] from comments and extra stuff.</p> <p>My bad about the p. Still:</p> <p># erl<br /> Erlang (BEAM) emulator version 5.6.5 [source] [64-bit] [async-threads:0] [kernel-poll:false]</p> <p>Eshell V5.6.5 (abort with ^G)<br /> 1&gt; stringPrep:start().<br /> ** exception error: undefined function stringPrep:start/0<br /> 2&gt; stringprep:start().<br /> ** exception error: undefined function stringprep:start/0<br /> 3&gt; q().<br /> ok<br /> 4&gt; #</p> <p>As for the server, i use this string:<br /> {hosts, "test.domain.com"}.</p> <p># ejabberdctl start<br /> # ejabberdctl<br /> The node ejabberd@obsd6448 is started with status: started<br /> ejabberd is not running in that node<br /> Check for error messages: /var/log/ejabberd/ejabberd.log<br /> or other files in that directory.</p> <p>Error in ejabberd ctl process: 'error' badarg</p> <p>...</p> <p># cat /var/log/ejabberd/ejabberd.log<br /> ...<br /> =ERROR REPORT==== 2011-02-02 22:06:02 ===<br /> E(&lt;0.35.0&gt;:ejabberd_config:164) : Can't load config file: invalid host name [116]</p> <p>=INFO REPORT==== 2011-02-02 22:06:02 ===<br /> application: ejabberd<br /> exited: {bad_return,{{ejabberd_app,start,[normal,[]]},<br /> {'EXIT',"invalid hostname"}}}<br /> type: temporary</p> <p>I've also tried with.<br /> # ejabberdctl start --config /etc/ejabberd/ejabberd.cfg, same results.</p> <p>I previously tested with "localhost", gave me 49, now it gives me 116. I've neither defined "49" nor "116" as the host. I've also tried with ip adresses, my guess is i'm missing some Erlang lib.</p> <p>I have these installed:<br /> ejabberd-2.1.3<br /> erlang-12b.5</p> <p>The package states this:<br /> @depend converters/libiconv:libiconv-*:libiconv-1.13p1<br /> @depend lang/erlang:erlang-&gt;=12b.0:erlang-12b.5<br /> @wantlib crypto.18.0<br /> @wantlib expat.9.0<br /> @wantlib iconv.6.0<br /> @wantlib ssl.15.1<br /> @wantlib z.4.1</p> <p>I have both dependencies, but none of the recommended. It shouldn't prevent the server from starting, tough, right?</p> <p>[1] <noindex><a href="http://pastebin.com/5NbAXMtW" title="http://pastebin.com/5NbAXMtW" rel="nofollow" >http://pastebin.com/5NbAXMtW</a></noindex></p> Wed, 02 Feb 2011 22:23:04 +0000 vesperto comment 57039 at https://www.ejabberd.im vesperto wrote: =ERROR https://www.ejabberd.im/node/4524#comment-57032 <div class="quote-msg"> <div class="quote-author"><em>vesperto</em> wrote:</div> <pre> =ERROR REPORT==== 2011-01-29 12:33:23 === E(&lt;0.35.0&gt;:ejabberd_config:164) : Can't load config file: invalid host name [49] =INFO REPORT==== 2011-01-29 12:33:23 === application: ejabberd exited: {bad_return,{{ejabberd_app,start,[normal,[]]}, {'EXIT',"invalid hostname"}}} type: temporary </pre></div> <p>You modified ejabberd.cfg and put some strange content. See what happens if I put<br /> {hosts, ["local@host"]}.</p> <pre> =ERROR REPORT==== 2-Feb-2011::11:09:38 === E(&lt;0.39.0&gt;:ejabberd_config:164) : Can't load config file: invalid host name ["local@host"] =CRASH REPORT==== 2-Feb-2011::11:09:38 === crasher: initial call: application_master:init/4 pid: &lt;0.38.0&gt; registered_name: [] exception exit: {bad_return,{{ejabberd_app,start,[normal,[]]}, {'EXIT',"invalid hostname"}}} in function application_master:init/4 ancestors: [&lt;0.37.0&gt;] messages: [{'EXIT',&lt;0.39.0&gt;,normal}] links: [&lt;0.37.0&gt;,&lt;0.6.0&gt;] dictionary: [] trap_exit: true status: running heap_size: 610 stack_size: 24 reductions: 134 neighbours: =INFO REPORT==== 2-Feb-2011::11:09:38 === application: ejabberd exited: {bad_return,{{ejabberd_app,start,[normal,[]]}, {'EXIT',"invalid hostname"}}} type: temporary </pre><div class="quote-msg"> <div class="quote-author"><em>vesperto</em> wrote:</div> <pre> # erl Erlang (BEAM) emulator version 5.6.5 [source] [64-bit] [async-threads:0] [kernel-poll:false] Eshell V5.6.5 (abort with ^G) 1&gt; stringrep:start(). ** exception error: undefined function stringrep:start/0 </pre></div> <p>Remember the middle P: stringPrep</p> Wed, 02 Feb 2011 10:13:02 +0000 mfoss comment 57032 at https://www.ejabberd.im