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

[I] bug: Plugin logs missing but request still routed incorrectly in APISIX 2.13.2 [apisix]

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

   ### Current Behavior
   
   ## Issue description
   
   We are experiencing an intermittent issue where requests are routed to the wrong upstream, even though the plugin chain should determine the correct routing. The most concerning part is that when this happens, the plugin logs are completely missing, but the access log shows the request was processed.
   
   
   
   
   
   
   ### Expected Behavior
   
   Actual result
   
   Occasionally, requests from a specific sid are routed to the wrong upstream
   When this happens:
   
   Access log shows the request was processed
   Plugin logs (core.log.warn) are completely missing
   The request reaches an incorrect upstream
   
   
   
   Expected result
   
   All requests should be routed according to the header matching rules
   Plugin logs should always be present when plugins are executed
   If plugins fail to execute, the request should not proceed to routing
   
   ### Error Logs
   
   _No response_
   
   ### Steps to Reproduce
   
   
   
   1. We have a plugin chain configured as follows:
      - Plugin 1: Parse JWT token to extract `sid` and set it in header
      - Plugin 2: Use the `sid` from header to call external service for version info, then set version in header
      - Plugin 3: `traffic-split` plugin routes to different upstreams based on header matching rules
   
   ### Environment
   
   - APISIX version (run `apisix version`):2.13.3
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
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] bug: Plugin logs missing but request still routed incorrectly in APISIX 2.13.1 [apisix]

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

   Thanks for your time. Closing this issue as it was due to my local configuration, not a project bug.


-- 
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] bug: Plugin logs missing but request still routed incorrectly in APISIX 2.13.1 [apisix]

Posted by "hardme (via GitHub)" <gi...@apache.org>.
hardme closed issue #12497: bug: Plugin logs missing but request still routed incorrectly in APISIX 2.13.1
URL: https://github.com/apache/apisix/issues/12497


-- 
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] bug: Plugin logs missing but request still routed incorrectly in APISIX 2.13.1 [apisix]

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

   @hardme 
   
   I noticed that you are using a very old version, and also, it is not the latest minor version (`2.13.3`) on that branch (`2.13.x`).
   Since you've provided a more definitive reproduction process, could you please first verify that your issue can be reproduced, and if it goes away, we've narrowed it down.
   
   While I understand that it is not possible to simply change the production version, that does not shift the reason for the reporting responsibility.
   This version is so old that in principle we will not provide any support for it (it's zero), unless you have proof that it still exists on the latest version. But we do want to relieve you of your dilemma and we can provide you with the information and have it verified by you.
   
   > Try 2.13.3 first, you don't need to replace it in your production environment, just a simple test deployment and repeat your steps.


-- 
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] bug: Plugin logs missing but request still routed incorrectly in APISIX 2.13.1 [apisix]

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

   Thanks for the response. While upgrading is in our roadmap, we need to maintain our production system on 2.13.2 for now.
   
   Could you help identify:
   1. Any specific issue/PR numbers related to "plugins not executing but request still being routed"?
   2. The minimum version where this was fixed?
   3. Any possible workarounds for 2.13.2?
   
   This would help us assess the upgrade urgency and plan accordingly. I couldn't find related issues in the changelog - searching for "plugin skip", "plugin chain", or "context pollution" didn't yield clear matches.


-- 
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] bug: Plugin logs missing but request still routed incorrectly in APISIX 2.13.1 [apisix]

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

   Hi, have you tried upgrading APISIX to a newer version?
   
   This version looks too old. The latest version is already 3.13.0, and the problem you mentioned may have been fixed in the process.


-- 
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] bug: Plugin logs missing but request still routed incorrectly in APISIX 2.13.1 [apisix]

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

   Got it. We'll test on  3.2.2 (our planned upgrade target). Will report back with the results.


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