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

Runtime error: no request found #10

Open
psxde opened this issue Jun 6, 2021 · 1 comment
Open

Runtime error: no request found #10

psxde opened this issue Jun 6, 2021 · 1 comment

Comments

@psxde
Copy link

psxde commented Jun 6, 2021

Hi,

I have...

  1. Installed nginx-mod-http-lua and lua-resty-http on a running Alpine nginx installation
  2. Downloaded cas.lua and global_cas_conf.lua to /etc/nginx/lua
  3. Configured cas_uri in /etc/nginx/lua/global_cas_conf.lua
  4. Configured nginx.conf

But get an Internal Server error calling the protected path. The error log of nginx reports:

2021/06/06 20:48:48 [error] 2352#2352: *2 lua entry thread aborted: runtime error: /usr/share/lua/common/resty/core/var.lua:71: no request found
stack traceback:
coroutine 0:
	[C]: in function 'error'
	/usr/share/lua/common/resty/core/var.lua:71: in function '__index'
	/etc/nginx/lua/cas.lua:12: in function 'init'
	/etc/nginx/lua/cas.lua:134: in function 'forceAuthentication'
	access_by_lua(nginx.conf:129):1: in function <access_by_lua(nginx.conf:129):1>, client: 192.168.2.7, server: server.name, request: "GET /test HTTP/2.0", host: "server.name"

Do you have some hints?

Thanks,
Patrick

@prigaux
Copy link
Member

prigaux commented Jun 7, 2021

nginx-auth-cas-lua is tested on debian which has ngx_http_lua_module 0.10.13, which has C implementation of ngx.var.

It seems you have lua-resty-core which is a lua implementation of things previously done in C (cf https://github.com/openresty/lua-resty-core#description ). It would be great to make nginx-auth-cas-lua work on more recent versions, but I can't help for now.

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

No branches or pull requests

2 participants