After an update the service don’t starts:
Process: 9784 ExecStart=/opt/mattermost/bin/mattermost (code=exited, status=1/FAILURE)
Main PID: 9784 (code=exited, status=1/FAILURE)
…systemd[1]: mattermost.service: Main process exited, code=exited, status=1/FAILURE
…mattermost.service: Failed with result ‘exit-code’.
…Failed to start Mattermost.
The Logfile shows:
{“timestamp”:“2023-02-11 15:44:41.436 +01:00”,“level”:“info”,“msg”:“Server is initializing…”,“caller”:“platform/service.go:165”,“go_version”:“go1.18.1”}
{“timestamp”:“2023-02-11 15:44:41.436 +01:00”,“level”:“info”,“msg”:“Pinging SQL”,“caller”:“sqlstore/store.go:238”,“database”:“master”}
{“timestamp”:“2023-02-11 15:44:41.479 +01:00”,“level”:“info”,“msg”:“Pinging SQL”,“caller”:“sqlstore/store.go:238”,“database”:“master”}
{“timestamp”:“2023-02-11 15:44:41.516 +01:00”,“level”:“info”,“msg”:“Starting websocket hubs”,“caller”:“platform/web_hub.go:95”,“number_of_hubs”:4}
{“timestamp”:“2023-02-11 15:44:41.516 +01:00”,“level”:“info”,“msg”:“Loaded system translations”,“caller”:“i18n/i18n.go:93”,“for locale”:“de”,“from locale”:“/opt/mattermost/i18n/de.json”}
{“timestamp”:“2023-02-11 15:44:41.526 +01:00”,“level”:“info”,“msg”:“Current version is 7.7.1 (7.7.1/Thu Jan 19 00:47:45 UTC 2023/63149c4869898f8c1d3a94ea728370ec4a07575f/none)”,“caller”:“app/server.go:395”,“current_version”:“7.7.1”,“build_number”:“7.7.1”,“build_date”:“Thu Jan 19 00:47:45 UTC 2023”,“build_hash”:“63149c4869898f8c1d3a94ea728370ec4a07575f”,“build_hash_enterprise”:“none”}
{“timestamp”:“2023-02-11 15:44:41.526 +01:00”,“level”:“info”,“msg”:“Team Edition Build”,“caller”:“app/server.go:406”,“enterprise_build”:false}
{“timestamp”:“2023-02-11 15:44:41.526 +01:00”,“level”:“info”,“msg”:“Printing current working”,“caller”:“app/server.go:410”,“directory”:“/opt/mattermost”}
{“timestamp”:“2023-02-11 15:44:41.526 +01:00”,“level”:“info”,“msg”:“Loaded config”,“caller”:“app/server.go:411”,“source”:“file:///opt/mattermost/config/config.json”}
{“timestamp”:“2023-02-11 15:44:41.533 +01:00”,“level”:“info”,“msg”:“Starting workers”,“caller”:“jobs/workers.go:48”}
{“timestamp”:“2023-02-11 15:44:41.534 +01:00”,“level”:“info”,“msg”:“Starting schedulers.”,“caller”:“jobs/schedulers.go:47”}
{“timestamp”:“2023-02-11 15:44:41.546 +01:00”,“level”:“error”,“msg”:“License key from https://mattermost.com required to unlock enterprise features.”,“caller”:“platform/license.go:106”,“error”:“resource: License id: “}
{“timestamp”:“2023-02-11 15:44:41.552 +01:00”,“level”:“fatal”,“msg”:”(app.App).DoPermissionsMigrations failed”,“caller”:“app/migrations.go:555”,“error”:"doPermissionsMigration: The role was not valid., invalid input: entity: Role field: value: &{6jxf58cz6py5drua5amud4f7sr system_admin authentication.Roles.global_admin.name authentication.Roles.global_admin.description 1583839393811 1651073532071 0 [sysconsole_write_compliance create_post_bleve_indexes_job read_data_retention_job sysconsole_read_user_management_teams read_public_channel_groups sysconsole_write_authentication_signup playbook_public_view create_post manage_public_channel_properties test_ldap sysconsole_write_experimental_feature_flags sysconsole_write_experimental_bleve manage_team read_audits recycle_database_connections manage_jobs read_others_bots run_manage_members manage_team_Roles sysconsole_read_site_customization sysconsole_write_site_public_links manage_private_channel_members sysconsole_write_reporting_site_statistics sysconsole_read_billing sysconsole_write_site_customization remove_user_from…
…
This output repeats until I stop the service.
The Schema seems to be on 100 but something goes wrong.
Any ideas?
Platform is ubuntu 20.04 with mysql 8.0.32.
Thanks in advance
Micha