Mattermost, Inc.

Upgrade stuck at "Deleting any unused pre-release features"

Summary

Upgrade stuck at “Deleting any unused pre-release features”

Steps to reproduce

Upgrading from 3.6.0 -> 5.15.0

Expected behavior

Service should finish upgrading and startup.

Observed behavior

Service starts up but get stuck at this message and doesn’t go anywhere.

root@mattermostpv1:~# sudo -u mattermost /opt/mattermost/bin/mattermost
{“level”:“info”,“ts”:1569008977.231686,“caller”:“utils/i18n.go:83”,“msg”:“Loaded system translations for ‘en’ from ‘/opt/mattermost/i18n/en.json’”}
{“level”:“info”,“ts”:1569008977.2318606,“caller”:“app/server_app_adapters.go:58”,“msg”:“Server is initializing…”}
{“level”:“debug”,“ts”:1569008977.2324681,“caller”:“utils/html.go:31”,“msg”:“Parsing server templates at /opt/mattermost/templates”}
{“level”:“info”,“ts”:1569008977.2340033,“caller”:“sqlstore/supplier.go:223”,“msg”:“Pinging SQL master database”}
{“level”:“debug”,“ts”:1569008977.3101304,“caller”:“sqlstore/preference_store.go:41”,“msg”:“Deleting any unused pre-release features”}

Hi @kcorupe, since you’re upgrading between many versions, I would recommend upgrading first to v4.0, then v5.0, then v5.15. Please read all the important upgrade notes along the way as there have been lot of changes between those releases: https://docs.mattermost.com/administration/important-upgrade-notes.html.

Ok thank you, Im starting with 3.4 -> 4.0. It upgraded the schema successfully but now it just hangs here.

root@mattermostpv1:/opt/mattermost# ./bin/platform
[2019/09/20 23:24:44 UTC] [INFO] Loaded system translations for ‘en’ from ‘/opt/mattermost/i18n/en.json’
^C

root@mattermostpv1:/opt/mattermost# ./bin/platform version
Version: 4.0.0
Build Number: 4.0.0
Build Date: Sat Jul 15 21:24:43 UTC 2017
Build Hash: 9a23519d07664f252fe5a568034abf6b720511d0
Build Enterprise Ready: true
DB Version: 4.0.0

root@mattermostpv1:/opt/mattermost# ./bin/platform config validate
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x8012ea]

goroutine 1 [running]:
github.com/mattermost/platform/model.(*Config).IsValid(0xc420148900, 0x186a5e0)
/var/lib/jenkins/jobs/msr/jobs/d/jobs/enterprise-release/workspace/src/github.com/mattermost/platform/model/config.go:1406 +0x9a
main.configValidateCmdF(0x189ede0, 0x18ca738, 0x0, 0x0)
/var/lib/jenkins/jobs/msr/jobs/d/jobs/enterprise-release/workspace/src/github.com/mattermost/platform/cmd/platform/config.go:60 +0x338
github.com/mattermost/platform/vendor/github.com/spf13/cobra.(*Command).execute(0x189ede0, 0x18ca738, 0x0, 0x0, 0x189ede0, 0x18ca738)
/var/lib/jenkins/jobs/msr/jobs/d/jobs/enterprise-release/workspace/src/github.com/mattermost/platform/vendor/github.com/spf13/cobra/command.go:651 +0x23a
github.com/mattermost/platform/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x189fee0, 0x18a2960, 0x0, 0xc420d31f78)
/var/lib/jenkins/jobs/msr/jobs/d/jobs/enterprise-release/workspace/src/github.com/mattermost/platform/vendor/github.com/spf13/cobra/command.go:726 +0x339
github.com/mattermost/platform/vendor/github.com/spf13/cobra.(*Command).Execute(0x189fee0, 0xc4200001a0, 0xc4200001a0)
/var/lib/jenkins/jobs/msr/jobs/d/jobs/enterprise-release/workspace/src/github.com/mattermost/platform/vendor/github.com/spf13/cobra/command.go:685 +0x2b
main.main()
/var/lib/jenkins/jobs/msr/jobs/d/jobs/enterprise-release/workspace/src/github.com/mattermost/platform/cmd/platform/mattermost.go:33 +0x2d

Hi, @kcorupe

I came across an article with similar error that we are seeing here which is related to the JIRA plugin.

May I know if you have it installed on your end?

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

If yes, may I know if you are able to disable the plugin and verify if the problem continues to persist after that?

Do you also face the same problem if you start Mattermost manually?