balena-minecraft-server icon indicating copy to clipboard operation
balena-minecraft-server copied to clipboard

[BUG] Re: 1.18 needs Java 17

Open fogdog-twilight opened this issue 4 years ago • 13 comments

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

キャプチャ

fogdog-twilight avatar Dec 22 '21 06:12 fogdog-twilight

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

UnderRTX avatar Dec 22 '21 15:12 UnderRTX

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

fogdog-twilight avatar Jan 01 '22 03:01 fogdog-twilight

Have you tried redeploying balena minecraft server?

AlexProgrammerDE avatar Jan 02 '22 20:01 AlexProgrammerDE

I redeproyed it with the latest version.

fogdog-twilight avatar Jan 03 '22 12:01 fogdog-twilight

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

viedok avatar Jan 06 '22 12:01 viedok

How do you put openJDK 17 on the server?

ComradeBv2 avatar Jan 13 '22 03:01 ComradeBv2

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.

AlexProgrammerDE avatar Jan 24 '22 15:01 AlexProgrammerDE

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.

ghost avatar Jan 24 '22 23:01 ghost

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.

ArnaldoScheibe avatar Jan 26 '22 12:01 ArnaldoScheibe

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.

rikvik2006 avatar Feb 22 '22 14:02 rikvik2006

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.

ghost avatar Feb 22 '22 17:02 ghost

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.

rikvik2006 avatar Feb 22 '22 20:02 rikvik2006

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.

stale[bot] avatar Apr 25 '22 12:04 stale[bot]