PostgreSQL 9.6.1
Mattermost Version: 3.7.0
Mattermost Build Number: 3.7.2
Gitlab Version: 9.0.2
The system console always shows for my user no matter which command is run, however it cannot be accessed.
Thanks @JeffSchering
If I run the command as root or with sudo I receive permission denied:
[root@git bin]# cd /opt/gitlab/embedded/bin
[root@git bin]# sudo su mattermost ./mattermost roles system_admin traxwriter -c /var/opt/gitlab/mattermost/config.json
./mattermost: /var/opt/gitlab/mattermost/config.json: Permission denied
if I first su to mattermost I get the following:
[root@git bin]# su mattermost
sh-4.2$ ./mattermost roles system_admin traxwriter -c /var/opt/gitlab/mattermost/config.json
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, 0xc420012090)
/usr/local/go/src/runtime/panic.go:500 +0x1a1
main.getUserFromUserArg(0x7ffdbdb946fd, 0xa, 0x1)
/home/ubuntu/workspace/msr/platform-release/src/github.com/mattermost/platform/cmd/platform/userargs.go:21 +0x28
main.getUsersFromUserArgs(0xc420114fc0, 0x1, 0x3, 0xc420f1dba8, 0x9b41b6, 0xc30d60)
/home/ubuntu/workspace/msr/platform-release/src/github.com/mattermost/platform/cmd/platform/userargs.go:13 +0xa2
main.makeSystemAdminCmdF(0x11466c0, 0xc420114fc0, 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, 0xc420114f30, 0x3, 0x3, 0x11466c0, 0xc420114f30)
/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(0xc42008a240, 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(0xc42008a240, 0xc42010e430, 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
Just paid more attention to the output, and the paths are weird, where does it get them from?
/hone/ubuntu/
doesn't exist, neither does /usr/local/go/