Server does not start
Coernel82 opened this issue · 2 comments
With a rapsberry Pi 3B+ starting the server with ./start.sh results in Updating to most recent paperclip version ... which is 95 and then seemingly starting the server.
screen -r minecraft results in "There is no screen to be resumed matching minecraft".
This is an endless loop. ./fixpermissions.sh does not help ./update does not help either.
Screen output of ./update.sh
pi@raspberrypi:~/minecraft $ ./update.sh
./update.sh: 8: [[: not found
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 17647 100 17647 0 0 58627 0 --:--:-- --:--:-- --:--:-- 58823
Minecraft Server installation script by James A. Chambers - https://jamesachambers.com/
Version 1.18.1 will be installed. To change this, open SetupMinecraft.sh and change the "Version" variable to the version you want to install.
Latest version is always available at https://github.com/TheRemote/RaspberryPiMinecraft
Don't forget to set up port forwarding on your router! The default port is 25565
Installing screen, sudo, net-tools, curl...
Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
curl is already the newest version (7.74.0-1.3+deb11u1).
screen is already the newest version (4.8.0-6).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
net-tools is already the newest version (1.60+git20181103.0eebece-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Installing latest Java OpenJDK...
OpenJDK installation completed.
Java installed successfully
Enter root directory path to install Minecraft server. Almost nobody should change this unless you're installing to a different disk altogether. (default ~):
Directory Path: ~
Directory Path : ~ -- accept (y/n)?y
Directory Path: ~
Directory minecraft already exists! Updating scripts and configuring service ...
Getting total system memory...
Total memory: 923 - Available Memory: 817
Total memory: 923 - Available Memory: 817
Please enter the amount of memory you want to dedicate to the server. A minimum of 700MB is recommended.
You must leave enough left over memory for the operating system to run background processes.
If all memory is exhausted the Minecraft server will either crash or force background processes into the paging file (very slow).
Enter amount of memory in megabytes to dedicate to the Minecraft server (recommended: 517): 517M
main: line 106: [[: 517M: value too great for base (error token is "517M")
main: line 108: [[: 517M: value too great for base (error token is "517M")
main: line 110: [[: 517M: value too great for base (error token is "517M")
main: line 103: [[: 517M: value too great for base (error token is "517M")
main: line 103: [[: 517M: value too great for base (error token is "517M")
Amount of memory for Minecraft server selected: 517M MB
Grabbing start.sh from repository...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 11323 100 11323 0 0 41476 0 --:--:-- --:--:-- --:--:-- 41476
Grabbing stop.sh from repository...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1631 100 1631 0 0 6421 0 --:--:-- --:--:-- --:--:-- 6421
Grabbing restart.sh from repository...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2205 100 2205 0 0 8480 0 --:--:-- --:--:-- --:--:-- 8448
Grabbing fixpermissions.sh from repository...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1579 100 1579 0 0 5936 0 --:--:-- --:--:-- --:--:-- 5958
Grabbing update.sh from repository...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 607 100 607 0 0 2215 0 --:--:-- --:--:-- --:--:-- 2215
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 311 100 311 0 0 1033 0 --:--:-- --:--:-- --:--:-- 1029
Minecraft can automatically start at boot if you wish.
Start Minecraft server at startup automatically (y/n)?y
Setting server file permissions...
Your time zone is currently set to Europe/London. Current system time: Wed 22 Dec 10:40:01 GMT 2021
You can adjust/remove the selected reboot time later by typing crontab -e
Automatically reboot Pi and update server at 4am daily (y/n)?y
Daily reboot scheduled. To change time or remove automatic reboot type crontab -e
Minecraft installation scripts have been updated to the latest version!
pi@raspberrypi:~/minecraft $
I had a look at your start.sh and had a look where it stopped. Then I ran java -Xmx500M -Xms500M -jar paperclip.jar manually and the server started and I was able to enter a new world with Minecraft!
Your last line of start.sh says:
screen -dmS minecraft java -jar -Xms400M -XmxmemselectM dirname/minecraft/paperclip.jar
Maybe there is a typo in that line? The -XmxmemselectM looks weird. I guess memselectM is a variable which is not adressed coreectly.
Hey Coernel,
Was this set up using SetupMinecraft.sh? That script replaces those lines in start.sh. You may also be using an older SetupMinecraft.sh you downloaded a long time ago that doesn't know how to replace those lines in start.sh.
Basically start.sh and all of those scripts are templates. SetupMinecraft.sh downloads and modifies them (you don't use them directly). Hopefully that helps!