{"id":2443,"date":"2022-08-30T15:24:54","date_gmt":"2022-08-30T15:24:54","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/01\/12\/exitinvalid-hostname-when-start-ejabberd-closed-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:24:54","modified_gmt":"2022-08-30T15:24:54","slug":"exitinvalid-hostname-when-start-ejabberd-closed-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/exitinvalid-hostname-when-start-ejabberd-closed-collection-of-common-programming-errors\/","title":{"rendered":"{&#39;EXIT&#39;,&ldquo;invalid hostname&rdquo;} when start Ejabberd [closed]-Collection of common programming errors"},"content":{"rendered":"<p>I install the Ejabberd on my Lion with OTP\/r15b02.<\/p>\n<p>When start Ejabberd, there is one error in log<\/p>\n<pre><code>=CRASH REPORT==== 18-Sep-2012::21:05:54 ===\n  crasher:\n    initial call: application_master:init\/4\n    pid: \n    registered_name: []\n    exception exit: {bad_return,{{ejabberd_app,start,[normal,[]]},\n                                 {'EXIT',\"invalid hostname\"}}}\n      in function  application_master:init\/4 (application_master.erl, line 138)\n    ancestors: []\n    messages: [{'EXIT',,normal}]\n    links: [,]\n    dictionary: []\n    trap_exit: true\n    status: running\n    heap_size: 987\n    stack_size: 24\n    reductions: 151\n  neighbours:\n<\/code><\/pre>\n<p>Who can tell me the reason , thanks<\/p>\n<ol>\n<li>\n<p>Tracking the ejabberd code, I see that you should have this return if the host (or hosts) definition in the ejabber config file is incorrect.<\/p>\n<p>The exmpp_stringprep:nodeprep(Host) is throwing an error for one of the Host name you define. I guess you can check it in the shell.<\/p>\n<p>Another possible reason is that exmpp is not started yet, but I guess that ejabber is taking care of that.<\/p>\n<p>In my opinion, ejabber should not redefine the error message coming from exmpp_stringprep:nodeprep because it can help for debug: {error, invalid_string | exmpp_not_started} give more info than {exit,invalid hostname}, or better, it should not trap it, as it fails anyway.<\/p>\n<\/li>\n<\/ol>\n<p id=\"rop\"><small>Originally posted 2014-01-12 20:48:04. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I install the Ejabberd on my Lion with OTP\/r15b02. When start Ejabberd, there is one error in log =CRASH REPORT==== 18-Sep-2012::21:05:54 === crasher: initial call: application_master:init\/4 pid: registered_name: [] exception exit: {bad_return,{{ejabberd_app,start,[normal,[]]}, {&#8216;EXIT&#8217;,&#8221;invalid hostname&#8221;}}} in function application_master:init\/4 (application_master.erl, line 138) ancestors: [] messages: [{&#8216;EXIT&#8217;,,normal}] links: [,] dictionary: [] trap_exit: true status: running heap_size: 987 stack_size: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2443","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2443","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2443"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2443\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2443"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2443"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}