You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "sthattepune (via GitHub)" <gi...@apache.org> on 2025/11/01 11:54:44 UTC

Re: [I] apisix dashboard - docker - panic: runtime error: invalid memory address or nil pointer dereference [apisix-dashboard]

sthattepune commented on issue #2946:
URL: https://github.com/apache/apisix-dashboard/issues/2946#issuecomment-3476294326

   Getting the issue in 3.0.1-alpine and 3.0.1-centos 
   
   apisix-dashboard    | goroutine 1 [running]:
   apisix-dashboard    | github.com/apisix/manager-api/internal/core/storage.InitETCDClient(0xc0005f7130?)
   apisix-dashboard    |   /usr/local/apisix-dashboard/api/internal/core/storage/etcd.go:59 +0x53
   apisix-dashboard    | github.com/apisix/manager-api/internal/core/server.(*server).setupStore(0x60?)
   apisix-dashboard    |   /usr/local/apisix-dashboard/api/internal/core/server/store.go:27 +0x25
   apisix-dashboard    | github.com/apisix/manager-api/internal/core/server.(*server).init(0xc000054401?)
   apisix-dashboard    |   /usr/local/apisix-dashboard/api/internal/core/server/server.go:89 +0x52
   apisix-dashboard    | github.com/apisix/manager-api/internal/core/server.(*server).Start(0xc0005fa270, 0xc000073a40)
   apisix-dashboard    |   /usr/local/apisix-dashboard/api/internal/core/server/server.go:49 +0x27
   apisix-dashboard    | github.com/apisix/manager-api/cmd.manageAPI()
   apisix-dashboard    |   /usr/local/apisix-dashboard/api/cmd/root.go:71 +0x91
   apisix-dashboard    | github.com/apisix/manager-api/cmd.glob..func1(0x17b3960?, {0xf8045b?, 0x0?, 0x0?})
   apisix-dashboard    |   /usr/local/apisix-dashboard/api/cmd/root.go:40 +0x17
   apisix-dashboard    | github.com/spf13/cobra.(*Command).execute(0x17b3960, {0xc00008c200, 0x0, 0x0})
   apisix-dashboard    |   /go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:916 +0x862
   apisix-dashboard    | github.com/spf13/cobra.(*Command).ExecuteC(0x17b3960)
   apisix-dashboard    |   /go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:1044 +0x3bd
   apisix-dashboard    | github.com/spf13/cobra.(*Command).Execute(...)
   apisix-dashboard    |   /go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:968
   apisix-dashboard    | github.com/apisix/manager-api/cmd.Execute()
   apisix-dashboard    |   /usr/local/apisix-dashboard/api/cmd/root.go:55 +0x25
   apisix-dashboard    | main.main()
   apisix-dashboard    |   /usr/local/apisix-dashboard/api/main.go:24 +0x17
   apisix-dashboard exited with code 2
   
   dashboard/conf.yaml
   conf:
     listen:
     host: 0.0.0.0
     port: 9000
   
   
   etcd:
     endpoints:
       - "http://etcd1:2379"
     prefix: "/apisix"
   
   
   authentication:
     secret: "secret_!23"
     expire_time: 3600
   users:
     - username: "admin"
       password: "admin"
   
   docker-compose.yml
   
   services:
     apisix:
       image: apache/apisix:3.14.1-ubuntu
       restart: always
       volumes:
         - ./apisix_conf/config.yaml:/usr/local/apisix/conf/config.yaml:ro
       depends_on:
         - etcd1
       ports:
         - "9180:9180/tcp"
         - "9080:9080/tcp"
         - "9091:9091/tcp"
         - "9443:9443/tcp"
         - "9092:9092/tcp"
       networks:
         apisix:
   
     etcd1:
       image: gcr.io/etcd-development/etcd:v3.5.24
       environment:
         - ALLOW_NONE_AUTHENTICATION=yes
         - ETCD_DATA_DIR=/etcd-data
         - ETCD_ADVERTISE_CLIENT_URLS=http://etcd1:2379
         - ETCD_LISTEN_CLIENT_URLS=http://0.0.0.0:2379
         - ETCD_LISTEN_PEER_URLS=http://0.0.0.0:2380
         - ETCD_INITIAL_ADVERTISE_PEER_URLS=http://etcd1:2380
         - ETCD_INITIAL_CLUSTER=etcd1=http://etcd1:2380
       volumes:
         - ./etcd_data/etcd1:/etcd-data
       networks:
         - apisix
       ports:
         - "2379:2379/tcp"
   
     apisix-dashboard:
       image: apache/apisix-dashboard:3.0.1-centos
       container_name: apisix-dashboard
       restart: unless-stopped
       depends_on:
         - apisix
         - etcd1
       networks:
         - apisix
       ports:
         - "9000:9000"
       volumes:
         - ./dashboard/conf.yaml:/usr/local/apisix-dashboard/conf/conf.yaml:ro
   networks:
     apisix:
       driver: bridge
   
   volumes:
     etcd_data:
       driver: local


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org