lua-resty-openidc
lua-resty-openidc copied to clipboard
loop or previous error loading module 'resty.jwt'
Hi There,
We have been running lua-resty older version for a very long time and today suddenly we are seeing this issue. We haven't made any changes to any installation packages ever since the server was deployed 2 years ago.
Can someone help me on this and point us in the right direction?
2020/02/27 20:33:16 [error] 66#0: *29 lua entry thread aborted: runtime error: /usr/local/openresty/site/lualib/resty/openidc.lua:633: loop or previous error loading module 'resty.jwt' stack traceback: coroutine 0: [C]: in function 'require' /usr/local/openresty/site/lualib/resty/openidc.lua:633: in function 'openidc_load_jwt_and_verify_crypto' /usr/local/openresty/site/lualib/resty/openidc.lua:1164: in function 'jwt_verify' /usr/local/openresty/site/lualib/resty/openidc.lua:1200: in function 'bearer_jwt_verify' access_by_lua(nginx_psgi.conf:211):27: in function <access_by_lua(nginx_psgi.conf:211):1>, client: 172.17.0.1,
Thanks Venkatesh
Can you say which version of lua-resty-openidc this is in order to better match the line numbers to code?
Following are the versions that I am using: RESTY_VERSION 1.11.2.3 LUA_RESTY_HTTP_VERSION 0.10 LUA_RESTY_SESSION_VERSION 2.15 LUA_RESTY_HMAC_VERSION master LUA_RESTY_JWT_VERSION 0.1.10 LUA_RESTY_OPENIDC_VERSION 1.5.2
After careful inspection and troubleshooting, we reinstalled all the above packages from our local downloaded copies and it worked without any issues when we get the same versions from the corresponding public repos the issue happens.
Is there any chance that there was any change in the public releases?
I just checked and both the luarocks and the opm version look as if they had not changed for more than two years.
The line number is lua-resty-openidc importing lua-resty-jwt (which I could have guessed from the stack trace, sorry). I've never seen that error message before but searching a bit it seems this is Lua's way of saying "I cannot load the module and this is not the first time I failed to do so - and I already told you" - is there an earlier error message somewhere in the logs?
No, I don't see any earlier error message.
Well, then I'm out of ideas why loading the library may have tarted to fail. Sorry.