We're Hiring!

Mattermost Discussion Forums

Can not export process of mattermost running on docker

I’ve built a working environment for mattermost with docker.
mattermost is working.

I can view the mattermost version from within the mattermost container.

However, the mattermost export stops as shown below, and the data cannot be exported.

Do you have any advice?
I look forward to working with you.

command
sudo docker exec -it mattermost /bin/sh
~ $ pwd
/mattermost

~ $ bin/mattermost version --skip-server-start

Version: 6.3.0
Build Number: 6.3.0-rc1
Build Date: Tue Jan 4 14:33:37 UTC 2022
Build Hash: d872703dad249a50157b2b60c00f1cda5cc9a459
Build Enterprise Ready: false

~ $ bin/mattermost export bulk ./bulk.josn --all-teams

{“timestamp”:“2022-01-06 09:29:43.464 +09:00”,“level”:“info”,“msg”:“Server is initializing…”,“caller”:“app/server.go:237”,“go_version”:“go1.16.7”}
{“timestamp”:“2022-01-06 09:29:43.464 +09:00”,“level”:“info”,“msg”:“EXPERIMENTAL: Starting Bleve”,“caller”:“bleveengine/bleve.go:185”}
↑The process will not come back here.

docker ps

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
fe895c4d0d33 mattermost/mattermost-team-edition:release-6.3 “/entrypoint.sh matt…” 36 minutes ago Up 36 minutes (healthy) 8067/tcp, 0.0.0.0:8065->8065/tcp, :::8065->8065/tcp, 8074-8075/tcp mattermost
9e5537845355 postgres:13-alpine “docker-entrypoint.s…” 36 minutes ago Up 36 minutes 5432/tcp postgres_mattermost

config.json

“SqlSettings”: {
“DriverName”: “postgres”,
“DataSource”: “postgres://mmuser:mmuser_password@postgres:5432/mattermost?sslmode=disable\u0026connect_timeout=10”,
“DataSourceReplicas”: ,
“DataSourceSearchReplicas”: ,
“MaxIdleConns”: 20,
“ConnMaxLifetimeMilliseconds”: 3600000,
“ConnMaxIdleTimeMilliseconds”: 300000,
“MaxOpenConns”: 300,
“Trace”: false,
“AtRestEncryptKey”: “qcge3m5z5k1hkicoqugzoimce6fe5d8t”,
“QueryTimeout”: 30,
“DisableDatabaseSearch”: false,
“ReplicaLagSettings”:
},