Kong安装中的Lua错误

时间:2019-02-11 22:01:50

标签: kong

我们使用Docker安装了Kong 0.14.1。当我们启动Kong时,会在配置文件nginx-kong.conf中遇到与调用Lua方法有关的错误。

    2019/02/11 21:58:19 [notice] 1#0: using the "epoll" event method,
2019/02/11 21:58:19 [notice] 1#0: openresty/1.13.6.2,
2019/02/11 21:58:19 [notice] 1#0: built by gcc 6.3.0 (Alpine 6.3.0) ,
2019/02/11 21:58:19 [notice] 1#0: OS: Linux 4.15.0-1037-azure,
2019/02/11 21:58:19 [notice] 1#0: getrlimit(RLIMIT_NOFILE): 1048576:1048576,
2019/02/11 21:58:19 [notice] 1#0: start worker processes,
2019/02/11 21:58:19 [notice] 1#0: start worker process 36,
2019/02/11 21:58:19 [notice] 1#0: start worker process 37,
2019/02/11 21:58:19 [notice] 1#0: start worker process 38,
2019/02/11 21:58:19 [notice] 1#0: start worker process 39,
2019/02/11 21:58:19 [error] 36#0: init_worker_by_lua error: init_worker_by_lua:2: attempt to call field 'init_worker' (a nil value),
stack traceback:,
    init_worker_by_lua:2: in main chunk,
2019/02/11 21:58:19 [error] 37#0: init_worker_by_lua error: init_worker_by_lua:2: attempt to call field 'init_worker' (a nil value),
stack traceback:,
    init_worker_by_lua:2: in main chunk,
2019/02/11 21:58:19 [error] 39#0: init_worker_by_lua error: init_worker_by_lua:2: attempt to call field 'init_worker' (a nil value),
stack traceback:,
    init_worker_by_lua:2: in main chunk,
2019/02/11 21:58:19 [error] 38#0: init_worker_by_lua error: init_worker_by_lua:2: attempt to call field 'init_worker' (a nil value),
stack traceback:,
    init_worker_by_lua:2: in main chunk,
2019/02/11 21:58:22 [error] 36#0: *5 lua entry thread aborted: runtime error: content_by_lua(nginx-kong.conf:166):2: attempt to call field 'serve_admin_api' (a nil value),
stack traceback:,
coroutine 0:,
    content_by_lua(nginx-kong.conf:166): in function <content_by_lua(nginx-kong.conf:166):1>, client: 10.255.0.4, server: kong_admin, request: "GET / HTTP/1.1", host: "10.50.76.60:8001",
10.255.0.4 - - [11/Feb/2019:21:58:22 +0000] "GET / HTTP/1.1" 500 199 "-" "Load Balancer Agent",
10.255.0.3 - - [11/Feb/2019:21:58:22 +0000] "GET / HTTP/1.1" 500 199 "-" "Load Balancer Agent",
2019/02/11 21:58:22 [error] 36#0: *6 lua entry thread aborted: runtime error: content_by_lua(nginx-kong.conf:166):2: attempt to call field 'serve_admin_api' (a nil value),
stack traceback:,
coroutine 0:,
    content_by_lua(nginx-kong.conf:166): in function <content_by_lua(nginx-kong.conf:166):1>, client: 10.255.0.3, server: kong_admin, request: "GET / HTTP/1.1", host: "10.50.104.100:8001",
2019/02/11 21:58:27 [error] 36#0: *7 lua entry thread aborted: runtime error: content_by_lua(nginx-kong.conf:166):2: attempt to call field 'serve_admin_api' (a nil value),
stack traceback:,
coroutine 0:,
    content_by_lua(nginx-kong.conf:166): in function <content_by_lua(nginx-kong.conf:166):1>, client: 10.255.0.4, server: kong_admin, request: "GET / HTTP/1.1", host: "10.50.76.60:8001",
10.255.0.4 - - [11/Feb/2019:21:58:27 +0000] "GET / HTTP/1.1" 500 199 "-" "Load Balancer Agent",
2019/02/11 21:58:27 [error] 36#0: *8 lua entry thread aborted: runtime error: content_by_lua(nginx-kong.conf:166):2: attempt to call field 'serve_admin_api' (a nil value),
stack traceback:,
coroutine 0:,
    content_by_lua(nginx-kong.conf:166): in function <content_by_lua(nginx-kong.conf:166):1>, client: 10.255.0.3, server: kong_admin, request: "GET / HTTP/1.1", host: "10.50.104.100:8001",
10.255.0.3 - - [11/Feb/2019:21:58:27 +0000] "GET / HTTP/1.1" 500 199 "-" "Load Balancer Agent",

这似乎始于无处发生。这似乎与我们的Docker集群有关,因为当我在自己的集群中设置Kong时,它可以正常运行。

0 个答案:

没有答案