Yiyiyimu opened a new issue #4279:
URL: https://github.com/apache/apisix/issues/4279


   ### Issue description
   
   Somehow `debug.yaml` is not contained in apisix container in kubernetes, 
while the same docker container has that file. As a result, when changing log 
level to `info`, the error log would be flushed by `debug.lua:44: 
read_debug_yaml(): failed to fetch /usr/local/apisix/conf/debug.yaml 
attributes: cannot obtain information from file 
'/usr/local/apisix/conf/debug.yaml': No such file or directory, context: 
ngx.timer`
   
   ### Environment
   
   Bug report without environment information will be ignored or closed.
   
   * apisix version (cmd: `apisix version`): lastest docker version / 2.5
   * OS (cmd: `uname -a`): WSL2 x86_64 Ubuntu
   * OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`): 1.19.3.1
   * etcd version, if have (cmd: run `curl 
http://127.0.0.1:9090/v1/server_info` to get the info from server-info API): 
3.4.15
   * Kubernetes version: 1.20.2
   
   ### Minimal test code / Steps to reproduce the issue
   
   Bug report without steps to reproduce will be ignored or closed.
   
   1. Add `error_log_level: "info"` to config.yaml
   2. Deploy apisix in kubernetes, with the instruction in `./kubernetes`
   3. `kubectl exec -it ${APISIX_CONTAINER} -- ls conf/` to find the missing 
`debug.yaml`
   4. `kubectl exec -it ${APISIX_CONTAINER} -- tail logs/error.log` to get the 
flushing notice
   
   ### What's the actual result? (including assertion message & call stack if 
applicable)
   
   ### What's the expected result?
   


-- 
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:
[email protected]


Reply via email to