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 2020/10/27 01:24:44 UTC

[GitHub] [apisix] Jaycean opened a new issue #2526: request help: admin-api error : key not found

Jaycean opened a new issue #2526:
URL: https://github.com/apache/apisix/issues/2526


   ### Issue description
   
   When I restart my system or change the docker image, restart all services, it will cause FE to report error 400, check the api error as follows
   manage-api
   ```
   {"app":"manager-api","level":"error","line":"service/route.go:107","msg":"status: 404, body: {\"message\":\"Key not found\",\"header\":{\"raft_term\":\"2\",\"cluster_id\":\"14841639068965178418\",\"member_id\":\"10276657743932975437\",\"revision\":\"12\"}}\n","time":"2020-10-26T16:43:08+08:00"}
   {"app":"manager-api","level":"error","line":"route/route.go:152","msg":"Route request parameters are abnormal: status: 404, body: {\"message\":\"Key not found\",\"header\":{\"raft_term\":\"2\",\"cluster_id\":\"14841639068965178418\",\"member_id\":\"10276657743932975437\",\"revision\":\"12\"}}\n route ID: 29fbc3ad-e414-49a2-aab3-239700d5648b","time":"2020-10-26T16:43:08+08:00"}
   {"app":"manager-api","errMsg":null,"host":"192.168.227.153:8080","latency":33,"level":"info","line":"filter/logging.go:78","method":"PUT","msg":"","params":"","path":"/apisix/admin/routes/29fbc3ad-e414-49a2-aab3-239700d5648b/offline","remoteIp":"192.168.227.153","requestId":"a903fe75-408b-4609-b7c2-eeb30c409ced","respBody":"{\"code\":\"010201\",\"msg\":\"Route request parameters are abnormal: status: 404, body: {\\\"message\\\":\\\"Key not found\\\",\\\"header\\\":{\\\"raft_term\\\":\\\"2\\\",\\\"cluster_id\\\":\\\"14841639068965178418\\\",\\\"member_id\\\":\\\"10276657743932975437\\\",\\\"revision\\\":\\\"12\\\"}}\\n route ID: 29fbc3ad-e414-49a2-aab3-239700d5648b\"}","statusCode":400,"time":"2020-10-26T16:43:08+08:00"}
   ```
   I checked the code and found that the error occurred when admin-api requested etcd: `Key not found`
   So I tried the command:`make init`,but it didn't work
   
   The solution is to delete all tables in the manage library in mysql, and then re-execute `source ./api/script/db/schema.sql` to solve this problem, but in this way I lose all the data that has been created
   
   ### Environment
   
   * apisix version (cmd: `apisix version`): v1.5
   * OS: Centos7 Fedora31
   


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



[GitHub] [apisix] membphis closed issue #2526: request help: admin-api error : key not found

Posted by GitBox <gi...@apache.org>.
membphis closed issue #2526:
URL: https://github.com/apache/apisix/issues/2526


   


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



[GitHub] [apisix] membphis commented on issue #2526: request help: admin-api error : key not found

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #2526:
URL: https://github.com/apache/apisix/issues/2526#issuecomment-717993816


   we have removed `mysql` in APISIX dashboard now.
   
   please make a try with the latest version `2.0`.


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