openresty / redis2-nginx-module

Nginx upstream module for the Redis 2.0 protocol
http://wiki.nginx.org/HttpRedis2Module
901 stars 142 forks source link

Facing issue while integrating module #62

Open vthorwat opened 4 years ago

vthorwat commented 4 years ago

We are facing issue while installing Redis2 Module with Nginx 1.13.2 error as below :

Command :  nginx –t 
Output : 
nginx: [emerg] module "/etc/nginx/modules/ngx_http_redis2_module.so" is not binary compatible in /etc/nginx/nginx.conf:2
nginx: configuration file /etc/nginx/nginx.conf test failed
Command : cat /etc/nginx/nginx.conf | head

Output :
load_module "modules/ngx_http_redis2_module.so";

#user nobody;
worker_processes 1;

#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;

This is the head content of the nginx.conf in which we have included the module.

It shows not compatible error

Nginx Version : 1.13.2

Please let us know is it compatible or not?

rainingmaster commented 4 years ago

@vthorwat Hello, this I think is not a bug in Openresty, it is because the sign of your ngx_http_redis2_module.so is not compatible with your Openresty. You can:

  1. Compile your ngx_http_redis2_module.so with your Openresty in same time.
  2. Open the --with-compat when you compile your ngx_http_redis2_module.so.

Just refer to https://github.com/leev/ngx_http_geoip2_module/issues/82 and https://www.nginx.com/blog/nginx-dynamic-modules-how-they-work/#compatibility.

In addition, welcome to official form https://forum.openresty.us/ to share and discuss.