首页 > 解决方案 > 安装 Mattermost 服务器的问题

问题描述

每个人。

操作系统:Red Hat Enterprise Linux 7在同一台服务器上安装 mattermost v. 5.11.0 说明https://docs.mattermost.com/install/install-rhel-7.html#installing-postgresql-database postgresql V. 9.4。

文件 /opt/mattermost/config/config.json

"DriverName": "postgres",
"DataSource": "postgres://mmuser:12345678@localhost:5432/mattermost?sslmode=disable&connect_timeout=10",

文件 /var/lib/pgsql/9.4/data/pg_hba.conf

# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all trust
# IPv4 local connections:
host all all 127.0.0.1/32 ident
# IPv6 local connections:
host all all ::1/128 ident
# Allow replication connections from localhost, by a user with the
# replication privilege.
#local replication postgres peer
#host replication postgres 127.0.0.1/32 ident
#host replication postgres ::1/128 ident

在mattermost 服务器的安装阶段,当您运行第8 步“测试Mattermost 服务器以确保一切正常”时。命令后: sudo -u mattermost ./bin/mattermost 得到一个错误:

[root@srv-testserver mattermost]# sudo -u mattermost ./bin/mattermost
{"level":"info","ts":1558609830.586414,"caller":"utils/i18n.go:83","msg":"Loaded system translations for 'en' from '/opt/mattermost/i18n/en.json'"}
{"level":"info","ts":1558609830.5868208,"caller":"app/server_app_adapters.go:58","msg":"Server is initializing..."}
{"level":"info","ts":1558609830.5903602,"caller":"sqlstore/supplier.go:224","msg":"Pinging SQL master database"}
{"level":"error","ts":1558609830.6013992,"caller":"sqlstore/supplier.go:236","msg":"Failed to ping DB retrying in 10 seconds err=pq: Ident authentication failed for user \"mmuser\""}

请帮助建议

标签: serverinstallationmattermost

解决方案


推荐阅读