Closed brandune closed 4 years ago
Hi @brandune,
Your understanding of the problem is correct. I'm afraid you'll need to upgrade your nginx, if you need it to work with this module. You can try too look in PPAs or some other repositories...
Note that there is an open issue #98, which should help a bit by at least showing a clear error message.
Thanks for the quick confirmation @dolik-rce, I'll close this since there isn't much to do. Adding that error message is definitely better than enumerating incompatibilities in the README.
I think I've found an incompatibility using the nginx-extras package from ubuntu xenial/16.04 due to the version of the LUA module it was built with.
I do not expect a change from this project to fix the problem, but I'm inexperienced with LUA and C so I hope someone else can confirm what I found. If so, maybe it's worth a note in the README troubleshooting section.
Using the following versions:
Using the init_worker block from this project's README, this error is logged on nginx startup:
That call to
incr
is using the optionalinit
parameter which was only added tonginx-lua-module
in v0.10.6 - https://github.com/openresty/lua-nginx-module#ngxshareddictincr, so the version embedded in thenginx-extras
package is too old to support this call.At the cost of downgrading, using this project's
0.20181120
release seems to work without error.