# \[solved\] Password authentication failed for user \\"mattermost\\""}

**URL:** <https://forum.mattermost.com/t/solved-password-authentication-failed-for-user-mattermost/7919>\
**Category:** Troubleshooting\
**Created:** [August 15, 2019, 9:53am UTC](https://forum.mattermost.com/t/solved-password-authentication-failed-for-user-mattermost/7919 "2019-08-15T09:53:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![krischeu](https://avatars.discourse-cdn.com/v4/letter/k/9dc877/32.png) [@krischeu](https://forum.mattermost.com/u/krischeu)\
**Post date:** [August 15, 2019, 9:53am UTC](https://forum.mattermost.com/t/solved-password-authentication-failed-for-user-mattermost/7919/1 "2019-08-15T09:53:56Z")

</div>

For troubleshooting questions, please post in the following format:

#### Summary

Fresh installation at Ubuntu 18.04.2 LTS 64 Bit  
Follow documantation at [https://docs.mattermost.com/install/install-ubuntu-1804.html?highlight=database%20installation#installing-ubuntu-server-18-04-lts](https://docs.mattermost.com/install/install-ubuntu-1804.html?highlight=database%20installation#installing-ubuntu-server-18-04-lts)  
Went trough everything. Till starting with sudo -u mattermost ./bin/mattermost

#### Steps to reproduce

Teamversion V5.13.02 with postgres

#### Error Output

root@mattermost:/opt/mattermost# sudo -u mattermost ./bin/mattermost  
{“level”:“info”,“ts”:1565862870.613147,“caller”:“utils/i18n.go:83”,“msg”:“Loaded system translations for ‘en’ from ‘/opt/mattermost/i18n/en.json’”}  
{“level”:“info”,“ts”:1565862870.6134565,“caller”:“app/server\_app\_adapters.go:58”,“msg”:“Server is initializing…”}  
{“level”:“info”,“ts”:1565862870.6159148,“caller”:“sqlstore/supplier.go:224”,“msg”:“Pinging SQL master database”}  
{“level”:“error”,“ts”:1565862870.6575272,“caller”:“sqlstore/supplier.go:236”,“msg”:“Failed to ping DB retrying in 10 seconds err=pq: password authentication failed for user “mattermost””}  
^C

#### config.json

```
"SqlSettings": {
    "DriverName": "postgres",
    "DataSource": "mmuser:secialPassowrdfromme@192.168.1.174:5432/mattermost?charset=utf8mb4,utf8\u0026readTimeout=30s\u0026writeTimeout=30s",

```

#### Expected behavior

normal startup.

---

<div class="post-metadata">

**Author:** ![krischeu](https://avatars.discourse-cdn.com/v4/letter/k/9dc877/32.png) [@krischeu](https://forum.mattermost.com/u/krischeu)\
**Post date:** [August 15, 2019, 10:17am UTC](https://forum.mattermost.com/t/solved-password-authentication-failed-for-user-mattermost/7919/2 "2019-08-15T10:17:10Z")

</div>

```
"SqlSettings": {
    "DriverName": "postgres",
    "DataSource": "postgres://mmuser:SEcurePassword@127.0.0.1:5432/mattermost?sslmode=disable&connect_timeout=10",

```

The description in the documentation fails (bug). This works for me …  
Second error tar -xvfz is not working at standard ubuntu installation. You have tu unzip file in the first step and than tar -xvf without z.

---

<div class="post-metadata">

**Author:** ![krischeu](https://avatars.discourse-cdn.com/v4/letter/k/9dc877/32.png) [@krischeu](https://forum.mattermost.com/u/krischeu)\
**Post date:** [August 15, 2019, 10:21am UTC](https://forum.mattermost.com/t/solved-password-authentication-failed-for-user-mattermost/7919/3 "2019-08-15T10:21:03Z")

</div>

domumentaiton is correct. It was a copy error
