CongGreat opened a new issue, #2911:
URL: https://github.com/apache/apisix-dashboard/issues/2911
### 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_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]