For feature requests, please see: Contributing Feature Proposals - Mattermost.
For troubleshooting questions, please post in the following format:
Summary
I’m trying to update my mattermost from 5.36.1 to the latest version in small increments but when trying to update to 7.2.1 the application doesn’t start.
Steps to reproduce
How can we reproduce the issue (what version are you using?)
I updated in small batches, this is the path I followed:
- 5.36.1
- 5.37.10
- 5.39.3
- 6.3.10
- 7.1.5
Up to here, I didn’t have any problem following the steps from Upgrade Mattermost Server but then I tried to update to7.5.2
and everything went downhill. I couldn’t access the web application and even if I reverted to a previous version it wouldn’t start. I needed to restore my DB backup and then install7.1.5
again to make it work.
Expected behavior
Describe your issue in detail
Observed behavior
What did you see happen? Please include relevant error messages and/or screenshots.
These are the logs from mattermost.log with debug enabled
{"timestamp":"2023-01-13 13:07:51.935 Z","level":"info","msg":"Server is initializing...","caller":"app/server.go:271","go_version":"go1.18.1"}
{"timestamp":"2023-01-13 13:07:51.935 Z","level":"info","msg":"Pinging SQL","caller":"sqlstore/store.go:228","database":"master"}
{"timestamp":"2023-01-13 13:07:51.975 Z","level":"info","msg":"Pinging SQL","caller":"sqlstore/store.go:228","database":"master"}
{"timestamp":"2023-01-13 13:07:51.983 Z","level":"debug","msg":"morph.go:175: == create_enums: migrating =======================================================================\n","caller":"sqlstore/utils.go:159"}
{"timestamp":"2023-01-13 13:07:52.367 Z","level":"debug","msg":"morph.go:182: == create_enums: migrated (0.3842s) ==============================================================\n","caller":"sqlstore/utils.go:159"}
{"timestamp":"2023-01-13 13:07:52.371 Z","level":"debug","msg":"Deleting any unused pre-release features","caller":"sqlstore/preference_store.go:25"}
{"timestamp":"2023-01-13 13:07:52.386 Z","level":"debug","msg":"We could not find the license key in the database or on disk at","caller":"utils/license.go:114","filename":"/opt/mattermost/bin/config/mattermost.mattermost-license"}
{"timestamp":"2023-01-13 13:07:52.395 Z","level":"error","msg":"License key from https://mattermost.com required to unlock enterprise features.","caller":"app/license.go:151","error":"resource: License id: "}
{"timestamp":"2023-01-13 13:07:52.395 Z","level":"info","msg":"Starting websocket hubs","caller":"app/web_hub.go:93","number_of_hubs":2}
{"timestamp":"2023-01-13 13:07:52.396 Z","level":"info","msg":"Loaded system translations","caller":"i18n/i18n.go:93","for locale":"en","from locale":"/opt/mattermost/i18n/en.json"}
{"timestamp":"2023-01-13 13:07:52.406 Z","level":"debug","msg":"Hub is starting","caller":"app/web_hub.go:415","index":0}
{"timestamp":"2023-01-13 13:07:52.406 Z","level":"debug","msg":"Hub is starting","caller":"app/web_hub.go:415","index":1}
{"timestamp":"2023-01-13 13:07:52.451 Z","level":"info","msg":"Current version is 7.2.1 (7.2.1/Tue Oct 11 15:35:48 UTC 2022/64021bf5c4810546cd9a8aa22d263b0365e98d54/bf26b0fa15446e3e9d9683982aa5601a04aeb0a3)","caller":"app/server.go:581","current_version":"7.2.1","build_number":"7.2.1","build_date":"Tue Oct 11 15:35:48 UTC 2022","build_hash":"64021bf5c4810546cd9a8aa22d263b0365e98d54","build_hash_enterprise":"bf26b0fa15446e3e9d9683982aa5601a04aeb0a3"}
{"timestamp":"2023-01-13 13:07:52.451 Z","level":"info","msg":"Enterprise Build","caller":"app/server.go:590","enterprise_build":true}
{"timestamp":"2023-01-13 13:07:52.451 Z","level":"info","msg":"Printing current working","caller":"app/server.go:596","directory":"/opt/mattermost/bin"}
{"timestamp":"2023-01-13 13:07:52.451 Z","level":"info","msg":"Loaded config","caller":"app/server.go:597","source":"file:///opt/mattermost/config/config.json"}
{"timestamp":"2023-01-13 13:07:52.453 Z","level":"debug","msg":"Logging metrics enabled","caller":"app/server.go:965"}
{"timestamp":"2023-01-13 13:07:52.455 Z","level":"debug","msg":"Will fetch notices from","caller":"app/product_notices.go:344","url":"https://notices.mattermost.com/","skip_cache":false}
{"timestamp":"2023-01-13 13:07:52.456 Z","level":"info","msg":"Starting workers","caller":"jobs/workers.go:48"}
{"timestamp":"2023-01-13 13:07:52.457 Z","level":"debug","msg":"Cleaning up session store.","caller":"app/server.go:1600"}
{"timestamp":"2023-01-13 13:07:52.458 Z","level":"debug","msg":"Cleaning up token store.","caller":"app/server.go:1585"}
{"timestamp":"2023-01-13 13:07:52.458 Z","level":"debug","msg":"Cleaning up command webhook store.","caller":"sqlstore/command_webhook_store.go:93"}
{"timestamp":"2023-01-13 13:07:52.458 Z","level":"debug","msg":"Worker started","caller":"jobs/base_workers.go:37","worker":"ExtractContent"}
{"timestamp":"2023-01-13 13:07:52.458 Z","level":"debug","msg":"Worker started","caller":"jobs/base_workers.go:37","worker":"ExportProcess"}
{"timestamp":"2023-01-13 13:07:52.458 Z","level":"debug","msg":"Worker started","caller":"jobs/base_workers.go:37","worker":"ProductNotices"}
{"timestamp":"2023-01-13 13:07:52.458 Z","level":"debug","msg":"Worker started","caller":"jobs/base_workers.go:37","worker":"ImportProcess"}
{"timestamp":"2023-01-13 13:07:52.458 Z","level":"debug","msg":"Worker started","caller":"jobs/base_workers.go:37","worker":"ImportDelete"}
{"timestamp":"2023-01-13 13:07:52.458 Z","level":"debug","msg":"Worker started","caller":"jobs/base_workers.go:37","worker":"ExportDelete"}
{"timestamp":"2023-01-13 13:07:52.458 Z","level":"debug","msg":"Worker started","caller":"migrations/worker.go:50","worker":"Migrations"}
{"timestamp":"2023-01-13 13:07:52.458 Z","level":"debug","msg":"Worker started","caller":"scheduler/worker.go:39","worker":"Plugins"}
{"timestamp":"2023-01-13 13:07:52.458 Z","level":"debug","msg":"Worker Started","caller":"indexer/indexing_job.go:100","workername":"BleveIndexer"}
{"timestamp":"2023-01-13 13:07:52.458 Z","level":"debug","msg":"Worker started","caller":"resend_invitation_email/worker.go:54","worker":"resend_invitation_email"}
{"timestamp":"2023-01-13 13:07:52.458 Z","level":"debug","msg":"Watcher Started","caller":"jobs/jobs_watcher.go:38"}
{"timestamp":"2023-01-13 13:07:52.458 Z","level":"info","msg":"Starting schedulers.","caller":"jobs/schedulers.go:47"}
{"timestamp":"2023-01-13 13:07:52.478 Z","level":"debug","msg":"We could not find the license key in the database or on disk at","caller":"utils/license.go:114","filename":"/opt/mattermost/bin/config/mattermost.mattermost-license"}
{"timestamp":"2023-01-13 13:07:52.482 Z","level":"debug","msg":"Logging metrics enabled","caller":"app/server.go:965"}
{"timestamp":"2023-01-13 13:07:52.482 Z","level":"debug","msg":"License cannot be found.","caller":"app/server.go:1791"}
{"timestamp":"2023-01-13 13:07:52.591 Z","level":"debug","msg":"EXPERIMENTAL: Initializing plugin api","caller":"api4/plugin.go:28"}
{"timestamp":"2023-01-13 13:07:52.598 Z","level":"debug","msg":"Initializing web routes","caller":"web/web.go:26"}
{"timestamp":"2023-01-13 13:07:52.605 Z","level":"debug","msg":"Rewriting static assets","caller":"utils/subpath.go:84","from_subpath":"/","to_subpath":"/"}
{"timestamp":"2023-01-13 13:07:52.668 Z","level":"debug","msg":"Using client directory","caller":"web/static.go:30","clientDir":"/opt/mattermost/client"}
{"timestamp":"2023-01-13 13:07:52.668 Z","level":"info","msg":"Starting up plugins","caller":"app/plugin.go:213"}
{"timestamp":"2023-01-13 13:07:52.668 Z","level":"error","msg":"Failed to start up plugins","caller":"app/plugin.go:221","error":"mkdir ./client/plugins: no such file or directory"}
{"timestamp":"2023-01-13 13:07:52.675 Z","level":"debug","msg":"Able to write files to local storage.","caller":"filestore/localstore.go:78"}
{"timestamp":"2023-01-13 13:07:52.677 Z","level":"info","msg":"Starting Server...","caller":"app/server.go:1245"}
{"timestamp":"2023-01-13 13:07:52.677 Z","level":"info","msg":"Server is listening on [::]:443","caller":"app/server.go:1318","address":"[::]:443"}
{"timestamp":"2023-01-13 13:07:52.677 Z","level":"debug","msg":"No license provided; Remote Cluster services disabled","caller":"app/server.go:888"}
{"timestamp":"2023-01-13 13:07:52.765 Z","level":"debug","msg":"Next run time for scheduler","caller":"jobs/schedulers.go:147","scheduler_name":"product_notices","next_runtime":"2023-01-13 14:07:52.765546096 +0000 UTC m=+3601.206106071"}
{"timestamp":"2023-01-13 13:07:52.771 Z","level":"debug","msg":"Next run time for scheduler","caller":"jobs/schedulers.go:147","scheduler_name":"import_delete","next_runtime":"2023-01-14 13:07:52.771432142 +0000 UTC m=+86401.211992089"}
{"timestamp":"2023-01-13 13:07:52.771 Z","level":"debug","msg":"Scheduler: isEnabled: false","caller":"last_accessible_post/scheduler.go:20","scheduler":"last_accessible_post"}
{"timestamp":"2023-01-13 13:07:52.781 Z","level":"debug","msg":"Next run time for scheduler","caller":"jobs/schedulers.go:147","scheduler_name":"migrations","next_runtime":"2023-01-13 13:08:52.781389497 +0000 UTC m=+61.221949436"}
{"timestamp":"2023-01-13 13:07:52.784 Z","level":"debug","msg":"Next run time for scheduler","caller":"jobs/schedulers.go:147","scheduler_name":"export_delete","next_runtime":"2023-01-14 13:07:52.784450962 +0000 UTC m=+86401.225010908"}
{"timestamp":"2023-01-13 13:07:52.794 Z","level":"debug","msg":"Next run time for scheduler","caller":"jobs/schedulers.go:147","scheduler_name":"plugins","next_runtime":"2023-01-14 13:07:52.794272378 +0000 UTC m=+86401.234832322"}
{"timestamp":"2023-01-13 13:08:52.795 Z","level":"debug","msg":"Scheduling Job","caller":"migrations/scheduler.go:45","scheduler":"migrations"}
{"timestamp":"2023-01-13 13:08:52.796 Z","level":"debug","msg":"All migrations are complete.","caller":"migrations/scheduler.go:84","scheduler":"migrations"}
{"timestamp":"2023-01-13 13:08:52.797 Z","level":"debug","msg":"Next run time for scheduler","caller":"jobs/schedulers.go:147","scheduler_name":"migrations","next_runtime":"<nil>"}
{"timestamp":"2023-01-13 13:17:23.767 Z","level":"error","msg":"http: TLS handshake error from 133.32.131.63:1618: 429 urn:ietf:params:acme:error:rateLimited: Error creating new order :: too many certificates (5) already issued for this exact set of domains in the last 168 hours: rondhuit.chat, retry after 2023-01-14T21:28:54Z: see https://letsencrypt.org/docs/duplicate-certificate-limit/","caller":"log/log.go:195","source":"httpserver"}
{"timestamp":"2023-01-13 13:17:23.767 Z","level":"error","msg":"http: TLS handshake error from 133.32.131.63:1612: acme/autocert: missing certificate","caller":"log/log.go:195","source":"httpserver"}
I just noticed the last log that happened after 9 minutes since it started? could this be the reason?