Mattermost onmibus crashing after 9.5.4 upgrade on Centos 7
Summary
After upgrading to Gitlab onmibus 9.5.4, mattermost will not start and due to permission errors and nginx will show a 502 error.
Steps to reproduce
Just upgrade from 9.5.3 to 9.5.4 using the onmibus package on Centos 7.
Example Project
(If possible, please create an example project here on GitLab.com that exhibits the problematic behaviour, and link to it here in the bug report)
(If you are using an older version of GitLab, this will also determine whether the bug has been fixed in a more recent version)
What is the current bug behavior?
nginx shows a 502 error. If you analyze the logs you will see that mattermost is failing to start due to a permission error on the log file but the file has the correct permissions. The platform has been working fine without issues until this upgrade.
What is the expected correct behavior?
Mattermost platform should run without any issue.
Relevant logs and/or screenshots
==> /var/log/gitlab/mattermost/current <==
2017-09-08_06:16:27.60777 FileLogWriter("/var/log/gitlab/mattermostmattermost.log"): open /var/log/gitlab/mattermostmattermost.log: permission denied
2017-09-08_06:16:27.61001 panic: runtime error: invalid memory address or nil pointer dereference
2017-09-08_06:16:27.61004 [signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0x8d7e5f]
2017-09-08_06:16:27.61004
2017-09-08_06:16:27.61005 goroutine 1 [running]:
2017-09-08_06:16:27.61006 github.com/mattermost/platform/utils.configureLog(0xc4217c42c0)
2017-09-08_06:16:27.61006 /var/lib/jenkins/jobs/msr/jobs/d/jobs/platform-release/workspace/src/github.com/mattermost/platform/utils/config.go:159 +0x23f
2017-09-08_06:16:27.61009 github.com/mattermost/platform/utils.LoadConfig(0x7ffe9d719edd, 0x26)
2017-09-08_06:16:27.61011 /var/lib/jenkins/jobs/msr/jobs/d/jobs/platform-release/workspace/src/github.com/mattermost/platform/utils/config.go:358 +0x388
2017-09-08_06:16:27.61013 github.com/mattermost/platform/utils.InitAndLoadConfig(0x7ffe9d719edd, 0x26, 0x7ffe9d719edd, 0xc420595440)
2017-09-08_06:16:27.61030 /var/lib/jenkins/jobs/msr/jobs/d/jobs/platform-release/workspace/src/github.com/mattermost/platform/utils/config.go:272 +0x61
2017-09-08_06:16:27.61037 main.runServer(0x7ffe9d719edd, 0x26)
2017-09-08_06:16:27.61038 /var/lib/jenkins/jobs/msr/jobs/d/jobs/platform-release/workspace/src/github.com/mattermost/platform/cmd/platform/server.go:47 +0x50
2017-09-08_06:16:27.61038 main.runServerCmd(0x169c260, 0xc420175080, 0x0, 0x2, 0x0, 0x0)
2017-09-08_06:16:27.61040 /var/lib/jenkins/jobs/msr/jobs/d/jobs/platform-release/workspace/src/github.com/mattermost/platform/cmd/platform/server.go:42 +0xe0
2017-09-08_06:16:27.61041 github.com/mattermost/platform/vendor/github.com/spf13/cobra.(*Command).execute(0x169c260, 0xc420010160, 0x2, 0x2, 0x169c260, 0xc420010160)
2017-09-08_06:16:27.61043 /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
2017-09-08_06:16:27.61044 github.com/mattermost/platform/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x169c260, 0x169ece0, 0x0, 0xc420c73f78)
2017-09-08_06:16:27.61044 /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
2017-09-08_06:16:27.61045 github.com/mattermost/platform/vendor/github.com/spf13/cobra.(*Command).Execute(0x169c260, 0xc4200001a0, 0xc4200001a0)
2017-09-08_06:16:27.61045 /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
Output of checks
(If you are reporting a bug on GitLab.com, write: This bug happens on GitLab.com)
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:env:info
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
)
I can´t use the onmibus command because this mattermost server is used only for the mattermost platform and it has not a full gitlab installation.
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)
I can´t use the onmibus command because this mattermost server is used only for the mattermost platform and it has not a full gitlab installation.
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)