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

openresty 1.15.8.1 get_request nil value, 1.13.6.2 working good #1576

Open
ghost opened this issue Aug 19, 2019 · 6 comments
Open

openresty 1.15.8.1 get_request nil value, 1.13.6.2 working good #1576

ghost opened this issue Aug 19, 2019 · 6 comments

Comments

@ghost
Copy link

ghost commented Aug 19, 2019

2019/08/19 09:54:04 [error] 48#48: *17299 lua entry thread aborted: runtime error: /usr/local/openresty/lualib/resty/core/ctx.lua:34: attempt to call upvalue 'get_request' (a nil value)
stack traceback:
coroutine 0:
	/usr/local/openresty/lualib/resty/core/ctx.lua: in function '__index'

openresty 1.15.8.1 get_request nil value, 1.13.6.2 working good

@thibaultcha
Copy link
Member

Hi,

It would be nice to have more information from your environment to help you resolve this. Are you using a formal OpenResty bundle (i.e. not compiling Nginx with ngx_lua yourself)?

A likely cause I can think of is that your system's LuaJIT installation overrides OpenResty's LuaJIT. Please run ldd on your OpenResty nginx binary. Please also start OpenResty with LD_DEBUG=libs nginx ... in order to display which LuaJIT library is loaded by your OpenResty instance.

@ghost
Copy link
Author

ghost commented Aug 20, 2019

@thibaultcha I am using the official docker image, 1.15.8.1-centos

1.15.8.1-2-centos 100 MB
Last update: 2 months ago

https://hub.docker.com/r/openresty/openresty/tags?page=4

@thibaultcha
Copy link
Member

@netroby Please provide a minimal example reproducing the issue (e.g. your nginx.conf file and the commands you are using to start the container and make the request). Thanks.

@piotrp
Copy link

piotrp commented Aug 25, 2019

Maybe it helps you: I was getting a similar error (or the same? I don't remember) because I was using ngx.re in init phase. It worked in 1.13 (despite documentation saying that it shouldn't) and stopped in 1.15.

@thibaultcha
Copy link
Member

@Crack Hi,

Please see this comment for the existing workarounds to use ngx.re with a static PCRE build in 1.15.8.x.

@piotrp
Copy link

piotrp commented Aug 26, 2019

In init_by_lua*? Documentation don't list it as an allowed phase so I assumed that it wasn't supposed top work there.

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