Summary
Mattermost do not go further than “Pinging SQL master database” on startup.
Steps to reproduce
Mattermost team 5.12.3 3.13.1
Ubuntu 18.04
Postgresql 10
config.json :
“SqlSettings”: {
“DriverName”: “postgres”,
“DataSource”: “postgres://mmuser:<my_password>@localhost:5432/mattermost?sslmode=disable&connect_timeout=10”,
I’ve tested db connection with :
psql --dbname=mattermost --username=mmuser --password
I’ve got access to db without any problem
Then I tried to start the server with :
sudo -u mattermost ./bin/mattermost
The last message is “Pinging SQL master database”
Here are the last logs for postgresql :
2019-07-23 09:27:06.537 CEST [17929] mmuser@mattermost ERROR: relation “idx_teams_description” does not exist
2019-07-23 09:27:06.537 CEST [17929] mmuser@mattermost STATEMENT: SELECT $1::regclass
2019-07-22 14:03:39.143 CEST [19023] mmuser@mattermost ERROR: duplicate key value violates unique constraint “users_username_key”
2019-07-22 14:03:39.143 CEST [19023] mmuser@mattermost DETAIL: Key (username)=(surveybot) already exists.
2019-07-22 14:03:39.143 CEST [19023] mmuser@mattermost STATEMENT:
insert into “users” (“id”,“createat”,“updateat”,“deleteat”,“username”,“password”,“authdata”,“authservice”,“email”,
“emailverified”,“nickname”,“firstname”,“lastname”,“position”,“roles”,“allowmarketing”,“props”,“notifyprops”,
“lastpasswordupdate”,“lastpictureupdate”,“failedattempts”,“locale”,“timezone”,“mfaactive”,“mfasecret”) values
($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,$15,$16,$17,$18,$19,$20,$21,$22,$23,$24,$25);
Expected behavior
The server should start or I should get an error.
Observed behavior
My server’s disk got full, so some sevices stopped working. I’ve clean my disk and restart all services but mattermost does not start anymore.
Update
I’ve upgraded to version 5.13.1 and the issue remains.