Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmdb_authserver, cmdb_webserver无法启动 ,提示zookeeper节点无法创建,panic: open ../web/index.html: no such file or directory ,没有 iam address #8326

Open
wqm71 opened this issue Jan 21, 2025 · 0 comments

Comments

@wqm71
Copy link

wqm71 commented Jan 21, 2025

root@k8s-master1 cmdb]# cd /data/cmdb
root@k8s-master1 cmdb]# ./start.sh
process count should be: 12 , now: 14
Not Running: cmdb_authserver
Not Running: cmdb_webserver

cmdb_authserver, cmdb_webserver无法启动
提示zookeeper节点无法创建,panic: open ../web/index.html: no such file or directory ,没有 iam address

docker exec -it zookeeper /bin/bash
zkCli.sh

添加认证信息:
然后在 CLI 中依次创建缺失的节点:
addauth digest root:123
create /cc ""
create /cc/services ""
create /cc/services/endpoints ""
create /cc/services/endpoints/cloud ""
create /cc/services/endpoints/auth ""
create /cc/services/endpoints/migrate ""
create /cc/services/endpoints/webserver ""
create /cc/services/endpoints/task ""
create /cc/services/endpoints/datacollection ""
create /cc/services/endpoints/cacheservice ""
create /cc/services/endpoints/coreservice ""
create /cc/services/endpoints/eventserver ""

[root@k8s-master1 cmdb]# vim /data/cmdb/cmdb_webserver/logs/std.log

begin to discover by watch children of path(/cc/services/endpoints/host)
begin to discover by watch children of path(/cc/services/endpoints/proc)
begin to discover by watch children of path(/cc/services/endpoints/cloud)
begin to discover by watch children of path(/cc/services/endpoints/datacollection)
begin to discover by watch children of path(/cc/services/endpoints/topo)
begin to discover by watch children of path(/cc/services/endpoints/migrate)
begin to discover by watch children of path(/cc/services/endpoints/webserver)
begin to discover by watch children of path(/cc/services/endpoints/auth)
begin to discover by watch children of path(/cc/services/endpoints/apiserver)
begin to discover by watch children of path(/cc/services/endpoints/eventserver)
begin to discover by watch children of path(/cc/services/endpoints/operation)
begin to discover by watch children of path(/cc/services/endpoints/task)
begin to discover by watch children of path(/cc/services/endpoints/coreservice)
begin to discover by watch children of path(/cc/services/endpoints/cacheservice)
children node(/cc/services/endpoints/auth) is not exist, will watch after 5s
fail to watch children for path(/cc/services/endpoints/cloud), err:zk: node does not exist
children node(/cc/services/endpoints/cloud) is not exist, will watch after 5s
children node(/cc/services/endpoints/cloud) is not exist, will watch after 5s
children node(/cc/services/endpoints/datacollection) is not exist, will watch after 5s
fail to watch children for path(/cc/services/endpoints/datacollection), err:zk: node does not exist
children node(/cc/services/endpoints/datacollection) is not exist, will watch after 5s
fail to watch children for path(/cc/services/endpoints/task), err:zk: node does not exist
children node(/cc/services/endpoints/task) is not exist, will watch after 5s
fail to watch children for path(/cc/services/endpoints/migrate), err:zk: node does not exist
children node(/cc/services/endpoints/migrate) is not exist, will watch after 5s
children node(/cc/services/endpoints/migrate) is not exist, will watch after 5s
fail to watch children for path(/cc/services/endpoints/webserver), err:zk: node does not exist
children node(/cc/services/endpoints/webserver) is not exist, will watch after 5s
children node(/cc/services/endpoints/webserver) 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
fail to watch children for path(/cc/services/endpoints/eventserver), err:zk: node does not exist
children node(/cc/services/endpoints/eventserver) is not exist, will watch after 5s
children node(/cc/services/endpoints/eventserver) is not exist, will watch after 5s
panic: open ../web/index.html: no such file or directory

goroutine 1 [running]:
html/template.Must(...)
/usr/lib/golang/src/html/template/template.go:368
github.com/gin-gonic/gin.(*Engine).LoadHTMLFiles(0xc0004c3860, {0xc00047f860, 0x3, 0x3})
/root/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:274 +0x31d
configcenter/src/web_server/service.(*Service).initService(0xc0003ad5c0, 0xc0004c3860)
/script/configcenter/src/web_server/service/service.go:130 +0x172
configcenter/src/web_server/service.(*Service).WebService(0xc0003ad5c0)
/script/configcenter/src/web_server/service/service.go:93 +0x269
configcenter/src/web_server/app.Run({0x1764d00, 0xc0004471d0}, 0x200000003?, 0xc000122408)
/script/configcenter/src/web_server/app/server.go:91 +0x298
main.main()
/script/configcenter/src/web_server/ui.go:44 +0x1f9

[root@k8s-master1 cmdb]# vim /data/cmdb/cmdb_authserver/logs/std.log

begin to discover by watch children of path(/cc/services/endpoints/cacheservice)
begin to discover by watch children of path(/cc/services/endpoints/host)
begin to discover by watch children of path(/cc/services/endpoints/coreservice)
begin to discover by watch children of path(/cc/services/endpoints/eventserver)
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/cloud)
begin to discover by watch children of path(/cc/services/endpoints/apiserver)
begin to discover by watch children of path(/cc/services/endpoints/proc)
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/datacollection)
begin to discover by watch children of path(/cc/services/endpoints/auth)
fail to watch children for path(/cc/services/endpoints/cacheservice), err:zk: node does not exist
children node(/cc/services/endpoints/cacheservice) is not exist, will watch after 5s
children node(/cc/services/endpoints/cacheservice) is not exist, will watch after 5s
fail to watch children for path(/cc/services/endpoints/coreservice), err:zk: node does not exist
children node(/cc/services/endpoints/coreservice) is not exist, will watch after 5s
children node(/cc/services/endpoints/coreservice) is not exist, will watch after 5s
fail to watch children for path(/cc/services/endpoints/eventserver), err:zk: node does not exist
children node(/cc/services/endpoints/eventserver) is not exist, will watch after 5s
children node(/cc/services/endpoints/eventserver) is not exist, will watch after 5s
fail to watch children for path(/cc/services/endpoints/migrate), err:zk: node does not exist
children node(/cc/services/endpoints/migrate) is not exist, will watch after 5s
children node(/cc/services/endpoints/migrate) is not exist, will watch after 5s
fail to watch children for path(/cc/services/endpoints/cloud), err:zk: node does not exist
children node(/cc/services/endpoints/cloud) is not exist, will watch after 5s
children node(/cc/services/endpoints/cloud) is not exist, will watch after 5s
fail to watch children for path(/cc/services/endpoints/task), err:zk: node does not exist
children node(/cc/services/endpoints/task) is not exist, will watch after 5s
children node(/cc/services/endpoints/task) is not exist, will watch after 5s
fail to watch children for path(/cc/services/endpoints/datacollection), err:zk: node does not exist
children node(/cc/services/endpoints/datacollection) is not exist, will watch after 5s
children node(/cc/services/endpoints/datacollection) 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
E0121 18:30:01.950281 80359 app/server.go:79] new iam client, err: no iam address
no iam address
E0121 18:30:01.950637 80359 auth_server/auth.go:50] process stopped by no iam address

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant