Comment 11 for bug 1987074

Revision history for this message
Bryce Harrington (bryce) wrote :

Like Thomas, I was unable to reproduce this using a stock config, including with libnginx-mod-stream-geoip installed. I also reviewed your config (from comment #7) against mine, and they're pretty much identical, however I have more items in /etc/nginx/modules-enabled/ than you do.

When I removed the links in /etc/nginx/modules-enabled/ to match yours, I did reproduce it:

triage-jammy+22.04:/etc/nginx/modules-enabled$ sudo nginx -T > /dev/null
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
triage-jammy+22.04:/etc/nginx/modules-enabled$ sudo mv /tmp/70-mod-stream-geoip.conf .
triage-jammy+22.04:/etc/nginx/modules-enabled$ sudo nginx -T > /dev/null
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
triage-jammy+22.04:/etc/nginx/modules-enabled$ ls
50-mod-http-echo.conf@ 50-mod-http-image-filter.conf@ 50-mod-mail.conf@ 70-mod-stream-geoip.conf@
50-mod-http-geoip2.conf@ 50-mod-http-xslt-filter.conf@ 50-mod-stream.conf@ 70-mod-stream-geoip2.conf@
triage-jammy+22.04:/etc/nginx/modules-enabled$ sudo mkdir /tmp/foo
triage-jammy+22.04:/etc/nginx/modules-enabled$ sudo mv 50-mod-http-echo.conf 50-mod-http-image-filter.conf 50-mod-http-xslt-filter.conf 50-mod-mail.conf 50-mod-stream.conf 70-mod-stream-geoip.conf /tmp/foo/
triage-jammy+22.04:/etc/nginx/modules-enabled$ sudo nginx -T > /dev/null
nginx: [emerg] dlopen() "/usr/share/nginx/modules/ngx_stream_geoip2_module.so" failed (/usr/share/nginx/modules/ngx_stream_geoip2_module.so: undefined symbol: ngx_stream_core_module) in /etc/nginx/modules-enabled/70-mod-stream-geoip2.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed

Moving the links back one by one and re-testing, it appears the wayward one was:

triage-jammy+22.04:/etc/nginx/modules-enabled$ sudo mv /tmp/foo/50-mod-stream.conf .
triage-jammy+22.04:/etc/nginx/modules-enabled$ sudo nginx -T > /dev/null
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

Do you think potentially you may have manually removed 50-mod-stream.conf, or did somehow it get removed as part of the upgrade process?