This is what worked for me:
System: Diagnostics: Services: Unifi: Stop
System: Diagnostics: Services: Crowdsec: Stop
Services: Crowdsec: Settings: LAPI listen port: 8088
Router shell:
Waited for like 3-4 minutes (if you dont wait you will get the 404 page until all services are up!)
Browser: <router IP>:8080 and configure your unifi (I restored it from a back up I had)
System: Diagnostics: Services: Crowdsec: Start
Crowdsec and Unifi work like a charm.
System: Diagnostics: Services: Unifi: Stop
System: Diagnostics: Services: Crowdsec: Stop
Services: Crowdsec: Settings: LAPI listen port: 8088
Router shell:
Quotepkg remote os-unifi7-maxit unifi7
rm -rf /usr/local/share/java/unifi/*
pkg install os-unifi7-maxit
Waited for like 3-4 minutes (if you dont wait you will get the 404 page until all services are up!)
Browser: <router IP>:8080 and configure your unifi (I restored it from a back up I had)
System: Diagnostics: Services: Crowdsec: Start
Crowdsec and Unifi work like a charm.