Skip to content
This repository has been archived by the owner on May 20, 2022. It is now read-only.

Running docker-compose exec app mattermost erase configuration #516

Open
Holt59 opened this issue Feb 17, 2021 · 4 comments
Open

Running docker-compose exec app mattermost erase configuration #516

Holt59 opened this issue Feb 17, 2021 · 4 comments

Comments

@Holt59
Copy link

Holt59 commented Feb 17, 2021

(I'm not sure this should be here or in the mattermost-server issues, but since it could be docker related I start here.)

When running

docker-compose exec app mattermost channel modify ...

my Mattermost configuration was erased (Site URL, Gitlab configuration, SMTP configuration, etc.).

I'm on 2b12534, and using mostly the default docker-compose except for

  • the team edition
  • the volumes for the various containers
@duncan1707
Copy link

Perhaps your issue is realted to MM-32234 (in case the command is executed as root).

According to the v5.31 changelog the bug has been fixed in v5.31.1 (you are on v5.31.0).

@Holt59
Copy link
Author

Holt59 commented Feb 23, 2021

Perhaps your issue is realted to MM-32234 (in case the command is executed as root).

According to the v5.31 changelog the bug has been fixed in v5.31.1 (you are on v5.31.0).

I'm not specifying the user when running the exec, so maybe I guess it's root. Running the command with the user specified in the compose should avoid that issue then?

@duncan1707
Copy link

I'm not specifying the user when running the exec, so maybe I guess it's root. Running the command with the user specified in the compose should avoid that issue then?

I had the same issue (config was reset after running mattermost command, but I specifically used the root user on the command line). I was able to fix it by switching my repo to branch 'release-5.31' (commit 8b95992) and rebuilding my docker containers afterwards (upgrading Mattermost to v5.31.1).

@bor8
Copy link

bor8 commented May 4, 2021

Same. Does it only affect config.json? Luckily I have good backup.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants