Mattermost service can't start

I have followed the document link to install Mattermost , but it can’t start the Mattermost server. Could you help me to solve the problems? I use CentOS Linux release 8.2.2004 (Core) , and I use the MySQL version 8, newest one. Please refer to the attachment of error message. Thank you.

Hi, @Ada

While we do not have an official installation guide for CentOS 8 (we have the documentation for CentOS 6 and 7), can you please confirm which document you referred to specifically?

Since you configured Mattermost to run as a service, can you share the content of the mattermost.service and the output of journalctl -xe? Thanks.

Depending on where mattermost.service lives, can you run a ls -lAh command on it? For example:

ahmaddanial@mattermost:~$ ls -lAh /lib/systemd/system/mattermost.service
-rwxr-xr-x 1 root root 325 Sep 11 13:10 /lib/systemd/system/mattermost.service

I use this link of document. https://docs.mattermost.com/install/install-rhel-7.html#installing-red-hat-enterprise-linux-7

Hello, @Ada

Got it. Can you share the information I asked earlier? Also, which database are you using?

Just want to see if we missed out on something based on the documentation before confirming if it is actually OS related.

I use MySQL 8.0.4 database. mattermost.service`content show as below:
[Unit]
Description=Mattermost
After=syslog.target network.target mysqld.service

[Service]
Type=notify
WorkingDirectory=/opt/mattermost
User=mattermost
ExecStart=/opt/mattermost/bin/mattermost
PIDFile=/var/spool/mattermost/pid/master.pid
TimeoutStartSec=3600
LimitNOFILE=49152

[Install]
WantedBy=multi-user.target

run a ls -lAh command display result as follow:
[root@localhost ~]# ls -lAh /etc/systemd/system/mattermost.service
-rw-rw-r–. 1 root root 315 Sep 11 10:31 /etc/systemd/system/mattermost.service

the output of journalctl -xe as follow:
[root@localhost ~]# journalctl -xe
Sep 14 11:25:49 localhost.localdomain org.gnome.Terminal.desktop[545259]: # wat>
Sep 14 11:25:49 localhost.localdomain org.gnome.Terminal.desktop[545259]: # wat>
Sep 14 11:25:49 localhost.localdomain org.gnome.Terminal.desktop[545259]: # wat>
Sep 14 11:25:49 localhost.localdomain org.gnome.Terminal.desktop[545259]: # wat>
Sep 14 11:25:49 localhost.localdomain org.gnome.Terminal.desktop[545259]: # wat>
Sep 14 11:25:49 localhost.localdomain org.gnome.Terminal.desktop[545259]: # wat>
Sep 14 11:25:49 localhost.localdomain org.gnome.Terminal.desktop[545259]: # wat>
Sep 14 11:25:49 localhost.localdomain org.gnome.Terminal.desktop[545259]: # unw>
Sep 14 11:25:49 localhost.localdomain org.gnome.Terminal.desktop[545259]: # wat>
Sep 14 11:28:27 localhost.localdomain systemd[1]: Starting Check PMIE instances>
– Subject: Unit pmie_check.service has begun start-up
– Defined-By: systemd
– Support: https://access.redhat.com/support

– Unit pmie_check.service has begun starting up.
Sep 14 11:28:27 localhost.localdomain systemd[1]: Started Check PMIE instances >
– Subject: Unit pmie_check.service has finished start-up
– Defined-By: systemd
– Support: https://access.redhat.com/support

– Unit pmie_check.service has finished starting up.

– The start-up result is done.

Hi, @Ada

Thanks for the update. The exit code (203) suggests the service failed to find the executable to run. Can you please confirm that /opt/mattermost/bin/mattermost actually exists?

Additionally, can you get the journalctl -u mattermost -f to show the last entries only for Mattermost?

Also, run the sestatus command as well and share the output. Thanks.

The /opt/mattermost/bin/mattermost is actually exists. Please refer to the attachment.


The result of journalctl -u mattermost -f to show the last entries only for Mattermost as follow:
– Logs begin at Thu 2020-09-10 18:13:12 HKT. –
Sep 11 10:44:49 localhost.localdomain systemd[1]: Starting Mattermost…
Sep 11 10:44:49 localhost.localdomain systemd[1]: mattermost.service: Main process exited, code=exited, status=203/EXEC
Sep 11 10:44:49 localhost.localdomain systemd[1]: mattermost.service: Failed with result ‘exit-code’.
Sep 11 10:44:49 localhost.localdomain systemd[1]: Failed to start Mattermost.
Sep 11 16:10:03 localhost.localdomain systemd[1]: Starting Mattermost…
Sep 11 16:10:03 localhost.localdomain systemd[1]: mattermost.service: Main process exited, code=exited, status=203/EXEC
Sep 11 16:10:03 localhost.localdomain systemd[1]: mattermost.service: Failed with result ‘exit-code’.
Sep 11 16:10:03 localhost.localdomain systemd[1]: Failed to start Mattermost.

The sestatus command show as follow:
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: enforcing
Mode from config file: enforcing
Policy MLS status: enabled
Policy deny_unknown status: allowed
Memory protection checking: actual (secure)
Max kernel policy version: 31

Hey, @Ada

Thanks for the update. Can you run these commands and provide the result?

sudo ls -lhaZ /opt/mattermost/bin
sudo grep -i "mattermost" /var/log/audit/audit.log | tail -n 50 

@ada To add a bit more to my answer, and you can ignore my above post. I actually tested your set up a bit as I haven’t used CentOS 8 with mm before and I was able to hit the same issue on a vanilla install of CentOS 8.

This seems to be related to SELinux as if you run the below commands Mattermost should start up just fine. Would you be able to confirm this?

vagrant@localhost mattermost]$ sudo setenforce 0
[vagrant@localhost mattermost]$ sudo systemctl start mattermost
[vagrant@localhost mattermost]$ sudo systemctl status mattermost
● mattermost.service - Mattermost
   Loaded: loaded (/etc/systemd/system/mattermost.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2020-09-15 21:07:08 UTC; 1min 2s ago
 Main PID: 35647 (mattermost)
    Tasks: 8 (limit: 2881)
   Memory: 61.3M
   CGroup: /system.slice/mattermost.service
           └─35647 /opt/mattermost/bin/mattermost

[removed for brevity] 
[vagrant@localhost mattermost]$ 
1 Like

Dear @ahmaddanial,
Thank you. Below is the output of sudo ls -lhaZ /opt/mattermost/bin and
sudo grep -i “mattermost” /var/log/audit/audit.log | tail -n 50.
[root@localhost ~]# sudo ls -lhaZ /opt/mattermost/bin
total 94M
drwxrwxr-x. 2 mattermost mattermost unconfined_u:object_r:admin_home_t:s0 53 Sep 4 10:07 .
drwxrwxr-x. 11 mattermost mattermost unconfined_u:object_r:admin_home_t:s0 211 Sep 8 19:38 …
-rwxrwxr-x. 1 mattermost mattermost unconfined_u:object_r:admin_home_t:s0 73M Sep 4 10:07 mattermost
-rwxrwxr-x. 1 mattermost mattermost unconfined_u:object_r:admin_home_t:s0 20M Aug 12 20:22 mmctl
-rwxrwxr-x. 1 mattermost mattermost unconfined_u:object_r:admin_home_t:s0 2.2M Sep 4 10:07 platform
[root@localhost ~]# sudo grep -i “mattermost” /var/log/audit/audit.log | tail -n 50
type=USER_CMD msg=audit(1599641114.336:298): pid=31778 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='cwd="/opt/mattermost" cmd="./bin/mattermost" exe="/usr/bin/sudo" terminal=pts/0 res=success’UID=“root” AUID=“root”
type=CRED_REFR msg=audit(1599641114.336:299): pid=31778 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:setcred grantors=pam_env,pam_fprintd acct=“mattermost” exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success’UID=“root” AUID=“root”
type=USER_START msg=audit(1599641114.339:300): pid=31778 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:session_open grantors=pam_keyinit,pam_limits,pam_systemd,pam_unix acct=“mattermost” exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success’UID=“root” AUID=“root”
type=USER_END msg=audit(1599641114.507:301): pid=31778 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:session_close grantors=pam_keyinit,pam_limits,pam_systemd,pam_unix acct=“mattermost” exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success’UID=“root” AUID=“root”
type=CRED_DISP msg=audit(1599641114.507:302): pid=31778 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:setcred grantors=pam_env,pam_fprintd acct=“mattermost” exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success’UID=“root” AUID=“root”
type=USER_CMD msg=audit(1599641192.377:304): pid=31889 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='cwd="/opt/mattermost" cmd="./bin/mattermost" exe="/usr/bin/sudo" terminal=pts/0 res=success’UID=“root” AUID=“root”
type=CRED_REFR msg=audit(1599641192.377:305): pid=31889 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:setcred grantors=pam_env,pam_fprintd acct=“mattermost” exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success’UID=“root” AUID=“root”
type=USER_START msg=audit(1599641192.379:306): pid=31889 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:session_open grantors=pam_keyinit,pam_limits,pam_systemd,pam_unix acct=“mattermost” exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success’UID=“root” AUID=“root”
type=USER_END msg=audit(1599641192.556:307): pid=31889 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:session_close grantors=pam_keyinit,pam_limits,pam_systemd,pam_unix acct=“mattermost” exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success’UID=“root” AUID=“root”
type=CRED_DISP msg=audit(1599641192.556:308): pid=31889 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:setcred grantors=pam_env,pam_fprintd acct=“mattermost” exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success’UID=“root” AUID=“root”
type=USER_CMD msg=audit(1599641230.553:312): pid=31952 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='cwd="/opt/mattermost" cmd="./bin/mattermost" exe="/usr/bin/sudo" terminal=pts/0 res=success’UID=“root” AUID=“root”
type=CRED_REFR msg=audit(1599641230.553:313): pid=31952 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:setcred grantors=pam_env,pam_fprintd acct=“mattermost” exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success’UID=“root” AUID=“root”
type=USER_START msg=audit(1599641230.555:314): pid=31952 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:session_open grantors=pam_keyinit,pam_limits,pam_systemd,pam_unix acct=“mattermost” exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success’UID=“root” AUID=“root”
type=USER_END msg=audit(1599641230.723:315): pid=31952 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:session_close grantors=pam_keyinit,pam_limits,pam_systemd,pam_unix acct=“mattermost” exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success’UID=“root” AUID=“root”
type=CRED_DISP msg=audit(1599641230.723:316): pid=31952 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:setcred grantors=pam_env,pam_fprintd acct=“mattermost” exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success’UID=“root” AUID=“root”
type=USER_CMD msg=audit(1599641311.062:318): pid=32067 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='cwd="/opt/mattermost" cmd="./bint/mattermost" exe="/usr/bin/sudo" terminal=pts/0 res=failed’UID=“root” AUID=“root”
type=USER_CMD msg=audit(1599641328.636:320): pid=32095 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='cwd="/opt/mattermost" cmd="./bin/mattermost" exe="/usr/bin/sudo" terminal=pts/0 res=success’UID=“root” AUID=“root”
type=CRED_REFR msg=audit(1599641328.636:321): pid=32095 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:setcred grantors=pam_env,pam_fprintd acct=“mattermost” exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success’UID=“root” AUID=“root”
type=USER_START msg=audit(1599641328.639:322): pid=32095 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:session_open grantors=pam_keyinit,pam_limits,pam_systemd,pam_unix acct=“mattermost” exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success’UID=“root” AUID=“root”
type=USER_END msg=audit(1599641328.806:323): pid=32095 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:session_close grantors=pam_keyinit,pam_limits,pam_systemd,pam_unix acct=“mattermost” exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success’UID=“root” AUID=“root”
type=CRED_DISP msg=audit(1599641328.806:324): pid=32095 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:setcred grantors=pam_env,pam_fprintd acct=“mattermost” exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success’UID=“root” AUID=“root”
type=USER_CMD msg=audit(1599641370.785:326): pid=32166 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='cwd="/opt/mattermost" cmd="./bin/mattermost" exe="/usr/bin/sudo" terminal=pts/0 res=success’UID=“root” AUID=“root”
type=CRED_REFR msg=audit(1599641370.785:327): pid=32166 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:setcred grantors=pam_env,pam_fprintd acct=“mattermost” exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success’UID=“root” AUID=“root”
type=USER_START msg=audit(1599641370.787:328): pid=32166 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:session_open grantors=pam_keyinit,pam_limits,pam_systemd,pam_unix acct=“mattermost” exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success’UID=“root” AUID=“root”
type=USER_END msg=audit(1599641541.975:331): pid=32166 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:session_close grantors=pam_keyinit,pam_limits,pam_systemd,pam_unix acct=“mattermost” exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success’UID=“root” AUID=“root”
type=CRED_DISP msg=audit(1599641541.975:332): pid=32166 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:setcred grantors=pam_env,pam_fprintd acct=“mattermost” exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success’UID=“root” AUID=“root”
type=USER_CMD msg=audit(1599642745.110:352): pid=34543 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='cwd="/opt/mattermost" cmd="./bin/mattermost" exe="/usr/bin/sudo" terminal=pts/0 res=success’UID=“root” AUID=“root”
type=CRED_REFR msg=audit(1599642745.110:353): pid=34543 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:setcred grantors=pam_env,pam_fprintd acct=“mattermost” exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success’UID=“root” AUID=“root”
type=USER_START msg=audit(1599642745.113:354): pid=34543 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:session_open grantors=pam_keyinit,pam_limits,pam_systemd,pam_unix acct=“mattermost” exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success’UID=“root” AUID=“root”
type=USER_END msg=audit(1599642916.297:356): pid=34543 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:session_close grantors=pam_keyinit,pam_limits,pam_systemd,pam_unix acct=“mattermost” exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success’UID=“root” AUID=“root”
type=CRED_DISP msg=audit(1599642916.297:357): pid=34543 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:setcred grantors=pam_env,pam_fprintd acct=“mattermost” exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success’UID=“root” AUID=“root”
type=USER_CMD msg=audit(1599647846.671:405): pid=42400 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='cwd="/opt/mattermost" cmd=2F6574632F696E69742E642F6D7973716C2073746F70 exe="/usr/bin/sudo" terminal=pts/0 res=failed’UID=“root” AUID=“root”
type=USER_CMD msg=audit(1599649147.481:423): pid=44677 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='cwd="/root" cmd=“bin/mattermost” exe="/usr/bin/sudo" terminal=pts/0 res=failed’UID=“root” AUID=“root”
type=USER_CMD msg=audit(1599649195.502:425): pid=44735 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='cwd="/root" cmd="./bin/mattermost" exe="/usr/bin/sudo" terminal=pts/0 res=failed’UID=“root” AUID=“root”
type=USER_CMD msg=audit(1599649230.456:429): pid=44790 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='cwd="/opt/mattermost" cmd=“bin/mattermost” exe="/usr/bin/sudo" terminal=pts/0 res=success’UID=“root” AUID=“root”
type=CRED_REFR msg=audit(1599649230.456:430): pid=44790 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:setcred grantors=pam_env,pam_fprintd acct=“mattermost” exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success’UID=“root” AUID=“root”
type=USER_START msg=audit(1599649230.459:431): pid=44790 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:session_open grantors=pam_keyinit,pam_limits,pam_systemd,pam_unix acct=“mattermost” exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success’UID=“root” AUID=“root”
type=USER_END msg=audit(1599650410.594:515): pid=44790 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:session_close grantors=pam_keyinit,pam_limits,pam_systemd,pam_unix acct=“mattermost” exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success’UID=“root” AUID=“root”
type=CRED_DISP msg=audit(1599650410.594:516): pid=44790 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:setcred grantors=pam_env,pam_fprintd acct=“mattermost” exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success’UID=“root” AUID=“root”
type=AVC msg=audit(1599792289.126:633): avc: denied { execute } for pid=117793 comm="(ttermost)" name=“mattermost” dev=“dm-0” ino=38650138 scontext=system_u:system_r:init_t:s0 tcontext=unconfined_u:object_r:admin_home_t:s0 tclass=file permissive=0
type=SERVICE_START msg=audit(1599792289.179:634): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=mattermost comm=“systemd” exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed’UID=“root” AUID=“unset”
type=AVC msg=audit(1599811803.768:878): avc: denied { execute } for pid=152210 comm="(ttermost)" name=“mattermost” dev=“dm-0” ino=38650138 scontext=system_u:system_r:init_t:s0 tcontext=unconfined_u:object_r:admin_home_t:s0 tclass=file permissive=0
type=SERVICE_START msg=audit(1599811803.769:879): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=mattermost comm=“systemd” exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed’UID=“root” AUID=“unset”
type=USER_CMD msg=audit(1599818552.293:988): pid=165420 uid=0 auid=0 ses=9 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='cwd="/opt/mattermost" cmd="./bin/mattermost" exe="/usr/bin/sudo" terminal=pts/0 res=success’UID=“root” AUID=“root”
type=CRED_REFR msg=audit(1599818552.293:989): pid=165420 uid=0 auid=0 ses=9 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:setcred grantors=pam_env,pam_fprintd acct=“mattermost” exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success’UID=“root” AUID=“root”
type=USER_START msg=audit(1599818552.295:990): pid=165420 uid=0 auid=0 ses=9 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:session_open grantors=pam_keyinit,pam_limits,pam_systemd,pam_unix acct=“mattermost” exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success’UID=“root” AUID=“root”
type=USER_END msg=audit(1599819622.675:1006): pid=165420 uid=0 auid=0 ses=9 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:session_close grantors=pam_keyinit,pam_limits,pam_systemd,pam_unix acct=“mattermost” exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success’UID=“root” AUID=“root”
type=CRED_DISP msg=audit(1599819622.675:1007): pid=165420 uid=0 auid=0 ses=9 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:setcred grantors=pam_env,pam_fprintd acct=“mattermost” exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success’UID=“root” AUID=“root”
type=AVC msg=audit(1600222119.798:3831): avc: denied { execute } for pid=831249 comm="(ttermost)" name=“mattermost” dev=“dm-0” ino=38650138 scontext=system_u:system_r:init_t:s0 tcontext=unconfined_u:object_r:admin_home_t:s0 tclass=file permissive=0
type=SERVICE_START msg=audit(1600222119.799:3832): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=mattermost comm=“systemd” exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed’UID=“root” AUID=“unset”

Dear @Colton,
I have tried the way which you provide to me to solve the problem, yet it cannot be successful. Please refer to below output:
[root@localhost ~]# sudo setenforce
usage: setenforce [ Enforcing | Permissive | 1 | 0 ]
[root@localhost ~]# sudo systemctl start mattermost
Job for mattermost.service failed because the control process exited with error code.
See “systemctl status mattermost.service” and “journalctl -xe” for details.
[root@localhost ~]# sudo systemctl status mattermost
● mattermost.service - Mattermost
Loaded: loaded (/etc/systemd/system/mattermost.service; enabled; vendor pres>
Active: failed (Result: exit-code) since Wed 2020-09-16 10:32:35 HKT; 39s ago
Process: 833872 ExecStart=/opt/mattermost/bin/mattermost (code=exited, status>
Main PID: 833872 (code=exited, status=203/EXEC)

Sep 16 10:32:35 localhost.localdomain systemd[1]: Starting Mattermost…
Sep 16 10:32:35 localhost.localdomain systemd[1]: mattermost.service: Main proc>
Sep 16 10:32:35 localhost.localdomain systemd[1]: mattermost.service: Failed wi>
Sep 16 10:32:35 localhost.localdomain systemd[1]: Failed to start Mattermost.
lines 1-10/10 (END)

@ada Thanks for sharing that output. In your command sudo setenforce it looks like you forgot to input a trailing 0 which would have set SELinux to passive mode.

However, if you choose to leave SELinux in active mode setting the bin_t for Mattermost seems to have resolved the problem on my local install. See the commands below.

[vagrant@localhost ~]$ sudo systemctl start mattermost
Job for mattermost.service failed because the control process exited with error code.
See "systemctl status mattermost.service" and "journalctl -xe" for details.
[vagrant@localhost ~]$ sudo semanage fcontext -a -t bin_t /opt/mattermost/bin/mattermost
[vagrant@localhost ~]$ sudo restorecon -R /opt/mattermost/bin
[vagrant@localhost ~]$ sudo systemctl start mattermost
[vagrant@localhost ~]$
1 Like

After change the web server, it can’t start Mattermost. Below is the output of journalctl -xe
[root@localhost ~]# journalctl -xe
– Defined-By: systemd
– Support: https://access.redhat.com/support

– Unit UNIT has finished starting up.

– The start-up result is done.
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # wa>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # wa>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # wa>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # wa>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # wa>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # wa>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # wa>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # wa>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # wa>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # wa>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # wa>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # wa>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # wa>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # wa>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # wa>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # un>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # wa>
lines 1803-1825/1825 (END)
– Defined-By: systemd
– Support: https://access.redhat.com/support

– Unit UNIT has finished starting up.

– The start-up result is done.
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # wat>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # wat>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # wat>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # wat>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # wat>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # wat>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # wat>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # wat>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # wat>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # wat>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # wat>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # wat>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # wat>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # wat>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # wat>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # unw>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # wat>
lines 1803-1825/1825 (END)
– Defined-By: systemd
– Support: https://access.redhat.com/support

– Unit UNIT has finished starting up.

– The start-up result is done.
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watc>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watc>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watc>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watc>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watc>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watc>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watc>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watc>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watc>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watc>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watc>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watc>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watc>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watc>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watc>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # unwa>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watc>
lines 1803-1825/1825 (END)
– Defined-By: systemd
– Support: https://access.redhat.com/support

– Unit UNIT has finished starting up.

– The start-up result is done.
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_f>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_f>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_f>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_f>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_f>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_f>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_f>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_e>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_e>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_e>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_e>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_e>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_e>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_e>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_f>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # unwatch>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_e>
lines 1803-1825/1825 (END)
– Defined-By: systemd
– Support: https://access.redhat.com/support

– Unit UNIT has finished starting up.

– The start-up result is done.
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fas>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fas>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fas>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fas>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fas>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fas>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fas>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_est>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_est>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_est>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_est>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_est>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_est>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_est>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fas>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # unwatch_f>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_est>
lines 1803-1825/1825 (END)
– Defined-By: systemd
– Support: https://access.redhat.com/support

– Unit UNIT has finished starting up.

– The start-up result is done.
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast:>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast:>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast:>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast:>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast:>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast:>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast:>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_estab>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_estab>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_estab>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_estab>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_estab>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_estab>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_estab>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast:>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # unwatch_fas>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_estab>
lines 1803-1825/1825 (END)
– Defined-By: systemd
– Support: https://access.redhat.com/support

– Unit UNIT has finished starting up.

– The start-up result is done.
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/or>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/or>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/or>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/or>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/or>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/or>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/or>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_establishe>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_establishe>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_establishe>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_establishe>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_establishe>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_establishe>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_establishe>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/or>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # unwatch_fast: "/>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_establishe>
lines 1803-1825/1825 (END)
– Defined-By: systemd
– Support: https://access.redhat.com/support

– Unit UNIT has finished starting up.

– The start-up result is done.
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/g>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/g>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/g>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/g>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/g>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/g>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/g>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: >
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: >
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: >
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: >
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: >
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: >
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: >
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/g>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # unwatch_fast: "/org>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: >
lines 1803-1825/1825 (END)
– Defined-By: systemd
– Support: https://access.redhat.com/support

– Unit UNIT has finished starting up.

– The start-up result is done.
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnom>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnom>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnom>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnom>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnom>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnom>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnom>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/o>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/o>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/o>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/o>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/o>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/o>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/o>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnom>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # unwatch_fast: "/org/gn>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/o>
lines 1803-1825/1825 (END)
– Defined-By: systemd
– Support: https://access.redhat.com/support

– Unit UNIT has finished starting up.

– The start-up result is done.
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/d>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/s>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/d>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/d>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/d>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/s>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/d>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/t>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # unwatch_fast: "/org/gnome>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/>
lines 1803-1825/1825 (END)
– Defined-By: systemd
– Support: https://access.redhat.com/support

– Unit UNIT has finished starting up.

– The start-up result is done.
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/des>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/set>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/des>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/des>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/des>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/set>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/des>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gn>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gn>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gn>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gn>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gn>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gn>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gn>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/ter>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # unwatch_fast: "/org/gnome/t>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gn>
lines 1803-1825/1825 (END)
– Defined-By: systemd
– Support: https://access.redhat.com/support

– Unit UNIT has finished starting up.

– The start-up result is done.
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/deskt>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/setti>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/deskt>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/deskt>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/deskt>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/setti>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/deskt>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnom>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnom>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnom>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnom>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnom>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnom>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnom>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/termi>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # unwatch_fast: "/org/gnome/ter>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnom>
lines 1803-1825/1825 (END)
– Defined-By: systemd
– Support: https://access.redhat.com/support

– Unit UNIT has finished starting up.

– The start-up result is done.
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/desktop>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/setting>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/desktop>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/desktop>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/desktop>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/setting>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/desktop>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnome/>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnome/>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnome/>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnome/>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnome/>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnome/>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnome/>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/termina>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # unwatch_fast: "/org/gnome/termi>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnome/>
lines 1803-1825/1825 (END)
– Defined-By: systemd
– Support: https://access.redhat.com/support

– Unit UNIT has finished starting up.

– The start-up result is done.
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/desktop/i>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/settings->
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/desktop/s>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/desktop/p>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/desktop/w>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/settings->
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/desktop/a>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnome/de>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnome/se>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnome/de>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnome/de>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnome/de>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnome/se>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnome/de>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/terminal/>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # unwatch_fast: "/org/gnome/termina>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnome/te>
lines 1803-1825/1825 (END)
– Defined-By: systemd
– Support: https://access.redhat.com/support

– Unit UNIT has finished starting up.

– The start-up result is done.
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/desktop/int>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/settings-da>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/desktop/sou>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/desktop/pri>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/desktop/wm/>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/settings-da>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/desktop/a11>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnome/desk>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnome/sett>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnome/desk>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnome/desk>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnome/desk>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnome/sett>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnome/desk>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/terminal/le>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # unwatch_fast: "/org/gnome/terminal/>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnome/term>
lines 1803-1825/1825 (END)
– Defined-By: systemd
– Support: https://access.redhat.com/support

– Unit UNIT has finished starting up.

– The start-up result is done.
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/desktop/inte>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/settings-dae>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/desktop/soun>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/desktop/priv>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/desktop/wm/p>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/settings-dae>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/desktop/a11y>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnome/deskt>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnome/setti>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnome/deskt>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnome/deskt>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnome/deskt>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnome/setti>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnome/deskt>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_fast: "/org/gnome/terminal/leg>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # unwatch_fast: "/org/gnome/terminal/l>
Sep 17 16:38:20 localhost.localdomain org.gnome.Terminal.desktop[1018131]: # watch_established: "/org/gnome/termi>
lines 1803-1825/1825 (END)
– Defined-By: systemd
– Support: https://access.redhat.com/support

Below is the output of systemctl status mattermost.service:
● mattermost.service - Mattermost
Loaded: loaded (/etc/systemd/system/mattermost.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2020-09-17 16:05:28 HKT; 46min ago
Process: 1014897 ExecStart=/opt/mattermost/bin/mattermost (code=exited, status=1/FAILURE)
Main PID: 1014897 (code=exited, status=1/FAILURE)

Sep 17 16:05:28 localhost.localdomain mattermost[1014897]: version Display version information
Sep 17 16:05:28 localhost.localdomain mattermost[1014897]: webhook Management of webhooks
Sep 17 16:05:28 localhost.localdomain mattermost[1014897]: Flags:
Sep 17 16:05:28 localhost.localdomain mattermost[1014897]: -c, --config string Configuration file to use. (default “config.json”)
Sep 17 16:05:28 localhost.localdomain mattermost[1014897]: --disableconfigwatch When set config.json will not be loaded from disk when the file is changed.
Sep 17 16:05:28 localhost.localdomain mattermost[1014897]: -h, --help help for mattermost
Sep 17 16:05:28 localhost.localdomain mattermost[1014897]: Use “mattermost [command] --help” for more information about a command.
Sep 17 16:05:28 localhost.localdomain systemd[1]: mattermost.service: Main process exited, code=exited, status=1/FAILURE
Sep 17 16:05:28 localhost.localdomain systemd[1]: mattermost.service: Failed with result ‘exit-code’.
Sep 17 16:05:28 localhost.localdomain systemd[1]: Failed to start Mattermost.
~
~
~
~
~
~
~
lines 1-16/16 (END)

@ada I talked with @ahmaddanial about what you’re seeing and it looks like we’ve moved beyond a SELinux problem and more into a problem with your config.json file. Do you mind sharing your config.json file here and redact any sensitive information? Or you can message it to me here on the forum.

Thanks!

I just follow the link (https://docs.mattermost.com/install/install-rhel-7.html#configuring-tls-on-mattermost-server)to Configure TLS on the Mattermost Server, in order to connect SMTP server. Please refer to below image. Then, I can’t connect Mattermost (http://127.0.0.1:8065/signup_email).
c92de92d17e0382ac67554eeb7429cddcc7eb21d_2_690x368
Below is the content of config.json file:
{
“ServiceSettings”: {
“SiteURL”: “wonderfuldata.com:8341”,
“WebsocketURL”: “”,
“LicenseFileLocation”: “”,
“ListenAddress”: “:8065”,
“ConnectionSecurity”: “None”,
“TLSCertFile”: “”,
“TLSKeyFile”: “”,
“TLSMinVer”: “1.2”,
“TLSStrictTransport”: false,
“TLSStrictTransportMaxAge”: 63072000,
“TLSOverwriteCiphers”: ,
“UseLetsEncrypt”: true,
“LetsEncryptCertificateCacheFile”: “./config/letsencrypt.cache”,
“Forward80To443”: true,
“TrustedProxyIPHeader”: ,
“ReadTimeout”: 300,
“WriteTimeout”: 300,
“IdleTimeout”: 60,
“MaximumLoginAttempts”: 10,
“GoroutineHealthThreshold”: -1,
“GoogleDeveloperKey”: “”,
“EnableOAuthServiceProvider”: false,
“EnableIncomingWebhooks”: true,
“EnableOutgoingWebhooks”: true,
“EnableCommands”: true,
“EnableOnlyAdminIntegrations”: true,
“EnablePostUsernameOverride”: false,
“EnablePostIconOverride”: false,
“EnableLinkPreviews”: true,
“EnableTesting”: false,
“EnableDeveloper”: false,
“EnableOpenTracing”: false,
“EnableSecurityFixAlert”: true,
“EnableInsecureOutgoingConnections”: false,
“AllowedUntrustedInternalConnections”: “”,
“EnableMultifactorAuthentication”: false,
“EnforceMultifactorAuthentication”: false,
“EnableUserAccessTokens”: false,
“AllowCorsFrom”: “”,
“CorsExposedHeaders”: “”,
“CorsAllowCredentials”: false,
“CorsDebug”: false,
“AllowCookiesForSubdomains”: false,
“ExtendSessionLengthWithActivity”: true,
“SessionLengthWebInDays”: 30,
“SessionLengthMobileInDays”: 30,
“SessionLengthSSOInDays”: 30,
“SessionCacheInMinutes”: 10,
“SessionIdleTimeoutInMinutes”: 43200,
“WebsocketSecurePort”: 443,
“WebsocketPort”: 80,
“WebserverMode”: “gzip”,
“EnableCustomEmoji”: false,
“EnableEmojiPicker”: true,
“EnableGifPicker”: false,
“GfycatApiKey”: “2_KtH_W5”,
“GfycatApiSecret”: “3wLVZPiswc3DnaiaFoLkDvB4X0IV6CpMkj4tf2inJRsBY6-FnkT08zGmppWFgeof”,
“RestrictCustomEmojiCreation”: “all”,
“RestrictPostDelete”: “all”,
“AllowEditPost”: “always”,
“PostEditTimeLimit”: -1,
“TimeBetweenUserTypingUpdatesMilliseconds”: 5000,
“EnablePostSearch”: true,
“MinimumHashtagLength”: 3,
“EnableUserTypingMessages”: true,
“EnableChannelViewedMessages”: true,
“EnableUserStatuses”: true,
“ExperimentalEnableAuthenticationTransfer”: true,
“ClusterLogTimeoutMilliseconds”: 2000,
“CloseUnusedDirectMessages”: false,
“EnablePreviewFeatures”: true,
“EnableTutorial”: true,
“ExperimentalEnableDefaultChannelLeaveJoinMessages”: true,
“ExperimentalGroupUnreadChannels”: “disabled”,
“ExperimentalChannelOrganization”: false,
“ExperimentalChannelSidebarOrganization”: “disabled”,
“ExperimentalDataPrefetch”: true,
“ImageProxyType”: “”,
“ImageProxyURL”: “”,
“ImageProxyOptions”: “”,
“EnableAPITeamDeletion”: false,
“ExperimentalEnableHardenedMode”: false,
“DisableLegacyMFA”: true,
“ExperimentalStrictCSRFEnforcement”: false,
“EnableEmailInvitations”: false,
“DisableBotsWhenOwnerIsDeactivated”: true,
“EnableBotAccountCreation”: false,
“EnableSVGs”: false,
“EnableLatex”: false,
“EnableLocalMode”: false,
“LocalModeSocketLocation”: “/var/tmp/mattermost_local.socket”
},
“TeamSettings”: {
“SiteName”: “Mattermost”,
“MaxUsersPerTeam”: 50,
“EnableTeamCreation”: true,
“EnableUserCreation”: true,
“EnableOpenServer”: false,
“EnableUserDeactivation”: false,
“RestrictCreationToDomains”: “”,
“EnableCustomBrand”: false,
“CustomBrandText”: “”,
“CustomDescriptionText”: “”,
“RestrictDirectMessage”: “any”,
“RestrictTeamInvite”: “all”,
“RestrictPublicChannelManagement”: “all”,
“RestrictPrivateChannelManagement”: “all”,
“RestrictPublicChannelCreation”: “all”,
“RestrictPrivateChannelCreation”: “all”,
“RestrictPublicChannelDeletion”: “all”,
“RestrictPrivateChannelDeletion”: “all”,
“RestrictPrivateChannelManageMembers”: “all”,
“EnableXToLeaveChannelsFromLHS”: false,
“UserStatusAwayTimeout”: 300,
“MaxChannelsPerTeam”: 2000,
“MaxNotificationsPerChannel”: 1000000,
“EnableConfirmNotificationsToChannel”: true,
“TeammateNameDisplay”: “username”,
“ExperimentalViewArchivedChannels”: false,
“ExperimentalEnableAutomaticReplies”: false,
“ExperimentalHideTownSquareinLHS”: false,
“ExperimentalTownSquareIsReadOnly”: false,
“LockTeammateNameDisplay”: false,
“ExperimentalPrimaryTeam”: “”,
“ExperimentalDefaultChannels”:
},
“ClientRequirements”: {
“AndroidLatestVersion”: “”,
“AndroidMinVersion”: “”,
“DesktopLatestVersion”: “”,
“DesktopMinVersion”: “”,
“IosLatestVersion”: “”,
“IosMinVersion”: “”
},
“SqlSettings”: {
“DriverName”: “mysql”,
“DataSource”: “mmuser:Wonderful1234#@tcp(127.0.0.1:3306)/mattermost?charset=utf8mb4,utf8\u0026readTimeout=30s\u0026writeTimeout=30s”,
“DataSourceReplicas”: ,
“DataSourceSearchReplicas”: ,
“MaxIdleConns”: 20,
“ConnMaxLifetimeMilliseconds”: 3600000,
“MaxOpenConns”: 300,
“Trace”: false,
“AtRestEncryptKey”: “1mg9ew5rz9oswuyh5fmi1zdi8q76zw5j”,
“QueryTimeout”: 30,
“DisableDatabaseSearch”: false
},
“LogSettings”: {
“EnableConsole”: true,
“ConsoleLevel”: “INFO”,
“ConsoleJson”: true,
“EnableFile”: true,
“FileLevel”: “INFO”,
“FileJson”: true,
“FileLocation”: “”,
“EnableWebhookDebugging”: true,
“EnableDiagnostics”: true,
“EnableSentry”: true,
“AdvancedLoggingConfig”: “”
},
“ExperimentalAuditSettings”: {
“SysLogEnabled”: false,
“SysLogIP”: “localhost”,
“SysLogPort”: 6514,
“SysLogTag”: “”,
“SysLogCert”: “”,
“SysLogInsecure”: false,
“SysLogMaxQueueSize”: 1000,
“FileEnabled”: false,
“FileName”: “”,
“FileMaxSizeMB”: 100,
“FileMaxAgeDays”: 0,
“FileMaxBackups”: 0,
“FileCompress”: false,
“FileMaxQueueSize”: 1000
},
“NotificationLogSettings”: {
“EnableConsole”: true,
“ConsoleLevel”: “INFO”,
“ConsoleJson”: true,
“EnableFile”: true,
“FileLevel”: “INFO”,
“FileJson”: true,
“FileLocation”: “”
},
“PasswordSettings”: {
“MinimumLength”: 10,
“Lowercase”: true,
“Number”: true,
“Uppercase”: true,
“Symbol”: true
},
“FileSettings”: {
“EnableFileAttachments”: true,
“EnableMobileUpload”: true,
“EnableMobileDownload”: true,
“MaxFileSize”: 52428800,
“DriverName”: “local”,
“Directory”: “./data/”,
“EnablePublicLink”: false,
“PublicLinkSalt”: “wba31g347jmonoeea96yk3r9mbzmxaca”,
“InitialFont”: “nunito-bold.ttf”,
“AmazonS3AccessKeyId”: “”,
“AmazonS3SecretAccessKey”: “”,
“AmazonS3Bucket”: “”,
“AmazonS3PathPrefix”: “”,
“AmazonS3Region”: “”,
“AmazonS3Endpoint”: “s3.amazonaws.com”,
“AmazonS3SSL”: true,
“AmazonS3SignV2”: false,
“AmazonS3SSE”: false,
“AmazonS3Trace”: false
},
“EmailSettings”: {
“EnableSignUpWithEmail”: true,
“EnableSignInWithEmail”: true,
“EnableSignInWithUsername”: true,
“SendEmailNotifications”: true,
“UseChannelInEmailNotifications”: false,
“RequireEmailVerification”: false,
“FeedbackName”: “No-Reply”,
“FeedbackEmail”: “xx@example.com”,
“ReplyToAddress”: “xx@example.com”,
“FeedbackOrganization”: “”,
“EnableSMTPAuth”: true,
“SMTPUsername”: “xx@example.com”,
“SMTPPassword”: “xxxxx”,
“SMTPServer”: “xx.example.com”,
“SMTPPort”: “25”,
“SMTPServerTimeout”: 10,
“ConnectionSecurity”: “STARTTLS”,
“SendPushNotifications”: true,
“PushNotificationServer”: “https://push-test.mattermost.com”,
“PushNotificationContents”: “full”,
“PushNotificationBuffer”: 1000,
“EnableEmailBatching”: false,
“EmailBatchingBufferSize”: 256,
“EmailBatchingInterval”: 30,
“EnablePreviewModeBanner”: false,
“SkipServerCertificateVerification”: false,
“EmailNotificationContentsType”: “full”,
“LoginButtonColor”: “#0000”,
“LoginButtonBorderColor”: “#2389D7”,
“LoginButtonTextColor”: “#2389D7
},
“RateLimitSettings”: {
“Enable”: false,
“PerSec”: 10,
“MaxBurst”: 100,
“MemoryStoreSize”: 10000,
“VaryByRemoteAddr”: true,
“VaryByUser”: false,

I would like to ask that could you receive my reply?

@ada, Thanks for replying with that information. This is most likely a configuration problem with how you’ve set up the TLS. I see that you have wonderfuldata.com:8431 as your siteURL. This looks like it could be a misconfiguration. Adjust this to a subdomain of a FQDN and point it to the mattermost server itself.

I would also encourage you to look at utilizing the NGINX configuration as it’s more scalable.

I would like to ask how to adjust this to a subdomain of a FQDN and point it to the mattermost server itself? Please show in details. Thank you.

I would like to ask that could you receive my reply?