Squidex 6.7.0 Restore fails

Good morning!

I created a backup of an app on my development server and now wanted to restore this to the poduction server. Both servers are running Squidex 6.7.0 and this fails:

2022-06-24T06:11:41Z: Started. The restore process has the following steps:
2022-06-24T06:11:41Z: * Download backup
2022-06-24T06:11:41Z: * Restore events and attachments.
2022-06-24T06:11:41Z: * Restore all objects like app, schemas and contents
2022-06-24T06:11:41Z: * Complete the restore operation for all objects
2022-06-24T06:11:41Z: Downloading Backup
2022-06-24T06:11:41Z: Failed with internal error

How do I get more information? Where can I find the associated log files?

Squidex logs everything to stdout. It depends on your environment where you can find that.

I’ve installed Squidex on IIS.

Okay. I found it.

{

  "logLevel": "Error",

  "message": "Backup with job id 46f4ad1a-2eac-4f72-81a4-75f28072dd1e from URL \u0027https://squidex.example-it.de/backup-example-it-2022-06-23_14-50-41.zip\u0027 failed.",

  "backupId": "46f4ad1a-2eac-4f72-81a4-75f28072dd1e",

  "url": "https://squidex.example-it.de/backup-example-it-2022-06-23_14-50-41.zip",

  "timestamp": "2022-06-24T06:11:41Z",

  "app": {

    "name": "Squidex",

    "version": "6.7.0.0",

    "sessionId": "a716b69d-9a7d-42f9-a865-0c5b969f0e3b"

  },

  "category": "Squidex.Domain.Apps.Entities.Backup.RestoreGrain",

  "exception": {

    "type": "System.IO.InvalidDataException",

    "message": "End of Central Directory record could not be found.",

    "stackTrace": "   at System.IO.Compression.ZipArchive.ReadEndOfCentralDirectory()\r\n   at System.IO.Compression.ZipArchive..ctor(Stream stream, ZipArchiveMode mode, Boolean leaveOpen, Encoding entryNameEncoding)\r\n   at System.IO.Compression.ZipArchive..ctor(Stream stream, ZipArchiveMode mode, Boolean leaveOpen)\r\n   at Squidex.Domain.Apps.Entities.Backup.BackupReader..ctor(IJsonSerializer serializer, Stream stream) in /src/src/Squidex.Domain.Apps.Entities/Backup/BackupReader.cs:line 42\r\n   at Squidex.Domain.Apps.Entities.Backup.TempFolderBackupArchiveLocation.OpenReaderAsync(Uri url, DomainId id) in /src/src/Squidex.Domain.Apps.Entities/Backup/TempFolderBackupArchiveLocation.cs:line 64\r\n   at Squidex.Domain.Apps.Entities.Backup.TempFolderBackupArchiveLocation.OpenReaderAsync(Uri url, DomainId id) in /src/src/Squidex.Domain.Apps.Entities/Backup/TempFolderBackupArchiveLocation.cs:line 76\r\n   at Squidex.Domain.Apps.Entities.Backup.RestoreGrain.DownloadAsync() in /src/src/Squidex.Domain.Apps.Entities/Backup/RestoreGrain.cs:line 279\r\n   at Squidex.Domain.Apps.Entities.Backup.RestoreGrain.ProcessAsync() in /src/src/Squidex.Domain.Apps.Entities/Backup/RestoreGrain.cs:line 148"

  }

}

{

  "logLevel": "Error",

  "message": "Backup with job id 46f4ad1a-2eac-4f72-81a4-75f28072dd1e from URL \u0027https://squidex.example-it.de/backup-example-it-2022-06-23_14-50-41.zip\u0027 failed.",

  "backupId": "46f4ad1a-2eac-4f72-81a4-75f28072dd1e",

  "url": "https://squidex.example-it.de/backup-example-it-2022-06-23_14-50-41.zip",

  "timestamp": "2022-06-24T06:11:41Z",

  "app": {

    "name": "Squidex",

    "version": "6.7.0.0",

    "sessionId": "a716b69d-9a7d-42f9-a865-0c5b969f0e3b"

  },

  "category": "Squidex.Domain.Apps.Entities.Backup.RestoreGrain",

  "exception": {

    "type": "System.IO.InvalidDataException",

    "message": "End of Central Directory record could not be found.",

    "stackTrace": "   at System.IO.Compression.ZipArchive.ReadEndOfCentralDirectory()\r\n   at System.IO.Compression.ZipArchive..ctor(Stream stream, ZipArchiveMode mode, Boolean leaveOpen, Encoding entryNameEncoding)\r\n   at System.IO.Compression.ZipArchive..ctor(Stream stream, ZipArchiveMode mode, Boolean leaveOpen)\r\n   at Squidex.Domain.Apps.Entities.Backup.BackupReader..ctor(IJsonSerializer serializer, Stream stream) in /src/src/Squidex.Domain.Apps.Entities/Backup/BackupReader.cs:line 42\r\n   at Squidex.Domain.Apps.Entities.Backup.TempFolderBackupArchiveLocation.OpenReaderAsync(Uri url, DomainId id) in /src/src/Squidex.Domain.Apps.Entities/Backup/TempFolderBackupArchiveLocation.cs:line 64\r\n   at Squidex.Domain.Apps.Entities.Backup.TempFolderBackupArchiveLocation.OpenReaderAsync(Uri url, DomainId id) in /src/src/Squidex.Domain.Apps.Entities/Backup/TempFolderBackupArchiveLocation.cs:line 76\r\n   at Squidex.Domain.Apps.Entities.Backup.RestoreGrain.DownloadAsync() in /src/src/Squidex.Domain.Apps.Entities/Backup/RestoreGrain.cs:line 279\r\n   at Squidex.Domain.Apps.Entities.Backup.RestoreGrain.ProcessAsync() in /src/src/Squidex.Domain.Apps.Entities/Backup/RestoreGrain.cs:line 148"

  }

}

Ok. Simple solution. :grin: Dont put the backup in the squidex root folder. The path will redirected. @Sebastian thank you for your reply.

Wwwroot should work usually