mattermost 起動エラー

実現したいこと

sudo systemctl start mattermost で起動したい

発生している問題・エラーメッセージ

"level":"error","msg":"Failed to ping DB","caller":"sqlstore/store.go:252","error":"pq: unsupported sslmode \"disable?connect_timeout=10\"; only \"require\" (default), \"verify-full\", \"verify-ca\", and \"disable\" supported","retrying in seconds":10}

上記のエラーは、「試したこと」の②を行い、「試したこと」の①で解消した。
しかし、「試したこと」③を実行すると、以下のエラーになる

Job for mattermost.service failed because the control process exited with error code. See "systemctl status mattermost.service" and "journalctl -xe" for details. sudo systemctl status mattermost Starting Mattermost... Main process exited, code=exited, status=203/EXEC Failed with result 'exit-code'. Failed to start Mattermost.

journalctl -xe でログを取得したのが以下

Jun 02 17:35:42 mattermost-inst systemd[1]: Starting Mattermost... -- Subject: Unit mattermost.service has begun start-up -- Defined-By: systemd -- Support: https://support.oracle.com -- -- Unit mattermost.service has begun starting up. Jun 02 17:35:42 mattermost-inst systemd[679600]: mattermost.service: Failed to execute command: Permission denied Jun 02 17:35:42 mattermost-inst systemd[679600]: mattermost.service: Failed at step EXEC spawning /opt/mattermost/bin/mattermost: Permission denied -- Subject: Process /opt/mattermost/bin/mattermost could not be executed -- Defined-By: systemd -- Support: https://support.oracle.com -- -- The process /opt/mattermost/bin/mattermost could not be executed and failed. -- -- The error number returned by this process is 13. Jun 02 17:35:42 mattermost-inst systemd[1]: mattermost.service: Main process exited, code=exited, status=203/EXEC Jun 02 17:35:42 mattermost-inst systemd[1]: mattermost.service: Failed with result 'exit-code'. -- Subject: Unit failed -- Defined-By: systemd -- Support: https://support.oracle.com -- -- The unit mattermost.service has entered the 'failed' state with result 'exit-code'. Jun 02 17:35:42 mattermost-inst systemd[1]: Failed to start Mattermost. -- Subject: Unit mattermost.service has failed -- Defined-By: systemd -- Support: https://support.oracle.com -- -- Unit mattermost.service has failed. -- -- The result is failed. Jun 02 17:35:42 mattermost-inst dbus-daemon[1453]: [system] Activating via systemd: service name='org.fedoraproject.Setroubleshootd' unit='setroubleshootd.service' requested by ':1.5577' (uid=0 pid=1402 comm="/usr/sbin/sedispatch " label="system_u:system_r:auditd_t:s0") Jun 02 17:35:42 mattermost-inst sudo[679596]: pam_unix(sudo:session): session closed for user root Jun 02 17:35:42 mattermost-inst systemd[1]: Starting SETroubleshoot daemon for processing new SELinux denial logs... -- Subject: Unit setroubleshootd.service has begun start-up -- Defined-By: systemd -- Support: https://support.oracle.com -- -- Unit setroubleshootd.service has begun starting up. Jun 02 17:35:42 mattermost-inst dbus-daemon[1453]: [system] Successfully activated service 'org.fedoraproject.Setroubleshootd' Jun 02 17:35:42 mattermost-inst systemd[1]: Started SETroubleshoot daemon for processing new SELinux denial logs. -- Subject: Unit setroubleshootd.service has finished start-up -- Defined-By: systemd -- Support: https://support.oracle.com -- -- Unit setroubleshootd.service has finished starting up.

該当のソースコード

"SqlSettings": { * "Drive name":"postgres" * "DataSource": "postgres://mmuser:password@localhost:5432/mattermost?sslmode=disable&connect_timeout=10",

試したこと

①sudo /opt/mattermost/bin/mattermost
直接実行したら、上記のエラーが表示されていることが分かった

②/opt/mattermost/config/config.json ファイルの "SqlSettings" セクションで、?sslmode=disable を消して保存した後、再度設定した

③sudo systemctl mattermost start

補足情報(FW/ツールのバージョンなど)

mattermost:Team Edition ver.7.8.6
DB : postgresql 10.23
OS : Oracle Linux 8

コメントを投稿

0 コメント