Solved ServerStart.bat/sh - "No such file"

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Nuc1eaR

New Member
Jul 29, 2019
2
0
0
Hey guys.​
I'll start the story at the beginning so it might be easier to follow.​
Yesterday at about 1:36 in the night my server crashed on me. Nothing to unusual, happens from time to time and normally a simple restart fixes it. So I connected to my server, navigated to the ServerStart.sh in the FTB directory, opened a screen session and tried to run it. But instead of starting up the server the following appeared:​
Code:
 -bash: /ServerStart.sh: No such file or directory
So i first checked the files chmod - nothing unusual there. Then i opened it up and it was empty - which is not how i left it.​
I checked my update from 1 day earlier and the file was fine there. So i decided to delete the version being in use and copyed the one from the backup and "chmod 0771" it as it was before.​
Here i noticed a difference. When before copying i "ls -l"ed my FTB folder that file would have a "-rwxrwx--x" signiture. When i do this now it says "-rwxrwx--t". I googled that (to my eyes) weird "t" and - as i understand - this is nothing bad. To be safe i "chmod"ed read- and write-rights for everyone as well on that file.​
So i thought i'm ready to go. I restarted the server again just to be sure. The following is what i typed in and the responses i got after reconnecting.​
(note: "..." stands for more listed files)​
Code:
    cd ..
    Nuc1eaR@dkoc:/$ cd mine*
    Nuc1eaR@dkoc:/minecraft-ftb$ ls -l
    total 33224
    ...
    -rwxrwxrwt  1 Nuc1eaR globaladmin      40 Mar 23 14:51 ServerStart.sh
    ...
    -rwxrwx--x  1 Nuc1eaR globaladmin  3457457 Feb 28 02:09 ftbserver.jar
    ...
    Nuc1eaR@dkoc:/minecraft-ftb$ /ServerStart.sh
    -bash: /ServerStart.sh: No such file or directory
    Nuc1eaR@dkoc:/minecraft-ftb$ nano ServerStart.sh
      GNU nano 2.2.4                                                    File: ServerStart.sh
   
    java -Xms512M -Xmx4G -jar ftbserver.jar

What OS are you running?
- Debian Squeeze 64Bit

Are you using minecraft hosting provider or a dedicated/local server not designed for minecraft?
- Dedicated server. (not designed for anything specific)

What version of FTB are you using? (Dont just say latest tell us the version)
- MindCrack Pack v8.2.0 /Minecraft v1.4.7 (/Launcher v1.2.4 [at my end])

Did you add any mods to the server pack?
- Neither added nor removed any mods.

What are your server specs?
- 8GB RAM, 160GB HD, 4GHz / 4 core CPU

A good detailed paragraph about the problem
- (Hopefully) See above.​
Why is that ServerStart.sh not recognized when i try to run it, but reacts normal in any other scenario?​
Thanks for your help!​
PS: ServerStart.sh and ServerStart.bat act exactly the same way.
 

NightB1ade

New Member
Jul 29, 2019
30
0
0
Don't you have to run the command:

./ServerStart.sh
Note the dot.

So that it references the current directory instead of root directory?
 

Nuc1eaR

New Member
Jul 29, 2019
2
0
0
If that is it, im gonna kick myself right in the butt!

Will keep u updated.

edit: DAMN ME!
I forgot the figgin' dot. Thank you!
Since i dont have to check on the server that often i keep forgetting the exact syntax :/
1 "." equals 3 hours of lifetime - brilliant.
Thanks again!