You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/06/07 17:51:48 UTC

[GitHub] [apisix] tzssangglass commented on issue #4370: request help: An error is reported when the configuration is updated from etcd regularly

tzssangglass commented on issue #4370:
URL: https://github.com/apache/apisix/issues/4370#issuecomment-856141083


   ok, I have the same problem……
   
   my apisix `config.yaml`
   ```yaml
   apisix:
     admin_key:
       - name: "admin"
         key: edd1c9f034335f136f87ad84b625c8f1
         role: admin
     ssl:
       ssl_trusted_certificate: /usr/local/apisix/t/certs/mtls_ca.crt
   etcd:
     host:
       - "https://admin.apisix.dev:22379"
     prefix: "/apisix"
     tls:
       cert: /usr/local/apisix/t/certs/mtls_client.crt
       key: /usr/local/apisix/t/certs/mtls_client.key
   ```
   
   my etcd cluster is same as https://github.com/apache/apisix/blob/a2d80b73ed1d61a9f3e02bf2ddd5c4f2ffc4ddac/.github/workflows/build.yml#L140-L153
   
   I executed
   ```shell
   echo "127.0.0.1 admin.apisix.dev" | sudo tee -a /etc/hosts
   ```
   to set local domain
   
   and then, I use curl to verify that it is a problem with etcd 
   
   ```shell
   $ curl --cert /usr/local/apisix/t/certs/mtls_client.crt --key /usr/local/apisix/t/certs/mtls_client.key --cacert /usr/local/apisix/t/certs/mtls_ca.crt https://admin.apisix.dev:22379/version
   {"etcdserver":"3.4.13","etcdcluster":"3.4.0"}#        
   ```
   tt doesn't look like.
   
   here is my error.log
   
   ```
   2021/06/08 01:50:33 [error] 283990#283990: *75 [lua] config_etcd.lua:550: failed to fetch data from etcd: 20: unable to get local issuer certificate,  etcd key: /apisix/routes, context: ngx.timer
   2021/06/08 01:50:33 [error] 283990#283990: *83 [lua] config_etcd.lua:550: failed to fetch data from etcd: 20: unable to get local issuer certificate,  etcd key: /apisix/plugin_configs, context: ngx.timer
   2021/06/08 01:50:38 [error] 283989#283989: *43 [lua] config_etcd.lua:572: failed to fetch data from etcd: /usr/local/openresty/lualib/resty/core/socket/tcp.lua:213: assertion failed!
   stack traceback:
   	[C]: in function 'assert'
   	/usr/local/openresty/lualib/resty/core/socket/tcp.lua:213: in function 'tls_handshake'
   	.../local/apisix//deps/share/lua/5.1/resty/http_connect.lua:239: in function 'connect'
   	/usr/local/apisix//deps/share/lua/5.1/resty/etcd/v3.lua:595: in function 'request_chunk'
   	/usr/local/apisix//deps/share/lua/5.1/resty/etcd/v3.lua:763: in function 'watchdir'
   	/usr/local/apisix/apisix/core/config_etcd.lua:122: in function 'waitdir'
   	/usr/local/apisix/apisix/core/config_etcd.lua:318: in function 'sync_data'
   	/usr/local/apisix/apisix/core/config_etcd.lua:546: in function </usr/local/apisix/apisix/core/config_etcd.lua:536>
   	[C]: in function 'xpcall'
   	/usr/local/apisix/apisix/core/config_etcd.lua:536: in function </usr/local/apisix/apisix/core/config_etcd.lua:527>,  etcd key: /apisix/plugin_configs, context: ngx.timer
   ```


-- 
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:
users@infra.apache.org