mattermost-docker-preview icon indicating copy to clipboard operation
mattermost-docker-preview copied to clipboard

Failed to load configuration

Open uc18 opened this issue 4 years ago • 7 comments

Hi! When i started my container with command: docker run --name mattermost-preview -d --publish 8065:8065 --add-host dockerhost:127.0.0.1 mattermost/mattermost-preview

i have one error: Error: failed to load configuration: unable to load on store creation: parsing error at line 109, character 42: json: cannot unmarshal string into Go struct field TeamSettings.TeamSettings.ExperimentalDefaultChannels of type []string

Can you fix docker_config.json at 109 line on this? "ExperimentalDefaultChannels": []

OS: Debian 10 Buster and WSL 2 Docker version 20.10.0, build 7287ab3

uc18 avatar Dec 31 '20 17:12 uc18

I also have this problem.

JheregJAB avatar Jan 01 '21 16:01 JheregJAB

Same issue on Mac OS 10.15.7 with Docker version 20.10.2

danielberndt avatar Jan 07 '21 13:01 danielberndt

gonna add a "me too"

treb42 avatar Jan 17 '21 20:01 treb42

In case you're looking for a temporary workaround: loading the last previous version still works fine:

docker run --name mattermost-preview --publish 8065:8065 --add-host dockerhost:127.0.0.1 mattermost/mattermost-preview:5.26.0

danielberndt avatar Jan 18 '21 09:01 danielberndt

In case you're looking for a temporary workaround: loading the last previous version still works fine:

docker run --name mattermost-preview --publish 8065:8065 --add-host dockerhost:127.0.0.1 mattermost/mattermost-preview:5.26.0

I was download all files and was build new image with fixed docker_config.json

uc18 avatar Jan 18 '21 10:01 uc18

Still not fixed as of today. If you need the last version of mattermost (not the 5.26 that is indeed working well) or if you have a poor connexion and do not want to DL again another old/fixed version.

Copy the config file having a problem from the docker container (it works even if container is not started) : docker cp mattermost-preview:/mm/mattermost/config/config_docker.json /tmp/config_docker.json

Edit line 109 by replacing "ExperimentalDefaultChannels": "" with "ExperimentalDefaultChannels": []

Replace file into docker container : docker cp /tmp/config_docker.json mattermost-preview:/mm/mattermost/config/config_docker.json

You can now start container without any error : docker start mattermost-preview

See if all ok after a few seconds : watch docker container ls -a

Hope it helps.

rgauthierassystem avatar Feb 12 '21 10:02 rgauthierassystem

Still not fixed as of today. If you need the last version of mattermost (not the 5.26 that is indeed working well) or if you have a poor connexion and do not want to DL again another old/fixed version.

Copy the config file having a problem from the docker container (it works even if container is not started) : docker cp mattermost-preview:/mm/mattermost/config/config_docker.json /tmp/config_docker.json

Edit line 109 by replacing "ExperimentalDefaultChannels": "" with "ExperimentalDefaultChannels": []

Replace file into docker container : docker cp /tmp/config_docker.json mattermost-preview:/mm/mattermost/config/config_docker.json

You can now start container without any error : docker start mattermost-preview

See if all ok after a few seconds : watch docker container ls -a

Hope it helps.

Oh! Thank you, @rgauthierassystem :) I did this in past and this workaround very cool :)

uc18 avatar Feb 12 '21 13:02 uc18