Local Machine Setup using Docker not working

Summary

The instructions on the Local Machine Setup using Docker page, to be used for quick mattermost evaluation on a docker host, are not working.

Steps to reproduce

On docker host, run the specified command (ie “docker run --name mattermost-preview -d --publish 8065:8065 --add-host dockerhost:127.0.0.1 mattermost/mattermost-preview”).

Expected behavior

A mattermost service should have been running on my host on port 8065.

Observed behavior

The container had exited with error code 1. Looking in the logs, I have the following (trying to strip out irrelevant messages):

2021-01-11 21:14:51+00:00 [Note] [Entrypoint]: Creating database mattermost_test
2021-01-11 21:14:51+00:00 [Note] [Entrypoint]: Creating user mmuser
2021-01-11 21:14:51+00:00 [Note] [Entrypoint]: Giving user mmuser access to schema mattermost_test

2021-01-11 21:14:51+00:00 [Note] [Entrypoint]: Stopping temporary server
2021-01-11T21:14:51.810197Z 0 [Note] Giving 0 client threads a chance to die gracefully
[...]
2021-01-11T21:14:53.625329Z 0 [Note] InnoDB: Shutdown completed; log sequence number 12617575
[...]
2021-01-11 21:14:53+00:00 [Note] [Entrypoint]: Temporary server stopped

2021-01-11 21:14:53+00:00 [Note] [Entrypoint]: MySQL init process done. Ready for start up.

[...]
2021-01-11T21:14:53.994402Z 0 [Note] mysqld (mysqld 5.7.32) starting as process 7 ...
[...]
2021-01-11T21:14:54.120327Z 0 [Note] mysqld: ready for connections.
Version: '5.7.32'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server (GPL)
Updating CA certificates
Starting platform
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
Usage:
  mattermost [flags]
  mattermost [command]

Available Commands:
  channel     Management of channels
[...]

Hello, @rara I’m sorry to hear you’re having issues, I hope we can help!

@jasonblais does this look like it’s a build error with the syntax to you as well?

1 Like

If it helps, I tried the older version of the docker image (mattermost-preview:5.26.0) and it worked fine. That might help locate the problem.

So it’s not urgent for me, anymore. But it might be good to fix this for your next release.

1 Like

Looks like something may have gone wrong. I’ll share with our DevOps team.

Thanks for reporting it @rara, and glad to hear a previous version is working fine for you!

Edit: I’ll post back here once I’ve heard back from the team.

2 Likes

Sounds good, thank you!

I have the same error when starting the newest version on docker:

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 stderr

Older version still works.

Thanks for letting us know! The issue was escalated last week, and our build engineer will be looking at this error soon.

2 Likes

Hello,

I am trying to run it on macOS and I am getting the same errors.

1 Like

This MR is currently up to fix the issue: Fix ExperimentalDefaultChannels by icelander · Pull Request #57 · mattermost/mattermost-docker-preview · GitHub

2 Likes