Hi all Nethserver fans!
Mattermost has just be updated, but cannot start anymore. I have the following:
systemctl status mattermost
● mattermost.service - Mattermost
Loaded: loaded (/usr/lib/systemd/system/mattermost.service; enabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Thu 2021-01-21 07:28:36 CET; 14s ago
Process: 8912 ExecStart=/opt/mattermost/bin/mattermost (code=exited, status=1/FAILURE)
Main PID: 8912 (code=exited, status=1/FAILURE)
Jan 21 07:28:35 #mysite# systemd[1]: mattermost.service failed.
Jan 21 07:28:36 #mysite# systemd[1]: mattermost.service holdoff time over, scheduling restart.
Jan 21 07:28:36 #mysite# systemd[1]: Stopped Mattermost.
Jan 21 07:28:36 #mysite# systemd[1]: start request repeated too quickly for mattermost.service
Jan 21 07:28:36 #mysite# systemd[1]: Failed to start Mattermost.
Jan 21 07:28:36 #mysite# systemd[1]: Unit mattermost.service entered failed state.
Jan 21 07:28:36 #mysite# systemd[1]: mattermost.service failed.
The database is running. For Mattermost, I have:
Jan 21 07:28:36 srv.vache.ovh systemd[1]: mattermost.service holdoff time over, scheduling restart.
Jan 21 07:28:36 srv.vache.ovh systemd[1]: Stopped Mattermost.
Jan 21 07:28:36 srv.vache.ovh systemd[1]: start request repeated too quickly for mattermost.service
Jan 21 07:28:36 srv.vache.ovh systemd[1]: Failed to start Mattermost.
Jan 21 07:28:36 srv.vache.ovh systemd[1]: Unit mattermost.service entered failed state.
Jan 21 07:28:36 srv.vache.ovh systemd[1]: mattermost.service failed.
I have this repeated:
{“level”:“error”,“ts”:1611209986.8674495,“caller”:“sqlstore/supplier.go:258”,“msg”:“Failed to ping DB”,“error”:“dial tcp 127.0.0.1:5432: connect: connection refused”,“retrying in seconds”:10}
Hm, it seems mattermost wants the postgresql db on port 5432 but postgresql 12 on Neth uses port 55434 so mattermost wasn’t correctly preconfigured.
Did you already try
signal-event nethserver-mattermost-update
to reconfigure mattermost?
Which version of mattermost do you use?
rpm -qa "*mattermost*"
Please recheck the DB settings in /opt/mattermost/config/config.json, they should look like this, the password is in /var/lib/nethserver/secrets/mattermost
nethserver-mattermost-1.6.1-1.ns7.x86_64
and
“SqlSettings”:{“MaxOpenConns”:300,“DriverName”:“postgres”,“QueryTimeout”:30,“ConnMaxLifetimeMilliseconds”:3600000,“DataSourceSearchReplicas”:[],“DisableDatabaseSearch”:false,“DataSource”:“postgres://mattuser:psw@localhost:55434/mattermost?sslmode=disable&connect_timeout=10”
I go for reconfiguration?
After reconfiguration:
Jan 21 16:59:30 srv.vache.ovh systemd[1]: Started Mattermost.
Jan 21 16:59:31 srv.vache.ovh systemd[1]: mattermost.service: main process exited, code=exited, status=1/FAILURE
Jan 21 16:59:31 srv.vache.ovh systemd[1]: Unit mattermost.service entered failed state.
Jan 21 16:59:31 srv.vache.ovh systemd[1]: mattermost.service failed.
Jan 21 16:59:31 srv.vache.ovh systemd[1]: mattermost.service holdoff time over, scheduling restart.
Jan 21 16:59:31 srv.vache.ovh systemd[1]: Stopped Mattermost.
Jan 21 16:59:31 srv.vache.ovh systemd[1]: start request repeated too quickly for mattermost.service
Jan 21 16:59:31 srv.vache.ovh systemd[1]: Failed to start Mattermost.
Jan 21 16:59:31 srv.vache.ovh systemd[1]: Unit mattermost.service entered failed state.
Jan 21 16:59:31 srv.vache.ovh systemd[1]: mattermost.service failed.
Error: failed to load configuration: failed to create store: unable to load on store creation: parsing error at line 1, character 13860: invalid character ‘a’ after top-level value