You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get these errors in the nginx_log when attempting to go to a path requiring login.
2019/06/07 15:12:21 [warn] 6#6: *1 [lua] _G write guard:12: __newindex(): writing a global lua variable ('openidc_get_path') which may lead to race conditions between concurrent requests, so prefer the use of 'local' variables stack traceback: /usr/local/openresty/luajit/share/lua/5.1/resty/openidc.lua:1311: in main chunk [C]: in function 'require' access_by_lua(lua-resty-openidc.conf:52):21: in main chunk, client: x.x.x.x, server: localhost, request: "GET / HTTP/1.1", host: "localhost"
2019/06/07 15:12:21 [warn] 6#6: *1 [lua] _G write guard:12: __newindex(): writing a global lua variable ('openidc_get_redirect_uri_path') which may lead to race conditions between concurrent requests, so prefer the use of 'local' variables stack traceback: /usr/local/openresty/luajit/share/lua/5.1/resty/openidc.lua:1316: in main chunk [C]: in function 'require' access_by_lua(lua-resty-openidc.conf:52):21: in main chunk, client: x.x.x.x, server: localhost, request: "GET / HTTP/1.1", host: "localhost"
Minimized example
I create a custom OpenResty docker image that adds my nginx.conf and lua-resty-openidc.conf. I'm using docker-compose to start the environment.
Environment
Expected behaviour
No warnings for global variables.
Actual behaviour
I get these errors in the nginx_log when attempting to go to a path requiring login.
2019/06/07 15:12:21 [warn] 6#6: *1 [lua] _G write guard:12: __newindex(): writing a global lua variable ('openidc_get_path') which may lead to race conditions between concurrent requests, so prefer the use of 'local' variables stack traceback: /usr/local/openresty/luajit/share/lua/5.1/resty/openidc.lua:1311: in main chunk [C]: in function 'require' access_by_lua(lua-resty-openidc.conf:52):21: in main chunk, client: x.x.x.x, server: localhost, request: "GET / HTTP/1.1", host: "localhost"
2019/06/07 15:12:21 [warn] 6#6: *1 [lua] _G write guard:12: __newindex(): writing a global lua variable ('openidc_get_redirect_uri_path') which may lead to race conditions between concurrent requests, so prefer the use of 'local' variables stack traceback: /usr/local/openresty/luajit/share/lua/5.1/resty/openidc.lua:1316: in main chunk [C]: in function 'require' access_by_lua(lua-resty-openidc.conf:52):21: in main chunk, client: x.x.x.x, server: localhost, request: "GET / HTTP/1.1", host: "localhost"
Minimized example
I create a custom OpenResty docker image that adds my nginx.conf and lua-resty-openidc.conf. I'm using docker-compose to start the environment.
Configuration and NGINX server log files
nginx logs
lua-resty-openidc.conf:
nginx.conf
Dockerfile
docker-compose.yml
The text was updated successfully, but these errors were encountered: