balena-minecraft-server: [BUG] Invalid or corrupt jarfile paper.jar

Describe the Bug When starting the Minecraft service from balena dashboard the Logs panel show:

Starting jar file with 2GB of RAM.
Error: Invalid or corrupt jarfile paper.jar

To Reproduce Steps to reproduce the behavior:

  1. git clone git@github.com:AlexProgrammerDE/balena-minecraft-server.git
  2. balena login
  3. balena push Minecraft-Server
  4. Open balena dashboard and check Logs

Expected behavior The Minecraft service to start without error.

Screenshots Capture

Raspberry Pi (please complete the following information):

  • OS: balenaOS 2.47.0+rev1

Minecraft:

  • Minecraft Edition Java Edition

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 42 (19 by maintainers)

Commits related to this issue

Most upvoted comments

@FreshSoul there are two erors and two reasons:

  1. Worldedit v7.1.0 support only 1.15-1.13 (https://dev.bukkit.org/projects/worldedit/files) So just delete all plugins and search for versions with support for your version.
  2. You downgraded your maps. 1.15 settings cant be load in 1.12. My advice: Delete all folders begining with world

@AnthonyVadala the problem was that your device had no internet connection on the first boot. It tried to download the paper.jar file, but failed. It left behind a 0KB file. With the var set it tries on every boot to get the file. You should delete this var now. If you dont do this can the error occur again if the device has no internet connection. I will add code in #5 ehich ensures that the file is 100% downloaded.

@AnthonyVadala what happens, when you set ENABLE_UPDATE to true?

This resolves the issue!

@AnthonyVadala what happens, when you set ENABLE_UPDATE to true?