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

使用docker安装报错 #2911

Open
CongGreat opened this issue Jan 19, 2024 · 3 comments
Open

使用docker安装报错 #2911

CongGreat opened this issue Jan 19, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@CongGreat
Copy link

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/cobra@v1.6.1/command.go:916 +0x862
github.com/spf13/cobra.(*Command).ExecuteC(0x17b2940)
/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:1044 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
/go/pkg/mod/github.com/spf13/cobra@v1.6.1/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 CongGreat added the bug Something isn't working label Jan 19, 2024
@Talbot3
Copy link

Talbot3 commented Jan 19, 2024

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

@CongGreat
Copy link
Author

CongGreat commented Jan 19, 2024 via email

@hanqingwu
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants