Permission denied trying to export with mmctl CLI from the Cloud Free mattermost

Hello I am trying to export all the data we have in our Cloud Free workspace before the deprecation on July 27. I succesfully created the export with the name z8bjyxnzoidxbgrqrpc5pqpbgo_export.zip through a mattermost instance deployed locally with docker

root@e791940e93d1:/mattermost# mmctl export create --attachments
WARNING: server version 8.0.0.cloud-2023-06-26-1.69c1b2d8d6e849123e2fb7ed3050e73b.true doesn't match mmctl version v7.1.2
Export process job successfully created, ID: z8bjyxnzoidxbgrqrpc5pqpbgo
root@e791940e93d1:/mattermost# mmctl export job show z8bjyxnzoidxbgrqrpc5pqpbgo
WARNING: server version 8.0.0.cloud-2023-06-26-1.69c1b2d8d6e849123e2fb7ed3050e73b.true doesn't match mmctl version v7.1.2
  ID: z8bjyxnzoidxbgrqrpc5pqpbgo
  Status: success
  Created: 2023-07-12 16:35:56 +0000 UTC
  Started: 2023-07-12 16:36:08 +0000 UTC
  Data: map[include_attachments:true teams_exported:1]

root@e791940e93d1:/mattermost# mmctl export list
WARNING: server version 8.0.0.cloud-2023-06-26-1.69c1b2d8d6e849123e2fb7ed3050e73b.true doesn't match mmctl version v7.1.2
z8bjyxnzoidxbgrqrpc5pqpbgo_export.zip

There are 1 exports on https://webdeporte.cloud.mattermost.com/

But I can not download the export:

root@e791940e93d1:/mattermost# mmctl export download  z8bjyxnzoidxbgrqrpc5pqpbgo_export.zip
WARNING: server version 8.0.0.cloud-2023-06-26-1.69c1b2d8d6e849123e2fb7ed3050e73b.true doesn't match mmctl version v7.1.2
Error: failed to create/open export file: open z8bjyxnzoidxbgrqrpc5pqpbgo_export.zip: permission denied

I’ve already fixed the problem. For those who are in the same situation, the problem is that I logged into the container as root instead of mattermost

1 Like

how did you even get into cli on the cloud hosted instances?