Gitlab Mattermost CLI not usable because i18n Directory is missing
Summary
Can not delete a Team because the Mattermost CLI is missing the i18n Directory
Steps to reproduce
It used to work with Mattermost 3.*, since upgrading to Mattermost 4.0 it stopped working
execute /opt/gitlab/embedded/bin/mattermost --config=/var/opt/gitlab/mattermost/config.json team remove team on Mattermost Server
Expected behavior
Execute the command an delete the Team "team"
Observed behavior
The CLI could not find the i18n directory, I acutally could find the i18n directory with the path /opt/gitlab/embedded/service/mattermost/i18n
This is the stacktrace: /opt/gitlab/embedded/bin/mattermost --config=/var/opt/gitlab/mattermost/config.json team remove panic: Unable to find i18n directory
goroutine 1 [running]: main.initDBCommandContextCobra(0x14aa500, 0xbee8d0, 0xc42014f3b0) /var/lib/jenkins/jobs/msr/jobs/d/jobs/platform-release/workspace/src/github.com/mattermost/platform/cmd/platform/init.go:18 +0xcc main.removeUsersCmdF(0x14aa500, 0xc420131340, 0x0, 0x1, 0x0, 0x0) /var/lib/jenkins/jobs/msr/jobs/d/jobs/platform-release/workspace/src/github.com/mattermost/platform/cmd/platform/team.go:105 +0x40 github.com/mattermost/platform/vendor/github.com/spf13/cobra.(*Command).execute(0x14aa500, 0xc420131300, 0x1, 0x1, 0x14aa500, 0xc420131300) /var/lib/jenkins/jobs/msr/jobs/d/jobs/platform-release/workspace/src/github.com/mattermost/platform/vendor/github.com/spf13/cobra/command.go:647 +0x3f8 github.com/mattermost/platform/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x14a9400, 0x14abe80, 0x0, 0xc420d79f78) /var/lib/jenkins/jobs/msr/jobs/d/jobs/platform-release/workspace/src/github.com/mattermost/platform/vendor/github.com/spf13/cobra/command.go:726 +0x339 github.com/mattermost/platform/vendor/github.com/spf13/cobra.(*Command).Execute(0x14a9400, 0xc4200001a0, 0xc4200001a0) /var/lib/jenkins/jobs/msr/jobs/d/jobs/platform-release/workspace/src/github.com/mattermost/platform/vendor/github.com/spf13/cobra/command.go:685 +0x2b main.main() /var/lib/jenkins/jobs/msr/jobs/d/jobs/platform-release/workspace/src/github.com/mattermost/platform/cmd/platform/mattermost.go:33 +0x2d
Thanks a lot
Lucas