apisix-dashboard icon indicating copy to clipboard operation
apisix-dashboard copied to clipboard

使用docker安装报错

Open CongGreat opened this issue 2 years ago • 3 comments

Issue description

panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xca1613]

goroutine 1 [running]: github.com/apisix/manager-api/internal/core/storage.InitETCDClient(0xc0005aba30?) /usr/local/apisix-dashboard/api/internal/core/storage/etcd.go:59 +0x53 github.com/apisix/manager-api/internal/core/server.(*server).setupStore(0x60?) /usr/local/apisix-dashboard/api/internal/core/server/store.go:27 +0x25 github.com/apisix/manager-api/internal/core/server.(*server).init(0x17c2801?) /usr/local/apisix-dashboard/api/internal/core/server/server.go:89 +0x52 github.com/apisix/manager-api/internal/core/server.(*server).Start(0xc0005a8dc8, 0xc000423ce0) /usr/local/apisix-dashboard/api/internal/core/server/server.go:49 +0x27 github.com/apisix/manager-api/cmd.manageAPI() /usr/local/apisix-dashboard/api/cmd/root.go:71 +0x91 github.com/apisix/manager-api/cmd.glob..func1(0x17b2940?, {0xf7f29c?, 0x0?, 0x0?}) /usr/local/apisix-dashboard/api/cmd/root.go:40 +0x17 github.com/spf13/cobra.(*Command).execute(0x17b2940, {0xc000034250, 0x0, 0x0}) /go/pkg/mod/github.com/spf13/[email protected]/command.go:916 +0x862 github.com/spf13/cobra.(*Command).ExecuteC(0x17b2940) /go/pkg/mod/github.com/spf13/[email protected]/command.go:1044 +0x3bd github.com/spf13/cobra.(*Command).Execute(...) /go/pkg/mod/github.com/spf13/[email protected]/command.go:968 github.com/apisix/manager-api/cmd.Execute() /usr/local/apisix-dashboard/api/cmd/root.go:55 +0x25 main.main() /usr/local/apisix-dashboard/api/main.go:24 +0x17 panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xca1613]

Expected behavior

在docker中正常运行

How to Reproduce

docker-compose -p docker-apisix -f docker-compose.yml up -d

[docker-compose.yml] 中的内容 dashboard: image: apache/apisix-dashboard:latest restart: always volumes: - ./dashboard_conf/conf.yaml:/usr/local/apisix-dashboard/conf/conf.yaml:ro depends_on: - etcd ports: - "9000:9000/tcp" networks: apisix:

Screenshots

No response

Environment

No response

Additional context

No response

CongGreat avatar Jan 19 '24 07:01 CongGreat

apisix-dashboard官方没有人维护了。你看看apisix-docker中都已经删除对这个库的引用示例了。

Talbot3 avatar Jan 19 '24 08:01 Talbot3

这是来自QQ邮箱的假期自动回复邮件。感谢您的来信,您的邮件我已收到,我将尽快回复您!

CongGreat avatar Jan 19 '24 08:01 CongGreat

@CongGreat , Pls check dashboard_conf/conf.yaml , how to config etcd endpoint ? And can you check etcd whether health ?

hanqingwu avatar Jan 23 '24 07:01 hanqingwu

Hi, we will release a new dashboard to address legacy issues. Refer to https://github.com/apache/apisix-dashboard/issues/2981

juzhiyuan avatar Apr 17 '25 17:04 juzhiyuan

这是来自QQ邮箱的假期自动回复邮件。感谢您的来信,您的邮件我已收到,我将尽快回复您!

CongGreat avatar Apr 17 '25 17:04 CongGreat