ejabberd - Comments for "Ejabberd 16.09 Windows Service not start " https://www.ejabberd.im/forum/25607/ejabberd-1609-windows-service-not-start en Same over here: Service stops https://www.ejabberd.im/forum/25607/ejabberd-1609-windows-service-not-start#comment-67198 <p>Same over here:<br /> Service stops and displays error:</p> <p>Error 1067: The procerss terminated unexpectedly</p> <p>in windows logs i find:</p> <p>Log Name: System<br /> Source: ErlSrv<br /> Date: 11/23/2016 1:33:22 PM<br /> Event ID: 17<br /> Task Category: None<br /> Level: Error<br /> Keywords: Classic<br /> User: N/A<br /> Computer: ***<br /> Description:<br /> ejabberd: Could not start erlang service "ejabberd"with commandline ["C:\Program Files\ejabberd\bin\erl.exe" -service_event ErlSrv_ejabberd -nohup -sname ejabberd-srv@localhost -s win_service].<br /> Event Xml:</p> <p> 17<br /> 2<br /> 0<br /> 0x80000000000000</p> <p> 55023<br /> System<br /> ***</p> <p> ejabberd<br /> Could not start erlang service "ejabberd"with commandline ["C:\Program Files\ejabberd\bin\erl.exe" -service_event ErlSrv_ejabberd -nohup -sname ejabberd-srv@localhost -s win_service].</p> <p>Changed the sname to ejabberd@localhost, but that did not help either.</p> <p>regards,</p> <p>Arkadas</p> Wed, 23 Nov 2016 12:56:51 +0000 Arkadas comment 67198 at https://www.ejabberd.im I have the same error. Can https://www.ejabberd.im/forum/25607/ejabberd-1609-windows-service-not-start#comment-67180 <p>I have the same error. Can you resolve it?</p> Wed, 09 Nov 2016 10:50:31 +0000 ashum comment 67180 at https://www.ejabberd.im I try to delete folder https://www.ejabberd.im/forum/25607/ejabberd-1609-windows-service-not-start#comment-67092 <p>I try to delete folder database.<br /> Start the service, folder does not recreate.</p> <p>When i start ejabberd from desctop shortcut, it start and recreate database.</p> <p>Can someone help me, please?</p> Mon, 10 Oct 2016 08:15:35 +0000 gurarl comment 67092 at https://www.ejabberd.im Thanks for reply! I got to https://www.ejabberd.im/forum/25607/ejabberd-1609-windows-service-not-start#comment-67090 <p>Thanks for reply!<br /> I got to start the service.<br /> script that I used left below.<br /> but jabberd start fail.<br /> <strong>ejabberd.log</strong>:<br /> 2016-10-07 18:45:25.892 [info] &lt;0.41.0&gt;@cyrsasl_digest:start:60 FQDN used to check DIGEST-MD5 SASL authentication: &lt;&lt;"servername.domainname.ru"&gt;&gt;<br /> 2016-10-07 18:45:25.892 [info] &lt;0.41.0&gt;@ejabberd_app:add_windows_nameservers:165 Adding machine's DNS IPs to Erlang system:<br /> []<br /> 2016-10-07 18:45:25.892 [error] &lt;0.40.0&gt; CRASH REPORT Process &lt;0.40.0&gt; with 0 neighbours exited with reason: {aborted,{no_exists,passwd,attributes}} in application_master:init/4 line 134<br /> 2016-10-07 18:45:25.908 [info] &lt;0.7.0&gt; Application ejabberd exited with reason: {aborted,{no_exists,passwd,attributes}}</p> <p><strong>crash.log</strong><br /> 2016-10-07 18:45:25 =CRASH REPORT====<br /> crasher:<br /> initial call: application_master:init/4<br /> pid: &lt;0.40.0&gt;<br /> registered_name: []<br /> exception exit: {{bad_return,{{ejabberd_app,start,[normal,[]]},{'EXIT',{aborted,{no_exists,passwd,attributes}}}}},[{application_master,init,4,[{file,"application_master.erl"},{line,134}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]}<br /> ancestors: [&lt;0.39.0&gt;]<br /> messages: []<br /> links: [&lt;0.39.0&gt;,&lt;0.41.0&gt;,&lt;0.7.0&gt;]<br /> dictionary: []<br /> trap_exit: true<br /> status: running<br /> heap_size: 376<br /> stack_size: 27<br /> reductions: 114<br /> neighbours:</p> <p>From desctop link it start successful</p> <p><strong>Script to create erlsrv service ejabberd</strong></p> <div class="codeblock"><code>erlsrv add ejabberd -sname ejabberd@localhost -w &quot;C:\Program Files\ejabberd-16.09\bin&quot;<br />erlsrv set ejabberd -ar &quot;-kernel inetrc &#039;\&quot;%APPDATA%/ejabberd/conf/inetrc\&quot;&#039; -mnesia dir &#039;\&quot;%APPDATA%/ejabberd/database/mnesia\&quot;&#039; -sasl sasl_error_logger {file,&#039;\&quot;C:/ejabberd/logs/sasl.log\&quot;&#039;} -setcookie ejabberd -s ejabberd -smp enable +P 250000&quot;<br />erlsrv set ejabberd -e &quot;EJABBERD_BIN_PATH=C:\Program Files\ejabberd-16.09\lib\ejabberd-16.09\priv\bin&quot;<br />erlsrv set ejabberd -e &quot;EJABBERD_CONFIG_PATH=%APPDATA%\ejabberd\conf\ejabberd.yml&quot;<br />erlsrv set ejabberd -e &quot;EJABBERD_DOC_PATH=C:\Program Files\ejabberd-16.09\doc&quot;<br />erlsrv set ejabberd -e &quot;EJABBERD_LOG_PATH=%APPDATA%\ejabberd\logs\ejabberd.log&quot;<br />erlsrv set ejabberd -e &quot;EJABBERD_MSGS_PATH=C:\Program Files\ejabberd-16.09\lib\ejabberd-16.09\priv\msgs&quot;<br />erlsrv set ejabberd -e &quot;ERL_CRASH_DUMP=%APPDATA%\ejabberd\logs\erl_crash.dump&quot;<br />erlsrv set ejabberd -e &quot;ERL_INETRC=%APPDATA%\ejabberd\conf\inetrc&quot;<br />erlsrv set ejabberd -e &quot;ERL_LIBS=C:\Program Files\ejabberd-16.09\lib&quot;<br />erlsrv set ejabberd -e &quot;ERL_MAX_ETS_TABLES=1400&quot;<br />erlsrv set ejabberd -e &quot;ERL_MAX_PORTS=32000&quot;</code></div> Fri, 07 Oct 2016 16:13:24 +0000 gurarl comment 67090 at https://www.ejabberd.im If the problem is a conflict https://www.ejabberd.im/forum/25607/ejabberd-1609-windows-service-not-start#comment-67087 <p>If the problem is a conflict in the "distribution name", you can try to change the -sname argument to something like ejabberd-srv-gurari@localhost</p> <p>On the other hand, isn't that service already defined by postinstall, so that you only have to enable it somehow?</p> Fri, 07 Oct 2016 11:48:24 +0000 badlop comment 67087 at https://www.ejabberd.im