Mattermost fails to start after upgrade from 9.1.x to 9.2.2
Hi all,
I had been running mattermosr for a while without any problems. I have automatic updates for my gitlab omnibus installation, and up until 9.1.X things seemed to be OK. Now suddenly running gitlab-ctl reconfigure
, I see that the mattermost is being shutdown for some reason or another
Recipe: gitlab::mattermost
* group[Mattermost user and group] action create (up to date)
* user[Mattermost user and group] action create (up to date)
* directory[/var/opt/gitlab/mattermost] action create (up to date)
* directory[/var/log/gitlab/mattermost] action create (up to date)
* directory[/var/opt/gitlab/mattermost/data] action create (up to date)
* file[/var/log/gitlab/mattermost/mattermost.log] action create (up to date)
* postgresql_user[gitlab_mattermost] action create
* execute[create gitlab_mattermost postgresql user] action run (skipped due to not_if)
(up to date)
* execute[create mattermost_production database] action run (skipped due to not_if)
* ruby_block[populate mattermost configuration options] action run
- execute the ruby block populate mattermost configuration options
* template[/var/opt/gitlab/mattermost/config.json] action create (up to date)
* execute[/opt/gitlab/bin/gitlab-ctl stop mattermost] action run
[execute] ok: down: mattermost: 152s, normally up
- execute /opt/gitlab/bin/gitlab-ctl stop mattermost
* execute[/opt/gitlab/bin/gitlab-ctl start mattermost] action run (skipped due to only_if)
* bash[Show the message of the failed upgrade.] action run (skipped due to only_if)
* directory[/opt/gitlab/sv/mattermost] action create (up to date)
* directory[/opt/gitlab/sv/mattermost/log] action create (up to date)
* directory[/opt/gitlab/sv/mattermost/log/main] action create (up to date)
* template[/opt/gitlab/sv/mattermost/run] action create (up to date)
* template[/opt/gitlab/sv/mattermost/log/run] action create (up to date)
* template[/var/log/gitlab/mattermost/config] action create (up to date)
* ruby_block[reload mattermost svlogd configuration] action nothing (skipped due to action :nothing)
* file[/opt/gitlab/sv/mattermost/down] action delete (up to date)
* link[/opt/gitlab/init/mattermost] action create (up to date)
* link[/opt/gitlab/service/mattermost] action create (up to date)
* ruby_block[supervise_mattermost_sleep] action run (skipped due to not_if)
* service[mattermost] action nothing (skipped due to action :nothing)
I have seen the message belog in mattermost.log
!!!!Automatic database upgrade failed.!!!
If you are upgrading from Mattermost v2 to v3
make sure that you have backed up your database
and then in /etc/gitlab/gitlab.rb set:
mattermost['db2_backup_created'] = true
mattermost['db2_team_name'] = TEAMNAME
where TEAMNAME is the name of the default team.
Run gitlab-ctl reconfigure again.
See:
https://docs.gitlab.com/omnibus/gitlab-mattermost/#upgrading-gitlab-mattermost-from-versions-prior-to-8-9
for more information.
And have tried to follow this, without any success
any ideas on resolving the issue would be really appreciated
Edited by Arif Ali