Erlang:不允许的节点/也许Cookie问题 [英] Erlang : Disallowed Nodes / Maybe Cookie question

查看:374
本文介绍了Erlang:不允许的节点/也许Cookie问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

试图让两个erlang节点相互通信:一个在Ubuntu机器上,一个在Windows XP上。



我们得到一个连接尝试从不允许的节点消息,阻止一个节点从另一个节点接收消息。



他们都使用5.XXX版本的Erlang OTP。



两个节点都有相同的cookie(.erlang.cookie)



我们正在启动接收器节点:

  erl -name fred @ ipaddress 

并使用'fred @ ipaddress'(单引号)调用该功能



我们已经关闭了防火墙。 p>

那么还有什么可能阻止连接?



更新:我们使用erlang:get_cookie()来检查两个节点上的cookie,并且值是不同的。这是这个问题。我们认为我们正在设置cookie,将相同的.erlang.cookie文件放在我们在两台机器上运行erlang的目录中。但是也许这是错误的地方?



更新2:感谢大家的答案。我们选择Ranok作为我们的答案,因为它对我们很好。我确定一些设置cookie的其他方法也会很好。

解决方案

此外,当您启动Erlang系统中有一个命令行标志 -setcookie ,它将允许您在开始时指定cookie。

  erl -name fred @ ipaddress -setcookie FOOBAR 

希望有帮助,
Jacob


Trying to get two erlang nodes talking to each other : one on a Ubuntu machine and one on Windows XP.

We're getting a "Connection attempt from disallowed node" message which prevents one node receiving messages from the other.

They're both using 5.XXX versions of Erlang OTP.

Both nodes have the same cookie ( .erlang.cookie)

We are starting the receiver node with :

erl -name fred@ipaddress

and calling the function on it with 'fred@ipaddress' (in single quotes)

We've turned firewalls off.

So what else may be preventing the connection?

Update : we're using erlang:get_cookie() to check the cookie on both nodes, and the values are different. So is this the problem. We think we're setting the cookie by putting the same .erlang.cookie file in the directory where we run erlang on both machines. But maybe this is the wrong place?

Update 2 : thanks for the answers everyone. We chose Ranok's as our answer because it worked well for us. I'm sure some of the alternative ways of setting the cookie would be fine too.

解决方案

Also, when you start the Erlang system, there is a commandline flag -setcookie which will let you specify the cookie at start time.

erl -name fred@ipaddress -setcookie FOOBAR

Hope that helps, Jacob

这篇关于Erlang:不允许的节点/也许Cookie问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆