Validation complete Error: error opening the import file “6cf85fx7nbnwjqresq3mamwbbr_export.zip”: open 6cf85fx7nbnwjqresq3mamwbbr_export.zip: no such file or directory
The result of
which mm
gives me a correct output:
alias mm=‘docker exec -ti docker-mattermost-1 mmctl --local’ /usr/bin/docker
meaning that it’s using mm included in the docker container.
for example:
mm version or the whole command point to the right docker container. So I think the cli is ok but there’s an issue whether with the .zip file itself or the handling of file with the cli.
thanks @mpounsett for your Time and attention. As I’m new to docker I might have missed an important point.
I’m running mmctl from this folder: /var/www/vhosts/domain.com/httpdocs/docker/volumes/app/mattermost/data
In my config.json file, my volumes are mapped this way /var/www/vhosts/domain.com/httpdocs/docker/volumes/app/mattermost/data >> /mattermost/data
and other folders are declared according to the same logic:
I’ve tried to export and the export went to /mattermost/data/export
Then I tried to validate the exported file and got the same error [0][root@export]# docker exec -ti docker-mattermost-1 mmctl import validate cn3nx158ytnkuq8x6tbet9meee_export.zip --local Validation complete Error: error opening the import file “cn3nx158ytnkuq8x6tbet9meee_export.zip”: open cn3nx158ytnkuq8x6tbet9meee_export.zip: no such file or directory [1][root@export]# ls cn3nx158ytnkuq8x6tbet9meee_export.zip
I’ve checked the permissions and they seem ok
[0][root@export]# ls -l total 8 -rw------- 1 2000 2000 5214 Feb 12 16:12 cn3nx158ytnkuq8x6tbet9meee_export.zip