mattermost broken in master
After !2814 (merged) was merged, mattermost is now throwing these errors:
==> /var/log/gitlab/mattermost/current <==
2018-11-16_17:49:57.59448 {"level":"info","ts":1542390597.5941513,"caller":"sqlstore/supplier.go:209","msg":"Pinging SQL master database"}
2018-11-16_17:49:57.59450 {"level":"error","ts":1542390597.594404,"caller":"sqlstore/supplier.go:221","msg":"Failed to ping DB retrying in 10 seconds err=dial tcp: lookup port=5432: no such host"}
==> /var/log/gitlab/mattermost/mattermost.log <==
{"level":"info","ts":1542390597.5941513,"caller":"sqlstore/supplier.go:209","msg":"Pinging SQL master database"}
{"level":"error","ts":1542390597.594404,"caller":"sqlstore/supplier.go:221","msg":"Failed to ping DB retrying in 10 seconds err=dial tcp: lookup port=5432: no such host"}
This is because the socket directory is not yet set during the mattermost parse phase: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/libraries/postgresql.rb#L76
cc\ @ibaum