Skip to content

Mattermost cmd line tool throws exception

We're using the GitLab Omnibus package on a Ubuntu server. According to https://github.com/mattermost/platform/issues/6225 the Omnibus package doesnt contain the latest Mattermost version (v3.8.3), therefore one cant reproduce the broken link I've reported there.

GitLab and Mattermost are mostly running fine, except the admin account lost the system_admin flag.

I tried to reassign the system_admin flag by using the command line tool, but it throws an exception. Even ./mattermost version throws an exception:

Version: 3.7.0

Build Number: 3.7.3

Build Date: Wed Mar 22 23:31:00 UTC 2017

Build Hash: 8ec3757

Build Enterprise Ready: false

panic: runtime error: invalid memory address or nil pointer dereference

[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xbfc2c6]

goroutine 1 [running]:

main.printVersion()

/home/ubuntu/workspace/msr/d/platform-release/src/github.com/mattermost/platform/cmd/platform/version.go:29 +0x3f6

main.versionCmdF(0x11a57a0, 0x11cb830, 0x0, 0x0)

/home/ubuntu/workspace/msr/d/platform-release/src/github.com/mattermost/platform/cmd/platform/version.go:20 +0x30

github.com/mattermost/platform/vendor/github.com/spf13/cobra.(*Command).execute(0x11a57a0, 0x11cb830, 0x0, 0x0, 0x11a57a0, 0x11cb830)

/home/ubuntu/workspace/msr/d/platform-release/src/github.com/mattermost/platform/vendor/github.com/spf13/cobra/command.go:647 +0x231

github.com/mattermost/platform/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc4200a46c0, 0x0, 0x0, 0x0)

/home/ubuntu/workspace/msr/d/platform-release/src/github.com/mattermost/platform/vendor/github.com/spf13/cobra/command.go:734 +0x339

github.com/mattermost/platform/vendor/github.com/spf13/cobra.(*Command).Execute(0xc4200a46c0, 0xc420134ac0, 0xb)

/home/ubuntu/workspace/msr/d/platform-release/src/github.com/mattermost/platform/vendor/github.com/spf13/cobra/command.go:692 +0x2b

main.main()

/home/ubuntu/workspace/msr/d/platform-release/src/github.com/mattermost/platform/cmd/platform/mattermost.go:50 +0x4b2

Any ideas?