Shell script won't run

OS Name/Version: Ubuntu 24.04.2 LTS

Product Name/Version: ?HP EliteDesk 705 G4 SFF

Problem Description: So I am currently trying to run ‘Craftoria’ which is a neoforge based modpack. Everytime that I create an instance and drag and drop the server files into the Minecraft folder, the ‘serverstart.sh’ (a shell script from ‘Craftoria’s’ server download) shell script is supposed to run and gather all of the required files for the modpack and put them into their respective directories (the shell script downloads a .jar file I believe that then does the rest). This does not work. I’ve done countless hours of research tyring to find ways that I can run the .sh file either manually or give AMP permission to run it(which it has I think), but none of the files are actually downloaded into the folder leading me to believe that this script isn’t running at all. I’m very new to all of this stuff so some pointers would be nice!

Steps to reproduce:

  • Create an Instance
  • Set server to correct neoforge version
  • Start server
  • Stop Server
  • Upload/extract ‘craftoria server’ version into ‘Minecraft’ folder
  • Start server

Actions taken to resolve so far: (created new instances each time as to not disturb other attempts to fix)
*Try to execute .sh manually through terminal
*Try to upload the mods themselves into ‘mods’ folder manually
*Try to give amp user permission to run .sh using 'chmod +x /path/to/the/.shfile
*Reproduced steps in a various number of ways hoping something would give.

Again any advice would be a lot of help, thanks!

AMP doesn’t use start scripts at all, it builds the start command from the version info you select in AMP.
You’ll want to run the script on your PC and upload those files to AMP, or use the amp Linux user to run the script.
sudo su -l amp
cd .ampdata/instances/TheInstanceName01/Minecraft
./serverstart.sh

There’s a guide here that goes over most install cases:
https://discourse.cubecoders.com/t/setting-up-a-modded-java-minecraft-server/26535

1 Like

I just read that post as you commented hahah, didn’t realize that was the case, thanks!

edit: This worked BEAUTIFULLY by the way! Thank you for the documentation, easy to navigate and understand! You are the man!

1 Like