We are using the Mattermost Cloud and would like to migrate it to self-hosted instance. We tried to do the migration according to the docs, but got errors when executing the mmctl import process command.
Steps to reproduce
Create and download a full export of the cloud server
Install the latest stable version (7.10.3) on Ubuntu
Upload the export to the self-hosted server
Import the export into the self-hosted server
Expected behavior
Import successfully
Observed behavior
We got the following error when executing the mmctl import process command: Data: "map[error:Error during job execution. — ImportProcessWorker: Unable to process import: failed to open file., zip: not a valid zip file import_file: XXXX.zip."
It seems like the size of downloaded export is much smaller (891MB) than the size we have used at the Cloud (1.7GB).
We got the following error when extracting the downloaded export under macOS: Archive: XXX_export.zip End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive.
The export created with the --no-attachments argument can be imported into the self-hosted server successfully.
the exported zip is definitely corrupt which is why you cannot import it. Not sure if there’s anything you can do about that except for trying again, but you should get in touch with the Cloud support so they can help you with the export if your generated zip continues to be broken.
I’m not sure what the options are here, but I think that since the free cloud options are being terminated there should be a safe option for people to get their data from the cloud before it is being turned off. @amy.blais could you help with that maybe?
Do you have a link to the Support ticket that you opened previously? Do you have details on your email address and installation ID? You can send me the details via a Private Message here.