-
Notifications
You must be signed in to change notification settings - Fork 14
FAQs & Troubleshooting
314pies edited this page May 30, 2023
·
62 revisions
My game server can't start (the game server keeps restarting and spamming messages in the Discord channel). How can I troubleshoot it?
If you see repeated messages in the Discord channel saying the server is on and off, this means MineCloud system service isn't able to start your game service by running start_server.sh
and is trying to restart the game server.
To troubleshoot it:
- Connect to the EC2 instance
- Run
sudo systemctl stop minecloud.service
to pause the service - Go to
/opt/minecloud/server
directory, runsudo ./start_server.sh
, and observe what happen - As long as you can start the server by running the
start_server.sh
script, the game server should spin up successfully on the machine start - When done, enable the service again by running
sudo systemctl start minecloud.service
You may want to checkout this AWS official tutorial :)
-
sudo chmod +x <ScriptName>.sh
: Add execution permission to a bash script. -
sudo ./<ScriptName>.sh
: Execute a bash script. - To fix files permission errors: Run
sudo su
to become a root user first and runchown -R ec2-user:ec2-user <Folder path>
to change the owner of the files in this folder. Once done, typeexit
to exit the root user mode. -
sed -i 's/\r// <FileName>
: To convert Windows's EoL (End of Line) characters to Linux's