Hello, i finished installing mattermost server on ssh server of my company.
and i confirmed the log text " the text Server is listening on :8065
" on my terminal after typing “sudo -u mattermost ./bin/mattermost”.
But when i type ‘sudo systemctl daemon-reload’ and ‘sudo systemctl status mattermost.service’, mattermost.service is not getting active with this error message below.
Loaded: loaded (/usr/lib/systemd/system/mattermost.service; enabled; vendor preset: disabled)
Active: inactive (dead)
May 25 15:41:05 localhost.localdomain systemd[1]: Dependency failed for Mattermost.
May 25 15:41:05 localhost.localdomain systemd[1]: mattermost.service: Job mattermost.service/start failed with result 'dependency'.
May 25 15:47:46 localhost.localdomain systemd[1]: Dependency failed for Mattermost.
May 25 15:47:46 localhost.localdomain systemd[1]: mattermost.service: Job mattermost.service/start failed with result 'dependency'.
May 25 15:47:53 localhost.localdomain systemd[1]: Dependency failed for Mattermost.
May 25 15:47:53 localhost.localdomain systemd[1]: mattermost.service: Job mattermost.service/start failed with result 'dependency'.
May 25 15:48:08 localhost.localdomain systemd[1]: Dependency failed for Mattermost.
May 25 15:48:08 localhost.localdomain systemd[1]: mattermost.service: Job mattermost.service/start failed with result 'dependency'.
May 25 15:52:21 localhost.localdomain systemd[1]: Dependency failed for Mattermost.
May 25 15:52:21 localhost.localdomain systemd[1]: mattermost.service: Job mattermost.service/start failed with result 'dependency'
Below is the response after i typed ‘sudo journalctl -xe’
-- The process /tmp/startup_script.sh could not be executed and failed.
--
-- The error number returned by this process is 13.
May 25 17:00:30 localhost.localdomain systemd[1]: mysql.service: Main process exited, code=exited, status=203/EXEC
May 25 17:00:30 localhost.localdomain systemd[1]: mysql.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- The unit mysql.service has entered the 'failed' state with result 'exit-code'.
May 25 17:00:30 localhost.localdomain systemd[1]: Failed to start Run my custom task at shutdown.
-- Subject: Unit mysql.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit mysql.service has failed.
--
-- The result is failed.
May 25 17:00:30 localhost.localdomain systemd[1]: Dependency failed for Mattermost.
-- Subject: Unit mattermost.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit mattermost.service has failed.
--
-- The result is dependency.
May 25 17:00:30 localhost.localdomain systemd[1]: mattermost.service: Job mattermost.service/start failed with result 'dependency'.
May 25 17:00:30 localhost.localdomain sudo[397381]: pam_unix(sudo:session): session closed for user root
May 25 17:01:01 localhost.localdomain CROND[397395]: (root) CMD (run-parts /etc/cron.hourly)
May 25 17:01:01 localhost.localdomain run-parts[397398]: (/etc/cron.hourly) starting 0anacron
May 25 17:01:01 localhost.localdomain run-parts[397404]: (/etc/cron.hourly) finished 0anacron
May 25 17:02:22 localhost.localdomain sudo[397426]: yunkyeong : TTY=pts/2 ; PWD=/opt/mattermost ; USER=mattermost ; COMMAND=/bin/mkdir -p /var/opt/mattermost/test
May 25 17:02:22 localhost.localdomain sudo[397426]: pam_systemd(sudo:session): Cannot create session: Already running in a session or user slice
May 25 17:02:22 localhost.localdomain sudo[397426]: pam_unix(sudo:session): session opened for user mattermost by root(uid=0)
May 25 17:02:22 localhost.localdomain sudo[397426]: pam_unix(sudo:session): session closed for user mattermost
May 25 17:04:44 localhost.localdomain sudo[397464]: yunkyeong : TTY=pts/2 ; PWD=/opt/mattermost ; USER=root ; COMMAND=/bin/journalctl -xe
May 25 17:04:44 localhost.localdomain sudo[397464]: pam_systemd(sudo:session): Cannot create session: Already running in a session or user slice
May 25 17:04:44 localhost.localdomain sudo[397464]: pam_unix(sudo:session): session opened for user root by root(uid=0)```
I wish I could start using Mattermost on the server.