Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to run balancer_by_lua*: /opt/verynginx/openresty/lualib/ngx/balancer.lua:118: bad argument #4 to 'ngx_lua_ffi_balancer_set_current_peer' (cannot convert 'nil' to 'int') #259

Open
junweigu opened this issue Aug 3, 2021 · 1 comment

Comments

@junweigu
Copy link

junweigu commented Aug 3, 2021

failed to run balancer_by_lua*: /opt/verynginx/openresty/lualib/ngx/balancer.lua:118: bad argument #4 to 'ngx_lua_ffi_balancer_set_current_peer' (cannot convert 'nil' to 'int')

一直报这个错误,请问怎么解决?》

@junweigu
Copy link
Author

junweigu commented Aug 3, 2021

stack traceback:
[C]: in function 'ngx_lua_ffi_balancer_set_current_peer'
/opt/verynginx/openresty/lualib/ngx/balancer.lua:118: in function 'set_current_peer'
/opt/verynginx/verynginx/lua_script/on_banlance.lua:13: in function 'run'
/opt/verynginx/verynginx/lua_script/on_banlance.lua:22: in main chunk while connecting to upstream, client: 43.227.137.3, server: test.uso.cn, request: "GET /favicon.ico HTTP/1.1", host: "test.uso.cn", referrer: "https://test.uso.cn/"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant