Not a valid Strapi data file

System Information
  • 4.8.2:
  • OSx:
  • postgres:
  • 16.x.x:

Hi! Im trying to run an import on my Dokku app that contains Strapi. I created the file on my local installation of Strapi with npm run strapi export -- --no-encrypt and moved the file to the dokku app with scp .... I then run dokku run dutchenergy-strapi strapi import -f export_20230320164342.tar --force on the server and get [2023-03-20 16:19:25.596] error: [FATAL] File 'export_20230320164342.tar' is not a valid Strapi data file. The last lines of the import are:

{
  method: 'update',
  options: {},
  timeout: false,
  cancelOnTimeout: false,
  bindings: [
    '{"providers":{"autoRegister":false,"defaultRole":null}}',
    'object',
    40
  ],
  __knexQueryUid: 'gyC3rtynMg8DjnaL3wwdg',
  sql: 'update "public"."strapi_core_store_settings" set "value" = ?, "type" = ? where ("id" = ?)',
  returning: undefined
}
{
  method: 'first',
  options: {},
  timeout: false,
  cancelOnTimeout: false,
  bindings: [ 40, 1 ],
  __knexQueryUid: '-N2QRnmoH3HbeiK0E8w5W',
  sql: 'select "t0".* from "public"."strapi_core_store_settings" as "t0" where ("t0"."id" = ?) limit ?'
}
{
  method: 'select',
  options: {},
  timeout: false,
  cancelOnTimeout: false,
  bindings: [],
  __knexQueryUid: 'TD0J60M4UOP7DC_xBHnvV',
  sql: 'select "t0".* from "public"."strapi_api_token_permissions" as "t0"'
}

How am I supposed to know what’s wrong with the import file now?


1 Like