mattermost / mattermost-omnibus

A simple way to install Mattermost.
https://mattermost.com
22 stars 20 forks source link

systemd service file After setting #113

Closed axu-trex closed 1 month ago

axu-trex commented 2 months ago

Summary

The mattermost service might get started before network is ready. If mattermost tries to bind a network socket to a specific IPv6 address, it may randomly fail as that address might not exist on any interface yet.

Expected behavior

The /lib/systemd/system/mattermost.service file shipped for Ubuntu should have the line After=network-online.target.

Observed behavior (that appears unintentional)

The /lib/systemd/system/mattermost.service file shipped for ubuntu has the line After=network.target.

More information

https://systemd.io/NETWORK_ONLINE/

amyblais commented 2 months ago

Hi @axu-trex, what Mattermost server version are you on?

axu-trex commented 2 months ago

Mattermost Version: 9.9.0 Database Schema Version: 121 Build Number: 9307585135 Database: postgres

amyblais commented 2 months ago

Opened https://mattermost.atlassian.net/browse/MM-59384.

agnivade commented 1 month ago

Hi @axu-trex - I transferred your issue to the right repo. Would you be open to create a PR for this?

The files are https://github.com/mattermost/mattermost-omnibus/blob/09513a8e563bc885ca4a76ce4ccd4fa66410c2d9/mattermost/files/mattermost.service and https://github.com/mattermost/mattermost-omnibus/blob/09513a8e563bc885ca4a76ce4ccd4fa66410c2d9/mmomni/ansible/playbooks/mattermost.service

axu-trex commented 1 month ago

Almost forgot about this after my summer holiday. I've now created a pull request: https://github.com/mattermost/mattermost-omnibus/pull/114