Skip to content

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, run sudo ./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

How can I setup a budget alarm?

You may want to checkout this AWS official tutorial :)

Useful Linux Commands

  • 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 run chown -R ec2-user:ec2-user <Folder path> to change the owner of the files in this folder. Once done, type exit to exit the root user mode.
  • sed -i 's/\r// <FileName>: To convert Windows's EoL (End of Line) characters to Linux's