Urgent help needed, all deployment and licensing fails. How do I repair or fix the "ServiceRepository.config" file?

Hi Heroes,

After a power-outage, it seems like a file in our System Platform 2017 server has become corrupt.

The file is called "ServiceRepository.config". It is empty, which it probably should not be..

I believe this file is causing GR to fail, license manager to fail, and worst of all - no deployment of any nodes works anymore.

I have tried searching forums, documentation etc. but cannot seem to find any information what so ever about this issue.

To try to fix the issue, we have tried rebooting GR, repairing GR and deleting problematic XML file - but nothing works.

This is the error in question:

"XmlMapperRepository unable to load Xml for repository Repository: ReadXmlStore caught Exception reading from C:\ProgramData\ArchestrA\ServiceRepositories\Repository_Repository\ServiceRepository.config.  Exception: Root element is missing."

When deploying, deployment window shows up but no dialog appears. Deployment does not even fail, just stays open with no dialog, and I'm forced to force a shutdown of IDE.

Here's all the other relevant errors I could find: