Missing Assets / backup failure

I have…

  • [ x] Checked the logs and have provided the logs if I found something suspicious there

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [ ] Bug report
  • [ ] Performance issue
  • [ ] Documentation issue or request

Current behavior

backup fails due to missing assets

Expected behavior

Backup to fail gracefully but still backup data

Minimal reproduction of the problem

Delete a file from the FileSystem Assets folder and try backup

Environment

  • [ ] Self hosted with docker
  • [ x] Self hosted with IIS
  • [ ] Self hosted with other version
  • [ ] Cloud version

Version: 4.0.0.0

Others:

How can we fix the DB so backups complete?
We lost files from the Assets folder due to a server crash. We recovered 95% of the assets.

    {
      "logLevel": "Error",
      "action": "makeBackup",
      "status": "failed",
      "backupId": "227d8f1f-968c-4933-b0d5-6ad30186c7fc",
      "app": {
        "name": "Squidex",
        "version": "4.0.0.0",
        "sessionId": "382ced58-b678-4fb7-865a-a366fd56da52"
      },
      "timestamp": "2020-05-19T07:23:22Z",
      "exception": {
        "type": "Squidex.Infrastructure.Assets.AssetNotFoundException",
        "message": "An asset with name \u002736d3a83c-2649-4268-b76c-2b3edc69a936_0\u0027 does not exist."
      }
    } 

This is intended and there are no plans to solve that. If you host Squidex yourself i recommend a to use MongoDB backups anyway.

What is the best way to manually fix the data in mongo db or resources to recover a corrupt squidex install?

When your assets are lost, there is nothing you can do.