Skip to main content

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.

CodeKindMeaningWhat to do
MPBX-TENANT-EXPORT-USAGEinvalid_argumentA bad command line (missing --company/--out, or an unknown subcommand).See mpbx tenant help.
MPBX-TENANT-EXPORT-PASSPHRASE-WEAKinvalid_argumentThe 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-MISSINGinvalid_argumentNo 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-WRONGinvalid_argumentThe 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-FOUNDnot_foundThe --company id does not exist on this install.Check the company id (mpbx tenant export --company <uuid> ...).
MPBX-TENANT-EXPORT-FORMATinvalid_argumentThe 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-CORRUPTinvalid_argumentA 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-KDFinvalid_argumentThe 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-POSTGRESunavailable / internalReading Postgres failed (connection, a table the login cannot read, an unreadable row).The message names the table and the database error.
MPBX-TENANT-EXPORT-IOinvalid_argumentThe 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-NEWinvalid_argumentThe archive was written by a newer Postgres migration than this install has applied.Upgrade this install, then import again.
MPBX-TENANT-EXPORT-STUCK-ROWSinvalid_argumentAfter 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-ACTIVEinvalid_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-CLICKHOUSEunavailableReading 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-OBJECTSunavailableReading 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.