MATLAB on OOD 3.1: App has not been initialized or does not exist

Do you have mod_lua loaded?

I commented all of the lua options in /etc/ood/config/ood_portal.yml

etc/ood/config/ood_portal.yml:# Root directory of the Lua handler code
/etc/ood/config/ood_portal.yml:#     lua_root: '/path/to/lua/handlers'
/etc/ood/config/ood_portal.yml:#lua_root: '/opt/ood/mod_ood_proxy/lib'
/etc/ood/config/ood_portal.yml:# Verbosity of the Lua module logging
/etc/ood/config/ood_portal.yml:#     lua_log_level: 'warn'
/etc/ood/config/ood_portal.yml:#lua_log_level: 'info'
/etc/ood/config/ood_portal.yml:# Lua regular expression used to map authenticated-user to system-user
/etc/ood/config/ood_portal.yml:# (see https://github.com/OSC/mod_ood_proxy/blob/master/lib/analytics.lua for

Where else would I check?

I even removed all the lua-related options in /etc/httpd/conf.d/ood-portal.conf but they still come back after running /opt/ood/ood-portal-generator/sbin/update_ood_portal. Where else could this be?

I also deleted /etc/httpd/conf.d/ood-portal.conf and recreated it the lua options are still there.

reinstalling mod_lua via dnf took care of this.