Tenant export/import error codes (mpbx-tenant-migrate)
Raised by mpbx tenant export and mpbx tenant import on the server's command line. The
partner portal's export and import routes use the MPBX-TENANT-MIGRATE-* codes of
company.md. Messages name tables, companies and error codes; they never contain the
passphrase, a key, a row, or a redacted credential.
| Code | Kind | Meaning | What to do |
|---|---|---|---|
MPBX-TENANT-EXPORT-USAGE | invalid_argument | A bad command line (missing --company/--out, or an unknown subcommand). | See mpbx tenant help. |
MPBX-TENANT-EXPORT-PASSPHRASE-WEAK | invalid_argument | The export passphrase has fewer than 12 characters, is blank, or is one repeated character. | Choose a longer one; a few random words are best. |
MPBX-TENANT-EXPORT-PASSPHRASE-MISSING | invalid_argument | No passphrase was given, or it is empty. | Pass --passphrase-file, --passphrase-stdin, or run on a terminal. There is deliberately no command-line flag for the passphrase itself. |
MPBX-TENANT-EXPORT-PASSPHRASE-WRONG | invalid_argument | The passphrase does not open the archive, or its manifest was modified (the manifest MAC does not verify). | Use the passphrase the export was made with; if you are sure it is right, the file was altered. |
MPBX-TENANT-EXPORT-COMPANY-NOT-FOUND | not_found | The --company id does not exist on this install. | Check the company id (mpbx tenant export --company <uuid> ...). |
MPBX-TENANT-EXPORT-FORMAT | invalid_argument | The manifest is not valid, is from an unsupported format version, or names an unknown part. | Use the mpbx version that made the export. |
MPBX-TENANT-EXPORT-CORRUPT | invalid_argument | A table's bytes do not match their recorded hash, are truncated, or fail authentication. | The file is damaged or was tampered with; export again. |
MPBX-TENANT-EXPORT-KDF | invalid_argument | The key-derivation parameters in the manifest are outside what is accepted (a crafted manifest could ask for gigabytes of memory). | Use an export made by mpbx. |
MPBX-TENANT-EXPORT-POSTGRES | unavailable / internal | Reading Postgres failed (connection, a table the login cannot read, an unreadable row). | The message names the table and the database error. |
MPBX-TENANT-EXPORT-IO | invalid_argument | The output path could not be written, or the passphrase file/stdin could not be read. | Check the path and permissions. |
MPBX-TENANT-EXPORT-SCHEMA-TOO-NEW | invalid_argument | The archive was written by a newer Postgres migration than this install has applied. | Upgrade this install, then import again. |
MPBX-TENANT-EXPORT-STUCK-ROWS | invalid_argument | After repeated insertion passes, some rows still could not be inserted: they reference something this install does not have. | Re-run --dry-run; the archive likely references a trunk, number or other row outside the exported company that this install also lacks. |
MPBX-TENANT-EXPORT-LEGAL-HOLD-ACTIVE | invalid_argument | --include-data was requested while an active legal hold covers the company. | Drop --include-data, or pass --include-held-data --hold-reason <text> to export it anyway; this is recorded in the company's audit log. |
MPBX-TENANT-EXPORT-CLICKHOUSE | unavailable | Reading or writing the data category's ClickHouse tables (cdr_calls, cdr_legs) failed. | The message names the ClickHouse error; check ClickHouse is reachable and retry. |
MPBX-TENANT-EXPORT-OBJECTS | unavailable | Reading or writing the data category's media (recording/voicemail/fax bytes) in the object store failed. | The message names the object store error; check the store is reachable and retry — nothing at the source is ever deleted or modified. |