Sometimes it can happen that Portal gets into an invalid state.
"portal is not ready" will be shown in the portal admin in multiple places and "connection to the indexer service failed", as well as index mismatches.
However, reindexing or re-configuring is not working to resolve the issue.
In HA deployments, unregistering one portal and joining it back again after a clean install does not solve the issue, the new standby machine will go into an invalid state as well and does not start up anymore (missing internal database and webserver processes)
The only "solution" I currently see is to completely wipe the portal and install it again.
This requires going through all the configuration steps again (Federation, Certificates, Webadaptors,…) and importing a backup from webgisdr.
Is there a better way to fix this?