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/11/17 14:04:56 UTC

[GitHub] [apisix] Yullin opened a new issue #5539: bug: apisix access error status code 500

Yullin opened a new issue #5539:
URL: https://github.com/apache/apisix/issues/5539


   ### Issue description
   
   My Config:
   ```
   {
                   "createdIndex": 247285,
                   "key": "/apisix/routes/00000000000000247284",
                   "modifiedIndex": 322859,
                   "value": {
                       "create_time": 1634879659,
                       "enable_websocket": false,
                       "host": "static.xxx.com",
                       "id": "00000000000000247284",
                       "methods": [
                           "GET"
                       ],
                       "priority": 0,
                       "status": 1,
                       "update_time": 1637146869,
                       "upstream": {
                           "hash_on": "vars",
                           "nodes": {
                               "s3.cn-north-1.amazonaws.com.cn:80": 1
                           },
                           "pass_host": "pass",
                           "retries": 2,
                           "scheme": "http",
                           "type": "roundrobin"
                       },
                       "uri": "/*"
                   }
               }
   ```
   Access log with http code 500:
   ```
   121.12.105.56 2021-11-17T18:50:16+08:00 1637146216.662 0.001 819 317865817 1 /videos/web/contract.mp4 "GET /videos/web/contract.mp4 HTTP/1.1" 500 565 - "-" "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36 Edg/95.0.1020.53" "218.79.227.143" "-" static.xxx.com - - -
   157.255.131.125 2021-11-17T18:50:17+08:00 1637146217.120 0.000 710 317865837 1 /favicon.ico "GET /favicon.ico HTTP/1.1" 500 565 - "-" "http://static.xxx.com/videos/web/contract.mp4" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36 Edg/95.0.1020.53" "218.79.227.143" "-" static.xxx.com - - -
   ```
   error gone when I changed nodes to
   ```
   "nodes": {"1.1.1.1:80": 1}
   ```
   Don't know how to reproduce this error.
   As those errors comes up, other config works fine.
   
   ### Environment
   
   - apisix version (cmd: `apisix version`): image: apache/apisix:2.9-alpine
   - OS (cmd: `uname -a`): Amazon Linux 2
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   - etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
   - apisix-dashboard version, if have:
   - the plugin runner version, if the issue is about a plugin runner (cmd: depended on the kind of runner):
   - luarocks version, if the issue is about installation (cmd: `luarocks --version`):
   
   
   ### Steps to reproduce
   
   Cann't reproduce
   
   ### Actual result
   
   None
   
   ### Error log
   
   2021/11/17 18:55:47 [error] 227#227: *317887834 lua entry thread aborted: runtime error: stack overflow
   stack traceback:
   coroutine 0:
           [C]: in function 'nkeys'
           /usr/local/apisix/apisix/core/table.lua:108: in function '_deepcopy'
           /usr/local/apisix/apisix/core/table.lua:111: in function '_deepcopy'
           /usr/local/apisix/apisix/core/table.lua:111: in function '_deepcopy'
           /usr/local/apisix/apisix/core/table.lua:111: in function '_deepcopy'
           /usr/local/apisix/apisix/core/table.lua:111: in function '_deepcopy'
           /usr/local/apisix/apisix/core/table.lua:111: in function '_deepcopy'
           /usr/local/apisix/apisix/core/table.lua:111: in function '_deepcopy'
           /usr/local/apisix/apisix/core/table.lua:111: in function '_deepcopy'
           /usr/local/apisix/apisix/core/table.lua:111: in function '_deepcopy'
           /usr/local/apisix/apisix/core/table.lua:111: in function '_deepcopy'
           /usr/local/apisix/apisix/core/table.lua:111: in function '_deepcopy'
           /usr/local/apisix/apisix/core/table.lua:111: in function '_deepcopy'
           /usr/local/apisix/apisix/core/table.lua:111: in function '_deepcopy'
           /usr/local/apisix/apisix/core/table.lua:111: in function '_deepcopy'
           /usr/local/apisix/apisix/core/table.lua:111: in function '_deepcopy'
           /usr/local/apisix/apisix/core/table.lua:111: in function '_deepcopy'
           /usr/local/apisix/apisix/core/table.lua:111: in function '_deepcopy'
           /usr/local/apisix/apisix/core/table.lua:111: in function '_deepcopy'
           /usr/local/apisix/apisix/core/table.lua:111: in function '_deepcopy'
           /usr/local/apisix/apisix/core/table.lua:111: in function '_deepcopy'
           /usr/local/apisix/apisix/core/table.lua:111: in function '_deepcopy'
           ..., client: 119.167.231.42, server: _, request: "GET /favicon.ico HTTP/1.1", host: "static.xxx.com"
   
   ### Expected result
   
   _No response_


-- 
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] spacewander closed issue #5539: bug: apisix access error status code 500

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


   


-- 
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] spacewander commented on issue #5539: bug: apisix access error status code 500

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


   Duplicate of #4938
   Consider solved. Feel free to reopen it if need.


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