TencentBlueKing / bk-cmdb

蓝鲸智云配置平台(BlueKing CMDB)
http://bk.tencent.com
Other
5.4k stars 1.58k forks source link

v3.10.x编译成功,启动cmdb_authserver失败。报错 err: no iam address #6681

Closed qiqiaobin closed 1 year ago

qiqiaobin commented 1 year ago

问题描述

v3.10.x编译成功,启动cmdb_authserver失败。报错 err: no iam address begin to discover by watch children of path(/cc/services/endpoints/cloud) begin to discover by watch children of path(/cc/services/endpoints/topo) begin to discover by watch children of path(/cc/services/endpoints/task) begin to discover by watch children of path(/cc/services/endpoints/proc) begin to discover by watch children of path(/cc/services/endpoints/eventserver) begin to discover by watch children of path(/cc/services/endpoints/host) begin to discover by watch children of path(/cc/services/endpoints/operation) begin to discover by watch children of path(/cc/services/endpoints/migrate) begin to discover by watch children of path(/cc/services/endpoints/coreservice) begin to discover by watch children of path(/cc/services/endpoints/apiserver) begin to discover by watch children of path(/cc/services/endpoints/datacollection) begin to discover by watch children of path(/cc/services/endpoints/cacheservice) begin to discover by watch children of path(/cc/services/endpoints/auth) children node(/cc/services/endpoints/topo) is not exist, will watch after 5s fail to watch children for path(/cc/services/endpoints/topo), err:zk: node does not exist children node(/cc/services/endpoints/topo) is not exist, will watch after 5s fail to watch children for path(/cc/services/endpoints/auth), err:zk: node does not exist children node(/cc/services/endpoints/auth) is not exist, will watch after 5s children node(/cc/services/endpoints/auth) is not exist, will watch after 5s E0316 10:28:36.148043 46517 app/server.go:77] new iam client, err: no iam address no iam address E0316 10:28:36.148252 46517 auth_server/auth.go:50] process stopped by no iam address

重现方法

./restart.sh

关键信息

请提供以下信息:

ZQHcode commented 1 year ago

authserver这个服务可以不启动,不影响功能的使用,它需要依赖于权限中心(另一个平台),报错里的为权限中心的配置地址;如果想实现鉴权的逻辑,需要部署权限中心、用户管理等

qiqiaobin commented 1 year ago

嗯,问题已解决,服务启动异常和authserver服务没有关系,是go和nodejs版本问题 ,换了版本重新编译之后,启动正常了

Xouer commented 1 year ago

您换的版本是多少?我也遇到了这个问题,