Fail2ban missing files after migration/upgrade

If fail2ban is totally broken and if you didn’t have any filter or jail left in /etc/fail2ban/jail.d and /etc/fail2ban/filter.d, you can try reinstalling fail2ban. You will likely need to manually add files from fail2ban repo and to recreate jails for your apps.
This thread may help.