签到成功

知道了

CNDBA社区CNDBA社区

GBase 8c 分布式 集群 安装 object has no attribute group 错误 解决方法

2023-09-22 16:51 444 0 原创 GBase
作者: dave

1 错误现象

在部署 GBase 8c 分布式集群的时候报如下错误:

[dave@www.cndba.cn script]$ 
[dave@www.cndba.cn script]$ ./gha_ctl install -c gbase -p /home/gbase
{
    "ret":-1,
    "msg":"'NoneType' object has no attribute 'group'"
}
[dave@www.cndba.cn script]$

gbase 安装日志默认在/tmp/gha_ctl/gha_ctl.log,查看安装日志:http://www.cndba.cn/dave/article/131449

http://www.cndba.cn/dave/article/131449
http://www.cndba.cn/dave/article/131449

2023-09-18 13:40:31 etcd.py __init__ 92 INFO 13362 AbstractEtcdClientWithFailover config:{'host_tuple': (('192.168.56.83', 2479), ('192.168.56.84', 2479), ('192.168.56.85', 2479)), 'username': 'gbase', 'password': 'AidmOwGw$L5%FyQb', 'hosts': ['http://192.168.56.83:2479', 'http://192.168.56.84:2479', 'http://192.168.56.85:2479']}
2023-09-18 13:40:31 client.py __init__ 186 DEBUG 13362 New etcd client created for http://192.168.56.83:2479
2023-09-18 13:40:31 retry.py from_int 332 DEBUG 13362 Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=0, status=None)
2023-09-18 13:40:31 connectionpool.py _new_conn 227 DEBUG 13362 Starting new HTTP connection (1): 192.168.56.84:2479
2023-09-18 13:40:31 dcs.py create_connection_patched 103 DEBUG 13362 create_connection_patched err:[Errno 111] Connection refused
2023-09-18 13:40:31 retry.py increment 575 DEBUG 13362 Incremented Retry for (url='/v2/machines'): Retry(total=0, connect=None, read=None, redirect=0, status=None)
2023-09-18 13:40:31 connectionpool.py urlopen 780 WARNING 13362 Retrying (Retry(total=0, connect=None, read=None, redirect=0, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x2b66ea8bb430>: Failed to establish a new connection: [Errno 111] Connection refused')': /v2/machines
2023-09-18 13:40:31 connectionpool.py _new_conn 227 DEBUG 13362 Starting new HTTP connection (2): 192.168.56.84:2479
2023-09-18 13:40:31 dcs.py create_connection_patched 103 DEBUG 13362 create_connection_patched err:[Errno 111] Connection refused
2023-09-18 13:40:31 etcd.py machines 214 ERROR 13362 Failed to get list of machines from http://192.168.56.84:2479/v2: MaxRetryError("HTTPConnectionPool(host='192.168.56.84', port=2479): Max retries exceeded with url: /v2/machines (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x2b66ea8bb4f0>: Failed to establish a new connection: [Errno 111] Connection refused'))")

2 解决方法

这种错误的原因有 3 种:http://www.cndba.cn/dave/article/131449

http://www.cndba.cn/dave/article/131449
http://www.cndba.cn/dave/article/131449

  1. etcd 的端口被占用了,这个可以通过netstat -an 确认。
  2. 集群节点之间时间不同步。
  3. yml 配置文件格式不正确。

我们这里的的原因就是yml 格式的问题。 开始我是手工修改的 IP地址,没有解决问题,后来重新配置,在 vim 中使用%s 命令替换 IP 地址后,问题解决。 http://www.cndba.cn/dave/article/131449http://www.cndba.cn/dave/article/131449

http://www.cndba.cn/dave/article/131449
http://www.cndba.cn/dave/article/131449

版权声明:本文为博主原创文章,未经博主允许不得转载。

用户评论
* 以下用户言论只代表其个人观点,不代表CNDBA社区的观点或立场
dave

dave

关注

人的一生应该是这样度过的:当他回首往事的时候,他不会因为虚度年华而悔恨,也不会因为碌碌无为而羞耻;这样,在临死的时候,他就能够说:“我的整个生命和全部精力,都已经献给世界上最壮丽的事业....."

  • 2246
    原创
  • 3
    翻译
  • 554
    转载
  • 188
    评论
  • 访问:6917711次
  • 积分:4275
  • 等级:核心会员
  • 排名:第1名
精华文章
    最新问题
    查看更多+
    热门文章
      热门用户
      推荐用户
        Copyright © 2016 All Rights Reserved. Powered by CNDBA · 皖ICP备2022006297号-1·

        QQ交流群

        注册联系QQ