Skip to content

mattermost command in gitlab-ce docker image does not work.

Summary

Using the command 'mattermost' in gitlab-ce docker image fails with an error about i18n.

Steps to reproduce

docker exec -it gitlab-ce /bin/bash
# mattermost version
panic: Unable to find i18n directory

goroutine 1 [running]:
github.com/mattermost/mattermost-server/cmd.InitDBCommandContextCobra(0x2072a60, 0xc420121c68, 0x0, 0x0)
        /var/lib/jenkins/jobs/msr/jobs/d/jobs/team-release/workspace/src/github.com/mattermost/mattermost-server/cmd/init.go:22 +0xf5                                                                                                         
github.com/mattermost/mattermost-server/cmd/commands.versionCmdF(0x2072a60, 0x20aafe0, 0x0, 0x0, 0x0, 0x0)
        /var/lib/jenkins/jobs/msr/jobs/d/jobs/team-release/workspace/src/github.com/mattermost/mattermost-server/cmd/commands/version.go:26 +0x2b                                                                                             
github.com/mattermost/mattermost-server/vendor/github.com/spf13/cobra.(*Command).execute(0x2072a60, 0x20aafe0, 0x0, 0x0, 0x2072a60, 0x20aafe0)                                                                                                
        /var/lib/jenkins/jobs/msr/jobs/d/jobs/team-release/workspace/src/github.com/mattermost/mattermost-server/vendor/github.com/spf13/cobra/command.go:753 +0x475                                                                          
github.com/mattermost/mattermost-server/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x2071040, 0x0, 0xc420000260, 0xc420121f40)                                                                                                         
        /var/lib/jenkins/jobs/msr/jobs/d/jobs/team-release/workspace/src/github.com/mattermost/mattermost-server/vendor/github.com/spf13/cobra/command.go:843 +0x334                                                                          
github.com/mattermost/mattermost-server/vendor/github.com/spf13/cobra.(*Command).Execute(0x2071040, 0xc42000c070, 0xc420121f60)                                                                                                               
        /var/lib/jenkins/jobs/msr/jobs/d/jobs/team-release/workspace/src/github.com/mattermost/mattermost-server/vendor/github.com/spf13/cobra/command.go:791 +0x2b                                                                           
github.com/mattermost/mattermost-server/cmd.Run(0xc42000c070, 0x1, 0x1, 0xc420000180, 0xf2f064)
        /var/lib/jenkins/jobs/msr/jobs/d/jobs/team-release/workspace/src/github.com/mattermost/mattermost-server/cmd/cmd.go:14 +0x6d                                                                                                          
main.main()
        /var/lib/jenkins/jobs/msr/jobs/d/jobs/team-release/workspace/src/github.com/mattermost/mattermost-server/main.go:33 +0x63         

#### Results of GitLab environment info

gitlab-rake gitlab:env:info

System information
System:
Current User:   git
Using RVM:      no
Ruby Version:   2.3.7p456
Gem Version:    2.6.14
Bundler Version:1.13.7
Rake Version:   12.3.1
Redis Version:  3.2.11
Git Version:    2.16.3
Sidekiq Version:5.0.5
Go Version:     unknown

GitLab information
Version:        10.8.1
Revision:       21a8d61
Directory:      /opt/gitlab/embedded/service/gitlab-rails
DB Adapter:     postgresql
URL:            https://gitlab.example.com
HTTP Clone URL: https://gitlab.example.com/some-group/some-project.git
SSH Clone URL:  git@gitlab.example.fr:some-group/some-project.git
Using LDAP:     yes
Using Omniauth: no

GitLab Shell
Version:        7.1.2
Repository storage paths:
- default:      /var/opt/gitlab/git-data/repositories
Hooks:          /opt/gitlab/embedded/service/gitlab-shell/hooks
Git:            /opt/gitlab/embedded/bin/git

This latest gitlab-ce image (10.8.1)

Results of GitLab application Check

# gitlab-rake gitlab:check SANITIZE=true
Checking GitLab Shell ...

GitLab Shell version >= 7.1.2 ? ... OK (7.1.2)
Repo base directory exists?
default... yes
Repo storage directories are symlinks?
default... no
Repo paths owned by git:root, or git:git?
default... yes
Repo paths access is drwxrws---?
default... yes
hooks directories in repos are links: ...
3/2 ... ok
7/5 ... ok
4/7 ... ok
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: OK
Redis available via internal API: OK

Access to /var/opt/gitlab/.ssh/authorized_keys: OK
gitlab-shell self-check successful

Checking GitLab Shell ... Finished

Checking Sidekiq ...

Running? ... yes
Number of Sidekiq processes ... 1

Checking Sidekiq ... Finished

Reply by email is disabled in config/gitlab.yml
Checking LDAP ...

Server: ldapmain
LDAP authentication... Success
LDAP users with access to your GitLab server (only showing the first 100 results)
       <some real users here (manually obfuscated)>

Checking LDAP ... Finished

Checking GitLab ...

Git configured correctly? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config up to date? ... yes
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory exists? ... yes
Uploads directory has correct permissions? ... yes
Uploads directory tmp has correct permissions? ... yes
Init script exists? ... skipped (omnibus-gitlab has no init script)
Init script up-to-date? ... skipped (omnibus-gitlab has no init script)
Projects have namespace: ...
3/2 ... yes
7/5 ... yes
4/7 ... yes
Redis version >= 2.8.0? ... yes
Ruby version >= 2.3.5 ? ... yes (2.3.7)
Git version >= 2.9.5 ? ... yes (2.16.3)
Git user has default SSH configuration? ... yes
Active users: ... 3

Checking GitLab ... Finished