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?
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.conf syntax is ok nginx.conf test is successful jammy+22. 04:/etc/ nginx/modules- enabled$ sudo mv /tmp/70- mod-stream- geoip.conf . jammy+22. 04:/etc/ nginx/modules- enabled$ sudo nginx -T > /dev/null nginx.conf syntax is ok nginx.conf test is successful jammy+22. 04:/etc/ nginx/modules- enabled$ ls http-echo. conf@ 50-mod- http-image- filter. conf@ 50-mod-mail.conf@ 70-mod- stream- geoip.conf@ http-geoip2. conf@ 50-mod- http-xslt- filter. conf@ 50-mod-stream.conf@ 70-mod- stream- geoip2. conf@ jammy+22. 04:/etc/ nginx/modules- enabled$ sudo mkdir /tmp/foo 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/ jammy+22. 04:/etc/ nginx/modules- enabled$ sudo nginx -T > /dev/null 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.conf test failed
nginx: the configuration file /etc/nginx/
nginx: configuration file /etc/nginx/
triage-
triage-
nginx: the configuration file /etc/nginx/
nginx: configuration file /etc/nginx/
triage-
50-mod-
50-mod-
triage-
triage-
triage-
nginx: [emerg] dlopen() "/usr/share/
nginx: configuration file /etc/nginx/
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 . jammy+22. 04:/etc/ nginx/modules- enabled$ sudo nginx -T > /dev/null nginx.conf syntax is ok nginx.conf test is successful
triage-
nginx: the configuration file /etc/nginx/
nginx: configuration file /etc/nginx/
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?