Failed to connect to ourself!错误解决办法
2011-04-01 16:16
375 查看
今天重启mysql cluster的管理节点的时候,启动不了,尝试了几次仍然有问题,查看日志,出现如下报错。
2011-04-01 23:49:03 [MgmtSrvr] INFO -- Got initial configuration from '/usr/local/mysql/mysql-cluster/config.ini', will try to set it when all ndb_mgmd(s
) started
2011-04-01 23:49:03 [MgmtSrvr] INFO -- Mgmt server state: nodeid 1 reserved for ip 192.168.100.32, m_reserved_nodes 1.
2011-04-01 23:49:03 [MgmtSrvr] INFO -- Node 1: Node 1 Connected
2011-04-01 23:49:03 [MgmtSrvr] INFO -- Id: 1, Command port: *:1186
2011-04-01 23:49:03 [MgmtSrvr] WARNING -- 1011 Unable to connect with connect string: nodeid=0,localhost:1186
2011-04-01 23:49:03 [MgmtSrvr] ERROR -- Failed to connect to ourself!
很奇怪,这几天一直正常使用,今天一重启就有问题了,问了同事这两天这个服务器做了哪些更改。答曰:
更改了hosts文件。上去一看:发现被更改成:
127.0.0.1 localhost.localdomain openldap
于是更改成默认值
127.0.0.1 localhost.localdomain localhost
重新启动,OK。一切正常!
2011-04-01 23:49:03 [MgmtSrvr] INFO -- Got initial configuration from '/usr/local/mysql/mysql-cluster/config.ini', will try to set it when all ndb_mgmd(s
) started
2011-04-01 23:49:03 [MgmtSrvr] INFO -- Mgmt server state: nodeid 1 reserved for ip 192.168.100.32, m_reserved_nodes 1.
2011-04-01 23:49:03 [MgmtSrvr] INFO -- Node 1: Node 1 Connected
2011-04-01 23:49:03 [MgmtSrvr] INFO -- Id: 1, Command port: *:1186
2011-04-01 23:49:03 [MgmtSrvr] WARNING -- 1011 Unable to connect with connect string: nodeid=0,localhost:1186
2011-04-01 23:49:03 [MgmtSrvr] ERROR -- Failed to connect to ourself!
很奇怪,这几天一直正常使用,今天一重启就有问题了,问了同事这两天这个服务器做了哪些更改。答曰:
更改了hosts文件。上去一看:发现被更改成:
127.0.0.1 localhost.localdomain openldap
于是更改成默认值
127.0.0.1 localhost.localdomain localhost
重新启动,OK。一切正常!
相关文章推荐
- 【LR11】Error -27796: Failed to connect to server"server:port": [10060] Connection timed out错误解决办法
- MongoDB分片集群启动过程中Failed to connect to 127.0.0.1:27017错误解决办法
- Git的错误error: Failed connect to github.com:443;解决办法
- PHPMailer错误SMTP Error: Could not connect to SMTP host的解决办法
- 服务器发送邮件出现Could not connect to SMTP host错误 解决办法
- NuGet Package Explorer上传时报:failed to process request:'Method Not Allowed'错误解决办法
- 为subclipse配置http代理,解决“RA layer request failed, Unable to connect to a repository at URL ..." 错误
- Android 启动模拟器是出现“Failed to allocate memory: 8”错误提示的原因及解决办法
- Android 启动模拟器是出现“Failed to allocate memory: 8”错误提示的原因及解决办法
- 安装.NET2.0后运行出现Failed to access IIS metabase错误解决办法.
- mysql中连接失败2003(Can't connect to server on 'localhost'(10038))错误解决办法
- php在iis上配置时报Fatal error: Call to undefined function mysql_connect() in 错误解决办法
- Error staring Tomcat Cannot connect to VM错误解决办法
- git clone https://github.com/istester/ido.git ,确提示“Failed to connect to 192.168.1.22 port 8080: Connection refused” 的解决办法 。
- mysqladmin: connect to server at 'localhost' failed;错误解决方法
- mysqladmin: connect to server at 'localhost' failed;错误解决方法
- 远程连接MySql服务器时 报not allowed to connect错误解决办法
- Android SDK Manager检查更新时遇到Failed to fetch URL xxxxxxx reason: Connection to xxxxxx的错误的解决办法!
- Codeigniter出现Unable to connect to your database server using the provided settings错误解决办法
- Android 错误提示:Conversion to Dalvik format failed with error 1 解决办法