mattermost-docker-preview
mattermost-docker-preview copied to clipboard
Failed to load configuration
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
I also have this problem.
Same issue on Mac OS 10.15.7 with Docker version 20.10.2
gonna add a "me too"
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
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
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.
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 :)