souzens commented on issue #2695:
URL: https://github.com/apache/apisix/issues/2695#issuecomment-726471544


   > @souzens @yankunsam do you use domain name as etcd host too ?
   
   case 1 :  etcd cluster mode deployed in k8s , use domain name as 
"http://apisix-etcd-0.apisix-etcd.apisix.svc.cluster.local:2379";
   
   REPORT ERROR
   ```
   2020/11/13 10:35:25 [error] 54#54: *5375 [lua] config_etcd.lua:448: failed 
to fetch data from etcd: 
/usr/local/apisix//deps/share/lua/5.1/resty/etcd/v3.lua:149: attempt to 
concatenate local 'err' (a nil value)
   stack traceback:
           /usr/local/apisix//deps/share/lua/5.1/resty/etcd/v3.lua:149: in 
function 'new'
           /usr/local/apisix/apisix/core/config_etcd.lua:416: in function 
</usr/local/apisix/apisix/core/config_etcd.lua:414>
           [C]: in function 'xpcall'
           /usr/local/apisix/apisix/core/config_etcd.lua:414: in function 
</usr/local/apisix/apisix/core/config_etcd.lua:405>,  etcd key: 
/apisix/consumers, context: ngx.timer
   2020/11/13 10:35:25 [error] 54#54: *5376 [lua] config_etcd.lua:448: failed 
to fetch data from etcd: 
/usr/local/apisix//deps/share/lua/5.1/resty/etcd/v3.lua:149: attempt to 
concatenate local 'err' (a nil value)
   stack traceback:
           /usr/local/apisix//deps/share/lua/5.1/resty/etcd/v3.lua:149: in 
function 'new'
           /usr/local/apisix/apisix/core/config_etcd.lua:416: in function 
</usr/local/apisix/apisix/core/config_etcd.lua:414>
           [C]: in function 'xpcall'
           /usr/local/apisix/apisix/core/config_etcd.lua:414: in function 
</usr/local/apisix/apisix/core/config_etcd.lua:405>,  etcd key: 
/apisix/upstreams, context: ngx.timer
   ```
    
   case 2 :  etcd which deployed with cluster mode in k8s , use pod IP as 
"http://10.111.9.155:2379";
   RUN OK
   
   case 3 : etcd which deployed with cluster mode in VM , use server ip as  - 
"http://10.111.9.155:2379";
   
   REPORT ERROR
   ```
   2020/11/10 20:18:30 [error] 31545#31545: *7224 [lua] config_etcd.lua:428: 
failed to fetch data from etcd: failed to read etcd dir,  etcd key: 
/apisix/plugin_metadata, context: ngx.timer
   2020/11/10 20:18:30 [error] 31545#31545: *7226 [lua] config_etcd.lua:428: 
failed to fetch data from etcd: failed to read etcd dir,  etcd key: 
/apisix/proto, context: ngx.timer
   2020/11/10 20:18:30 [error] 31545#31545: *7225 [lua] config_etcd.lua:428: 
failed to fetch data from etcd: failed to read etcd dir,  etcd key: 
/apisix/ssl, context: ngx.timer
   2020/11/10 20:18:30 [error] 31545#31545: *7227 [lua] config_etcd.lua:428: 
failed to fetch data from etcd: failed to read etcd dir,  etcd key: 
/apisix/consumers, context: ngx.timer
   2020/11/10 20:18:30 [error] 31545#31545: *7228 [lua] config_etcd.lua:428: 
failed to fetch data from etcd: failed to read etcd dir,  etcd key: 
/apisix/upstreams, context: ngx.timer
   2020/11/10 20:18:30 [error] 31550#31550: *7229 [lua] config_etcd.lua:428: 
failed to fetch data from etcd: failed to read etcd dir,  etcd key: 
/apisix/services, context: ngx.timer
   2020/11/10 20:18:30 [error] 31550#31550: *7232 [lua] config_etcd.lua:428: 
failed to fetch data from etcd: failed to read etcd dir,  etcd key: 
/apisix/proto, context: ngx.timer
   2020/11/10 20:18:30 [error] 31550#31550: *7233 [lua] config_etcd.lua:428: 
failed to fetch data from etcd: failed to read etcd dir,  etcd key: 
/apisix/global_rules, context: ngx.timer
   2020/11/10 20:18:30 [error] 31550#31550: *7231 [lua] config_etcd.lua:428: 
failed to fetch data from etcd: failed to read etcd dir,  etcd key: 
/apisix/upstreams, context: ngx.timer
   2020/11/10 20:18:30 [error] 31550#31550: *7230 [lua] config_etcd.lua:428: 
failed to fetch data from etcd: failed to read etcd dir,  etcd key: 
/apisix/plugin_metadata, context: ngx.timer
   ```
   
   case 4 : etcd which deployed with single mode in VM , use server ip as  - 
"http://10.111.9.155:2379";
   
   RUN OK


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to