-
-
Notifications
You must be signed in to change notification settings - Fork 251
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
loop or previous error loading module 'resty.jwt' #313
Comments
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: 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. |
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
The text was updated successfully, but these errors were encountered: