vincss / mcsleepingserverstarter

Put your minecraft server to rest, while SleepingServerStarter is watching !
https://www.spigotmc.org/threads/put-your-server-to-rest-with-sleepingserverstarter.108828/
263 stars 47 forks source link

I keep getting "Address already in use" error when trying to start. #240

Closed RandomlyZay closed 5 months ago

RandomlyZay commented 8 months ago

I've been trying to setup MCSleepingServerStarter and when I run the executable, I get this error:

super@mc-server:/DATA/AppData/crafty/servers/e91db1db-7429-4966-b559-8fdd70156dd8$ ./mcsleepingserverstarter-linux-x64
2024-03-18 08:31:29 info: ................................ 
2024-03-18 08:31:29 info: ... A new story begin v1.9.1 ... 
2024-03-18 08:31:29 info: ................................ 
2024-03-18 08:31:30 info: Retrieved settings:{"serverName":"SleepingServer, waiting for his prince...","serverPort":25565,"maxPlayers":20,"loginMessage":"...Waking server up, come back in a minute...","serverOnlineMode":true,"startMinecraft":true,"minecraftCommand":"java -Xms1000M -Xmx8000M -jar fabric-1.19.2.jar nogui","restartDelay":5000,"version":false,"useWhitelistFile":false,"useBlacklistFiles":false,"useNativeFiles":false} 
2024-03-18 08:31:30 info: Retrieving whitelist entries from /DATA/AppData/crafty/servers/e91db1db-7429-4966-b559-8fdd70156dd8/whitelist.json 
2024-03-18 08:31:30 info: Retrieved whitelist entries:[] 
2024-03-18 08:31:30 info: Retrieving banned ips from /DATA/AppData/crafty/servers/e91db1db-7429-4966-b559-8fdd70156dd8/banned-ips.json 
2024-03-18 08:31:30 info: Retrieved banned ips:[] 
2024-03-18 08:31:30 info: Retrieving banned players from /DATA/AppData/crafty/servers/e91db1db-7429-4966-b559-8fdd70156dd8/banned-players.json 
2024-03-18 08:31:30 info: Retrieved banned players:[] 
2024-03-18 08:31:30 info: [Main] Waiting for 'quit' in CLI. 
2024-03-18 08:31:30 info: [McJava] Waiting for a Prince to come. [25565] 
2024-03-18 08:31:30 error: Something went wrong in wonderland listen EADDRINUSE: address already in use :::25565 
^C2024-03-18 08:31:32 info: [Main] SIGINT signal received. 
2024-03-18 08:31:32 info: [Container] Cleaning up the place. 
2024-03-18 08:31:32 info: [McJava] Closing 
2024-03-18 08:31:32 info: [McJava] Closed 
2024-03-18 08:31:32 info: [Main] ... To be continued ...

I'm only trying to run one Minecraft server and I'm using the default port of 25565. What am I doing wrong?

Additional details: Running CasaOS on Debian Bookworm. Server is managed through Crafty.

spanasiuk commented 8 months ago

Try sudo lsof -li :25565 to see if there's any other process running on that port

vincss commented 5 months ago

Hi, Is it solved ?