Mattermost fails to start after virtual host name change

Hi all

I’m currently using Mattermost on NS7 and today I change the virtual hostname from
chat.mydomain.com
to
mattermost.mydomain.com

[root@nethserver ~]# tail /var/log/messages
Jul  4 12:16:37 nethserver systemd: mattermost.service failed.
Jul  4 12:16:38 nethserver systemd: mattermost.service holdoff time over, scheduling restart.
Jul  4 12:16:38 nethserver systemd: Stopped Mattermost.
Jul  4 12:16:38 nethserver systemd: Started Mattermost.
Jul  4 12:16:40 nethserver systemd: mattermost.service: main process exited, code=exited, status=1/FAILURE
Jul  4 12:16:40 nethserver systemd: Unit mattermost.service entered failed state.
Jul  4 12:16:40 nethserver systemd: mattermost.service failed.
Jul  4 12:16:40 nethserver systemd: mattermost.service holdoff time over, scheduling restart.
Jul  4 12:16:40 nethserver systemd: Stopped Mattermost.
Jul  4 12:16:40 nethserver systemd: Started Mattermost.
[root@nethserver logs]# tail mattermost.log

{"timestamp":"2024-07-04 12:18:58.625 Z","level":"info","msg":"Current version is 8.1.7 (7025434773/Tue Nov 28 22:49:35 UTC 2023/77aeda5cedc8ef60d06da024202b8c7999efd671/e33941bd63a35f71153c8035608dd8904d1bf305)","caller":"app/server.go:426","current_version":"8.1.7","build_number":"7025434773","build_date":"Tue Nov 28 22:49:35 UTC 2023","build_hash":"77aeda5cedc8ef60d06da024202b8c7999efd671","build_hash_enterprise":"e33941bd63a35f71153c8035608dd8904d1bf305","service_environment":"production"}

{"timestamp":"2024-07-04 12:18:58.625 Z","level":"info","msg":"Enterprise Build","caller":"app/server.go:436","enterprise_build":true}

{"timestamp":"2024-07-04 12:18:58.625 Z","level":"info","msg":"Printing current working","caller":"app/server.go:442","directory":"/opt/mattermost"}

{"timestamp":"2024-07-04 12:18:58.625 Z","level":"info","msg":"Loaded config","caller":"app/server.go:443","source":"file:///opt/mattermost/config/config.json"}

{"timestamp":"2024-07-04 12:18:58.628 Z","level":"info","msg":"Starting workers","caller":"jobs/workers.go:48"}

{"timestamp":"2024-07-04 12:18:58.629 Z","level":"info","msg":"Starting schedulers.","caller":"jobs/schedulers.go:47"}

{"timestamp":"2024-07-04 12:18:58.635 Z","level":"error","msg":"License key from https://mattermost.com required to unlock enterprise features.","caller":"platform/license.go:102","error":"resource: License id: "}

{"timestamp":"2024-07-04 12:18:58.653 Z","level":"info","msg":"Skipping triggering Elasticsearch channel index fix job as build is not Enterprise ready","caller":"app/migrations.go:564"}

{"timestamp":"2024-07-04 12:18:58.683 Z","level":"info","msg":"Starting up plugins","caller":"app/plugin.go:213"}

{"timestamp":"2024-07-04 12:18:58.683 Z","level":"info","msg":"Syncing plugins from the file store","caller":"app/plugin.go:293"}

anyone else experienced this when changing virtual hostname of mattermost?

NethServer Version: 7.9.2009
Module: Mattermost 1.8.22

I just did an uninstalled and reinstalled and now I can access it on the new virtual hostname. All content remained toom database wasnt not removed during the uninstall

1 Like