Don't start mattermost service

Tell me pls, i don’t start a mattermost in my server. logs:

Sep 16 05:37:33 ubuntu-2gb-nbg1-2 systemd[1]: Starting Mattermost...
Sep 16 05:37:33 ubuntu-2gb-nbg1-2 systemd[26808]: mattermost.service: Changing to the requested working directory failed: No such file or directory
Sep 16 05:37:33 ubuntu-2gb-nbg1-2 systemd[26808]: mattermost.service: Failed at step CHDIR spawning /opt/mattermost/bin/mattermost: No such file or directory
Sep 16 05:37:33 ubuntu-2gb-nbg1-2 systemd[1]: mattermost.service: Main process exited, code=exited, status=200/CHDIR
Sep 16 05:37:33 ubuntu-2gb-nbg1-2 systemd[1]: mattermost.service: Failed with result 'exit-code'.
Sep 16 05:37:33 ubuntu-2gb-nbg1-2 systemd[1]: Failed to start Mattermost.

But directory is exist. What problem?

it could be permissions.

did you follow the install guide ?

https://docs.mattermost.com/guides/administrator.html#installing-mattermost

Hello, @vladislavklopota

On top of @Gavin’s suggestion, can you please share the output of the following command:

ls -lAh /opt/mattermost
ls -lAh /opt/mattermost/bin

Also, please share the content of your mattermost.service. Depending on where you set it up, it should be in /lib/systemd/system/mattermost.service in general.

cat /lib/systemd/system/mattermost.service

Let us know how it goes for you.