You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "cczchunge (via GitHub)" <gi...@apache.org> on 2023/10/26 02:50:32 UTC

[I] help request: data not sync [apisix]

cczchunge opened a new issue, #10399:
URL: https://github.com/apache/apisix/issues/10399

   ### Description
   
   Apisix 3.2.1  in CP-DP Mode
   
   new created routes will not be synced to DP:
   
   in CP:
   curl http://127.0.0.1:9180/apisix/admin/routes/x32 -H 'X-API-KEY: apisix' -X PUT -d '
   {
       "methods": ["GET"],
       "uri": "/hmac-auth32",
       "host": "www.ccztest.com",
       "name": "ccztest32",
       "upstream": {
           "type": "roundrobin",
           "nodes": {
               "10.247.90.135:9000": 1
           }
       }
   }'
   
   in DP:
   curl -v4 localhost:9080/hmac-auth32 -H "Host: www.ccztest.com"
   * About to connect() to localhost port 9080 (#0)
   *   Trying 127.0.0.1...
   * Connected to localhost (127.0.0.1) port 9080 (#0)
   > GET /hmac-auth32 HTTP/1.1
   > User-Agent: curl/7.29.0
   > Accept: */*
   > Host: www.ccztest.com
   > 
   < HTTP/1.1 404 Not Found
   < Date: Thu, 26 Oct 2023 02:47:20 GMT
   < Content-Type: text/plain; charset=utf-8
   < Transfer-Encoding: chunked
   < Connection: keep-alive
   < Server: APISIX/3.2.1
   < 
   {"error_msg":"404 Route Not Found"}
   
   ### Environment
   
   - APISIX version (run `apisix version`):  3.2.1
   - Operating system (run `uname -a`):  Linux iZ1pg01g9j9z3qotzmx9xeZ 3.10.0-1160.25.1.el7.x86_64 #1 SMP Wed Apr 28 21:49:45 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):   nginx version: openresty/1.21.4.1
   - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`):  3.5.7
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`): /usr/local/bin/luarocks 3.9.2
   
   


-- 
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: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: data not sync [apisix]

Posted by "cczchunge (via GitHub)" <gi...@apache.org>.
cczchunge commented on issue #10399:
URL: https://github.com/apache/apisix/issues/10399#issuecomment-1784337760

   > Can you check if `etcd` is available?
   
   1.   etcds  are available:
   +------------------+---------+---------+---------------------------+---------------------------+------------+
   |        ID                   | STATUS  |  NAME   |        PEER ADDRS         |       CLIENT ADDRS        | IS LEARNER |
   +------------------+---------+---------+---------------------------+---------------------------+------------+
   | 7c51c95a32b31c9c | started | node136 | http://10.247.90.136:2380 | http://10.247.90.136:2379 |      false |
   | 82a64db93ece329c | started | node137 | http://10.247.90.137:2380 | http://10.247.90.137:2379 |      false |
   | d29d0abb76c7ea96 | started | node138 | http://10.247.90.138:2380 | http://10.247.90.138:2379 |      false |
   +------------------+---------+---------+---------------------------+---------------------------+------------+
   
   2.  After I   RESTART   DP, the new created route is synced to DP
   
   Any idea will be appreciated.
   
   
   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: data not sync [apisix]

Posted by "shreemaan-abhishek (via GitHub)" <gi...@apache.org>.
shreemaan-abhishek commented on issue #10399:
URL: https://github.com/apache/apisix/issues/10399#issuecomment-1783857030

   Can you check if `etcd` is available?


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: data not sync [apisix]

Posted by "cczchunge (via GitHub)" <gi...@apache.org>.
cczchunge commented on issue #10399:
URL: https://github.com/apache/apisix/issues/10399#issuecomment-1790358245

   /usr/local/apisix/logs/error.log:
   2023/11/02 17:02:54 [error] 29723#29723: *36 [lua] config_etcd.lua:187: watchdir: timeout, context: ngx.timer
   2023/11/02 17:02:54 [error] 29720#29720: *52 [lua] config_etcd.lua:187: watchdir: timeout, context: ngx.timer
   2023/11/02 17:02:54 [error] 29718#29718: *68 [lua] config_etcd.lua:187: watchdir: timeout, context: ngx.timer
   2023/11/02 17:02:55 [error] 29719#29719: *84 [lua] config_etcd.lua:187: watchdir: timeout, context: ngx.timer
   2023/11/02 17:03:47 [error] 29717#29717: *20 [lua] config_etcd.lua:187: watchdir: timeout, context: ngx.timer
   2023/11/02 17:03:47 [error] 29723#29723: *36 [lua] config_etcd.lua:187: watchdir: timeout, context: ngx.timer
   2023/11/02 17:03:47 [error] 29720#29720: *52 [lua] config_etcd.lua:187: watchdir: timeout, context: ngx.timer
   2023/11/02 17:03:47 [error] 29718#29718: *68 [lua] config_etcd.lua:187: watchdir: timeout, context: ngx.timer
   2023/11/02 17:03:48 [error] 29719#29719: *84 [lua] config_etcd.lua:187: watchdir: timeout, context: ngx.timer
   
   Did these errors caused the data not to be synced?
   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: data not sync [apisix]

Posted by "monkeyDluffy6017 (via GitHub)" <gi...@apache.org>.
monkeyDluffy6017 closed issue #10399: help request: data not sync
URL: https://github.com/apache/apisix/issues/10399


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: data not sync [apisix]

Posted by "Sn0rt (via GitHub)" <gi...@apache.org>.
Sn0rt commented on issue #10399:
URL: https://github.com/apache/apisix/issues/10399#issuecomment-1784430981

   the etcd cluster looks abnormal.
   
   at least need one node with leader role.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: data not sync [apisix]

Posted by "monkeyDluffy6017 (via GitHub)" <gi...@apache.org>.
monkeyDluffy6017 commented on issue #10399:
URL: https://github.com/apache/apisix/issues/10399#issuecomment-1803123586

   It seems that your etcd is not working


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: data not sync [apisix]

Posted by "cczchunge (via GitHub)" <gi...@apache.org>.
cczchunge commented on issue #10399:
URL: https://github.com/apache/apisix/issues/10399#issuecomment-1803393059

   Thank you!
   Problem is solved!
   
   #9263 


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org