[erlang-questions] Becoming distributed on Windows
Avinash Dhumane
avinash@REDACTED
Fri Apr 6 12:23:08 CEST 2012
On my Windows system (with Cygwin shell started as "Run As
Administrator"), "epmd -daemon" does not seem to work:
-------------------
$ netstat -a |grep 4369
Krishna@REDACTED ~
$ epmd -daemon
Krishna@REDACTED ~
$ netstat -a |grep 4369
Krishna@REDACTED ~
$ epmd -names
epmd: Cannot connect to local epmd
-------------------
If started without -daemon option (or, with -sname to erl), it does work:
---------
Krishna@REDACTED ~
$ epmd&
[1] 4908
Krishna@REDACTED ~
$ netstat -a |grep 4369
TCP 0.0.0.0:4369 Karma:0 LISTENING
Krishna@REDACTED ~
$ epmd -names
epmd: up and running on port 4369 with data:
Krishna@REDACTED ~
$
------------
So, the 'econnrefused' error occurs when 'erl' is started without
distributed mode (which is a requirement of the application) and when
net_kernel:start() is called to become distributed (again, a requirement
of the application, which controls the degree of distribution).
Currently, I will live with running epmd without -daemon option (but in
the background) as a step of the startup sequence in setting up the
application environment and preconditions, till further understanding
arrives.
Thanks
On Fri, 06 Apr 2012 13:40:34 +0530, Dmitry Klionsky
<dm.klionsky@REDACTED> wrote:
> On 04/06/2012 10:59 AM, Dave Cottlehuber wrote:
>> On 6 April 2012 09:36, Avinash Dhumane<avinash@REDACTED> wrote:
>>> When Windows is booted up, below undesirable is observed. Please.
>>> Thanks.
>>>
>>> -----------------------------
>>> Krishna@REDACTED ~
>>> $ erl
>>> Eshell V5.8.3 (abort with ^G)
>>> 1> net_kernel:start([abc, shortnames]).
>>>
>>> =INFO REPORT==== 6-Apr-2012::12:47:29 ===
>>> Protocol: "inet_tcp": register error: {{badmatch,{error,econnrefused}},
>> You'll likely need to allow epmd and erl*.exe permissions through
>> windows firewall.
>> Depending on your setup& if you've a custom firewall installed there
>> are other
>> erl* binaries that might require it.
>>
>> Let us know what works in the end.
>>
>> Thanks
>> Dave
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
>
> I'd say this isn't the firewall who causes the problem, because the
> net_kernel:start succeeds eventually.
> Seems like the epmd isn't yet started and this is why you get the
> {error,econnrefused}.
>
--
Using Opera's revolutionary email client: http://www.opera.com/mail/
More information about the erlang-questions
mailing list