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

loop or previous error loading module 'resty.jwt' #313

Open
venkatmarepalli opened this issue Feb 27, 2020 · 5 comments
Open

loop or previous error loading module 'resty.jwt' #313

venkatmarepalli opened this issue Feb 27, 2020 · 5 comments

Comments

@venkatmarepalli
Copy link

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

@bodewig
Copy link
Collaborator

bodewig commented Feb 28, 2020

Can you say which version of lua-resty-openidc this is in order to better match the line numbers to code?

@venkatmarepalli
Copy link
Author

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?

@bodewig
Copy link
Collaborator

bodewig commented Feb 28, 2020

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?

@venkatmarepalli
Copy link
Author

No, I don't see any earlier error message.

@bodewig
Copy link
Collaborator

bodewig commented Feb 28, 2020

Well, then I'm out of ideas why loading the library may have tarted to fail. Sorry.

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

No branches or pull requests

2 participants