lakewatcher opened a new issue, #2756:
URL: https://github.com/apache/apisix-dashboard/issues/2756

   ### Issue description
   
   centos 7.8 rpm安装的dashboard。
   当我使用内网域名,配置etcd endpoints 的时候,会报以下错误:
   
   > When I use the Intranet domain name and configure etcd endpoints, the 
following error occurs:
   
   [apps@HZWX004147130 ~]$ sudo manager-api -p /usr/local/apisix/dashboard/
   
{"level":"warn","ts":"2023-03-03T16:15:17.869+0800","logger":"etcd-client","caller":"[email protected]/retry_interceptor.go:62","msg":"retrying
 of unary invoker 
failed","target":"etcd-endpoints://0xc000435880/etcd.xxx.com","attempt":0,"error":"rpc
 error: code = DeadlineExceeded desc = latest balancer error: last connection 
error: connection error: desc = \"transport: Error while dialing dial tcp: 
address etcd.xxx.com: missing port in address\""}
   Error: init etcd failed: context deadline exceeded
   
   如果我配置为80端口,http://etcd.xxx.com:80 ,则会报
   > If I configure port 80, http://etcd.xxx.com:80, it will report
   
   [apps@HZWX004147132 ~]$ sudo manager-api -p /usr/local/apisix/dashboard/
   
{"level":"warn","ts":"2023-03-03T16:50:00.803+0800","logger":"etcd-client","caller":"[email protected]/retry_interceptor.go:62","msg":"retrying
 of unary invoker 
failed","target":"etcd-endpoints://0xc00037e380/etcd.xxx.com:80","attempt":0,"error":"rpc
 error: code = DeadlineExceeded desc = latest balancer error: last connection 
error: connection closed before server preface received"}
   
   
   
   ### Expected behavior
   
   修改 /usr/local/apisix/dashboard/conf/conf.yaml
   配置 etcd endpoints
   
![image](https://user-images.githubusercontent.com/27823963/222677498-5b9b62c4-40eb-45a8-9b8d-01ebd3cca192.png)
   
   
   ### How to Reproduce
   
   修改 /usr/local/apisix/dashboard/conf/conf.yaml
   配置 etcd endpoints
   
   ### Screenshots
   
   _No response_
   
   ### Environment
   
   - apisix version (cmd: `apisix version`): 2.15.1
   - OS (cmd: `uname -a`): centos 7.8 
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   [apps@WXKYPL004147126 ~]$ openresty -V
   nginx version: openresty/1.21.4.1
   built by gcc 9.3.1 20200408 (Red Hat 9.3.1-2) (GCC) 
   built with OpenSSL 1.1.1s  1 Nov 2022
   TLS SNI support enabled
   configure arguments: --prefix=/usr/local/openresty/nginx --with-cc-opt='-O2 
-DAPISIX_BASE_VER=1.21.4.1.6 
-DNGX_GRPC_CLI_ENGINE_PATH=/usr/local/openresty/libgrpc_engine.so 
-DNGX_HTTP_GRPC_CLI_ENGINE_PATH=/usr/local/openresty/libgrpc_engine.so 
-DNGX_LUA_ABORT_AT_PANIC -I/usr/local/openresty/zlib/include 
-I/usr/local/openresty/pcre/include -I/usr/local/openresty/openssl111/include' 
--add-module=../ngx_devel_kit-0.3.1 --add-module=../echo-nginx-module-0.62 
--add-module=../xss-nginx-module-0.06 --add-module=../ngx_coolkit-0.2 
--add-module=../set-misc-nginx-module-0.33 
--add-module=../form-input-nginx-module-0.12 
--add-module=../encrypted-session-nginx-module-0.09 
--add-module=../srcache-nginx-module-0.32 --add-module=../ngx_lua-0.10.21 
--add-module=../ngx_lua_upstream-0.07 
--add-module=../headers-more-nginx-module-0.33 
--add-module=../array-var-nginx-module-0.05 
--add-module=../memc-nginx-module-0.19 --add-module=../redis2-nginx-module-0.15 
--add-module=../redis-nginx-module-0.3.9 --ad
 d-module=../ngx_stream_lua-0.0.11 
--with-ld-opt='-Wl,-rpath,/usr/local/openresty/luajit/lib 
-Wl,-rpath,/usr/local/openresty/wasmtime-c-api/lib 
-L/usr/local/openresty/zlib/lib -L/usr/local/openresty/pcre/lib 
-L/usr/local/openresty/openssl111/lib 
-Wl,-rpath,/usr/local/openresty/zlib/lib:/usr/local/openresty/pcre/lib:/usr/local/openresty/openssl111/lib'
 --add-module=/tmp/tmp.tYflEs0Gp1/openresty-1.21.4.1/../mod_dubbo-1.0.2 
--add-module=/tmp/tmp.tYflEs0Gp1/openresty-1.21.4.1/../ngx_multi_upstream_module-1.1.1
 
--add-module=/tmp/tmp.tYflEs0Gp1/openresty-1.21.4.1/../apisix-nginx-module-1.12.0
 
--add-module=/tmp/tmp.tYflEs0Gp1/openresty-1.21.4.1/../apisix-nginx-module-1.12.0/src/stream
 
--add-module=/tmp/tmp.tYflEs0Gp1/openresty-1.21.4.1/../apisix-nginx-module-1.12.0/src/meta
 --add-module=/tmp/tmp.tYflEs0Gp1/openresty-1.21.4.1/../wasm-nginx-module-0.6.4 
--add-module=/tmp/tmp.tYflEs0Gp1/openresty-1.21.4.1/../lua-var-nginx-module-v0.5.3
 --add-module=/tmp/tmp.tYflEs0Gp1/openresty-1.21.4.1/../grp
 c-client-nginx-module-v0.4.1 --with-poll_module --with-pcre-jit --with-stream 
--with-stream_ssl_module --with-stream_ssl_preread_module --with-http_v2_module 
--without-mail_pop3_module --without-mail_imap_module 
--without-mail_smtp_module --with-http_stub_status_module 
--with-http_realip_module --with-http_addition_module 
--with-http_auth_request_module --with-http_secure_link_module 
--with-http_random_index_module --with-http_gzip_static_module 
--with-http_sub_module --with-http_dav_module --with-http_flv_module 
--with-http_mp4_module --with-http_gunzip_module --with-threads --with-compat 
--with-stream --with-http_ssl_module
   
   - etcd version, 3.5.4
   - apisix-dashboard 2.15.0
    
   rpm安装的dashboard。
   
   ### 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]

Reply via email to