gosp / lua-resty-ntlm

nginx ntlm module implemented by lua
MIT License
27 stars 13 forks source link

500 Internal Server Error (openresty/1.15.8.2) #3

Open Dmitry-NC opened 4 years ago

Dmitry-NC commented 4 years ago

service openresty restart && echo -n > /var/log/nginx/openresty_error.log && tail -f /var/log/nginx/openresty_error.log

2019/11/07 15:58:04 [warn] 73089#73089: 1 [lua] _G write guard:12: writing a global lua variable ('struct') which may lead to race conditions between concurrent requests, so prefer the use of 'local' variables stack traceback: [C]: at 0x7f12a39a5f50 [C]: in function 'require' /usr/local/openresty/lualib/ntlm.lua:1: in main chunk [C]: in function 'require' access_by_lua(default:46):3: in main chunk, client: 192.168.xxx.yyy, server: aaa.bbb.ccc.ru, request: "GET / HTTP/1.1", host: "aaa.bbb.ccc.ru:880" 2019/11/07 15:58:04 [error] 73089#73089: 1 lua entry thread aborted: runtime error: /usr/local/openresty/lualib/ntlm.lua:288: attempt to index local 'cache' (a nil value) stack traceback: coroutine 0: /usr/local/openresty/lualib/ntlm.lua: in function 'isAuthorized' /usr/local/openresty/lualib/ntlm.lua:303: in function 'negotiate' access_by_lua(default:46):3: in main chunk, client: 192.168.xxx.yyy, server: aaa.bbb.ccc.ru, request: "GET / HTTP/1.1", host: "aaa.bbb.ccc.ru:880" ^C

gigi12345 commented 4 years ago

I meet the same error,is there some solution now?

Dmitry-NC commented 4 years ago

No, I could not find an acceptable solution. All solutions work partially. https://gist.github.com/pohmelie/d1f3ae729472aa652177c2f954bbee08