`
luckyclouds
  • 浏览: 108973 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

关于long node name启动失败的问题

阅读更多
今天在一台Red Hat Enterprise Linux Server release 5.4 (Tikanga)上
执行erl -name sfsdf 报如下错误:
[root@cloudbox ejabberd]#erl -name sfsdf
{error_logger,{{2011,4,13},{14,28,4}},"Can't set long node name!\nPlease check your configuration\n",[]}
{error_logger,{{2011,4,13},{14,28,4}},crash_report,[[{initial_call,{net_kernel,init,['Argument__1']}},{pid,<0.21.0>},{registered_name,[]},{error_info,{exit,{error,badarg},[{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}},{ancestors,[net_sup,kernel_sup,<0.9.0>]},{messages,[]},{links,[<0.18.0>]},{dictionary,[{longnames,true}]},{trap_exit,true},{status,running},{heap_size,377},{stack_size,24},{reductions,629}],[]]}
{error_logger,{{2011,4,13},{14,28,4}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{offender,[{pid,undefined},{name,net_kernel},{mfa,{net_kernel,start_link,[[sfsdf,longnames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}
{error_logger,{{2011,4,13},{14,28,4}},supervisor_report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,shutdown},{offender,[{pid,undefined},{name,net_sup},{mfa,{erl_distribution,start_link,[]}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]}]}
{error_logger,{{2011,4,13},{14,28,4}},std_info,[{application,kernel},{exited,{shutdown,{kernel,start,[normal,[]]}}},{type,permanent}]}
{"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}}"}

Crash dump was written to: erl_crash.dump
Kernel pid terminated (application_controller) ({application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}})

结果发现还是/etc/hosts配置和 hostname不一致引起的
把/etc/hosts中的
127.0.0.1    localhost.localdomain localhost
改成:
127.0.0.1    cloudbox.localdomain cloudbox
即可
分享到:
评论
1 楼 leeyisoft 2014-08-24  
我也需要相同的问题,我是在win7上面出现这样的问题的,我直接在命令行里面输入erl -name gandalf -setcookie abc 就报错,我这里貌似没用到hostname,所以你说的解决方案我还是没有看明白,求指点

相关推荐

    node v6.9.0-x64

    v6.9.0 marks the transition of Node.js v6 into Long Term Support (LTS) with the codename "Boron". The v6 release line now moves in to "Active LTS" and will remain so until April 2018. After that time ...

    C++管理系统

    Node * del(long n); void sort(int flag); void menu(); void main() { char choose; int flag=1; while (flag) { menu(); //调用功能菜单函数,显示菜单项。 printf(" 请选择:"); choose=getchar();

    resolve-node:API端点可解析具有semver支持的任意Node.js版本

    resolve-node.vercel.app API端点,用于解析具有semver支持的任意Node.js版本。...# LTS version resolution by code name via `lts/:codename` is also supported $ curl https://resolve-node.v

    Developing Microservices with Node.js(PACKT,2016)

    As the name suggests, microservicess refers to small services. For a large implementation, this means breaking the system into really small, independent services. Alternative to monolithic ...

    数据结构课程设计-银行账户管理系统.doc

    Node&lt;T&gt; * DeleteAccount(long int x); Node&lt;T&gt; * InsertAccount(long int x); void Record(long int x,int y); private: Node&lt;T&gt; *head; }; template&lt;class T&gt; //建立已有储户数据 Node&lt;T&gt; * SavingList&lt;T&gt;::...

    校园信息管理系统之链表法

    string name; string sex; string address; string birthday; string sclass; string major; string sregister; struct student *next; }node; typedef node *link; link stu; public: void Show(); ...

    DELPHI TXT 树文档 管理器

    Application.MessageBox('重命名文件失败','重命名',MB_ICONERROR); } { 重命名文件 } function __RenameFile(OldName: string; Title: string): Boolean; var NewName: string; begin NewName := Format('%s%s%s...

    递归算法的实现

    自己练习写的一个递归,建议初选者看一下。private Long id;//节点ID private String nodeName;//节点名称 private Long parentid;//父节点id ... public String getNodeName() { return nodeName; }

    对组态王OPC服务器值的读取c#版本

    下面这段代码是网上抄来的,相信有人也找到过这段,实际上真正运行的时候就会发现其实是有问题的,我把它修改了下,能正常读写了。 using System; using System.Collections.Generic; using System.ComponentModel; ...

    yatr:用于node.js的从俄语到英语的命令行翻译器

    $ trans Any long string Любую длинную строку 从管道: $ echo " My name is Sergey " | trans Меня зовут Сергей 和 $ trans &lt; ~ /myfile.ru.txt This file is contents.....

    xml解析器,返回XmlNode结构,便于循环处理

    private static final long serialVersionUID = 1L; public XmlNode() { } public String tagName; public String tagValue; public String attList; public int level; public XmlNode parent; public...

    node-hapi-joier:更好的Joi错误消息,可为您提供400条响应

    { " statusCode " : 400 , " error " : " Bad Request " , " message " : " child \" name \" fails because [ \" name \" length must be at least 10 characters long] " , " validation " :[ {

    wikiparser:维基百科信息框解析器

    解析器node.js 中用于维基百科降价文本的简单解析器。...结果 conventional_long_name : French Republiccommon_name : Franceimage_flag : Flag of France.svgimage_coat : Armoiries république fr

    abuse-cfg:滥用 node.js 模块缓存

    2014 Lorenzo Giuliani &lt;lorenzo&gt;Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.

    csd3:CSD3

    内容 系统 登录 目录 政策规定 软件 ceuadmin,git,matlab,Python,R,SLURM,...# -n node name # -r kernel release # -v kernel version # -p processor # -o operating system # Linux Standard Base (lsb) a

    javascript常用方法、属性集合及NodeList 和 HTMLCollection 的浏览器差异

       HTMLCollection 接口定义   interface HTMLCollection{ readonly attribute unsigned long length; Node item(in unsigned long index); Node namedItem(in DOMString name);}   对于 HTMLCollectio

    jsrun:npm run-script 构建系统,兼容 gulp

    "scripts" : { // My very long and lengthy lines of scripts: "lint" : "jshint lib test index.js --reporter node_modules/jshint-stylish/stylish.js --exclude node_modules" , "test" : "npm run lint && ...

    超级有影响力霸气的Java面试题大全文档

    抽象并不打算了解全部问题,而只是选择其中的一部分,暂时不用部分细节。抽象包括两个方面,一是过程抽象,二是数据抽象。 2.继承:  继承是一种联结类的层次模型,并且允许和鼓励类的重用,它提供了一种明确...

    coinchat-client:Node.js中间件可轻松连接到CoinChat

    CoinChat客户 简易安装 npm install coinchat-client 帮助 请参考样本文件夹中的样本。...copies of this license document, and changing it is allowed as long as the name is changed. DO WHAT THE FUCK YO

Global site tag (gtag.js) - Google Analytics