nginx-lua-prometheus icon indicating copy to clipboard operation
nginx-lua-prometheus copied to clipboard

Show an error if unsupported version of nginx or ngx_lua is used

Open knyar opened this issue 5 years ago • 1 comments

Following #97, we could improve error handling:

  1. determine minimal versions of nginx and ngx_lua that are required for this library
  2. check ngx.config.nginx_version and ngx.config.ngx_lua_version and display an error during init if any of those is too low

Bonus points for adding another Docker-based test to ensure that the library can still run on the documented minimal version when changes are made.

knyar avatar May 26 '20 19:05 knyar

~I use openresty/1.27.1.2 and ngx_lua-0.10.28 and still get global errors. Of course I enabled code cache. Am I missing anything?~

TIL: init_worker_by_lua* doesn't log into error.log file... There was issue with package path, not the module itself.

misiek08 avatar Jun 06 '25 12:06 misiek08