Alright, so another disconnection problem just happened. I moved three sites to a different server using database dumps and rsync and the MainWP connection just broke. Sites are working just fine though, there were no issues during the move. I usually move sites around according to their resource usage and this has never happened before, MainWP always kept on working.
Both origin and destination servers have the same software stack so nothing is different between them, and they’re running Ubuntu 22 LTS. After a few minutes of troubleshooting I ended up removing the sites and tried to add them again to the dashboard, but now I’m getting another error message.
It seems that the dashboard is trying to connect to the old IP address of the site, even though the DNS entry has a TTL of 5 minutes. I have also tried rebooting the server which hosted the dashboard in order to clear any DNS cache but no luck. Plus, pinging the site from the dashboard server returns the correct IP address.
So I’m at a loss here. Any help is appreciated. None of the issues mentioned in this thread ever happened before.