Summary
I am using mattermost on a Digital Ocean Droplet with a Digital Ocean managed postgresql database. I am unable to ping that database.
this is the sql settings for my config.json
"DriverName": "postgres",
"DataSource": "postgres://mmuser:mmuser_password@do-server:5432/mattermost-db?sslmode=require&connect_timeout=10",
Expected behavior
To connect sucessfully.
Observed behavior (that appears unintentional)
/opt/mattermost/bin/mattermost
{"level":"info","ts":1570992714.024181,"caller":"utils/i18n.go:83","msg":"Loaded system translations for 'en' from '/opt/mattermost/i18n/en.json'"}
{"level":"info","ts":1570992714.0245907,"caller":"app/server_app_adapters.go:58","msg":"Server is initializing..."}
{"level":"info","ts":1570992714.0294101,"caller":"sqlstore/supplier.go:224","msg":"Pinging SQL master database"}
{"level":"error","ts":1570992724.0300887,"caller":"sqlstore/supplier.go:236","msg":"Failed to ping DB retrying in 10 seconds err=dial tcp 159.65.176.240:25060: i/o timeout"}
{"level":"info","ts":1570992734.0304875,"caller":"sqlstore/supplier.go:224","msg":"Pinging SQL master database"}
{"level":"error","ts":1570992744.0311785,"caller":"sqlstore/supplier.go:236","msg":"Failed to ping DB retrying in 10 seconds err=dial tcp 159.65.176.240:25060: i/o timeout"}