Openresty upgrade problem on Ubuntu Jammy

Please forgive me if I’m posting an Ubuntu packaging problem rather than a Crowdsec problem but something is preventing me from upgrading Crowdsec. nginx is looking for crowdsec_openresty.conf but this file does not exist on my system.

apt upgrade is failing with . . .

Setting up openresty (1.25.3.1-2~jammy1) …
Job for openresty.service failed because the control process exited with error code.
See “systemctl status openresty.service” and “journalctl -xeu openresty.service” for details.
invoke-rc.d: initscript openresty, action “start” failed.
× openresty.service - The OpenResty Application Platform
Loaded: loaded (/lib/systemd/system/openresty.service; enabled; vendor preset: enabled
)
Active: failed (Result: exit-code) since Fri 2024-02-16 23:35:02 UTC; 25ms ago
Process: 126310 ExecStartPre=/usr/local/openresty/nginx/sbin/nginx -t -q -g daemon on;
master_process on; (code=exited, status=1/FAILURE)
CPU: 6ms

Feb 16 23:35:02 crowdsec systemd[1]: Starting The OpenResty Application Platform…
Feb 16 23:35:02 crowdsec nginx[126310]: nginx: [emerg] open() “/usr/local/openresty/nginx/conf/conf.d/crowdsec_openresty.conf” failed (2: No such file or directory) in /usr/local/openresty/nginx/conf/nginx.conf:20
Feb 16 23:35:02 crowdsec nginx[126310]: nginx: configuration file /usr/local/openresty/nginx/conf/nginx.conf test failed
Feb 16 23:35:02 crowdsec systemd[1]: openresty.service: Control process exited, code=exited, status=1/FAILURE
Feb 16 23:35:02 crowdsec systemd[1]: openresty.service: Failed with result ‘exit-code’.
Feb 16 23:35:02 crowdsec systemd[1]: Failed to start The OpenResty Application Platform.
dpkg: error processing package openresty (–configure):
installed openresty package post-installation script subprocess returned error exit status 1
Setting up python3-apt (2.4.0ubuntu3) …
Setting up python3-distupgrade (1:22.04.19) …
dpkg: dependency problems prevent configuration of openresty-opm:
openresty-opm depends on openresty (>= 1.25.3.1); however:
Package openresty is not configured yet.
dpkg: error processing package openresty-opm (–configure):
dependency problems - leaving unconfigured

journalctl -xeu openresty.service
Feb 17 02:17:37 crowdsec nginx[138183]: nginx: [error] init_by_lua error: init_by_lua(conf.d/crowdsec_ope>
Feb 17 02:17:37 crowdsec nginx[138183]: no field package.preload[‘crowdsec’]
Feb 17 02:17:37 crowdsec nginx[138183]: no file '/usr/local/openresty/nginx//…/lualib/plugins/cr>
Feb 17 02:17:37 crowdsec nginx[138183]: no file ‘/usr/local/openresty/site/lualib/crowdsec.ljbc’
Feb 17 02:17:37 crowdsec nginx[138183]: no file '/usr/local/openresty/site/lualib/crowdsec/init.l>
Feb 17 02:17:37 crowdsec nginx[138183]: no file ‘/usr/local/openresty/lualib/crowdsec.ljbc’
Feb 17 02:17:37 crowdsec nginx[138183]: no file ‘/usr/local/openresty/lualib/crowdsec/init.ljbc’
Feb 17 02:17:37 crowdsec nginx[138183]: no file ‘/usr/local/openresty/site/lualib/crowdsec.lua’
Feb 17 02:17:37 crowdsec nginx[138183]: no file '/usr/local/openresty/site/lualib/crowdsec/init.l>
Feb 17 02:17:37 crowdsec nginx[138183]: no file ‘/usr/local/openresty/lualib/crowdsec.lua’
Feb 17 02:17:37 crowdsec nginx[138183]: no file ‘/usr/local/openresty/lualib/crowdsec/init.lua’
Feb 17 02:17:37 crowdsec nginx[138183]: no file ‘./crowdsec.lua’
Feb 17 02:17:37 crowdsec nginx[138183]: no file '/usr/local/openresty/luajit/share/luajit-2.1/cro>
Feb 17 02:17:37 crowdsec nginx[138183]: no file ‘/usr/local/share/lua/5.1/crowdsec.lua’
Feb 17 02:17:37 crowdsec nginx[138183]: no file ‘/usr/local/share/lua/5.1/crowdsec/init.lua’
Feb 17 02:17:37 crowdsec nginx[138183]: no file '/usr/local/openresty/luajit/share/lua/5.1/crowds>
Feb 17 02:17:37 crowdsec nginx[138183]: no file '/usr/local/openresty/luajit/share/lua/5.1/crowds>
Feb 17 02:17:37 crowdsec nginx[138183]: no file ‘/usr/local/openresty/site/lualib/crowdsec.so’
Feb 17 02:17:37 crowdsec nginx[138183]: no file ‘/usr/local/openresty/lualib/crowdsec.so’
Feb 17 02:17:37 crowdsec nginx[138183]: no file ‘./crowdsec.so’
Feb 17 02:17:37 crowdsec nginx[138183]: no file ‘/usr/local/lib/lua/5.1/crowdsec.so’
Feb 17 02:17:37 crowdsec nginx[138183]: no file '/usr/local/openresty/luajit/lib/lua/5.1/crowdsec>
Feb 17 02:17:37 crowdsec nginx[138183]: no file ‘/usr/local/lib/lua/5.1/loadall.so’
Feb 17 02:17:37 crowdsec nginx[138183]: stack traceback:
Feb 17 02:17:37 crowdsec nginx[138183]: [C]: in function ‘require’
Feb 17 02:17:37 crowdsec nginx[138183]: init_by_lua(conf.d/crowdsec_openresty.conf:5):2: in main >
Feb 17 02:17:37 crowdsec systemd[1]: openresty.service: Control process exited, code=exited, status=1/FAI>

Seems its trying to upgrade the package, however, the original files placed by our package have been moved or deleted.