ejabberd - Comments for "How clustering ejabberd with &amp;quot;FIREWALL_WINDOW&amp;quot; option" https://www.ejabberd.im/node/4120 en Patch committed https://www.ejabberd.im/node/4120#comment-56310 <div class="quote-msg"> <div class="quote-author"><em>Hachi</em> wrote:</div> <p>I tried that patch with "FIREWALL_OPTION=50000-500001" option.</p> <p>I obtained the result that ejabberd server works on target ports!<br /> It confirmed by both "net_adm:names()" command on ejabberd live mode,<br /> and "netstat" command on linux.</p></div> <p>Ok, I've committed the patch to ejabberd git.</p> Mon, 28 Jun 2010 11:20:43 +0000 mfoss comment 56310 at https://www.ejabberd.im It works with your patch! https://www.ejabberd.im/node/4120#comment-56100 <div class="quote-msg"> <div class="quote-author"><em>badlop</em> wrote:</div> <p>You found a bug in ejabberd. I hope this patch solves it:<br /> Please comment if that patch solves the problem for you.</p> <p>Better allow at least 2 ports, like 50000-50001. </p></div> <p>Thank you very much for your answer!</p> <p>I tried that patch with "FIREWALL_OPTION=50000-500001" option.</p> <p>I obtained the result that ejabberd server works on target ports!<br /> It confirmed by both "net_adm:names()" command on ejabberd live mode,<br /> and "netstat" command on linux.</p> <p>Thanks for badlop!</p> Fri, 25 Jun 2010 13:58:03 +0000 Hachi comment 56100 at https://www.ejabberd.im Problem in ejabberdctl. Try patch https://www.ejabberd.im/node/4120#comment-56084 <div class="quote-msg"> <div class="quote-author"><em>Hachi</em> wrote:</div> <p>if "FIREWALL_WINDOW" change active, error is happend and ejabberd didn't work.<br /> Next error messages are displaied by "INSTALL_DIR/sbin/ejabberdctl live" command.</p> <p>---<br /> {error_logger,{{2010,6,23},{15,12,57}},"application_controller: ~s: ~s~n",[["syntax error before: ","'.'"],[]]}<br /> {error_logger,{{2010,6,23},{15,12,57}},"~s~n",["Error in process &lt;0.6.0&gt; with exit value: {{case_clause,{error,{bad_environment_value,[]}}},[{application_controller,init,2}]}\n"]}<br /> {"could not start kernel pid",application_controller,"{{case_clause,{error,{bad_environment_value,[]}}},[{application_controller,init,2}]}"}</p> <p>Crash dump was written to: /usr/local/ejabberd-2.1.3/var/log/ejabberd/erl_crash_20100623-151256.dump<br /> could not start kernel pid (application_controller) ({{case_clause,{error,{bad_environment_value,[]}}},[{application_controller,init,2}]})<br /> --- </p></div> <p>You found a bug in ejabberd. I hope this patch solves it:</p> <pre> --- a/src/ejabberdctl.template +++ b/src/ejabberdctl.template @@ -82,7 +82,7 @@ else KERNEL_OPTS="-kernel inet_dist_listen_min ${FIREWALL_WINDOW%-*} inet_dist_listen_max ${FIREWALL_WINDOW#*-}" fi -ERLANG_OPTS="+K $POLL -smp $SMP +P $ERL_PROCESSES $ERL_OPTIONS $KERNEL_OPTS" +ERLANG_OPTS="+K $POLL -smp $SMP +P $ERL_PROCESSES $ERL_OPTIONS" # define additional environment variables if [ "$EJABBERDDIR" = "" ]; then @@ -141,6 +141,7 @@ start () -noinput -detached \ -pa $EJABBERD_EBIN_PATH \ -mnesia dir \"\\\"$SPOOLDIR\\\"\" \ + $KERNEL_OPTS \ -s ejabberd \ -sasl sasl_error_logger \\{file,\\\"$SASL_LOG_PATH\\\"\\} \ $ERLANG_OPTS $ARGS \"$@\"" @@ -174,6 +175,7 @@ debug () $NAME debug-${TTY}-${ERLANG_NODE} \ -remsh $ERLANG_NODE \ -hidden \ + $KERNEL_OPTS \ $ERLANG_OPTS $ARGS \"$@\"" } @@ -203,6 +205,7 @@ live () $NAME $ERLANG_NODE \ -pa $EJABBERD_EBIN_PATH \ -mnesia dir \"\\\"$SPOOLDIR\\\"\" \ + $KERNEL_OPTS \ -s ejabberd \ $ERLANG_OPTS $ARGS \"$@\"" } @@ -310,6 +313,7 @@ ctlexec () -noinput \ -hidden \ -pa $EJABBERD_EBIN_PATH \ + $KERNEL_OPTS \ -s ejabberd_ctl -extra $ERLANG_NODE $COMMAND" } </pre><p> Please comment if that patch solves the problem for you.</p> <div class="quote-msg"> <div class="quote-author"><em>Hachi</em> wrote:</div> <p>I don't want to open several ports,<br /> FIREWALL_WINDOW=50000-50000<br /> "FIREWALL_WINDOW" option can use from ejabberd 2.0.0 from Release Notes, </p></div> <p>Better allow at least 2 ports, like 50000-50001.</p> Thu, 24 Jun 2010 10:17:37 +0000 mfoss comment 56084 at https://www.ejabberd.im