Mongodb Permission denied error
I installed Countly Community Edition on a freshly installed Linux. It is installed in /root folder by default. And it works as expected after installation. But after restarting my server, mongodb doesn't run so, i can not use Countly. it says 'Forbidden Token' on webpage. When i try to run mongodb service by myself i encounter this error down below,
~$ sudo service mongod status
● mongod.service - High-performance, schema-free document-oriented database
Loaded: loaded (/etc/systemd/system/mongod.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2020-06-18 23:30:03 +03; 5min ago
Process: 4908 ExecStart=/bin/bash /root/countly/bin/commands/systemd/mongodb.sh (code=exited, status=126)
Main PID: 4908 (code=exited, status=126)
Haz 18 23:30:03 systemd: Started High-performance, schema-free document-oriented database.
Haz 18 23:30:03 bash: /bin/bash: /root/countly/bin/commands/systemd/mongodb.sh: Permission denied
Haz 18 23:30:03 systemd: mongod.service: Main process exited, code=exited, status=126/n/a
Haz 18 23:30:03 systemd: mongod.service: Failed with result 'exit-code'.
It seems mongodb.sh file can not start up because it is in root folder so, access is getting denied. How can i solve this problem, can you help me?