Yangzcy423911 commented on issue #3266:
URL: https://github.com/apache/apisix/issues/3266#issuecomment-759976088


   Restart and re access the node. The error log is as follows
   
   2021/01/14 15:11:25 [error] 25657#25657: *651 [lua] http.lua:951: 
request_uri(): unread data in buffer, client: 192.168.1.1, server: , request: 
"GET /apisix/prometheus/metrics HTTP/1.1", host: "192.168.1.1"
   2021/01/14 15:11:25 [alert] 25657#25657: *651 [lua] etcd.lua:93: 
get_format(): {"code":7,"error":"etcdserver: permission 
denied","message":"etcdserver: permission denied"}, client: 192.168.1.1, 
server: , request: "GET /apisix/prometheus/metrics HTTP/1.1", host: 
"192.168.1.1"
   2021/01/14 15:11:25 [error] 25657#25657: *651 lua entry thread aborted: 
runtime error: /usr/share/lua/5.1/apisix/core/etcd.lua:96: attempt to index 
field 'header' (a nil value)
   stack traceback:
   coroutine 0:
        /usr/share/lua/5.1/apisix/core/etcd.lua: in function 'get_format'
        /usr/share/lua/5.1/apisix/core/config_etcd.lua:75: in function 'getkey'
        /usr/share/lua/5.1/apisix/plugins/prometheus/exporter.lua:310: in 
function 'handler'
        /usr/share/lua/5.1/apisix/api_router.lua:124: in function 'handler'
        /usr/local/apisix//deps/share/lua/5.1/resty/radixtree.lua:713: in 
function 'dispatch'
        /usr/share/lua/5.1/apisix/api_router.lua:159: in function 'match'
        /usr/share/lua/5.1/apisix/init.lua:381: in function 'http_access_phase'
        access_by_lua(nginx.conf:251):2: in main chunk, client: 192.168.1.1, 
server: , request: "GET /apisix/prometheus/metrics HTTP/1.1", host: 
"192.168.1.1"
   


----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to