zlhgo commented on issue #6184: URL: https://github.com/apache/apisix/issues/6184#issuecomment-1022941369
attempt to index local 'up_conf' (a nil value) 相关错误日志。 ``` 2022/01/27 04:11:34 [info] 36#36: *144813 [lua] radixtree.lua:564: match_route_opts(): hosts match: true, client: 117.136.86.244, server: _, request: "POST /api/14/store/?sentry_key=c95cef49d5e44f5c989f45f2b862f7fa&sentry_version=7 HTTP/2.0", host: "sentry.ky.cn", referrer: "https://h5.ky.cn/" 2022/01/27 04:11:34 [info] 36#36: *144813 [lua] radixtree.lua:488: compare_param(): pcre pat: \/api\/1*, client: 117.136.86.244, server: _, request: "POST /api/14/store/?sentry_key=c95cef49d5e44f5c989f45f2b862f7fa&sentry_version=7 HTTP/2.0", host: "sentry.ky.cn", referrer: "https://h5.ky.cn/" 2022/01/27 04:11:34 [info] 36#36: *144813 [lua] init.lua:398: http_access_phase(): matched route: {"prev_plugin_config_ver":328214,"orig_plugins":{"ky-traffic-control":{"ab":{"key":"monitoring_sentry_relay","split_type":"distinct_id","enable":false},"header":{"enable":false},"upstreams":{}}},"update_count":1,"createdIndex":1669,"key":"\/apisix\/prod-1\/routes\/dc0b6538","clean_handlers":{},"has_domain":false,"orig_modifiedIndex":328215,"modifiedIndex":"328215#1","value":{"update_time":1643244706,"upstream_id":"733aa9ed","status":1,"create_time":1639561609,"uris":["\/api\/store*","\/api\/1*","\/api\/2*","\/api\/3*","\/api\/4*","\/api\/5*","\/api\/6*","\/api\/7*","\/api\/8*","\/api\/9*"],"plugin_config_id":"a45e88d1","id":"dc0b6538","plugins":{"ky-traffic-control":{"ab":{"key":"monitoring_sentry_relay","split_type":"distinct_id","enable":false},"header":{"enable":false},"upstreams":{}}},"labels":{"managed-by":"apisix-ingress-controller"},"desc":"Created by apisix-ingress-controller, DO NOT modify it manually","priority":0,"name":"sentry_sentry-14_relay","hosts":["sentry.ky.cn"]}}, client: 117.136.86.244, server: _, request: "POST /api/14/store/?sentry_key=c95cef49d5e44f5c989f45f2b862f7fa&sentry_version=7 HTTP/2.0", host: "sentry.ky.cn", referrer: "https://h5.ky.cn/" 2022/01/27 04:11:34 [info] 36#36: *144813 [lua] init.lua:305: get_upstream_by_id(): parsed upstream: {"key":"\/apisix\/prod-1\/upstreams\/733aa9ed","clean_handlers":{},"has_domain":false,"modifiedIndex":328241,"createdIndex":1668,"value":{"labels":{"managed-by":"apisix-ingress-controller"},"nodes_ref":[{"weight":100,"priority":0,"port":3000,"host":"172.16.108.163"},{"weight":100,"priority":0,"port":3000,"host":"172.16.87.161"}],"nodes":"table: 0x7f61c85fac88","create_time":1639561609,"update_time":1643244709,"type":"roundrobin","original_nodes":"table: 0x7f61c85fac88","desc":"Created by apisix-ingress-controller, DO NOT modify it manually","id":"733aa9ed","pass_host":"pass","timeout":{"connect":5,"read":20,"send":20},"hash_on":"vars","parent":{"key":"\/apisix\/prod-1\/upstreams\/733aa9ed","clean_handlers":"table: 0x7f61b0807b50","has_domain":false,"modifiedIndex":328241,"createdIndex":1668,"value":"table: 0x7f61c85fabb8"},"name":"sentry_stable-sentry-relay_3000","scheme":"http"}}, client: 117.136.86.244, server: _, request: "POST /api/14/store/?sentry_key=c95cef49d5e44f5c989f45f2b862f7fa&sentry_version=7 HTTP/2.0", host: "sentry.ky.cn", referrer: "https://h5.ky.cn/" 2022/01/27 04:11:34 [info] 36#36: *144813 [lua] balancer.lua:183: pick_server(): route: {"prev_plugin_config_ver":328214,"orig_plugins":{"ky-traffic-control":{"ab":{"key":"monitoring_sentry_relay","split_type":"distinct_id","enable":false},"header":{"enable":false},"upstreams":{}}},"update_count":1,"createdIndex":1669,"key":"\/apisix\/prod-1\/routes\/dc0b6538","clean_handlers":{},"has_domain":false,"orig_modifiedIndex":328215,"modifiedIndex":"328215#1","value":{"update_time":1643244706,"upstream_id":"733aa9ed","status":1,"create_time":1639561609,"uris":["\/api\/store*","\/api\/1*","\/api\/2*","\/api\/3*","\/api\/4*","\/api\/5*","\/api\/6*","\/api\/7*","\/api\/8*","\/api\/9*"],"plugin_config_id":"a45e88d1","id":"dc0b6538","plugins":{"ky-traffic-control":{"ab":{"key":"monitoring_sentry_relay","split_type":"distinct_id","enable":false},"header":{"enable":false},"upstreams":{}}},"labels":{"managed-by":"apisix-ingress-controller"},"desc":"Created by apisix-ingress-controller, DO NOT mo dify it manually","priority":0,"name":"sentry_sentry-14_relay","hosts":["sentry.ky.cn"]}}, client: 117.136.86.244, server: _, request: "POST /api/14/store/?sentry_key=c95cef49d5e44f5c989f45f2b862f7fa&sentry_version=7 HTTP/2.0", host: "sentry.ky.cn", referrer: "https://h5.ky.cn/" 2022/01/27 04:11:34 [info] 36#36: *144813 [lua] balancer.lua:184: pick_server(): ctx: {"global_rules":{"need_reload":false,"values":[{"key":"\/apisix\/prod-1\/global_rules\/1","clean_handlers":{},"modifiedIndex":1715,"createdIndex":1152,"value":{"create_time":1639554601,"id":"1","plugins":{"prometheus":{"disable":false,"prefer_name":true},"ky-ngx-vars":{"disable":false}},"update_time":1639562234}}],"etcd_cli":{"is_auth":false,"ssl_verify":true,"is_cluster":true,"endpoints":[{"full_prefix":"http:\/\/172.16.78.232:2379\/v3","scheme":"http","host":"172.16.78.232","port":"2379","http_host":"http:\/\/172.16.78.232:2379","api_prefix":"\/v3"},{"full_prefix":"http:\/\/172.16.78.233:2379\/v3","scheme":"http","host":"172.16.78.233","port":"2379","http_host":"http:\/\/172.16.78.233:2379","api_prefix":"\/v3"},{"full_prefix":"http:\/\/172.16.78.234:2379\/v3","scheme":"http","host":"172.16.78.234","port":"2379","http_host":"http:\/\/172.16.78.234:2379","api_prefix":"\/v3"}],"serializer":{"deser ialize":"function: 0x7f61c902b6b0","serialize":"function: 0x7f61c902b6f0"},"timeout":30,"key_prefix":"","sema":{"sem":"cdata<struct ngx_http_lua_sema_s *>: 0x7f61c840c028"},"last_auth_time":1643255881.774,"ttl":-1},"values_hash":{"1":1},"running":true,"key":"\/apisix\/prod-1\/global_rules","item_schema":{"properties":{"create_time":{"type":"integer"},"id":{"anyOf":[{"minLength":1,"type":"string","pattern":"^[a-zA-Z0-9-_.]+$","maxLength":64},{"type":"integer","minimum":1}]},"plugins":{"type":"object"},"update_time":"table: 0x7f61c8607f40"},"type":"object","required":["plugins"]},"health_check_timeout":10,"prev_index":329699,"resync_delay":5,"checker":"function: 0x7f61c85d8fa8","automatic":true,"conf_version":3,"sync_times":0,"last_err_time":1643256642},"matched_upstream":"table: 0x7f61c85fabb8","conf_type":"route","matched_route":{"prev_plugin_config_ver":328214,"orig_plugins":{"ky-traffic-control":{"ab":{"key":"monitoring_sentry_relay","split_type":"distinct_id","enable":false},"hea der":{"enable":false},"upstreams":{}}},"update_count":1,"createdIndex":1669,"key":"\/apisix\/prod-1\/routes\/dc0b6538","clean_handlers":{},"has_domain":false,"orig_modifiedIndex":328215,"modifiedIndex":"328215#1","value":{"update_time":1643244706,"upstream_id":"733aa9ed","status":1,"create_time":1639561609,"uris":["\/api\/store*","\/api\/1*","\/api\/2*","\/api\/3*","\/api\/4*","\/api\/5*","\/api\/6*","\/api\/7*","\/api\/8*","\/api\/9*"],"plugin_config_id":"a45e88d1","id":"dc0b6538","plugins":{"ky-traffic-control":{"ab":{"key":"monitoring_sentry_relay","split_type":"distinct_id","enable":false},"header":{"enable":false},"upstreams":{}}},"labels":{"managed-by":"apisix-ingress-controller"},"desc":"Created by apisix-ingress-controller, DO NOT modify it manually","priority":0,"name":"sentry_sentry-14_relay","hosts":["sentry.ky.cn"]}},"conf_version":"328215#1","upstream_key":"roundrobin#upstream_table: 0x7f61c85fabb8","conf_id":"dc0b6538","var":{"_cache":{"request_method":"POST","remote_a ddr":"117.136.86.244","uri":"\/api\/14\/store\/","host":"sentry.ky.cn","upstream_scheme":"http","real_request_uri":"\/api\/14\/store\/?sentry_key=c95cef49d5e44f5c989f45f2b862f7fa&sentry_version=7","request_uri":"\/api\/14\/store\/?sentry_key=c95cef49d5e44f5c989f45f2b862f7fa&sentry_version=7"},"_request":"cdata<void *>: 0x55d77d857400"},"route_id":"dc0b6538","route_name":"sentry_sentry-14_relay","upstream_conf":{"labels":{"managed-by":"apisix-ingress-controller"},"nodes_ref":[{"weight":100,"priority":0,"port":3000,"host":"172.16.108.163"},{"weight":100,"priority":0,"port":3000,"host":"172.16.87.161"}],"nodes":"table: 0x7f61c85fac88","create_time":1639561609,"update_time":1643244709,"type":"roundrobin","original_nodes":"table: 0x7f61c85fac88","desc":"Created by apisix-ingress-controller, DO NOT modify it manually","id":"733aa9ed","pass_host":"pass","timeout":{"connect":5,"read":20,"send":20},"hash_on":"vars","parent":{"key":"\/apisix\/prod-1\/upstreams\/733aa9ed","clean_handlers":{}," has_domain":false,"modifiedIndex":328241,"createdIndex":1668,"value":"table: 0x7f61c85fabb8"},"na 2022/01/27 04:11:34 [info] 36#36: *144813 [lua] init.lua:538: http_access_phase(): stash ngx ctx: 6, client: 117.136.86.244, server: _, request: "POST /api/14/store/?sentry_key=c95cef49d5e44f5c989f45f2b862f7fa&sentry_version=7 HTTP/2.0", host: "sentry.ky.cn", referrer: "https://h5.ky.cn/" 2022/01/27 04:11:34 [info] 36#36: *144813 [lua] balancer.lua:183: pick_server(): route: null while connecting to upstream, client: 117.136.86.244, server: _, request: "POST /api/14/store/?sentry_key=c95cef49d5e44f5c989f45f2b862f7fa&sentry_version=7 HTTP/2.0", host: "sentry.ky.cn", referrer: "https://h5.ky.cn/" 2022/01/27 04:11:34 [info] 36#36: *144813 [lua] balancer.lua:184: pick_server(): ctx: {} while connecting to upstream, client: 117.136.86.244, server: _, request: "POST /api/14/store/?sentry_key=c95cef49d5e44f5c989f45f2b862f7fa&sentry_version=7 HTTP/2.0", host: "sentry.ky.cn", referrer: "https://h5.ky.cn/" 2022/01/27 04:11:34 [error] 36#36: *144813 failed to run balancer_by_lua*: /usr/local/apisix/apisix/balancer.lua:187: attempt to index local 'up_conf' (a nil value) stack traceback: /usr/local/apisix/apisix/balancer.lua:187: in function 'pick_server' /usr/local/apisix/apisix/balancer.lua:325: in function 'run' /usr/local/apisix/apisix/init.lua:739: in function 'http_balancer_phase' balancer_by_lua:2: in main chunk while connecting to upstream, client: 117.136.86.244, server: _, request: "POST /api/14/store/?sentry_key=c95cef49d5e44f5c989f45f2b862f7fa&sentry_version=7 HTTP/2.0", host: "sentry.ky.cn", referrer: "https://h5.ky.cn/" 2022/01/27 04:11:34 [info] 36#36: *144813 [lua] init.lua:554: fetch_ctx(): fetch ngx ctx: 6 while sending to client, client: 117.136.86.244, server: _, request: "POST /api/14/store/?sentry_key=c95cef49d5e44f5c989f45f2b862f7fa&sentry_version=7 HTTP/2.0", host: "sentry.ky.cn", referrer: "https://h5.ky.cn/" ``` -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
