So i tried running all sql mentions but the server still wont start. And has the same error message in the mysql logs. I can login (mysql) with the mention mysql_user + mysql_user:pwd mentioned in start.sh.
(All inside docker container)
When I use sh start.sh
he says
` 3: set: Illegal option -o pipefail
So i set it commented
=> Update Mattermost plugin directory
=> Start MySQL
* Starting MySQL database server mysqld [ OK ]
=> Start Mattermost
{"level":"info","ts":1599136973.4878664,"caller":"utils/i18n.go:83","msg":"Loaded system translations","for locale":"en","from locale":"/opt/mattermost/i18n/en.json"}
{"level":"info","ts":1599136973.4881277,"caller":"app/server_app_adapters.go:58","msg":"Server is initializing..."}
{"level":"info","ts":1599136973.4921403,"caller":"sqlstore/supplier.go:224","msg":"Pinging SQL","database":"master"}
{"level":"error","ts":1599136973.5979664,"caller":"app/server_app_adapters.go:135","msg":"Mail server connection test is failed: Could not connect to SMTP server, check SMTP server settings."}
{"level":"info","ts":1599136973.5992372,"caller":"app/license.go:37","msg":"License key from https://mattermost.com required to unlock enterprise features."}
{"level":"info","ts":1599136973.6063316,"caller":"mlog/log.go:167","msg":"Starting up plugins"}
{"level":"info","ts":1599136973.6064925,"caller":"app/plugin.go:202","msg":"Syncing plugins from the file store"}
{"level":"warn","ts":1599136973.608341,"caller":"app/plugin.go:222","msg":"Skipping sync for unmanaged plugin","plugin_id":"notifymatters"}
{"level":"info","ts":1599136973.6092618,"caller":"app/server.go:252","msg":"Current version is 5.22.0 (5.22.1/Thu Apr 23 14:55:48 UTC 2020/d0d6e33a11c5e69afc415707b23b241f101f56d6/94b0dfd3fa8ca3c8c939f4cd623bb848cf41c4bb)","current_version":"5.22.0","build_number":"5.22.1","build_date":"Thu Apr 23 14:55:48 UTC 2020","build_hash":"d0d6e33a11c5e69afc415707b23b241f101f56d6","build_hash_enterprise":"94b0dfd3fa8ca3c8c939f4cd623bb848cf41c4bb"}
{"level":"info","ts":1599136973.6093342,"caller":"app/server.go:261","msg":"Enterprise Build","enterprise_build":true}
{"level":"info","ts":1599136973.6093998,"caller":"app/server.go:267","msg":"Printing current working","directory":"/opt/mattermost"}
{"level":"info","ts":1599136973.6094425,"caller":"app/server.go:268","msg":"Loaded config","source":"file:///etc/mattermost/config.json"}
{"level":"info","ts":1599136973.6285844,"caller":"sqlstore/post_store.go:1518","msg":"Post.Message has size restrictions","max_characters":16383,"max_bytes":65535}
{"level":"info","ts":1599136973.6676123,"caller":"app/license.go:37","msg":"License key from https://mattermost.com required to unlock enterprise features."}
Version: 5.22.0
Build Number: 5.22.1
Build Date: Thu Apr 23 14:55:48 UTC 2020
Build Hash: d0d6e33a11c5e69afc415707b23b241f101f56d6
Build Enterprise Ready: true
DB Version: 5.22.0
{"level":"info","ts":1599136973.9074752,"caller":"utils/i18n.go:83","msg":"Loaded system translations","for locale":"en","from locale":"/opt/mattermost/i18n/en.json"}
{"level":"info","ts":1599136973.907768,"caller":"app/server_app_adapters.go:58","msg":"Server is initializing..."}
{"level":"info","ts":1599136973.91178,"caller":"sqlstore/supplier.go:224","msg":"Pinging SQL","database":"master"}
{"level":"error","ts":1599136973.9762099,"caller":"app/server_app_adapters.go:135","msg":"Mail server connection test is failed: Could not connect to SMTP server, check SMTP server settings."}
{"level":"info","ts":1599136973.977529,"caller":"app/license.go:37","msg":"License key from https://mattermost.com required to unlock enterprise features."}
{"level":"info","ts":1599136973.9834602,"caller":"mlog/log.go:167","msg":"Starting up plugins"}
{"level":"info","ts":1599136973.9835346,"caller":"app/plugin.go:202","msg":"Syncing plugins from the file store"}
{"level":"warn","ts":1599136973.9849706,"caller":"app/plugin.go:222","msg":"Skipping sync for unmanaged plugin","plugin_id":"notifymatters"}
{"level":"info","ts":1599136973.9855845,"caller":"app/server.go:252","msg":"Current version is 5.22.0 (5.22.1/Thu Apr 23 14:55:48 UTC 2020/d0d6e33a11c5e69afc415707b23b241f101f56d6/94b0dfd3fa8ca3c8c939f4cd623bb848cf41c4bb)","current_version":"5.22.0","build_number":"5.22.1","build_date":"Thu Apr 23 14:55:48 UTC 2020","build_hash":"d0d6e33a11c5e69afc415707b23b241f101f56d6","build_hash_enterprise":"94b0dfd3fa8ca3c8c939f4cd623bb848cf41c4bb"}
{"level":"info","ts":1599136973.9856477,"caller":"app/server.go:261","msg":"Enterprise Build","enterprise_build":true}
{"level":"info","ts":1599136973.9856913,"caller":"app/server.go:267","msg":"Printing current working","directory":"/opt/mattermost"}
{"level":"info","ts":1599136973.9857202,"caller":"app/server.go:268","msg":"Loaded config","source":"file:///etc/mattermost/config.json"}
{"level":"info","ts":1599136973.9987128,"caller":"sqlstore/post_store.go:1518","msg":"Post.Message has size restrictions","max_characters":16383,"max_bytes":65535}
{"level":"info","ts":1599136974.053859,"caller":"jobs/workers.go:68","msg":"Starting workers"}
{"level":"info","ts":1599136974.0544631,"caller":"jobs/schedulers.go:74","msg":"Starting schedulers."}
{"level":"info","ts":1599136974.065554,"caller":"app/web_hub.go:75","msg":"Starting websocket hubs","number_of_hubs":32}
{"level":"info","ts":1599136974.0992122,"caller":"app/server.go:506","msg":"Starting Server..."}
{"level":"error","ts":1599136974.0995114,"caller":"commands/server.go:81","msg":"listen tcp :8065: bind: address already in use"}
{"level":"info","ts":1599136974.0995543,"caller":"app/server.go:399","msg":"Stopping Server..."}
{"level":"info","ts":1599136974.099577,"caller":"app/web_hub.go:130","msg":"stopping websocket hub connections"}
{"level":"info","ts":1599136974.100627,"caller":"app/plugin.go:279","msg":"Shutting down plugins"}
{"level":"info","ts":1599136984.715638,"caller":"jobs/workers.go:184","msg":"Stopped workers"}
{"level":"info","ts":1599136984.7158954,"caller":"jobs/schedulers.go:145","msg":"Stopping schedulers."}
{"level":"info","ts":1599136984.7159712,"caller":"jobs/schedulers.go:77","msg":"Schedulers stopped."}
{"level":"info","ts":1599136984.7164176,"caller":"app/server.go:450","msg":"Server stopped"}
Error: listen tcp :8065: bind: address already in use
I think this is normal (8065 is the docker port?)
Removing and reinstalling doesnt solve the problem either.