sunnycjd opened a new issue #6059:
URL: https://github.com/apache/apisix/issues/6059


   ### Issue description
   
   Here‘s some error from docker logs command when I change the etcd version 
from bitnami/etcd:3.4.13 to quay.io/coreos/etcd:v3.4.18. I find the dashboard 
has latency when I click the page. It's confuse me that the functions are all 
good, and I could deploy the configuration.
   
   goroutine 1 [running]:
   
github.com/apisix/manager-api/internal/app/managerapi/conf.initAuthentication({{0xc0003ce676,
 0x6}, {0xc0002cb320, 0x20}, 0xe10, {0xc0006bfe80, 0x2, 0x2}, {0x0, 0x0}, ...})
           
/usr/local/apisix-dashboard/api/internal/app/managerapi/conf/conf.go:403 +0x1cd
   github.com/apisix/manager-api/internal/app/managerapi/conf.setConf()
           
/usr/local/apisix-dashboard/api/internal/app/managerapi/conf/conf.go:372 +0x9f8
   github.com/apisix/manager-api/internal/app/managerapi/conf.InitConf()
           
/usr/local/apisix-dashboard/api/internal/app/managerapi/conf/conf.go:294 +0x5d
   github.com/apisix/manager-api/cmd.NewManagerAPICommand.func1(0xc000312780, 
{0x209787e, 0x0, 0x0})
           /usr/local/apisix-dashboard/api/cmd/managerapi.go:106 +0x10a
   github.com/spf13/cobra.(*Command).execute(0xc000312780, {0xc00011e1e0, 0x0, 
0x0})
           /go/pkg/mod/github.com/spf13/[email protected]/command.go:762 +0x60e
   github.com/spf13/cobra.(*Command).ExecuteC(0xc000312780)
           /go/pkg/mod/github.com/spf13/[email protected]/command.go:852 +0x2dc
   github.com/spf13/cobra.(*Command).Execute(...)
           /go/pkg/mod/github.com/spf13/[email protected]/command.go:800
   main.main()
           /usr/local/apisix-dashboard/api/cmd/manager/main.go:27 +0x1e
   
{"level":"warn","ts":"2022-01-10T01:34:10.589Z","caller":"clientv3/retry_interceptor.go:62","msg":"retrying
 of unary invoker 
failed","target":"endpoint://client-e772c84b-155e-44f6-a6c7-059a9e3e8286/192.168.198.129:2379","attempt":0,"error":"rpc
 error: code = DeadlineExceeded desc = latest balancer error: all SubConns are 
in TransientFailure, latest connection error: connection error: desc = 
\"transport: Error while dialing dial tcp 192.168.198.129:2379: connect: 
connection refused\""}
   panic: context deadline exceeded
   
   goroutine 1 [running]:
   
github.com/apisix/manager-api/internal/app/managerapi/conf.initAuthentication({{0xc00023c6e6,
 0x6}, {0xc0004b1920, 0x20}, 0xe10, {0xc00057e0c0, 0x2, 0x2}, {0x0, 0x0}, ...})
           
/usr/local/apisix-dashboard/api/internal/app/managerapi/conf/conf.go:403 +0x1cd
   github.com/apisix/manager-api/internal/app/managerapi/conf.setConf()
           
/usr/local/apisix-dashboard/api/internal/app/managerapi/conf/conf.go:372 +0x9f8
   github.com/apisix/manager-api/internal/app/managerapi/conf.InitConf()
           
/usr/local/apisix-dashboard/api/internal/app/managerapi/conf/conf.go:294 +0x5d
   github.com/apisix/manager-api/cmd.NewManagerAPICommand.func1(0xc0004eec80, 
{0x209787e, 0x0, 0x0})
           /usr/local/apisix-dashboard/api/cmd/managerapi.go:106 +0x10a
   github.com/spf13/cobra.(*Command).execute(0xc0004eec80, {0xc00011e1e0, 0x0, 
0x0})
           /go/pkg/mod/github.com/spf13/[email protected]/command.go:762 +0x60e
   github.com/spf13/cobra.(*Command).ExecuteC(0xc0004eec80)
           /go/pkg/mod/github.com/spf13/[email protected]/command.go:852 +0x2dc
   github.com/spf13/cobra.(*Command).Execute(...)
           /go/pkg/mod/github.com/spf13/[email protected]/command.go:800
   main.main()
           /usr/local/apisix-dashboard/api/cmd/manager/main.go:27 +0x1e
   The manager-api is running successfully!
   
   Version : 2.8.2201
   GitHash : 2e4103c
   Listen  : 0.0.0.0:9000
   Loglevel: warn
   Logfile : /usr/local/apisix-dashboard/logs/error.log
   
   
{"level":"warn","ts":"2022-01-10T01:42:52.538Z","caller":"clientv3/retry_interceptor.go:62","msg":"retrying
 of unary invoker 
failed","target":"endpoint://client-7d990aca-d8f9-43ac-81b3-81856ade5773/192.168.198.129:2379","attempt":0,"error":"rpc
 error: code = Unauthenticated desc = etcdserver: invalid auth token"}
   
{"level":"warn","ts":"2022-01-10T01:42:55.661Z","caller":"clientv3/retry_interceptor.go:62","msg":"retrying
 of unary invoker 
failed","target":"endpoint://client-abb98e68-af56-4f13-97b9-f4ad3d5b369c/192.168.198.129:2379","attempt":0,"error":"rpc
 error: code = Unauthenticated desc = etcdserver: invalid auth token"}
   
{"level":"warn","ts":"2022-01-10T01:42:58.332Z","caller":"clientv3/retry_interceptor.go:62","msg":"retrying
 of unary invoker 
failed","target":"endpoint://client-2c549774-a6a4-4b40-b95a-b71ac975333a/192.168.198.129:2379","attempt":0,"error":"rpc
 error: code = Unauthenticated desc = etcdserver: invalid auth token"}
   
{"level":"warn","ts":"2022-01-10T01:42:58.434Z","caller":"clientv3/retry_interceptor.go:62","msg":"retrying
 of unary invoker 
failed","target":"endpoint://client-966f3246-9526-4f54-bc67-65185dd7e7cb/192.168.198.129:2379","attempt":0,"error":"rpc
 error: code = Unauthenticated desc = etcdserver: invalid auth token"}
   
{"level":"warn","ts":"2022-01-10T01:42:58.519Z","caller":"clientv3/retry_interceptor.go:62","msg":"retrying
 of unary invoker 
failed","target":"endpoint://client-25efd17e-faaf-4022-a5cb-2c18ba811e96/192.168.198.129:2379","attempt":0,"error":"rpc
 error: code = Unauthenticated desc = etcdserver: invalid auth token"}
   
   ### Environment
   
   - apisix version (cmd: `apisix version`):
   - OS (cmd: `uname -a`):
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   - etcd version, if have (cmd: run `curl 
http://127.0.0.1:9090/v1/server_info` to get the info from server-info API): 
v3.4.18
   - apisix-dashboard version, if have:
   - the plugin runner version, if the issue is about a plugin runner (cmd: 
depended on the kind of runner):
   - luarocks version, if the issue is about installation (cmd: `luarocks 
--version`):
   


-- 
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]


Reply via email to