Qizhd opened a new issue #4464:
URL: https://github.com/apache/apisix/issues/4464
### Issue description
```
021/06/22 15:46:00 [warn] 18588#18588: *5 [lua] plugin.lua:158: load(): new
plugins:
{"http-logger":true,"limit-conn":true,"echo":true,"fault-injection":true,"request-id":true,"proxy-mirror":true,"sls-logger":true,"ip-restriction":true,"limit-count":true,"cors":true,"zipkin":true,"basic-auth":true,"request-validation":true,"proxy-rewrite":true,"syslog":true,"limit-req":true,"redirect":true,"jwt-auth":true,"tcp-logger":true,"batch-requests":true,"node-status":true,"kafka-logger":true,"serverless-pre-function":true,"udp-logger":true,"api-breaker":true,"response-rewrite":true,"referer-restriction":true,"hmac-auth":true,"uri-blocker":true,"openid-connect":true,"wolf-rbac":true,"key-auth":true,"consumer-restriction":true,"grpc-transcode":true,"authz-keycloak":true,"prometheus":true,"proxy-cache":true,"serverless-post-function":true},
context: init_worker_by_lua*
2021/06/22 15:46:00 [warn] 18588#18588: *5 [lua] plugin.lua:206:
load_stream(): new plugins: {"mqtt-proxy":true}, context: init_worker_by_lua*
2021/06/22 15:46:01 [error] 18588#18588: *7 [lua] config_etcd.lua:262:
sync_data(): failed to check item data of [/apisix/routes] err:additional
properties forbidden, found status ,val:
{"uri":"\/get","status":1,"name":"a","id":"1","priority":0,"create_time":1623841480,"upstream_id":"1","host":"httpbin.org","update_time":1623898712},
context: ngx.timer
2021/06/22 15:46:01 [error] 18588#18588: *11 [lua] config_etcd.lua:262:
sync_data(): failed to check item data of [/apisix/global_rules] err:additional
properties forbidden, found create_time ,val:
{"create_time":1623831677,"id":"1","plugins":{"error-log-logger":{"disable":false}},"update_time":1623831677},
context: ngx.timer
2021/06/22 15:46:01 [error] 18588#18588: *21 [lua] config_etcd.lua:262:
sync_data(): failed to check item data of [/apisix/upstreams] err:additional
properties forbidden, found scheme ,val:
{"type":"roundrobin","id":"1","pass_host":"pass","hash_on":"vars","create_time":1623835774,"nodes":{"httpbin.org:80":1},"scheme":"http","update_time":1623835774},
context: ngx.timer
2021/06/22 15:46:03 [error] 18583#18583: *55 lua entry thread aborted:
runtime error: /c4_working/apisix-2.1/apisix/init.lua:796: attempt to index
upvalue 'router' (a nil value)
stack traceback:
coroutine 0:
/c4_working/apisix-2.1/apisix/init.lua: in function 'http_admin'
content_by_lua(nginx.conf:158):2: in main chunk, client: 127.0.0.1,
server: , request: "PUT /apisix/admin/upstreams/1 HTTP/1.1", host:
"127.0.0.1:9080"
2021/06/22 15:50:38 [error] 18583#18583: *3696 lua entry thread aborted:
runtime error: /c4_working/apisix-2.1/apisix/init.lua:796: attempt to index
upvalue 'router' (a nil value)
stack traceback:
coroutine 0:
/c4_working/apisix-2.1/apisix/init.lua: in function 'http_admin'
content_by_lua(nginx.conf:158):2: in main chunk, client: 127.0.0.1,
server: , request: "GET /apisix/admin/upstreams/1 HTTP/1.1", host:
"127.0.0.1:9080"
2021/06/22 15:51:36 [error] 18584#18584: *4452 lua entry thread aborted:
runtime error: /c4_working/apisix-2.1/apisix/init.lua:796: attempt to index
upvalue 'router' (a nil value)
stack traceback:
coroutine 0:
/c4_working/apisix-2.1/apisix/init.lua: in function 'http_admin'
content_by_lua(nginx.conf:158):2: in main chunk, client: 127.0.0.1,
server: , request: "GET /apisix/admin/upstreams/1 HTTP/1.1", host:
"127.0.0.1:9080"
2021/06/22 15:56:59 [error] 18585#18585: *8731 lua entry thread aborted:
runtime error: /c4_working/apisix-2.1/apisix/init.lua:796: attempt to index
upvalue 'router' (a nil value)
stack traceback:
coroutine 0:
/c4_working/apisix-2.1/apisix/init.lua: in function 'http_admin'
content_by_lua(nginx.conf:158):2: in main chunk, client: 127.0.0.1,
server: , request: "GET /apisix/admin/upstreams HTTP/1.1", host:
"127.0.0.1:9080"
```
### Environment
Request help without environment information will be ignored or closed.
* apisix version (cmd: `apisix version`):
v.2.1
* OS (cmd: `uname -a`):
centos 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64
x86_64 x86_64 GNU/Linux
* OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
```
nginx version: openresty/1.19.3.2
built by gcc 9.3.1 20200408 (Red Hat 9.3.1-2) (GCC)
built with OpenSSL 1.1.1k 25 Mar 2021
TLS SNI support enabled
configure arguments: --prefix=/usr/local/openresty/nginx --with-cc-opt='-O2
-DNGX_LUA_ABORT_AT_PANIC -I/usr/local/openresty/zlib/include
-I/usr/local/openresty/pcre/include -I/usr/local/openresty/openssl111/include'
--add-module=../ngx_devel_kit-0.3.1 --add-module=../echo-nginx-module-0.62
--add-module=../xss-nginx-module-0.06 --add-module=../ngx_coolkit-0.2
--add-module=../set-misc-nginx-module-0.32
--add-module=../form-input-nginx-module-0.12
--add-module=../encrypted-session-nginx-module-0.08
--add-module=../srcache-nginx-module-0.32 --add-module=../ngx_lua-0.10.19
--add-module=../ngx_lua_upstream-0.07
--add-module=../headers-more-nginx-module-0.33
--add-module=../array-var-nginx-module-0.05
--add-module=../memc-nginx-module-0.19 --add-module=../redis2-nginx-module-0.15
--add-module=../redis-nginx-module-0.3.7 --add-module=../ngx_stream_lua-0.0.9
--with-ld-opt='-Wl,-rpath,/usr/local/openresty/luajit/lib
-L/usr/local/openresty/zlib/lib -L/usr/local/openresty/pcre/lib -L/usr/loca
l/openresty/openssl111/lib
-Wl,-rpath,/usr/local/openresty/zlib/lib:/usr/local/openresty/pcre/lib:/usr/local/openresty/openssl111/lib'
--with-cc='ccache gcc -fdiagnostics-color=always' --with-pcre-jit
--with-stream --with-stream_ssl_module --with-stream_ssl_preread_module
--with-http_v2_module --without-mail_pop3_module --without-mail_imap_module
--without-mail_smtp_module --with-http_stub_status_module
--with-http_realip_module --with-http_addition_module
--with-http_auth_request_module --with-http_secure_link_module
--with-http_random_index_module --with-http_gzip_static_module
--with-http_sub_module --with-http_dav_module --with-http_flv_module
--with-http_mp4_module --with-http_gunzip_module --with-threads --with-compat
--with-stream --with-http_ssl_module
```
* etcd version, if have (cmd: run `curl
http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>openresty</center>
</body>
</html>
* apisix-dashboard version, if have:
* luarocks version, if the issue is about installation (cmd: `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.
For queries about this service, please contact Infrastructure at:
[email protected]