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:
git clone git@github.com:AlexProgrammerDE/balena-minecraft-server.git
balena login
balena push Minecraft-Server
- Open balena dashboard and check Logs
Expected behavior The Minecraft service to start without error.
Screenshots
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
- Retry until the file is downloaded Connects-to: #4 Change-type: patch — committed to AlexProgrammerDE/balena-minecraft-server by AlexProgrammerDE 4 years ago
- Retry until the file is downloaded (#5) Connects-to: #4 Change-type: patch — committed to AlexProgrammerDE/balena-minecraft-server by AlexProgrammerDE 4 years ago
@FreshSoul there are two erors and two reasons:
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.
This resolves the issue!
@AnthonyVadala what happens, when you set
ENABLE_UPDATE
totrue
?