Hi,
I am completing this setup.
I have chosen Postgres over mysql. I have chose postgres version 13. I have chosen MM version 5.31. I have installed the Postgres dB and the mattermost server both on the same machine.
When I complete step 9 of the “Install mattermost server on Rhel 7” I get the output below. Intros post I removed my actual ip address and substituted it with ip-address.
$ sudo -u mattermost ./bin/mattermost
{"level":"info","ts":1686718140.9781845,"caller":"utils/i18n.go:83","msg":"Loaded system translations for 'en' from '/opt/mattermost/i18n/en.json'"}
{"level":"info","ts":1686718140.9783003,"caller":"app/app.go:195","msg":"Server is initializing..."}
{"level":"info","ts":1686718140.9801776,"caller":"sqlstore/supplier.go:200","msg":"Pinging SQL master database"}
{"level":"error","ts":1686718140.980438,"caller":"sqlstore/supplier.go:212","msg":"Failed to ping DB retrying in 10 seconds err=dial tcp ip-address:5432: connect: connection refused"}
{"level":"info","ts":1686718150.9805777,"caller":"sqlstore/supplier.go:200","msg":"Pinging SQL master database"}
{"level":"error","ts":1686718150.9808686,"caller":"sqlstore/supplier.go:212","msg":"Failed to ping DB retrying in 10 seconds err=dial tcp ip-address:5432: connect: connection refused"}
However back in the “Install posgreSQL database” section step 18 tests that connect to the database with the correct credentials and it works.
$ psql --dbname=mattermost --username=mmuser --password
Password:
psql (13.11)
Type "help" for help.
mattermost=> \q
This is my first post in this forum and it is the first time I have looked to it for assistance. In fact It is the first time I have got my hands into a self hosting Mattermost process. I have seen some posts in this forum that describe similar issues. I have seen some answers but they don’t seem to align with my issue. For instance there was one regarding having special characters in the db user password could cause this issue. I have 3 special characters. However I see in the last example above I can connect to the database with that password.
Any assistance would be appreciated !
thanks,
Rochus