Unable to access system console, permission error in log

Hi @jasonblais

Sorry for the delay, been really busy here.

I’ve tried switching roles around but I’m getting a panic which I can’t find a solution for.

When running sudo -u mattermost /opt/gitlab/embedded/bin/mattermost roles system_admin traxwriter -c /var/opt/gitlab/mattermost/config.json

I get
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x418d58]

goroutine 1 [running]: panic(0xc72560, 0xc4200100a0) /usr/local/go/src/runtime/panic.go:500 +0x1a1 main.getUserFromUserArg(0x7ffda1a88753, 0xb, 0x1) /home/ubuntu/workspace/msr/platform-release/src/github.com/mattermost/platform/cmd/platform/userargs.go:21 +0x28 main.getUsersFromUserArgs(0xc4201156e0, 0x1, 0x3, 0xc4210c3ba8, 0x9b41b6, 0xc30d60) /home/ubuntu/workspace/msr/platform-release/src/github.com/mattermost/platform/cmd/platform/userargs.go:13 +0xa2 main.makeSystemAdminCmdF(0x11466c0, 0xc4201156e0, 0x1, 0x3, 0x0, 0x0) /home/ubuntu/workspace/msr/platform-release/src/github.com/mattermost/platform/cmd/platform/roles.go:46 +0x75 github.com/mattermost/platform/vendor/github.com/spf13/cobra.(*Command).execute(0x11466c0, 0xc420115140, 0x3, 0x3, 0x11466c0, 0xc420115140) /home/ubuntu/workspace/msr/platform-release/src/github.com/mattermost/platform/vendor/github.com/spf13/cobra/command.go:643 +0x23e github.com/mattermost/platform/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc42113e240, 0x0, 0x0, 0x0) /home/ubuntu/workspace/msr/platform-release/src/github.com/mattermost/platform/vendor/github.com/spf13/cobra/command.go:734 +0x367 github.com/mattermost/platform/vendor/github.com/spf13/cobra.(*Command).Execute(0xc42113e240, 0xc420106670, 0xb) /home/ubuntu/workspace/msr/platform-release/src/github.com/mattermost/platform/vendor/github.com/spf13/cobra/command.go:692 +0x2b main.main() /home/ubuntu/workspace/msr/platform-release/src/github.com/mattermost/platform/cmd/platform/mattermost.go:50 +0x49f

If I run the help or version commands there is no error only when I ask it to actually do something…