NGINX Version Mismatch

We were in the process of upgrading an old server from NGINX version 1.16 to the latest and got a slew of errors:

nginx: [emerg] module "/usr/lib64/nginx/modules/ngx_http_image_filter_module.so" version 1016001 instead of 1020001 in /usr/share/nginx/modules/mod-http-image-filter.conf:1
nginx: [emerg] module "/usr/lib64/nginx/modules/ngx_http_perl_module.so" version 1016001 instead of 1020001 in /usr/share/nginx/modules/mod-http-perl.conf:1
nginx: [emerg] module "/usr/lib64/nginx/modules/ngx_http_xslt_filter_module.so" version 1016001 instead of 1020001 in /usr/share/nginx/modules/mod-http-xslt-filter.conf:1
nginx: [emerg] module "/usr/lib64/nginx/modules/ngx_mail_module.so" version 1016001 instead of 1020001 in /usr/share/nginx/modules/mod-mail.conf:1
nginx: [emerg] module "/usr/lib64/nginx/modules/ngx_stream_module.so" version 1016001 instead of 1020001 in /usr/share/nginx/modules/mod-stream.conf:1

This issue occured because when Nginx was updated, it did not update it’s modules along side it. You will need to manually update these modules to get Nginx up again.

Updating the modules is pretty straight forward, you simply need to update one of them and the rest come along as dependancies. To do update, issue the following:

yum update nginx-mod-http-image-filter

Restart Nginx now and that’s it.

service nginx restart

Leave a Reply

Your email address will not be published.

Time limit is exhausted. Please reload CAPTCHA.