AlexProgrammerDE / balena-minecraft-server

Build a Minecraft Server using a Raspberry Pi 4! Supports common Servers, SCP, RCON and Wifi Connect.
Apache License 2.0
200 stars 66 forks source link

[BUG] Re: 1.18 needs Java 17 #184

Closed fogdog-twilight closed 2 years ago

fogdog-twilight commented 2 years ago

It's a continuation of the issue below. https://github.com/AlexProgrammerDE/balena-minecraft-server/issues/177

I have redeployed the latest server, but the console still says that java17 is required to start version 1.18. Even if I set the ENABLE_UPDATE parameter to true, java17 was still not installed. I can't find the openjdk directory in the /usr/local, and I don't know where java is installed.

My environment is as follows. -Raspberry Pi 4 (using 64bit OS) -Host OS version : balenaOS 2.88.4 -Supervisor version: 12.11.21

キャプチャ

UnderRTX commented 2 years ago

The ENABLE_UPDATE parameter only updates minecraft version. Openjdk (java) has to be in version 17 from the beggining

fogdog-twilight commented 2 years ago

I don't think java17 is included in balenaos. I can't run the latest minecraft.

AlexProgrammerDE commented 2 years ago

Have you tried redeploying balena minecraft server?

fogdog-twilight commented 2 years ago

I redeproyed it with the latest version.

taedium8vitae commented 2 years ago

Just try to deploy it manually using the Balena CLI tools openjdk 17 is included in the latest release (debian bookworm). Download the repository from github as a zip and use your terminal to push it to your fleet. cd YOURFOLDER then balena login and finally balena push YOURFLEETNAME

ComradeBv2 commented 2 years ago

How do you put openJDK 17 on the server?

AlexProgrammerDE commented 2 years ago

Mojang keeps requiring higher java versions with each release. I would recommend you to just redeploy the application as we ship java 17 with the images now.

sumwhat1 commented 2 years ago

Ok, I figured out a fix.

If you're like me, you tried re-deploying and updating BalenaOS to no avail

image

But it turns out that even with ENABLE_UPDATE = true, Paper.jar was not updating. So for some reason, the server was running 1.17 even though there was no such indication that was happening.

So you have to manually update Paper.jar by obtaining their latest JAR file, and then drag it into the serverfiles folder using SCP

To recap:

  1. Re-deploy Project
  2. Update BalenaOS using BalenaCloud-Actions
  3. Replace Paper.Jar manually (Edit: https://papermc.io/downloads )

After this, you should be good to go. Make sure to backup any important server files in case you need to start from scratch.

ArnaldoScheibe commented 2 years ago

#

I had same problem and this fix to me.

Thank you for you post @sumwhat1

Ok, I figured out a fix.

If you're like me, you tried re-deploying and updating BalenaOS to no avail

image

But it turns out that even with ENABLE_UPDATE = true, Paper.jar was not updating. So for some reason, the server was running 1.17 even though there was no such indication that was happening.

So you have to manually update Paper.jar by obtaining their latest JAR file, and then drag it into the serverfiles folder using SCP

To recap:

  1. Re-deploy Project
  2. Update BalenaOS using BalenaCloud-Actions
  3. Replace Paper.Jar manually

After this, you should be good to go. Make sure to backup any important server files in case you need to start from scratch.

rikvik2006 commented 2 years ago

Hi, I have a couple of questions to ask.

Will I lose all data if I redeploy the project?

If I lose all the data how can I restore the data as before?

Do I just need to back up all plug-ins, configuration files and worlds (to transfer them to the server later) or do I need to back up the entire serverfiles folder?

Ok, I figured out a fix.

If you're like me, you tried re-deploying and updating BalenaOS to no avail

image

But it turns out that even with ENABLE_UPDATE = true, Paper.jar was not updating. So for some reason, the server was running 1.17 even though there was no such indication that was happening.

So you have to manually update Paper.jar by obtaining their latest JAR file, and then drag it into the serverfiles folder using SCP

To recap:

  1. Re-deploy Project
  2. Update BalenaOS using BalenaCloud-Actions
  3. Replace Paper.Jar manually (Edit: https://papermc.io/downloads )

After this, you should be good to go. Make sure to backup any important server files in case you need to start from scratch.

sumwhat1 commented 2 years ago

Hi, I have a couple of questions to ask.

Will I lose all data if I redeploy the project?

IIRC yes you will, best to backup all files in the server folder before redeploying the project.

If I lose all the data how can I restore the data as before?

Just copy the server folder back into the same place you backed it up from earlier using SCP.

Do I just need to back up all plug-ins, configuration files and worlds (to transfer them to the server later) or do I need to back up the entire serverfiles folder?

The entire folder is likely your best bet.

rikvik2006 commented 2 years ago

Thanks for being so quick to respond

Hi, I have a couple of questions to ask. Will I lose all data if I redeploy the project?

IIRC yes you will, best to backup all files in the server folder before redeploying the project.

If I lose all the data how can I restore the data as before?

Just copy the server folder back into the same place you backed it up from earlier using SCP.

Do I just need to back up all plug-ins, configuration files and worlds (to transfer them to the server later) or do I need to back up the entire serverfiles folder?

The entire folder is likely your best bet.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.