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/07/22 09:59:08 UTC

[GitHub] [apisix] itw-hewb opened a new issue #4653: 正确的路由一段时间后{"error_msg":"failed to match any routes"}

itw-hewb opened a new issue #4653:
URL: https://github.com/apache/apisix/issues/4653


   apisix version:2.6 
   route配置:{
     "uri": "/nacos/*",
     "name": "tnacos",
     "plugins": {
       "proxy-rewrite": {
         "headers": {
           "Referer": "http://test.oan.zhiyinlou.com/"
         },
         "regex_uri": [
           "^/nacos/(.*)",
           "/$1"
         ]
       },
       "skywalking": {
         "sample_ratio": 1
       }
     },
     "upstream": {
       "type": "roundrobin",
       "hash_on": "vars",
       "scheme": "http",
       "discovery_type": "nacos",
       "pass_host": "pass",
       "service_name": "mis-gateway-dev"
     },
     "status": 1
   }
   
   正确的结果:
   ![image](https://user-images.githubusercontent.com/22789061/126621581-ff83fd36-5490-439f-8ff7-57b6155173c2.png)
   
   一段时间后访问:
   {"error_msg":"failed to match any routes"}
   
   通过route 下线 上线后操作后 恢复正常 一段时间后 继续 {"error_msg":"failed to match any routes"}  如此循环


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



[GitHub] [apisix] tzssangglass commented on issue #4653: 正确的路由一段时间后{"error_msg":"failed to match any routes"}

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


   you can set `log_level` to `debug` to get `"failed to match any routes"` in error.log of APISIX 2.6. 
   I wanted to see if it would be in the log.


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



[GitHub] [apisix] itw-hewb commented on issue #4653: 正确的路由一段时间后{"error_msg":"failed to match any routes"}

Posted by GitBox <gi...@apache.org>.
itw-hewb commented on issue #4653:
URL: https://github.com/apache/apisix/issues/4653#issuecomment-885355912


   > 我很惊讶,因为这个 PR 中的 404 异常消息已经改变了:#2304,form `"failed to match any routes"`to `"404 Route Not Found"`,请检查 apisix 的版本,或者请求是否发送到较低版本的 apisix。
   
   这是我的apisix 版本
   ![image](https://user-images.githubusercontent.com/22789061/126730589-da8029c4-8d13-4684-8db8-656959e02f41.png)
   


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



[GitHub] [apisix] itw-hewb commented on issue #4653: 正确的路由一段时间后{"error_msg":"failed to match any routes"}

Posted by GitBox <gi...@apache.org>.
itw-hewb commented on issue #4653:
URL: https://github.com/apache/apisix/issues/4653#issuecomment-884827233


   > @itw-hewb APISIX的错误日志文件中是否有异常日志?
   
   ![image](https://user-images.githubusercontent.com/22789061/126629439-d660acc2-1d95-463b-b953-17b91ad903f8.png)
   这是日志


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



[GitHub] [apisix] itw-hewb commented on issue #4653: 正确的路由一段时间后{"error_msg":"failed to match any routes"}

Posted by GitBox <gi...@apache.org>.
itw-hewb commented on issue #4653:
URL: https://github.com/apache/apisix/issues/4653#issuecomment-885373161


   > > 你可以设置`log_level`为`debug`获取`"failed to match any routes"`APISIX 2.6的error.log。
   > > 我想看看它是否会在日志中。
   > 
   > 这是我的 调试模式已经启动 日志的情况是正确的情况 配置是这样的情况不是马出现是要等待立另一个现在的时间后出现的就在等这个问题的出现等附上
   > ![图像](https://user-images.githubusercontent.com/22789061/126733434-857b3fa3-bd61-4c24-9847-fafc0bc0e099.png)
   > 
   > 
   > ![图像](https://user-images.githubusercontent.com/22789061/126733937-6d3ff6d5-eff4-4156-8784-0d08918917a6.png)
   
   这是是异常后的日志
   ![image](https://user-images.githubusercontent.com/22789061/126734207-5793776f-7f01-4b73-a935-7d3675c537c3.png)
   


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



[GitHub] [apisix] tzssangglass removed a comment on issue #4653: 正确的路由一段时间后{"error_msg":"failed to match any routes"}

Posted by GitBox <gi...@apache.org>.
tzssangglass removed a comment on issue #4653:
URL: https://github.com/apache/apisix/issues/4653#issuecomment-885377401


   can you find `"failed to match any routes"` in error.log?


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



[GitHub] [apisix] tzssangglass commented on issue #4653: 正确的路由一段时间后{"error_msg":"failed to match any routes"}

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


   I'm surprised because the 404 exception message was already changed in this PR:https://github.com/apache/apisix/pull/2304, form `"failed to match any routes"` to `"404 Route Not Found"`, please check the version of apisix or if the request was sent to a lower version of apisix.


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



[GitHub] [apisix] tokers commented on issue #4653: 正确的路由一段时间后{"error_msg":"failed to match any routes"}

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


   @itw-hewb Any abnormal logs in the error log file of APISIX?


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



[GitHub] [apisix] itw-hewb commented on issue #4653: 正确的路由一段时间后{"error_msg":"failed to match any routes"}

Posted by GitBox <gi...@apache.org>.
itw-hewb commented on issue #4653:
URL: https://github.com/apache/apisix/issues/4653#issuecomment-885372117


   > 您可以设置`log_level`为`debug`获取`"failed to match any routes"`APISIX 2.6 的 error.log。
   > 我想看看它是否会在日志中。
   
   这是我的配置 
   ![image](https://user-images.githubusercontent.com/22789061/126733434-857b3fa3-bd61-4c24-9847-fafc0bc0e099.png)
   debug 模式已经启动
   这是日志情况 这是正确的情况
   ![image](https://user-images.githubusercontent.com/22789061/126733937-6d3ff6d5-eff4-4156-8784-0d08918917a6.png)
   令人惊讶的是 这种情况不是立马出现 是要等待一个不确定的 时间后出现的 我现在就在等这个问题的出现 稍等 附上日志
   


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



[GitHub] [apisix] tzssangglass commented on issue #4653: 正确的路由一段时间后{"error_msg":"failed to match any routes"}

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


   can you find `"failed to match any routes"` in error.log?


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



[GitHub] [apisix] tokers commented on issue #4653: 正确的路由一段时间后{"error_msg":"failed to match any routes"}

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


   I found a log entry "failed to fetch data from etcd: failed to read etcd dir", it should be unexpected and might affect the routes.


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



[GitHub] [apisix] tokers commented on issue #4653: 正确的路由一段时间后{"error_msg":"failed to match any routes"}

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


   > > I found a log entry "failed to fetch data from etcd: failed to read etcd dir", it should be unexpected and might affect the routes.
   > 
   > 有可能,为什么会有这个?我检查了我的etcd 都是正常的
   
   Hard to answer it, could you capture some network packets between APISIX and ETCD?


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



[GitHub] [apisix] itw-hewb commented on issue #4653: 正确的路由一段时间后{"error_msg":"failed to match any routes"}

Posted by GitBox <gi...@apache.org>.
itw-hewb commented on issue #4653:
URL: https://github.com/apache/apisix/issues/4653#issuecomment-885518066


   > I found a log entry "failed to fetch data from etcd: failed to read etcd dir", it should be unexpected and might affect the routes.
   
   有可能,为什么会有这个?我检查了我的etcd   都是正常的


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



[GitHub] [apisix] tzssangglass commented on issue #4653: 正确的路由一段时间后{"error_msg":"failed to match any routes"}

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


   I checked the logs and didn't find anything wrong. Make sure you are using the routing [ttl](https://github.com/apache/apisix/blob/master/docs/zh/latest/admin-api.md#url-%E8%AF%B7%E6%B1%82%E5%8F%82%E6%95%B0).
   
   And I still wonder, `"failed to match any routes"` should not appear in APISIX 2.6.


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